Ignore:
Timestamp:
May 27, 2009, 9:05:21 PM (16 years ago)
Author:
george
Message:
  • Upraveno: Částečný přepis vzhledu tabulky s aktualitami do CSS.
  • Upraveno: Zobrazovat již pouze tabulku následujících tarifů.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/aktuality/news.php

    r196 r221  
    2121    $DbResult = $Database->select('NewsCategory', '*', 'Id='.$Category);
    2222    $Row = $DbResult->fetch_array();
    23     $Output = '<table cellspacing="0" cellpadding="0" border="0" width="100%" style="font-size: small; padding-bottom: 5px;"><tr>';
     23    $Output = '<table class="NewsBaseTable"><tr>';
    2424    $Output .= '<td>'.$Row['Caption'].'</td><td align="right">';
    2525    $Output .= '<a href="aktuality/index.php?category='.$Category.'">Zobrazit všechny aktuality</a>&nbsp;';
     
    3535    if($DbResult->num_rows > 0)
    3636    {
    37       $Output .= '<table cellspacing="0" width="100%" class="NewsTable">';
     37      $Output .= '<table class="NewsTable">';
    3838      while($Row = $DbResult->fetch_array())
    3939      {
    4040        if($Row['Name'] == '') $Author = $Row['Author'];
    4141          else $Author = $Row['Name'];
    42         $Output .= '<tr><td onclick="window.location=\'aktuality/index.php?action=view&amp;id='.$Row['Id'].'\'" onmouseover="zobraz('."'new".$Category.$Index."'".')" style="cursor: pointer; margin: 0px;"><table cellspacing="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&amp;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>';
    4343        $Output .= '<div id="new'.$Category.$Index.'" class="NewsTableItem">'.$Row['Content'];
    4444
     
    5858      $Output .= '</table>';
    5959    }
    60     $Output .= '</td></tr></table>'."\n\n";
     60    $Output .= '</td></tr></table>';
    6161    return($Output);
    6262  }
     
    8686  function Show()
    8787  {
    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>';
    8989
    9090    $UploadedFilesFolder = 'aktuality/uploads/';
Note: See TracChangeset for help on using the changeset viewer.