Файл: _rootinc/adminhead.inc.php
Строк: 1331
<?
$yesadminheader='1';
?><html>
<head>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<?
if ($do == "tickets" and ($sub == "" or $sub == "setrefresh")) {
if (!($refreshtime >= 0) or $refreshtime == "") { $refreshtime = GetSetting("tickets_refresh"); }
if (intval($refreshtime) > 0 and !$uid) {
?>
<meta http-equiv="refresh" content="<? print $refreshtime?>;<? print $full_www_path.$admin_script?>?do=tickets&status=open&page=1&autorefresh=1" />
<?
}
}
?>
<title>RootPanel :: Администрирование</title>
<style>
table {font-family: Arial; font-size: 9pt;}
body {font-family: Arial; font-size: 9pt}
A:link {text-decoration: none; color: darkred;}
A:visited {text-decoration: none; color: darkred;}
A:active {text-decoration: none; color: darkred;}
A:hover {text-decoration: none; color: darkblue;}
form {margin: 0}
.altOn {
font-family: arial;
font-size: 10pt;
padding: 3px;
background-color: #fcf8ec;
border: 1px solid #888;
}
</style>
<style type="text/css">
ul.tree {
list-style:none;
margin:-.5em 0 1em 0;
padding:0 0 0 0;
width:230px;
}
ul.tree li {
margin:0 0 0 0em;
padding:0 0 0 2.5em;
}
ul.tree ul li {
border-left:1px dotted #ccc;
}
ul.tree ul {
list-style:none;
margin:.25em 0 0 -.75em;
padding:0 0 0 0em;
}
ul.tree a {
color: #000000;
text-decoration: none;
display:inline-block;
position:relative;
top:.75em;
top:expression('1em');
cursor:pointer;
}
ul.tree span {
width:1.25em;
margin-left:-1.25em;
display:block;
position:absolute;
background:#fff;
cursor:pointer;
margin-top:.75em;
margin-top:expression('1em');
}
ul.tree ul span {
width:1.25em;
margin-left:-1.25em;
display:block;
position:absolute;
background:#fff;
cursor:pointer;
margin-top:.75em;
margin-top:expression('1em');
}
ul.tree ul span.line {
display:block;
width:2em;
height:1.45em;
height:expression('1.7em');
overflow:hidden;
position:absolute;
margin-left:-2.5em;
border-bottom:1px dotted #ccc;
cursor:default;
margin-top:0em;
background:transparent;
}
ul.tree li.cl ul {
display:none;
}
/* Класс для последнего элемента в списке */
ul.tree li.last {
border-color:#fff !important;
}
ul.tree li.last .line {
border-left:1px dotted #ccc;
margin-left:-2.55em !important;
}
ul.tree li.last ul .line {
border-left:none;
margin-left:-2.5em !important;
}
.tree div {
padding:0 0 .25em 0;
}
</style>
<script language=javascript type='text/javascript'>
function myShow(divid) {
var state;
if (document.getElementById) { // DOM3 = IE5, NS6
state = document.getElementById(divid).style.display;
}
else {
if (document.layers) { // Netscape 4
state = document.divid.display;
}
else { // IE 4
state = document.all.divid.style.display;
}
}
if (state == 'block') {
hidediv(divid);
} else {
showdiv(divid);
}
}
function showdiv(divid) {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById(divid).style.display = 'block';
}
else {
if (document.layers) { // Netscape 4
document.divid.display = 'block';
}
else { // IE 4
document.all.divid.style.display = 'block';
}
}
}
function hidediv(divid) {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById(divid).style.display = 'none';
}
else {
if (document.layers) { // Netscape 4
document.divid.display = 'none';
}
else { // IE 4
document.all.divid.style.display = 'none';
}
}
}
function setChecked(obj,flag) {
var check;
if (flag == 1) {
check = document.getElementsByName("elementsToCheck2[]");
} else {
check = document.getElementsByName("elementsToCheck[]");
}
for (var i=0; i<check.length; i++)
{
check[i].checked = obj.checked;
}
}
</script>
<script>
function toggleList(e) {
if( e.innerHTML.charCodeAt(0) == 9658 ){
e.innerHTML = '▼'
if (e.parentNode.parentNode.className == 'cl last')
e.parentNode.parentNode.className = 'last';
else
e.parentNode.parentNode.className = '';
} else {
e.innerHTML = '►'
if (e.parentNode.parentNode.className == 'last')
e.parentNode.parentNode.className = 'cl last';
else
e.parentNode.parentNode.className = 'cl';
}
return false;
}
</script>
<script src="./_rootmenu/hint.js" type="text/javascript"></script>
<script type="text/javascript">
_editor_url = "./_xinha/"
_editor_lang = "ru";
</script>
<script type="text/javascript" src="./_xinha/XinhaLoader.js"></script>
<script type="text/javascript" src="./_xinha/XinhaConfig.js"></script>
<script src="./_rootmenu/smartstars.js" type="text/javascript"></script>
<script src="./_rootmenu/passwd.js" type="text/javascript"></script>
</head>
<body bgcolor="#FFFFFF">
<center>
<table bgcolor="#FFFFFF" cellpadding='0' cellspacing='1' border=0>
<tr bgcolor="#FFFFFF">
<td bgcolor="#FFFFFF" align=center>
<img src="./_rootimages/rootpanellogo.jpg">
</td>
</tr>
</table><br>
<table bgcolor="#BEBEBE" cellpadding='0' cellspacing='1' border=0 height=401>
<tr bgcolor='#FFFFFF'>
<td valign=middle align=center height="1" bgcolor='#FFFFFF' colspan='2'>
</td>
</tr>
<tr bgcolor='#FFFFFF'>
<td valign=top bgcolor='#FAFAFA'><BR>
<?
$admin = GetAdminById($_SESSION["adminId"]);
$disallowedMenus = @mb_split("::", $admin->disallowedMenus);
if (isset($_SESSION["adminId"])) {
if (IsNewTicketsForAdmin()) {$ticketslink = "<font color=red><b>Тикеты</b></font>";} else {$ticketslink = "Тикеты";}
if (GetSetting("testimonialsAdminCheck") and IsNonCheckedTestimonials()) {$testimonialslink = "<font color=red><b>Отзывы</b></font>";} else {$testimonialslink = "Отзывы";}
?>
<ul class="tree">
<? if (!@in_array("index",$disallowedMenus)) { ?>
<li><div><span class="line"></span><span>►</span><a href="?">Главная</a></div></li>
<? } ?>
<? if (!@in_array("bills",$disallowedMenus)) { ?>
<? if (checkAdminAccess("billsRead")) { ?>
<? if ($do == "bills" or $do == "editbill" or $do == "billskv" or $do == "editbillkv") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <? print $class?>>
<div>
<span class="line"></span><span name="bills" id="bills" onclick="toggleList(this)"><? print $menu_symbol?></span><a onclick="toggleList(document.all.item('bills'))">Счета</a>
<ul>
<li><div><span class="line"></span><a href="?do=bills">Счета</a></div></li>
<li><div><span class="line"></span><a href="?do=billskv">Квитанции</a></div></li>
</ul>
</div>
</li>
<? } ?>
<? } ?>
<? if (!@in_array("orders",$disallowedMenus)) { ?>
<? if (checkAdminAccess("ordersRead")) { ?>
<li><div><span class="line"></span><span>►</span><a href="?do=orders">Заказы</a></div></li>
<? } ?>
<? } ?>
<? if (!@in_array("domains",$disallowedMenus)) { ?>
<? if (checkAdminAccess("domainsRead")) { ?>
<li><div><span class="line"></span><span>►</span><a href="?do=domains">Домены</a></div></li>
<? } ?>
<? } ?>
<? if (!@in_array("domainscerts",$disallowedMenus)) { ?>
<? if (checkAdminAccess("domainsCertsRead")) { ?>
<? if (GetSetting("sertificateEnable")) { ?>
<li><div><span class="line"></span><span>►</span><a href="?do=domainscerts">Сертификаты</a></div></li>
<? } ?>
<? } ?>
<? } ?>
<? if (!@in_array("shop",$disallowedMenus)) { ?>
<? if (checkAdminAccess("shopRead")) { ?>
<li><div><span class="line"></span><span>►</span><a href="?do=shop">Товары</a></div></li>
<? } ?>
<? } ?>
<?
$mshopItems = GetShopItems();
if ($ENABLE_SHOPMENU and $mshopItems) {
?>
<? if ($mitem_id and ($do == "clients" or $do == "shop" or $do == "bills" or $do == "editbill")) {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <? print $class?>>
<div>
<span class="line"></span><span name="mshopItems" id="mshopItems" onclick="toggleList(this)"><? print $menu_symbol?></span><a onclick="toggleList(document.all.item('mshopItems'))">Предоставляемые услуги</a>
<ul>
<?
while($mshopItem = @mysql_fetch_object($mshopItems)) {
?>
<? if ($mitem_id == $mshopItem->id) {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <? print $class?>><div><span class="line"></span><span name="mshopItem<? print $mshopItem->id?>" id="mshopItem<? print $mshopItem->id?>" onclick="toggleList(this)"><? print $menu_symbol?></span><a onclick="toggleList(document.all.item('mshopItem<? print $mshopItem->id?>'))"><? print $mshopItem->name?></a>
<ul>
<li><div><span class="line"></span><a href="?do=bills&mitem_id=<? print $mshopItem->id?>">Счета</a></div></li>
<li><div><span class="line"></span><a href="?do=shop&mitem_id=<? print $mshopItem->id?>">Заказы</a></div></li>
<li><div><span class="line"></span><a href="?do=clients&mitem_id=<? print $mshopItem->id?>">Клиенты</a></div></li>
</ul>
</div></li>
<?
}
?>
</ul>
</div>
</li>
<? } ?>
<? if (!@in_array("clients",$disallowedMenus)) { ?>
<? if (checkAdminAccess("clientsRead")) { ?>
<li><div><span class="line"></span><span>►</span><a href="?do=clients">Клиенты</a></div></li>
<? } ?>
<? } ?>
<? if (!@in_array("partners",$disallowedMenus)) { ?>
<? if (checkAdminAccess("clientsRead")) { ?>
<li><div><span class="line"></span><span>►</span><a href="?do=clients&partners=1">Партнеры</a></div></li>
<? } ?>
<? } ?>
<? if (!@in_array("tickets",$disallowedMenus)) { ?>
<? if (checkAdminAccess("ticketsRead")) { ?>
<li><div><span class="line"></span><span>►</span><a href="?do=tickets"><? print $ticketslink?></a></div></li>
<? } ?>
<? } ?>
<? if (!@in_array("news",$disallowedMenus)) { ?>
<? if (checkAdminAccess("newsRead") or checkAdminAccess("newsCreate")) { ?>
<? if ($do == "news") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <? print $class?>>
<div>
<span class="line"></span><span name="news" id="news" onclick="toggleList(this)"><? print $menu_symbol?></span><a onclick="toggleList(document.all.item('news'))">Новости</a>
<ul>
<? if (checkAdminAccess("newsCreate")) { ?>
<li><div><span class="line"></span><a href="?do=news&sub=add">Добавить новость</a></div></li>
<? } ?>
<? if (checkAdminAccess("newsRead")) { ?>
<li><div><span class="line"></span><a href="?do=news&sub=list">Список новостей</a></div></li>
<? } ?>
</ul>
</div>
</li>
<? } ?>
<? } ?>
<? if (!@in_array("faq",$disallowedMenus)) { ?>
<? if (checkAdminAccess("faqRead") or checkAdminAccess("faqCreate") or checkAdminAccess("faqGroupRead")) { ?>
<? if ($do == "faq") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <? print $class?>>
<div>
<span class="line"></span><span name="faq" id="faq" onclick="toggleList(this)"><? print $menu_symbol?></span><a onclick="toggleList(document.all.item('faq'))">FAQ</a>
<ul>
<? if (checkAdminAccess("faqCreate")) { ?>
<li><div><span class="line"></span><a href="?do=faq&sub=add">Добавить вопрос</a></div></li>
<? } ?>
<? if (checkAdminAccess("faqRead")) { ?>
<li><div><span class="line"></span><a href="?do=faq&sub=list">Список вопросов</a></div></li>
<? } ?>
<? if (checkAdminAccess("faqGroupRead")) { ?>
<li><div><span class="line"></span><a href="?do=faq&sub=groups">Группы вопросов</a></div></li>
<? } ?>
</ul>
</div>
</li>
<? } ?>
<? } ?>
<? if (!@in_array("testimonials",$disallowedMenus)) { ?>
<? if (checkAdminAccess("testimonialsRead")) { ?>
<li><div><span class="line"></span><span>►</span><a href="?do=testimonials"><? print $testimonialslink?></a></div></li>
<? } ?>
<? } ?>
<? if (!@in_array("coupons",$disallowedMenus)) { ?>
<? if (checkAdminAccess("couponsRead") or checkAdminAccess("couponsCreate")) { ?>
<? if ($do == "coupons") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <? print $class?>>
<div>
<span class="line"></span><span name="coupons" id="coupons" onclick="toggleList(this)"><? print $menu_symbol?></span><a onclick="toggleList(document.all.item('coupons'))">Купоны / Промо-коды</a>
<ul>
<? if (checkAdminAccess("couponsCreate")) { ?>
<li><div><span class="line"></span><a href="?do=coupons&sub=add&type=coupon">Добавить купон</a></div></li>
<li><div><span class="line"></span><a href="?do=coupons&sub=add&type=promo">Добавить промо-код</a></div></li>
<? } ?>
<? if (checkAdminAccess("couponsRead")) { ?>
<li><div><span class="line"></span><a href="?do=coupons">Список купонов / промо-кодов</a></div></li>
<? } ?>
</ul>
</div>
</li>
<? } ?>
<? } ?>
<? if (!@in_array("settings",$disallowedMenus)) { ?>
<? if ($do == "partnersettings" or $do == "ticketsettings" or $do == "settings" or $do == "smsgateways" or $do == "money" or $do == "shopsettings" or $do == "currency" or $do == "security" or $do == "zones" or $do == "addons" or $do == "catalogsettings" or $do == "registrators" or $do == "tarifs" or $do == "editor" or $do == "multilanguage") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <? print $class?>>
<div>
<span class="line"></span><span name="settings" id="settings" onclick="toggleList(this)"><? print $menu_symbol?></span><a onclick="toggleList(document.all.item('settings'))">Настройки</a>
<ul>
<? if (checkAdminAccess("sGeneralRead")) { ?>
<li><div><span class="line"></span><a href="?do=settings&sub=params">Общие настройки</a></div></li>
<? } ?>
<? if (checkAdminAccess("sCurrencyRead")) { ?>
<li><div><span class="line"></span><a href="?do=currency">Справочник валют</a></div></li>
<? } ?>
<? if (checkAdminAccess("sSecurityRead")) { ?>
<li><div><span class="line"></span><a href="?do=security">Безопасность</a></div></li>
<? } ?>
<? if (checkAdminAccess("sZonesRead") or checkAdminAccess("sZonesCreate") or checkAdminAccess("sZonesGroupRead") or checkAdminAccess("sZonesCostTypeRead") or checkAdminAccess("sZonesCertRead")) { ?>
<? if ($do == "zones") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <? print $class?>><div><span class="line"></span><span name="domainzones" id="domainzones" onclick="toggleList(this)"><? print $menu_symbol?></span><a onclick="toggleList(document.all.item('domainzones'))">Доменные зоны</a>
<ul>
<? if (checkAdminAccess("sZonesRead")) { ?>
<li><div><span class="line"></span><a href="?do=zones">Показать</a></div></li>
<? } ?>
<? if (checkAdminAccess("sZonesCreate")) { ?>
<li><div><span class="line"></span><a href="?do=zones&sub=add">Добавить</a></div></li>
<li><div><span class="line"></span><a href="?do=zones&sub=addbytpl">Добавить по шаблону</a></div></li>
<? } ?>
<? if (checkAdminAccess("sZonesGroupRead")) { ?>
<li><div><span class="line"></span><a href="?do=zones&sub=groups">Группы доменных зон</a></div></li>
<? } ?>
<? if (checkAdminAccess("sZonesCostTypeRead")) { ?>
<li><div><span class="line"></span><a href="?do=zones&sub=domainCostType">Система цен</a></div></li>
<? } ?>
<? if (checkAdminAccess("sZonesCertRead")) { ?>
<li><div><span class="line"></span><a href="?do=zones&sub=cert">Сертификаты</a></div></li>
<? } ?>
</ul>
</div></li>
<? } ?>
<? if (checkAdminAccess("sAddonsRead") or checkAdminAccess("sAddonsCreate") or checkAdminAccess("sAddonsGroupRead")) { ?>
<? if ($do == "addons") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <? print $class?>><div><span class="line"></span><span name="addons" id="addons" onclick="toggleList(this)"><? print $menu_symbol?></span><a onclick="toggleList(document.all.item('addons'))">Дополнительные услуги</a>
<ul>
<? if (checkAdminAccess("sAddonsRead")) { ?>
<li><div><span class="line"></span><a href="?do=addons">Показать</a></div></li>
<? } ?>
<? if (checkAdminAccess("sAddonsCreate")) { ?>
<li><div><span class="line"></span><a href="?do=addons&sub=add">Добавить</a></div></li>
<li><div><span class="line"></span><a href="?do=addons&sub=addbytpl">Добавить по шаблону</a></div></li>
<? } ?>
<? if (checkAdminAccess("sAddonsGroupRead")) { ?>
<li><div><span class="line"></span><a href="?do=addons&sub=groups">Группы доп. услуг</a></div></li>
<? } ?>
</ul>
</div></li>
<? } ?>
<? if (checkAdminAccess("sCatalogRead")) { ?>
<li><div><span class="line"></span><a href="?do=catalogsettings">Каталог сайтов</a></div></li>
<? } ?>
<? if (checkAdminAccess("sShopRead") or checkAdminAccess("sShopCreate") or checkAdminAccess("sShopGroupRead")) { ?>
<? if ($do == "shopsettings") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <? print $class?>><div><span class="line"></span><span name="shopsettings" id="shopsettings" onclick="toggleList(this)"><? print $menu_symbol?></span><a onclick="toggleList(document.all.item('shopsettings'))">Магазин товаров</a>
<ul>
<? if (checkAdminAccess("sShopRead")) { ?>
<li><div><span class="line"></span><a href="?do=shopsettings">Показать</a></div></li>
<? } ?>
<? if (checkAdminAccess("sShopCreate")) { ?>
<li><div><span class="line"></span><a href="?do=shopsettings&sub=add">Добавить</a></div></li>
<li><div><span class="line"></span><a href="?do=shopsettings&sub=addbytpl">Добавить по шаблону</a></div></li>
<? } ?>
<? if (checkAdminAccess("sShopGroupRead")) { ?>
<li><div><span class="line"></span><a href="?do=shopsettings&sub=groups">Группы товаров</a></div></li>
<? } ?>
</ul>
</div></li>
<? } ?>
<? if (checkAdminAccess("sUsersMenuSettingsRead") or checkAdminAccess("sUsersMenuRead") or checkAdminAccess("sUsersMenuCreate")) { ?>
<? if ($do == "settings" and ($sub == "usersmenusettings" or $sub == "saveusersmenusettings" or $sub == "usersmenu" or $sub == "addusersmenu" or $sub == "addusersmenu2" or $sub == "editusersmenu" or $sub == "editusersmenu2" or $sub == "deleteusersmenu")) {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <? print $class?>><div><span class="line"></span><span name="usersmenu" id="usersmenu" onclick="toggleList(this)"><? print $menu_symbol?></span><a onclick="toggleList(document.all.item('usersmenu'))">Меню клиента</a>
<ul>
<? if (checkAdminAccess("sUsersMenuSettingsRead")) { ?>
<li><div><span class="line"></span><a href="?do=settings&sub=usersmenusettings">Настройки</a></div></li>
<? } ?>
<? if (checkAdminAccess("sUsersMenuRead")) { ?>
<li><div><span class="line"></span><a href="?do=settings&sub=usersmenu">Дополнительные пункты</a></div></li>
<? } ?>
<? if (checkAdminAccess("sUsersMenuCreate")) { ?>
<li><div><span class="line"></span><a href="?do=settings&sub=addusersmenu">Добавить доп. пункт</a></div></li>
<? } ?>
</ul>
</div></li>
<? } ?>
<? if (checkAdminAccess("sMultiLanguageRead")) { ?>
<li><div><span class="line"></span><a href="?do=multilanguage">Мультиязычность</a></div></li>
<? } ?>
<? if (checkAdminAccess("sMoneyRead") or checkAdminAccess("sMoneyCreate") or checkAdminAccess("sMoneyEdit")) { ?>
<? if ($do == "money") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <? print $class?>><div><span class="line"></span><span name="pay" id="pay" onclick="toggleList(this)"><? print $menu_symbol?></span><a onclick="toggleList(document.all.item('pay'))">Оплата</a>
<ul>
<? if (checkAdminAccess("sMoneyRead")) { ?>
<li><div><span class="line"></span><a href="?do=money&sub=list">Показать</a></div></li>
<? } ?>
<? if (checkAdminAccess("sMoneyCreate")) { ?>
<li><div><span class="line"></span><a href="?do=money&sub=add">Добавить</a></div></li>
<? } ?>
<? if (checkAdminAccess("sMoneyEdit")) { ?>
<li><div><span class="line"></span><a href="?do=money&sub=settings">Настройки</a></div></li>
<? } ?>
<? if (checkAdminAccess("sMoneyRead") or checkAdminAccess("sMoneyEdit")) { ?>
<? if ($do == "money" and ($sub == "listpay" or $sub == "addpay" or $sub == "addpay2" or $sub == "editpay" or $sub == "editpay2" or $sub == "deletepay")) {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <? print $class?>><div><span class="line"></span><span name="addonpay" id="addonpay" onclick="toggleList(this)"><? print $menu_symbol?></span><a onclick="toggleList(document.all.item('addonpay'))">Доп. способы оплаты</a>
<ul>
<? if (checkAdminAccess("sMoneyRead")) { ?>
<li><div><span class="line"></span><a href="?do=money&sub=listpay">Показать</a></div></li>
<? } ?>
<? if (checkAdminAccess("sMoneyEdit")) { ?>
<li><div><span class="line"></span><a href="?do=money&sub=addpay">Добавить</a></div></li>
<? } ?>
</ul>
</div></li>
<? } ?>
<? if (checkAdminAccess("sMoneyRead") or checkAdminAccess("sMoneyEdit")) { ?>
<? if ($do == "money" and ($sub == "listkvitancii" or $sub == "addkvitancii" or $sub == "addkvitancii2" or $sub == "editkvitancii" or $sub == "editkvitancii2" or $sub == "deletekvitancii")) {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <? print $class?>><div><span class="line"></span><span name="kvitancii" id="kvitancii" onclick="toggleList(this)"><? print $menu_symbol?></span><a onclick="toggleList(document.all.item('kvitancii'))">Квитанции для физ. лиц</a>
<ul>
<? if (checkAdminAccess("sMoneyRead")) { ?>
<li><div><span class="line"></span><a href="?do=money&sub=listkvitancii">Показать</a></div></li>
<? } ?>
<? if (checkAdminAccess("sMoneyEdit")) { ?>
<li><div><span class="line"></span><a href="?do=money&sub=addkvitancii">Добавить</a></div></li>
<? } ?>
</ul>
</div></li>
<? } ?>
<? if (checkAdminAccess("sMoneyRead") or checkAdminAccess("sMoneyEdit")) { ?>
<? if ($do == "money" and ($sub == "listfaktura" or $sub == "addfaktura" or $sub == "addfaktura2" or $sub == "editfaktura" or $sub == "editfaktura2" or $sub == "deletefaktura")) {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <? print $class?>><div><span class="line"></span><span name="faktura" id="faktura" onclick="toggleList(this)"><? print $menu_symbol?></span><a onclick="toggleList(document.all.item('faktura'))">Счета для юр. лиц</a>
<ul>
<? if (checkAdminAccess("sMoneyRead")) { ?>
<li><div><span class="line"></span><a href="?do=money&sub=listfaktura">Показать</a></div></li>
<? } ?>
<? if (checkAdminAccess("sMoneyEdit")) { ?>
<li><div><span class="line"></span><a href="?do=money&sub=addfaktura">Добавить</a></div></li>
<? } ?>
</ul>
</div></li>
<? } ?>
<? if (checkAdminAccess("sMoneyRead")) { ?>
<li><div><span class="line"></span><a href="?do=money&sub=dogovor">Договор с клиентом</a></div></li>
<? } ?>
</ul>
</div></li>
<? } ?>
<? if (checkAdminAccess("sAboutUsRead") or checkAdminAccess("sAboutUsCreate")) { ?>
<? if ($do == "settings" and ($sub == "aboutusfrom" or $sub == "addaboutusfrom" or $sub == "addaboutusfrom2" or $sub == "editaboutusfrom" or $sub == "moveaboutusfrom" or $sub == "editaboutusfrom2" or $sub == "aboutusfromstat" or $sub == "deleteaboutusfrom")) {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <? print $class?>><div><span class="line"></span><span name="aboutus" id="aboutus" onclick="toggleList(this)"><? print $menu_symbol?></span><a onclick="toggleList(document.all.item('aboutus'))">Откуда Вы о нас узнали?</a>
<ul>
<? if (checkAdminAccess("sAboutUsRead")) { ?>
<li><div><span class="line"></span><a href="?do=settings&sub=aboutusfrom">Показать</a></div></li>
<? } ?>
<? if (checkAdminAccess("sAboutUsCreate")) { ?>
<li><div><span class="line"></span><a href="?do=settings&sub=addaboutusfrom">Добавить</a></div></li>
<? } ?>
</ul>
</div></li>
<? } ?>
<? if (checkAdminAccess("sMailRead")) { ?>
<li><div><span class="line"></span><a href="?do=settings&sub=mail">Отправка почты</a></div></li>
<? } ?>
<? if (checkAdminAccess("sPartnerRead") or checkAdminAccess("sPartnerPercentsRead") or checkAdminAccess("sPartnerBannerRead")) { ?>
<? if ($do == "partnersettings") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <? print $class?>><div><span class="line"></span><span name="partnersettings" id="partnersettings" onclick="toggleList(this)"><? print $menu_symbol?></span><a onclick="toggleList(document.all.item('partnersettings'))">Партнерская программа</a>
<ul>
<? if (checkAdminAccess("sPartnerRead")) { ?>
<li><div><span class="line"></span><a href="?do=partnersettings">Настройки</a></div></li>
<? } ?>
<? if (checkAdminAccess("sPartnerPercentsRead")) { ?>
<li><div><span class="line"></span><a href="?do=partnersettings&sub=percents">Процентные ставки</a></div></li>
<? } ?>
<? if (checkAdminAccess("sPartnerBannerRead")) { ?>
<li><div><span class="line"></span><a href="?do=partnersettings&sub=banners">Баннеры</a></div></li>
<? } ?>
</ul>
</div></li>
<? } ?>
<? if (checkAdminAccess("sUsersRead") or checkAdminAccess("sUsersCreate") or checkAdminAccess("sUserGroupRead")) { ?>
<? if ($do == "settings" and ($sub == "users" or $sub == "adduser" or $sub == "adduser2" or $sub == "edituser" or $sub == "edituser2" or $sub == "deleteuser")) {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <? print $class?>><div><span class="line"></span><span name="users" id="users" onclick="toggleList(this)"><? print $menu_symbol?></span><a onclick="toggleList(document.all.item('users'))">Пользователи</a>
<ul>
<? if (checkAdminAccess("sUsersRead")) { ?>
<li><div><span class="line"></span><a href="?do=settings&sub=users">Показать</a></div></li>
<? } ?>
<? if (checkAdminAccess("sUsersCreate")) { ?>
<li><div><span class="line"></span><a href="?do=settings&sub=adduser">Добавить</a></div></li>
<? } ?>
<? if (checkAdminAccess("sUserGroupRead")) { ?>
<li><div><span class="line"></span><a href="?do=settings&sub=usergroups">Отделы</a></div></li>
<? } ?>
</ul>
</div></li>
<? } ?>
<? if (checkAdminAccess("sProfileSettingsRead")) { ?>
<li><div><span class="line"></span><a href="?do=settings&sub=profilesettings">Профайл</a></div></li>
<? } ?>
<? if (checkAdminAccess("sRegistrRead") or checkAdminAccess("sRegistrCreate")) { ?>
<? if ($do == "registrators") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <? print $class?>><div><span class="line"></span><span name="registrators" id="registrators" onclick="toggleList(this)"><? print $menu_symbol?></span><a onclick="toggleList(document.all.item('registrators'))">Регистраторы доменов</a>
<ul>
<? if (checkAdminAccess("sRegistrRead")) { ?>
<li><div><span class="line"></span><a href="?do=registrators">Показать</a></div></li>
<? } ?>
<? if (checkAdminAccess("sRegistrCreate")) { ?>
<li><div><span class="line"></span><a href="?do=registrators&sub=add">Добавить</a></div></li>
<? } ?>
</ul>
</div></li>
<? } ?>
<? if (checkAdminAccess("sServersRead") or checkAdminAccess("sServersCreate")) { ?>
<? if ($do == "settings" and ($sub == "servers" or $sub == "addserver" or $sub == "addserver2" or $sub == "editserver" or $sub == "editserver2" or $sub == "deleteserver")) {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <? print $class?>><div><span class="line"></span><span name="servers" id="servers" onclick="toggleList(this)"><? print $menu_symbol?></span><a onclick="toggleList(document.all.item('servers'))">Серверы</a>
<ul>
<? if (checkAdminAccess("sServersRead")) { ?>
<li><div><span class="line"></span><a href="?do=settings&sub=servers">Показать</a></div></li>
<? } ?>
<? if (checkAdminAccess("sServersCreate")) { ?>
<li><div><span class="line"></span><a href="?do=settings&sub=addserver">Добавить</a></div></li>
<? } ?>
</ul>
</div></li>
<? } ?>
<? if (checkAdminAccess("sTicketsRead")) { ?>
<li><div><span class="line"></span><a href="?do=ticketsettings">Система тикетов</a></div></li>
<? } ?>
<? if (checkAdminAccess("sSMSGatewayRead") or checkAdminAccess("sSMSGatewayCreate") or checkAdminAccess("sSMSGatewaySettingsRead")) { ?>
<? if ($do == "smsgateways") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <? print $class?>><div><span class="line"></span><span name="smsgateways" id="smsgateways" onclick="toggleList(this)"><? print $menu_symbol?></span><a onclick="toggleList(document.all.item('smsgateways'))">SMS-шлюзы</a>
<ul>
<? if (checkAdminAccess("sSMSGatewayRead")) { ?>
<li><div><span class="line"></span><a href="?do=smsgateways">Показать</a></div></li>
<? } ?>
<? if (checkAdminAccess("sSMSGatewayCreate")) { ?>
<li><div><span class="line"></span><a href="?do=smsgateways&sub=add">Добавить</a></div></li>
<? } ?>
<? if (checkAdminAccess("sSMSGatewaySettingsRead")) { ?>
<li><div><span class="line"></span><a href="?do=smsgateways&sub=settings">Настройки уведомлений</a></div></li>
<? } ?>
</ul>
</div></li>
<? } ?>
<? if (checkAdminAccess("sTarifsRead") or checkAdminAccess("sTarifsCreate") or checkAdminAccess("sTarifsGroupRead")) { ?>
<? if ($do == "tarifs") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <? print $class?>><div><span class="line"></span><span name="tarifs" id="tarifs" onclick="toggleList(this)"><? print $menu_symbol?></span><a onclick="toggleList(document.all.item('tarifs'))">Тарифные планы</a>
<ul>
<? if (checkAdminAccess("sTarifsRead")) { ?>
<li><div><span class="line"></span><a href="?do=tarifs">Показать</a></div></li>
<? } ?>
<? if (checkAdminAccess("sTarifsCreate")) { ?>
<li><div><span class="line"></span><a href="?do=tarifs&sub=add">Добавить</a></div></li>
<li><div><span class="line"></span><a href="?do=tarifs&sub=addbytpl">Добавить по шаблону</a></div></li>
<? } ?>
<? if (checkAdminAccess("sTarifsGroupRead")) { ?>
<li><div><span class="line"></span><a href="?do=tarifs&sub=groups">Группы тарифных планов</a></div></li>
<? } ?>
</ul>
</div></li>
<? } ?>
<? if (checkAdminAccess("sTemplatesRead")) { ?>
<li><div><span class="line"></span><a href="?do=settings&sub=templates">Шаблоны</a></div></li>
<? } ?>
<? if (checkAdminAccess("sCronRead")) { ?>
<li><div><span class="line"></span><a href="?do=settings&sub=cron">Cron</a></div></li>
<? } ?>
</ul>
</div>
</li>
<? } ?>
<? if (!@in_array("stats",$disallowedMenus)) { ?>
<? if (checkAdminAccess("statsTotalRead") or checkAdminAccess("statsAboutUsRead") or checkAdminAccess("statsSupportRatingRead") or checkAdminAccess("statsReferalsRead") or checkAdminAccess("statsSverkaTaulinkKZ") or checkAdminAccess("statsSverkaQiwiKZ") or checkAdminAccess("statsFinanceRead")) { ?>
<? if ($do == "stats") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <? print $class?>>
<div>
<span class="line"></span><span name="stats" id="stats" onclick="toggleList(this)"><? print $menu_symbol?></span><a onclick="toggleList(document.all.item('stats'))">Статистика</a>
<ul>
<? if (checkAdminAccess("statsTotalRead")) { ?>
<li><div><span class="line"></span><a href="?do=stats&sub=total">Общая</a></div></li>
<? } ?>
<? if (checkAdminAccess("statsAboutUsRead")) { ?>
<li><div><span class="line"></span><a href="?do=stats&sub=aboutusfrom">Откуда Вы о нас узнали?</a></div></li>
<? } ?>
<? if (checkAdminAccess("statsSupportRatingRead")) { ?>
<li><div><span class="line"></span><a href="?do=stats&sub=supportrating">Рейтинг поддержки</a></div></li>
<? } ?>
<? if (checkAdminAccess("statsReferalsRead")) { ?>
<li><div><span class="line"></span><a href="?do=stats&sub=referals">Рефералы</a></div></li>
<? } ?>
<? if (checkAdminAccess("statsSverkaTaulinkKZ")) { ?>
<?
$taulinkkz = @mysql_query("select active from pay_systems where type='taulinkkz' and active=1") or die("File: ".__FILE__."<BR>Line: ".__LINE__."<BR>Function: ".__FUNCTION__."<BR>MySQL Error: ".mysql_error());
if (@mysql_num_rows($taulinkkz) > 0) {
?>
<li><div><span class="line"></span><a href="?do=stats&sub=taulinkkz">Сверка (Таулинк Казахстан)</a></div></li>
<? } ?>
<? } ?>
<? if (checkAdminAccess("statsSverkaQiwiKZ")) { ?>
<?
$qiwikz = @mysql_query("select active from pay_systems where type='qiwikz' and active=1") or die("File: ".__FILE__."<BR>Line: ".__LINE__."<BR>Function: ".__FUNCTION__."<BR>MySQL Error: ".mysql_error());
if (@mysql_num_rows($qiwikz) > 0) {
?>
<li><div><span class="line"></span><a href="?do=stats&sub=qiwikz">Сверка (QIWI.kz)</a></div></li>
<? } ?>
<? } ?>
<? if (checkAdminAccess("statsFinanceRead")) { ?>
<li><div><span class="line"></span><a href="?do=stats&sub=finance">Финансы</a></div></li>
<? } ?>
</ul>
</div>
</li>
<? } ?>
<? } ?>
<? if (!@in_array("other",$disallowedMenus)) { ?>
<? if (checkAdminAccess("addDaysAllow") or checkAdminAccess("addOrderAllow") or checkAdminAccess("importAllow") or checkAdminAccess("catalogRead") or checkAdminAccess("mailLogsRead") or checkAdminAccess("smsLogsRead") or checkAdminAccess("apilLogsRead") or checkAdminAccess("whoislLogsRead") or checkAdminAccess("mailSendAllow")) { ?>
<? if ($do == "utils" or $do == "import" or $do == "catalog" or $do == "mailsend" or $do == "maillogs" or $do == "apilogs" or $do == "whoislogs" or $do == "smslogs") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <? print $class?>>
<div>
<span class="line"></span><span name="other" id="other" onclick="toggleList(this)"><? print $menu_symbol?></span><a onclick="toggleList(document.all.item('other'))">Другое</a>
<ul>
<? if (checkAdminAccess("addDaysAllow")) { ?>
<li><div><span class="line"></span><a href="?do=utils&sub=adddays">Добавить дни к заказам</a></div></li>
<? } ?>
<? if (checkAdminAccess("addOrderAllow")) { ?>
<li><div><span class="line"></span><a href="?do=utils&sub=addorder">Добавить заказ</a></div></li>
<li><div><span class="line"></span><a href="?do=utils&sub=addshoporder">Добавить товар</a></div></li>
<? } ?>
<? if (checkAdminAccess("importAllow")) { ?>
<li><div><span class="line"></span><a href="?do=import">Импорт клиентов</a></div></li>
<? } ?>
<? if (checkAdminAccess("catalogRead")) { ?>
<li><div><span class="line"></span><a href="?do=catalog">Каталог сайтов</a></div></li>
<? } ?>
<? if (checkAdminAccess("mailLogsRead")) { ?>
<li><div><span class="line"></span><a href="?do=maillogs">Логи почты</a></div></li>
<? } ?>
<? if (checkAdminAccess("smsLogsRead")) { ?>
<li><div><span class="line"></span><a href="?do=smslogs">Логи SMS</a></div></li>
<? } ?>
<? if (checkAdminAccess("apilLogsRead")) { ?>
<li><div><span class="line"></span><a href="?do=apilogs">Логи API</a></div></li>
<? } ?>
<? if (checkAdminAccess("whoislLogsRead")) { ?>
<li><div><span class="line"></span><a href="?do=whoislogs">Логи WHOIS</a></div></li>
<? } ?>
<? if (checkAdminAccess("mailSendAllow")) { ?>
<li><div><span class="line"></span><a href="?do=mailsend">Отправить E-mail / Тикет</a></div></li>
<? } ?>
</ul>
</div>
</li>
<? } ?>
<? } ?>
<? if (!@in_array("logout",$disallowedMenus)) { ?>
<? if (isset($_SESSION["adminId"])) { ?>
<li><div><span class="line"></span><span>►</span><a href="?do=logout">Выход</a></div></li>
<? } ?>
<? } ?>
</ul>
<?
}
?>
</td>
<td>
<table bgcolor='#FFFFFF' height=100%>
<tr>
<td width=900 align=center valign=top><br>
<??>