php include_once sys db php include_once sys fnc php head if isset _SE

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
include_once 'sys/db.php';
include_once 'sys/fnc.php';
head();
if (isset($_SESSION['user_id']))
{
echo '<div class="menu"> <span style="float:right">| <a href="setting.php">Изменить пароль</a></span> <span style="float:right">'.$user['name'].'</span> Логин: <span style="color:green; font-size: small;">'.$user['login'].'</span> </div>';
}
echo '<div class="menu_razd"><a href="/portfolio/">Портфолио</a></div>';
$query = mysql_query("SELECT * FROM `load_dir` WHERE `id_dir` = '". $dir['id'] ."' ORDER BY `id` ASC");
while ($folder = mysql_fetch_assoc($query)) {
echo '<div class="menu"><span style="float:right"><span class="count"> ('. mysql_result(mysql_query("SELECT COUNT(*) FROM `load_file` WHERE `url` like '%". $folder['id'] ."%'"), 0) .') </span></span><img src="style/img/menu-alt-16.png"> <a href="/portfolio/?dir='. $folder['id'] .'">
'. html($folder['name']) .'
</a></div>';
}
echo '<div class="menu_razd">Управление</div>';
echo '<div class="menu"><img src="style/img/menu-alt-16.png"> <a href="/info/rastsenki.php">Расценки</a></div>';
echo '<div class="menu"><img src="style/img/menu-alt-16.png"> <a href="/info/cont.php">Контакты</a></div>';
foot();
?>