Changeset 155 for www


Ignore:
Timestamp:
Feb 17, 2009, 8:54:39 PM (16 years ago)
Author:
george
Message:
  • Opraveno: Ukládání nastavení zobrazení aktualit se neuchovávalo po zavření prohlížeče.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • www/aktuality/news.php

    r153 r155  
    119119      $DbResult = $this->Database->select('news_category', '*', 'id='.$SettingItem['CategoryId']);
    120120      $NewsCategory = $DbResult->fetch_array();
    121       $Output .= '<tr><td>'.$NewsCategory['caption'].'</td><td align="center"><input type="text" size="1" name="NewsCategoryIndex'.$I.'" value="'.$SettingItem['Index'].'" /></td><td align="center"><input type="checkbox" name="NewsCategoryEnabled'.$I.'"';
     121      $Output .= '<tr><td>'.$NewsCategory['caption'].'</td><td align="center"><input type="text" size="2" name="NewsCategoryIndex'.$I.'" value="'.$SettingItem['Index'].'" /></td><td align="center"><input type="checkbox" name="NewsCategoryEnabled'.$I.'"';
    122122      if($SettingItem['Enabled'] == 1) $Output .= ' checked="checked"';
    123123      $Output .= ' /></td>'.
    124       '<td align="center"><input type="text" size="1" name="NewsCategoryCount'.$I.'" value="'.$SettingItem['ItemCount'].'" />'.
    125       '<input type="hidden" name="NewsCategoryId'.$I.'" value="'.$SettingItem['CategoryId'].'" /></td><td align="center"><input type="text" size="1" name="NewsCategoryDaysAgo'.$I.'" value="'.$SettingItem['DaysAgo'].'" /></td></tr>';
     124      '<td align="center"><input type="text" size="2" name="NewsCategoryCount'.$I.'" value="'.$SettingItem['ItemCount'].'" />'.
     125      '<input type="hidden" name="NewsCategoryId'.$I.'" value="'.$SettingItem['CategoryId'].'" /></td>'.
     126          '<td align="center"><input type="text" size="3" name="NewsCategoryDaysAgo'.$I.'" value="'.$SettingItem['DaysAgo'].'" /></td></tr>';
    126127      $I++;
    127128    }
     
    152153    // Store new cookie value
    153154    $_COOKIE['NewsSetting'] = serialize($Setting);
    154     setcookie('NewsSetting', $_COOKIE['NewsSetting']);
     155    setcookie('NewsSetting', $_COOKIE['NewsSetting'], time() + 60 * 60 * 24 * 365);
    155156  }
    156157
Note: See TracChangeset for help on using the changeset viewer.