Файл: backup/all_themes.php
Строк: 28
<?
require_once('core/start.php');
$title = 'Все темы';
require_once(root.'core/header.php');
echo '<div class="wizart">'.$title.'</div>';
func::head_menu();
$total = core::$dbs->querySingle("SELECT COUNT(id) from `forum_theme`");
if($total==0){
func::error('Тем нет!');
}
func::nav($total,$num);
$array = core::$dbs->query("SELECT * FROM `forum_theme` ORDER BY `time` DESC LIMIT $start,$num");
while($arr = $array -> fetch()){
if($arr['type'] == 0){
$type = '<img src="/icons/them.png" alt=""/>';
}elseif($arr['type'] == 1){
$type = '<img src="/icons/them_closed.png" alt=""/>';
}
echo '<div class="main">';
echo $type.' <a href="/plugin/topic/'.$arr['id'].'"><b>'.$arr['name'].'</b></a> <span class="count">('.core::$dbs->querySingle("SELECT COUNT(id) from `forum_msg` WHERE `id_t` = ?",array($arr['id'])).')</span><br/>';
echo mb_substr($arr['text'],0,25).'...('.func::times($arr['time']).')';
echo '</div>';
}
func::navig('?');
func::footer_menu();
require_once(root.'core/footer.php');
?>