Файл: masteram_us/blogs/cats.php
Строк: 21
<?php
require_once ('../shaxty.php');
check_login();
$title = 'Категории';
$align = 'left';
include_once (H.'shaxty/head.php');
$k_post=mysql_result(mysql_query("select COUNT(*) from blog_razd;"),0);
echo $div4.'<b>Категории: '.$k_post.'</b>'.$div9;
echo '<dl></dl>';
$q = mysql_query("select * from blog_razd order by pos;");
if (mysql_affected_rows() == 0)echo "Категорий нет!!!<br/>";
$p==1;
while($arr=mysql_fetch_array($q)) {
$g = mysql_fetch_array(mysql_query ("select count(id) as num from blog where refid='$arr[id]';"));
$numg = $g["num"];
$p++;
$name_lat = rus_lat(rus_utf_tolower(del($arr['name'])));
if(is_integer($p / 2)) echo '<div class="second_name">'; else echo $div2;
echo "<img src="img/folder_table.png" alt=""/> <a href="cat.php?id=".$arr['id'].""><b>".$arr['name']."</b></a> (".$numg.")<br /><small>".$arr['about']."</small>$div9";
}
echo '<br />';
echo $div1.'<a href="index.php">Блоги</a>'.$div9;
include_once (H.'shaxty/foot.php');
?>