Changeset 29


Ignore:
Timestamp:
Jan 22, 2008, 7:08:03 PM (17 years ago)
Author:
george
Message:

Opraveno: České znaky.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • www/jidelna/menuedit.php

    r26 r29  
    1111{
    1212  global $Dny, $Status, $LastWeekOfYear;
     13
    1314  $Selected = array('','','','');
    1415  $Selected[$Row['status']] = 'selected ';   
     
    3738    for($I=0; $I<$Count; $I++)
    3839    {
    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>');
    4244    }
    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>');
    4446  }
    4547  if($_GET['action'] == 'saveinfo')
     
    4749    $Database->delete('meals_info','1');
    4850    $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>');
    5052  }
    5153}
Note: See TracChangeset for help on using the changeset viewer.