Changeset 252 for trunk/aktuality/news.php
- Timestamp:
- Oct 2, 2009, 7:53:41 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/aktuality/news.php
r251 r252 49 49 $DbResult = $Database->select('NewsCategory', '*', 'Id='.$Category); 50 50 $Row = $DbResult->fetch_array(); 51 $Output = '<table class="NewsBaseTable"><tr>'; 52 $Output .= '<td>'.$Row['Caption'].'</td><td align="right">'; 53 $Output .= '<a href="aktuality/index.php?category='.$Category.'">Zobrazit všechny aktuality</a> '; 51 $Output = '<div class="NewsPanel"><div class="Title">'.$Row['Caption']; 52 $Output .= '<div class="Action"><a href="aktuality/index.php?category='.$Category.'">Zobrazit</a>'; 54 53 if($this->System->Modules['User']->CheckPermission('News', 'Insert', 'Group', $Category)) 55 $Output .= ' <a href="aktuality/index.php?action=add&category='.$Category.'">Přidat aktualitu</a> ';56 $Output .= '</ td></tr><tr><td colspan="2">';54 $Output .= ' <a href="aktuality/index.php?action=add&category='.$Category.'">Přidat</a>'; 55 $Output .= '</div></div><div class="Content">'; 57 56 $DbResult = $Database->query('SELECT `News`.*, `User`.`Name` FROM `News` LEFT JOIN `User` ON `User`.`Id`=`News`.`User` WHERE (`News`.`Category`='.$Category.') AND (DATE_SUB(NOW(), INTERVAL '.$DaysAgo.' DAY) < `News`.`Date`) ORDER BY `News`.`Date` DESC LIMIT 0,'.$ItemCount); 58 57 //echo($Database->error.'<br />'); … … 86 85 $Output .= '</table>'; 87 86 } 88 $Output .= '</ td></tr></table>';87 $Output .= '</div></div>'; 89 88 return($Output); 90 89 } … … 157 156 $I++; 158 157 } 159 $Output .= '</table><input type="hidden" name="NewsCategoryCount" value="'.count($this->NewsSetting).'" /><input type="submit" value="Uložit" /></form></td></tr></table> ';158 $Output .= '</table><input type="hidden" name="NewsCategoryCount" value="'.count($this->NewsSetting).'" /><input type="submit" value="Uložit" /></form></td></tr></table><br>'; 160 159 return($Output); 161 160 }
Note:
See TracChangeset
for help on using the changeset viewer.