Файл: weddings/banquet_halls/index.php
Строк: 65
<?php
include_once '../../sys/inc/home.php';
include_once H.'sys/inc/start.php';
include_once H.'sys/inc/compress.php';
include_once H.'sys/inc/sess.php';
include_once H.'sys/inc/settings.php';
include_once H.'sys/inc/db_connect.php';
include_once H.'sys/inc/ipua.php';
include_once H.'sys/inc/fnc.php';
include_once H.'sys/inc/user.php';
include_once H.'weddings/includes/configuration_halls.php';
$set['title']="Банкетные залы";
include_once H.'sys/inc/thead.php';
title();
aut();
$k_post=mysql_result(mysql_query("SELECT COUNT(*) FROM `weddings_banquet_halls`"), 0);
if ($k_post==0)echo "<div class='mess'>Пока нет активных банкетных залов</div>";
$q = mysql_query("SELECT * FROM `weddings_banquet_halls` ORDER BY `id` DESC");
while ($post = mysql_fetch_array($q)){
if ($num==0){ echo '<div class="nav1">'; $num=1;}elseif ($num==1){ echo '<div class="nav2">'; $num=0;}
echo "<a href='banquet_hall.php?id=$post[id]' style='display:block;'><img src='/weddings/icons/banquet.png' alt=''> Банкетный зал ".htmlspecialchars($post['name'])." <br/><b>Конец аренды зала : </b>".vremja($post['time'])."</a>";
echo "</div>";
}
if ($user['level']>=1)echo "<a href='/weddings/activity/set_tamada.php'><div class='main'><img src='/weddings/icons/tamada.png' alt='*'> Управление тамадой</div></a>";
include_once H.'sys/inc/tfoot.php';
?>