Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

The determination of the time in the panel

Asked Modified Viewed 1,742 times
D
djdandi
D
  • Senior Member, joined since
  • Contributed 298 posts on the community forums.
  • Started 99 threads in the forums
  • Started this discussions
asked
Senior Member

I wrote a plugin to issue forecasts pogodu for my region. All records in the database but I have a problem with writing a function that displays the weather on a certain day. The database records the date of the relevant weather in the format 12 February 2015. How to do now appeared on the weather for that day.
This is the panel showing the weather but id
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------*/
require_once "../../maincore.php";
require_once THEMES."templates/header.php";
include INFUSIONS."prognozadzien_infusion/infusion_db.php";
?>
<link href="pogodadzien.css" rel="stylesheet">
<?php
$result = dbquery(
  "SELECT d.*, u.user_id, u.user_name, u.user_status 
  FROM ".DB_PROGNOZADZIEN." d
  LEFT JOIN ".DB_USERS." u ON u.user_id=d.user
  ORDER BY obszar_id DESC LIMIT 1"
);
  $rows = dbcount("(obszar_id)", DB_PROGNOZADZIEN);
if ($rows) {
      echo "<table border='0' cellpadding='0' cellspacing='0'>\n";
  while($data = dbarray($result)) {
        echo "<tr>\n";
        echo "<td><img src='".INFUSIONS."prognozadzien_infusion/admin/images/prognoza/dzien/".$data['obszar_aikona']."d.png'></td>\n";
        echo "<td>\n";
      echo "<table border='0' cellpadding='0' cellspacing='0'>\n";
        echo "<tr>\n";
        echo "<td style='font-family: Arial; font-size: 13px; color: #fff; padding-top: 12px;'><b>".$data['obszar_atemp']."&deg;C</b></td>\n";
        echo "</tr>\n";
        echo "<tr>\n";
        echo "<td style='font-family: Arial; font-size: 12px; color: #8afff0; padding-bottom: 10px;'>".$data['obszar_awiatr']."km/h</td>\n";
        echo "</tr>\n";
        echo "</table>\n";
        echo "</td>\n";
      echo "<td><img width='20px' src='".INFUSIONS."prognozadzien_infusion/admin/images/prognoza/dzien/".$data['obszar_akierunek'].".png'></td>\n";
        //echo "<td class='tbl1' style='white-space:nowrap'>".$data['obszar_atemp']."&nbsp;<img width='30px' src='".INFUSIONS."prognozadzien_infusion/admin/images/prognoza/dzien/".$data['obszar_aikona']."d.png'>&nbsp;".$data['obszar_awiatr']."&nbsp;<img width='15px' src='".INFUSIONS."prognozadzien_infusion/admin/images/prognoza/dzien/".$data['obszar_akierunek'].".png'></td>\n";
        echo "</tr>\n";
    }
        echo "</table>\n";
        } else {
        echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n<tr>\n<td class='tbl2' align='left'>".$locale['dev_023']."</td></tr>\n</table>";
}
//require_once THEMES."templates/footer.php";
?>

In Annex I send the whole panel
djdandi attached the following file:
prognozadzien_infusion.zip [No information available / 230 Downloads]
0 replies
There are no post found.

Category Forum

Panels and Infusions

Labels

None yet

Statistics

  • Views 0 views
  • Posts 0 posts
  • Votes 0 votes
  • Topic users 1 member

1 participant

D
D
  • Senior Member, joined since
  • Contributed 298 posts on the community forums.
  • Started 99 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet