Changeset 29 for www/jidelna/menuedit.php
- Timestamp:
- Jan 22, 2008, 7:08:03 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/jidelna/menuedit.php
r26 r29 11 11 { 12 12 global $Dny, $Status, $LastWeekOfYear; 13 13 14 $Selected = array('','','',''); 14 15 $Selected[$Row['status']] = 'selected '; … … 37 38 for($I=0; $I<$Count; $I++) 38 39 { 39 $Time = time()+$I*86400; 40 $Date = date('Y-m-d',$Time); 41 $Database->replace('meals',array('date' => $Date, 'meal' => $_POST['meal_'.$Date], 'soap' => $_POST['soap_'.$Date], 'status' => $_POST['status_'.$Date])); 40 $Time = time() + $I * 86400; 41 $Date = date('Y-m-d', $Time); 42 $Database->replace('meals', array('date' => $Date, 'meal' => $_POST['meal_'.$Date], 'soap' => $_POST['soap_'.$Date], 'status' => $_POST['status_'.$Date])); 43 //echo($Database->error.'<br>'); 42 44 } 43 echo('<div style="color: red; font-size: larger;">Menu ulo ľeno!</div>');45 echo('<div style="color: red; font-size: larger;">Menu uloženo!</div>'); 44 46 } 45 47 if($_GET['action'] == 'saveinfo') … … 47 49 $Database->delete('meals_info','1'); 48 50 $Database->insert('meals_info',array('info' => $_POST['info'], 'price' => $_POST['price'])); 49 echo('<div style="color: red; font-size: larger;">Informační údaje ulo ľeny!</div>');51 echo('<div style="color: red; font-size: larger;">Informační údaje uloženy!</div>'); 50 52 } 51 53 }
Note:
See TracChangeset
for help on using the changeset viewer.