Changeset 4 for www/jidelna/tisk.php
- Timestamp:
- Jan 14, 2008, 9:48:39 PM (17 years ago)
- Location:
- www
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
www
-
Property svn:ignore
set to
config.php
php_script_error.log
-
Property svn:ignore
set to
-
www/jidelna/tisk.php
r1 r4 1 <? 1 <?php 2 2 include_once('../style.php'); 3 include_once('../is/db.php');4 3 include_once('../global.php'); 5 DB_Init('localhost','root','','is');6 DB_Query('SET CHARACTER SET latin2');7 8 4 echo('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 9 5 <HTML> 10 6 <HEAD> 11 <meta http-equiv="Content-Type" content="text/html; charset= iso-8859-2">7 <meta http-equiv="Content-Type" content="text/html; charset='.$Config['Web']['Charset'].'"> 12 8 <META HTTP-EQUIV="Content-language" CONTENT="cs"> 13 <TITLE>Tisk jídelní èku</TITLE>9 <TITLE>Tisk jídelníčku</TITLE> 14 10 </HEAD><body style="margin: 0px 0px 0px 0px;">'); // onload="print()">'); 15 11 16 $Dny = array('Ned ìle', 'Pondìlí', 'Úterý', 'Støeda', 'Ètvrtek', 'Pátek', 'Sobota');17 $DnyZkratky = array('NE', 'PO', 'ÚT', 'ST', ' ÈT', 'PÁ', 'SO');18 $Status = array('Nezve øejnìno', 'Otevøeno', 'Zavøeno - svátek', 'Zavøeno - dovolená');12 $Dny = array('Neděle', 'Pondělí', 'Úterý', 'Středa', 'Čtvrtek', 'Pátek', 'Sobota'); 13 $DnyZkratky = array('NE', 'PO', 'ÚT', 'ST', 'ČT', 'PÁ', 'SO'); 14 $Status = array('Nezveřejněno', 'Otevřeno', 'Zavřeno - svátek', 'Zavřeno - dovolená'); 19 15 20 16 //echo('Dnes je '.HumanDate(date('Y-m-d')).'<br>'); … … 24 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> 25 21 <td align="right">CENY SMLUVNÍ</td></tr></table> 26 <div align="center" style="font-size: xx-large;">„JÍDELNA NA KOPE ÈKU”</div>27 <div align="center" style="font-size: x-large;">JÍDELNÍ ÈEK</div>22 <div align="center" style="font-size: xx-large;">„JÍDELNA NA KOPEČKU”</div> 23 <div align="center" style="font-size: x-large;">JÍDELNÍČEK</div> 28 24 </td></tr>'); 29 25 $Date = explode('-',$_GET['date']); … … 34 30 $Date = date('Y-m-d',$Time); 35 31 $DayOfWeek = date('w',$Time); 36 DB_Select('meals','*','date="'.$Date.'"');37 $Row = DB_Row();32 $DbResult = $Database->select('meals','*','date="'.$Date.'"'); 33 $Row = $DbResult->fetch_array(); 38 34 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%">'); 39 35 if($Row['status']==0) echo(' <br><br> '); … … 45 41 echo('</td></tr>'); 46 42 } 47 DB_Select('meals_info','*');48 $Row = DB_Row();49 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>43 $DbResult = $Database->select('meals_info','*'); 44 $Row = $DbResult->fetch_array(); 45 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> 50 46 <td align="right"><strong>PROVOZOVATEL:</strong></td></tr></table> 51 47 <br> 52 <strong>CENA JEDNOHO MENU JE '.$Row['price'].' K è</strong></td></tr>');48 <strong>CENA JEDNOHO MENU JE '.$Row['price'].' Kč</strong></td></tr>'); 53 49 //echo('<tr><td colspan="2">dd</td></tr>'); 54 50 echo('</table>');
Note:
See TracChangeset
for help on using the changeset viewer.