Ignore:
Timestamp:
Oct 2, 2009, 7:53:41 AM (15 years ago)
Author:
george
Message:
  • Upraveno: Upraven styl aktualit.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/aktuality/news.php

    r251 r252  
    4949    $DbResult = $Database->select('NewsCategory', '*', 'Id='.$Category);
    5050    $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>&nbsp;';
     51    $Output = '<div class="NewsPanel"><div class="Title">'.$Row['Caption'];     
     52    $Output .= '<div class="Action"><a href="aktuality/index.php?category='.$Category.'">Zobrazit</a>';
    5453    if($this->System->Modules['User']->CheckPermission('News', 'Insert', 'Group', $Category))
    55       $Output .= '<a href="aktuality/index.php?action=add&amp;category='.$Category.'">Přidat aktualitu</a>&nbsp;';
    56     $Output .= '</td></tr><tr><td colspan="2">';
     54      $Output .= ' <a href="aktuality/index.php?action=add&amp;category='.$Category.'">Přidat</a>';
     55    $Output .= '</div></div><div class="Content">';
    5756    $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);
    5857    //echo($Database->error.'<br />');
     
    8685      $Output .= '</table>';
    8786    }
    88     $Output .= '</td></tr></table>';
     87    $Output .= '</div></div>';
    8988    return($Output);
    9089  }
     
    157156      $I++;
    158157    }
    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>';
    160159    return($Output);
    161160  }
Note: See TracChangeset for help on using the changeset viewer.