Файл: BlogExl_v_3/modules/info/smiles.php
Строк: 14
<?
head('Смайлы');
info();
echo '<div class="rega"><center>Всего смайлов <b>'.$dbs->query("SELECT * FROM `smiles`")->num_rows.'</b></center></div>';
$ram = $dbs->query("SELECT * FROM `smiles`")->num_rows;
$num = 10;
$total = intval(($ram - 1) / $num) + 1;
$page = abs(intval($_GET['page']));
if(empty($page) or $page < 0) $page = 1;
if($page > $total) $page = $total;
$start = $page * $num - $num;
$cat = $dbs->query("SELECT * FROM `smiles` ORDER BY `id` DESC LIMIT $start,$num");
while($c = $cat->fetch_assoc()){
echo '<div class="post2">'.$c['name'].' - <img src="'.URL.'/files/smiles/'.$c['file'].'" alt="*"/></div><hr></hr>';
}
str('?&');
foot();
?>