<?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']."°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']." <img width='30px' src='".INFUSIONS."prognozadzien_infusion/admin/images/prognoza/dzien/".$data['obszar_aikona']."d.png'> ".$data['obszar_awiatr']." <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";
?>
Category Forum
Panels and InfusionsLabels
None yet
Statistics
1 participant
Notifications
You are not receiving notifications from this thread.
Related Questions