Файл: sys/inc/main_menu.php
Строк: 30
<?
$q_menu = mysql_query("SELECT * FROM `menu` ORDER BY `pos` ASC");
while ($post_menu = mysql_fetch_assoc($q_menu))
{
if ($post_menu['type'] == 'link')
echo '<div class="main_menu">';
if ($post_menu['type'] == 'link')
echo '<a href="' . $post_menu['url'] . '">';
if ($post_menu['type'] == 'link')
echo '<img src="/style/icons/' . $post_menu['icon'] . '" alt="*" /> <br/>';
else
echo '<div class="menu_razd">';
echo $post_menu['name'];
if ($post_menu['type'] == 'link')
echo '</a> ';
if ($post_menu['counter'] != NULL && is_file(H . $post_menu['counter']))
{
echo '<div class="counter">';
@include H . $post_menu['counter'];
echo '</div>';
}
echo '</div>';
}
?>