Changeset 170 for www/jidelna/index.php
- Timestamp:
- Mar 24, 2009, 5:44:56 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/jidelna/index.php
r149 r170 13 13 14 14 //echo('Dnes je '.HumanDate(date('Y-m-d')).'<br>'); 15 $Output = '<table align="center" border="1" cellspacing="0" cellpadding="5"><tr><th>Den</th><th>Datum</th><th>Polévka</th><th>Hlavní jídlo</th></tr>';15 $Output = '<table align="center" class="WideTable"><tr><th>Den</th><th>Datum</th><th>Polévka</th><th>Hlavní jídlo</th></tr>'; 16 16 $DbResult = $this->Database->select('Meals', '*, UNIX_TIMESTAMP(Date)','Date >= NOW() ORDER BY Date'); 17 17 while($Row = $DbResult->fetch_array()) 18 18 { 19 19 if($Row['Status'] == 1) $Output .= '<tr><td>'.$Dny[date('w', $Row['UNIX_TIMESTAMP(Date)'])].'</td><td align="right">'.HumanDate($Row['Date']).'</td><td>'.$Row['Soup'].'</td><td>'.$Row['Meal'].'</td></tr>'; 20 else if(($Row[' status' ] == 2) or ($Row['status'] == 3))20 else if(($Row['Status' ] == 2) or ($Row['Status'] == 3)) 21 21 { 22 22 $Output .= '<tr><td>'.$Dny[date('w',$Row['UNIX_TIMESTAMP(Date)'])].'</td><td align="right">'.HumanDate($Row['Date']).'</td><td colspan="2" align="center">'.$Status[$Row['Status']].'</td></tr>';
Note:
See TracChangeset
for help on using the changeset viewer.