View file New Spaces/sidebar.services.php

File size: 1.35Kb
<?
//Sidebar
include_once 'sys/inc/start.php';
include_once 'sys/inc/compress.php';
include_once 'sys/inc/sess.php';
include_once 'sys/inc/home.php';
include_once 'sys/inc/settings.php';
include_once 'sys/inc/db_connect.php';
include_once 'sys/inc/ipua.php';
include_once 'sys/inc/fnc.php';
include_once 'sys/inc/user.php';
include_once 'sys/inc/icons.php'; // Иконки главного меню

include_once 'sys/inc/thead.php';
title();
err();

/*
*    
    Больше разделов
    Ссылки добавляем через админку
 *
*/



$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 id="main_content">  <div class="light_border_bottom t-bg3 overfl_hid">
                   <a class="t-block_item t-link_no_underline_block overfl_hid" href="' . $post_menu['url'] . '">
                  <span class="t-block_item stnd_padd ">
                  <img src="/style/icons/' . $post_menu['icon'] . '" alt="*" class="m"> 
                  <span class="t-strong_item t-link_item_hover m">'; echo $post_menu['name'].'   ';

if ($post_menu['counter'] != NULL && is_file(H . $post_menu['counter'])) {
	    @include H . $post_menu['counter']; } 
            echo '</span> </span> </a> </div></div>'; }

            include_once 'sys/inc/tfoot.php'; 
?>