Changeset 170 for www


Ignore:
Timestamp:
Mar 24, 2009, 5:44:56 PM (16 years ago)
Author:
george
Message:
  • Opraveno: Chyba názvu proměnné na stránce jídelníčku.
  • Opraveno: Nelogovat odhlášení anonymních uživatelů.
Location:
www
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • www/global.php

    r168 r170  
    194194  return($DbRow['Id']);
    195195}
    196  
     196
     197function RemoveDiacritic($Text)
     198{
     199  return(str_replace(
     200    array("á","č","ď","é","ě","í","ľ","ň","ó","ř","š","ť","ú","ů","ý","ž","Á","Č","Ď","É","Ě","Í","Ľ","Ň","Ó","Ř","Š","Ť","Ú","Ů","Ý","Ž"),
     201    array("a","c","d","e","e","i","l","n","o","r","s","t","u","u","y","z","A","C","D","E","E","I","L","N","O","R","S","T","U","U","Y","Z"), $Text));
     202}
     203
    197204?>
  • www/jidelna/index.php

    r149 r170  
    1313
    1414    //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>';
    1616    $DbResult = $this->Database->select('Meals', '*, UNIX_TIMESTAMP(Date)','Date >= NOW() ORDER BY Date');
    1717    while($Row = $DbResult->fetch_array())
    1818    {
    1919      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))
    2121      {
    2222        $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  
    6262    $Output = '<form action="menuedit.php?action=savemenu" method="post">
    6363<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>';
    6565    for($I = 0; $I < $this->DayCount; $I++)
    6666    {
  • www/jidelna/tisk.php

    r149 r170  
    3434  if($Row['Status'] == 0) echo('&nbsp;<br><br>&nbsp;');
    3535  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))
    3737  {
    3838    echo('<br>'.$Status[$Row['Status']].'<br>&nbsp;');
  • www/user.php

    r169 r170  
    6666    {
    6767      $this->Database->delete('UserOnline', 'Id='.$DbRow['Id']);
    68       $this->System->Modules['Log']->NewRecord('User', 'Logout');
     68      if($DbRow['Id'] != $this->AnonymousUserId) $this->System->Modules['Log']->NewRecord('User', 'Logout');
    6969    }
    7070    //$this->LoadPermission($this->User['Role']);
Note: See TracChangeset for help on using the changeset viewer.