Файл: modules/shop/index.php
Строк: 9
<?php
$title = 'Магазин';
include_once($_SERVER["DOCUMENT_ROOT"].'/style/head.php');
?>
<div class="title">Магазин</a></div>
<?
$q = $db->query("SELECT * FROM `shop_folders` WHERE `folder`='0'");
while ($f = $q->fetch_assoc()) {
?>
<div class="section">
<a href="/shop/folder/<?=$f['id']?>"><?=htmlspecialchars($f['name'])?></a> <a href="/shop/edit_folder/<?=$f['id']?>">[Ред.]</a> <a href="/shop/del_folder/<?=$f['id']?>">[Уд.]</a>
</div>
<?
}
?>
<div class="nvg">
<?if($user['level']>=1){?>
<a href="/shop/new_folder">Новая папка</a><br/>
<?}?>
<?if(isset($user['id'])){?>
<a href="/shop/basket">Корзина</a>
<?}?>
</div>
<?
include_once($_SERVER["DOCUMENT_ROOT"].'/style/foot.php');
?>