Changeset 221 for trunk/aktuality/news.php
- Timestamp:
- May 27, 2009, 9:05:21 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/aktuality/news.php
r196 r221 21 21 $DbResult = $Database->select('NewsCategory', '*', 'Id='.$Category); 22 22 $Row = $DbResult->fetch_array(); 23 $Output = '<table c ellspacing="0" cellpadding="0" border="0" width="100%" style="font-size: small; padding-bottom: 5px;"><tr>';23 $Output = '<table class="NewsBaseTable"><tr>'; 24 24 $Output .= '<td>'.$Row['Caption'].'</td><td align="right">'; 25 25 $Output .= '<a href="aktuality/index.php?category='.$Category.'">Zobrazit všechny aktuality</a> '; … … 35 35 if($DbResult->num_rows > 0) 36 36 { 37 $Output .= '<table c ellspacing="0" width="100%" class="NewsTable">';37 $Output .= '<table class="NewsTable">'; 38 38 while($Row = $DbResult->fetch_array()) 39 39 { 40 40 if($Row['Name'] == '') $Author = $Row['Author']; 41 41 else $Author = $Row['Name']; 42 $Output .= '<tr><td onclick="window.location=\'aktuality/index.php?action=view&id='.$Row['Id'].'\'" onmouseover="zobraz('."'new".$Category.$Index."'".')" style="cursor: pointer; margin: 0px;"><table c ellspacing="0" cellpadding="0" style="padding: 0px; margin: 0px; font-size: small; color: red;" width="100%"><tr><td style="font-size: '.$FontSize.'pt"><strong>'.$Row['Title'].'</strong></td><td align="right" style="font-size: '.$FontSize.'pt">'.$Author.' ('.HumanDate($Row['Date']).')</td></tr></table>';42 $Output .= '<tr><td onclick="window.location=\'aktuality/index.php?action=view&id='.$Row['Id'].'\'" onmouseover="zobraz('."'new".$Category.$Index."'".')" style="cursor: pointer; margin: 0px;"><table class="NewsItemFrame"><tr><td style="font-size: '.$FontSize.'pt"><strong>'.$Row['Title'].'</strong></td><td align="right" style="font-size: '.$FontSize.'pt">'.$Author.' ('.HumanDate($Row['Date']).')</td></tr></table>'; 43 43 $Output .= '<div id="new'.$Category.$Index.'" class="NewsTableItem">'.$Row['Content']; 44 44 … … 58 58 $Output .= '</table>'; 59 59 } 60 $Output .= '</td></tr></table>' ."\n\n";60 $Output .= '</td></tr></table>'; 61 61 return($Output); 62 62 } … … 86 86 function Show() 87 87 { 88 $Output = '<div class="PanelTitle"><span class="MenuItem">Aktuálně</span>< div class="MenuItem2"><a href="?Action=CustomizeNews">Upravit</a></div></div>';88 $Output = '<div class="PanelTitle"><span class="MenuItem">Aktuálně</span><span class="MenuItem2"><a href="?Action=CustomizeNews">Upravit</a></span></div>'; 89 89 90 90 $UploadedFilesFolder = 'aktuality/uploads/';
Note:
See TracChangeset
for help on using the changeset viewer.