Файл: 4mast/profmas.ru/modules/smiles_r.php
Строк: 13
<?
require_once('../includes/Headers.php');
require_once('../includes/PDO_func.php');
if($us['id'] == false){
header('location: /login/auth');
exit;
}
H ('Разделы смайлов', 'Разделы смайлов');
if (DB :: $dbs -> querySingle ("SELECT COUNT(*) FROM `smiles_r`") != 00){
$query = DB :: $dbs -> query ("SELECT * FROM `smiles_r`");
while ($r = $query -> fetch ()) {
echo '<div class="block"><img src="'.$img.'" alt="*"/> <a href="/modules/smile.php?id=' . $r['id'] . '">' . $r['name'] . '</a> [' . DB :: $dbs -> querySingle ("SELECT COUNT(*) FROM `smile` WHERE (`id_r`='" . $r['id'] . "')") . ']</div>';
}
}
else {
echo '<div class="list1">Разделов нет!</div>';
}
require_once('../includes/Footers.php');
?>