- Timestamp:
- Feb 17, 2009, 8:54:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/aktuality/news.php
r153 r155 119 119 $DbResult = $this->Database->select('news_category', '*', 'id='.$SettingItem['CategoryId']); 120 120 $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.'"'; 122 122 if($SettingItem['Enabled'] == 1) $Output .= ' checked="checked"'; 123 123 $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>'; 126 127 $I++; 127 128 } … … 152 153 // Store new cookie value 153 154 $_COOKIE['NewsSetting'] = serialize($Setting); 154 setcookie('NewsSetting', $_COOKIE['NewsSetting'] );155 setcookie('NewsSetting', $_COOKIE['NewsSetting'], time() + 60 * 60 * 24 * 365); 155 156 } 156 157
Note:
See TracChangeset
for help on using the changeset viewer.