Changeset 170 for www/jidelna
- Timestamp:
- Mar 24, 2009, 5:44:56 PM (16 years ago)
- Location:
- www/jidelna
- Files:
-
- 3 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>'; -
www/jidelna/menuedit.php
r149 r170 62 62 $Output = '<form action="menuedit.php?action=savemenu" method="post"> 63 63 <fieldset><legend>Jídlo pro jednotlivé dny</legend> 64 <table align="center" border="1" cellspacing="0" cellpadding="5"><tr><th>Den</th><th>Datum</th><th>Týden</th><th>Polévka</th><th>Hlavní jídlo</th><th>Stav</th></tr>';64 <table align="center" class="WideTable"><tr><th>Den</th><th>Datum</th><th>Týden</th><th>Polévka</th><th>Hlavní jídlo</th><th>Stav</th></tr>'; 65 65 for($I = 0; $I < $this->DayCount; $I++) 66 66 { -
www/jidelna/tisk.php
r149 r170 34 34 if($Row['Status'] == 0) echo(' <br><br> '); 35 35 if($Row['Status'] == 1) echo('Polévka: '.$Row['Soup'].'<br><br>'.$Row['Meal']); 36 else if(($Row[' status'] == 2) or ($Row['status'] == 3))36 else if(($Row['Status'] == 2) or ($Row['Status'] == 3)) 37 37 { 38 38 echo('<br>'.$Status[$Row['Status']].'<br> ');
Note:
See TracChangeset
for help on using the changeset viewer.