Changeset 149 for www/jidelna/tisk.php
- Timestamp:
- Feb 15, 2009, 8:07:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/jidelna/tisk.php
r4 r149 1 1 <?php 2 include_once('../style.php');3 2 include_once('../global.php'); 4 3 echo('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> … … 16 15 //echo('Dnes je '.HumanDate(date('Y-m-d')).'<br>'); 17 16 echo('<table height="99%" width="100%" align="center" border="1" cellspacing="0" cellpadding="3">'); 18 $Date = explode('-', $_GET['date']);17 $Date = explode('-', $_GET['date']); 19 18 echo('<tr><td style="border-bottom-style: solid; border-bottom-color: black; border-bottom-width: 2;" colspan="2"> 20 <table cellspacing="0" cellpadding="0" width="100%"><tr><td width="50%"><strong>DATUM:</strong> '.HumanDate($_GET['date']).' - '.HumanDate(date('Y-m-d',mktime(0, 0,0,$Date[1],$Date[2],$Date[0])+4*86400)).'</td>19 <table cellspacing="0" cellpadding="0" width="100%"><tr><td width="50%"><strong>DATUM:</strong> '.HumanDate($_GET['date']).' - '.HumanDate(date('Y-m-d',mktime(0, 0, 0, $Date[1], $Date[2], $Date[0]) + 4 * 86400)).'</td> 21 20 <td align="right">CENY SMLUVNÍ</td></tr></table> 22 21 <div align="center" style="font-size: xx-large;">„JÍDELNA NA KOPEČKU”</div> 23 22 <div align="center" style="font-size: x-large;">JÍDELNÍČEK</div> 24 23 </td></tr>'); 25 $Date = explode('-', $_GET['date']);26 $Time2 = mktime(0, 0,0,$Date[1],$Date[2],$Date[0]);27 for($I =0; $I< 5; $I++)24 $Date = explode('-', $_GET['date']); 25 $Time2 = mktime(0, 0, 0, $Date[1], $Date[2], $Date[0]); 26 for($I = 0; $I < 5; $I++) 28 27 { 29 $Time = $Time2 + $I *86400;30 $Date = date('Y-m-d', $Time);31 $DayOfWeek = date('w', $Time);32 $DbResult = $Database->select(' meals','*','date="'.$Date.'"');28 $Time = $Time2 + $I * 86400; 29 $Date = date('Y-m-d', $Time); 30 $DayOfWeek = date('w', $Time); 31 $DbResult = $Database->select('Meals', '*', 'Date="'.$Date.'"'); 33 32 $Row = $DbResult->fetch_array(); 34 33 echo('<tr><td style="border-style: solid; border-color: black; border-width: 2; font-size: xx-large;" width="10%">'.$DnyZkratky[$DayOfWeek].'</td><td style="font-size: x-large; border-style: solid; border-color: black; border-width: 2;" width="90%">'); 35 if($Row[' status']==0) echo(' <br><br> ');36 if($Row[' status']==1) echo('Polévka: '.$Row['soap'].'<br><br>'.$Row['meal']);37 else if(($Row['status'] ==2) or ($Row['status']==3))34 if($Row['Status'] == 0) echo(' <br><br> '); 35 if($Row['Status'] == 1) echo('Polévka: '.$Row['Soup'].'<br><br>'.$Row['Meal']); 36 else if(($Row['status'] == 2) or ($Row['status'] == 3)) 38 37 { 39 echo('<br>'.$Status[$Row[' status']].'<br> ');38 echo('<br>'.$Status[$Row['Status']].'<br> '); 40 39 } 41 40 echo('</td></tr>'); 42 41 } 43 $DbResult = $Database->select(' meals_info','*');42 $DbResult = $Database->select('MealsInfo','*'); 44 43 $Row = $DbResult->fetch_array(); 45 44 echo('<tr><td style="border-top-style: solid; border-top-color: black; border-top-width: 2;" colspan="2"><table cellspacing="0" cellpadding="0" width="100%"><tr><td width="50%"><strong>JÍDLA PŘIPRAVIL: BAROŇOVÁ L.</strong></td> 46 45 <td align="right"><strong>PROVOZOVATEL:</strong></td></tr></table> 47 46 <br> 48 <strong>CENA JEDNOHO MENU JE '.$Row[' price'].' Kč</strong></td></tr>');47 <strong>CENA JEDNOHO MENU JE '.$Row['Price'].' Kč</strong></td></tr>'); 49 48 //echo('<tr><td colspan="2">dd</td></tr>'); 50 49 echo('</table>');
Note:
See TracChangeset
for help on using the changeset viewer.