Файл: billing/_rootinc/adminhead.inc.php
Строк: 755
<?
$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)) { $refreshtime = GetSetting("tickets_refresh"); }
if (intval($refreshtime) > 0 and !$uid) {
?>
<meta http-equiv="refresh" content="<?=$refreshtime?>;<?=$full_www_path.$admin_script?>?do=tickets&status=open&page=1&autorefresh=1" />
<?
}
}
?>
<title>Панель администратора</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';
}
}
}
</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>
</head>
<body bgcolor="#FFFFFF">
<center>SERVER-1
<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>
<?
if (isset($_SESSION["adminId"])) {
if (IsNewTicketsForAdmin()) {$ticketslink = "<font color=red><b>Тикеты</b></font>";} else {$ticketslink = "Тикеты";}
?>
<ul class="tree">
<li><div><span class="line"></span><span>►</span><a href="?">Главная</a></div></li>
<li><div><span class="line"></span><span>►</span><a href="?do=bills">Счета</a></div></li>
<li><div><span class="line"></span><span>►</span><a href="?do=orders">Заказы</a></div></li>
<li><div><span class="line"></span><span>►</span><a href="?do=domains">Домены</a></div></li>
<li><div><span class="line"></span><span>►</span><a href="?do=shop">Товары</a></div></li>
<li><div><span class="line"></span><span>►</span><a href="?do=clients">Клиенты</a></div></li>
<li><div><span class="line"></span><span>►</span><a href="?do=tickets"><?=$ticketslink?></a></div></li>
<? if ($do == "news") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <?=$class?>>
<div>
<span class="line"></span><span name="news" id="news" onclick="toggleList(this)"><?=$menu_symbol?></span><a onclick="toggleList(document.all.item('news'))">Новости</a>
<ul>
<li><div><span class="line"></span><a href="?do=news&sub=add">Добавить новость</a></div></li>
<li><div><span class="line"></span><a href="?do=news&sub=list">Список новостей</a></div></li>
</ul>
</div>
</li>
<? if ($do == "faq") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <?=$class?>>
<div>
<span class="line"></span><span name="faq" id="faq" onclick="toggleList(this)"><?=$menu_symbol?></span><a onclick="toggleList(document.all.item('faq'))">FAQ</a>
<ul>
<li><div><span class="line"></span><a href="?do=faq&sub=add">Добавить вопрос</a></div></li>
<li><div><span class="line"></span><a href="?do=faq&sub=list">Список вопросов</a></div></li>
<li><div><span class="line"></span><a href="?do=faq&sub=groups">Группы вопросов</a></div></li>
</ul>
</div>
</li>
<? if ($do == "coupons") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <?=$class?>>
<div>
<span class="line"></span><span name="coupons" id="coupons" onclick="toggleList(this)"><?=$menu_symbol?></span><a onclick="toggleList(document.all.item('coupons'))">Купоны / Промо-коды</a>
<ul>
<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>
<li><div><span class="line"></span><a href="?do=coupons">Список купонов / промо-кодов</a></div></li>
</ul>
</div>
</li>
<? if ($do == "settings" 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 <?=$class?>>
<div>
<span class="line"></span><span name="settings" id="settings" onclick="toggleList(this)"><?=$menu_symbol?></span><a onclick="toggleList(document.all.item('settings'))">Настройки</a>
<ul>
<li><div><span class="line"></span><a href="?do=settings&sub=params">Общие настройки</a></div></li>
<li><div><span class="line"></span><a href="?do=currency">Справочник валют</a></div></li>
<li><div><span class="line"></span><a href="?do=security">Безопасность</a></div></li>
<? if ($do == "zones") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <?=$class?>><div><span class="line"></span><span name="domainzones" id="domainzones" onclick="toggleList(this)"><?=$menu_symbol?></span><a onclick="toggleList(document.all.item('domainzones'))">Доменные зоны</a>
<ul>
<li><div><span class="line"></span><a href="?do=zones">Показать</a></div></li>
<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=domainCostType">Система цен</a></div></li>
</ul>
</div></li>
<? if ($do == "addons") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <?=$class?>><div><span class="line"></span><span name="addons" id="addons" onclick="toggleList(this)"><?=$menu_symbol?></span><a onclick="toggleList(document.all.item('addons'))">Дополнительные услуги</a>
<ul>
<li><div><span class="line"></span><a href="?do=addons">Показать</a></div></li>
<li><div><span class="line"></span><a href="?do=addons&sub=add">Добавить</a></div></li>
</ul>
</div></li>
<li><div><span class="line"></span><a href="?do=catalogsettings">Каталог сайтов</a></div></li>
<? if ($do == "shopsettings") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <?=$class?>><div><span class="line"></span><span name="shopsettings" id="shopsettings" onclick="toggleList(this)"><?=$menu_symbol?></span><a onclick="toggleList(document.all.item('shopsettings'))">Магазин товаров</a>
<ul>
<li><div><span class="line"></span><a href="?do=shopsettings">Показать товары</a></div></li>
<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=groups">Группы товаров</a></div></li>
</ul>
</div></li>
<? if ($do == "settings" and ($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 <?=$class?>><div><span class="line"></span><span name="usersmenu" id="usersmenu" onclick="toggleList(this)"><?=$menu_symbol?></span><a onclick="toggleList(document.all.item('usersmenu'))">Меню клиента</a>
<ul>
<li><div><span class="line"></span><a href="?do=settings&sub=usersmenu">Показать</a></div></li>
<li><div><span class="line"></span><a href="?do=settings&sub=addusersmenu">Добавить</a></div></li>
</ul>
</div></li>
<li><div><span class="line"></span><a href="?do=multilanguage">Мультиязычность</a></div></li>
<? if ($do == "money") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <?=$class?>><div><span class="line"></span><span name="pay" id="pay" onclick="toggleList(this)"><?=$menu_symbol?></span><a onclick="toggleList(document.all.item('pay'))">Оплата</a>
<ul>
<li><div><span class="line"></span><a href="?do=money&sub=settings">Настройки</a></div></li>
<? 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 <?=$class?>><div><span class="line"></span><span name="addonpay" id="addonpay" onclick="toggleList(this)"><?=$menu_symbol?></span><a onclick="toggleList(document.all.item('addonpay'))">Доп. способы оплаты</a>
<ul>
<li><div><span class="line"></span><a href="?do=money&sub=listpay">Показать</a></div></li>
<li><div><span class="line"></span><a href="?do=money&sub=addpay">Добавить</a></div></li>
</ul>
</div></li>
<? 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 <?=$class?>><div><span class="line"></span><span name="kvitancii" id="kvitancii" onclick="toggleList(this)"><?=$menu_symbol?></span><a onclick="toggleList(document.all.item('kvitancii'))">Квитанции для физ. лиц</a>
<ul>
<li><div><span class="line"></span><a href="?do=money&sub=listkvitancii">Показать</a></div></li>
<li><div><span class="line"></span><a href="?do=money&sub=addkvitancii">Добавить</a></div></li>
</ul>
</div></li>
<? 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 <?=$class?>><div><span class="line"></span><span name="faktura" id="faktura" onclick="toggleList(this)"><?=$menu_symbol?></span><a onclick="toggleList(document.all.item('faktura'))">Счета-фактуры для юр. лиц</a>
<ul>
<li><div><span class="line"></span><a href="?do=money&sub=listfaktura">Показать</a></div></li>
<li><div><span class="line"></span><a href="?do=money&sub=addfaktura">Добавить</a></div></li>
</ul>
</div></li>
<li><div><span class="line"></span><a href="?do=money&sub=dogovor">Договор с клиентом</a></div></li>
</ul>
</div></li>
<? 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 <?=$class?>><div><span class="line"></span><span name="aboutus" id="aboutus" onclick="toggleList(this)"><?=$menu_symbol?></span><a onclick="toggleList(document.all.item('aboutus'))">Откуда Вы о нас узнали?</a>
<ul>
<li><div><span class="line"></span><a href="?do=settings&sub=aboutusfrom">Показать</a></div></li>
<li><div><span class="line"></span><a href="?do=settings&sub=addaboutusfrom">Добавить</a></div></li>
</ul>
</div></li>
<li><div><span class="line"></span><a href="?do=settings&sub=mail">Отправка почты</a></div></li>
<li><div><span class="line"></span><a href="?do=settings&sub=partner">Партнерская программа</a></div></li>
<? 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 <?=$class?>><div><span class="line"></span><span name="users" id="users" onclick="toggleList(this)"><?=$menu_symbol?></span><a onclick="toggleList(document.all.item('users'))">Пользователи</a>
<ul>
<li><div><span class="line"></span><a href="?do=settings&sub=users">Показать</a></div></li>
<li><div><span class="line"></span><a href="?do=settings&sub=adduser">Добавить</a></div></li>
<li><div><span class="line"></span><a href="?do=settings&sub=usergroups">Отделы</a></div></li>
</ul>
</div></li>
<li><div><span class="line"></span><a href="?do=settings&sub=profilesettings">Профайл</a></div></li>
<? if ($do == "registrators") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <?=$class?>><div><span class="line"></span><span name="registrators" id="registrators" onclick="toggleList(this)"><?=$menu_symbol?></span><a onclick="toggleList(document.all.item('registrators'))">Регистраторы доменов</a>
<ul>
<li><div><span class="line"></span><a href="?do=registrators">Показать</a></div></li>
<li><div><span class="line"></span><a href="?do=registrators&sub=add">Добавить</a></div></li>
</ul>
</div></li>
<? 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 <?=$class?>><div><span class="line"></span><span name="servers" id="servers" onclick="toggleList(this)"><?=$menu_symbol?></span><a onclick="toggleList(document.all.item('servers'))">Серверы</a>
<ul>
<li><div><span class="line"></span><a href="?do=settings&sub=servers">Показать</a></div></li>
<li><div><span class="line"></span><a href="?do=settings&sub=addserver">Добавить</a></div></li>
</ul>
</div></li>
<? if ($do == "tarifs") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <?=$class?>><div><span class="line"></span><span name="tarifs" id="tarifs" onclick="toggleList(this)"><?=$menu_symbol?></span><a onclick="toggleList(document.all.item('tarifs'))">Тарифные планы</a>
<ul>
<li><div><span class="line"></span><a href="?do=tarifs">Показать</a></div></li>
<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=groups">Группы тарифных планов</a></div></li>
</ul>
</div></li>
<li><div><span class="line"></span><a href="?do=settings&sub=templates">Шаблоны</a></div></li>
<li><div><span class="line"></span><a href="?do=settings&sub=cron">Cron</a></div></li>
</ul>
</div>
</li>
<? if ($do == "stats") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <?=$class?>>
<div>
<span class="line"></span><span name="stats" id="stats" onclick="toggleList(this)"><?=$menu_symbol?></span><a onclick="toggleList(document.all.item('stats'))">Статистика</a>
<ul>
<li><div><span class="line"></span><a href="?do=stats&sub=total">Общая</a></div></li>
<li><div><span class="line"></span><a href="?do=stats&sub=aboutusfrom">Откуда Вы о нас узнали?</a></div></li>
<li><div><span class="line"></span><a href="?do=stats&sub=referals">Рефералы</a></div></li>
<li><div><span class="line"></span><a href="?do=stats&sub=finance">Финансы</a></div></li>
</ul>
</div>
</li>
<? if ($do == "utils" or $do == "catalog" or $do == "mailsend" or $do == "maillogs") {$class = ""; $menu_symbol="▼";} else {$class="class='cl'"; $menu_symbol="►";} ?>
<li <?=$class?>>
<div>
<span class="line"></span><span name="other" id="other" onclick="toggleList(this)"><?=$menu_symbol?></span><a onclick="toggleList(document.all.item('other'))">Другое</a>
<ul>
<li><div><span class="line"></span><a href="?do=utils&sub=adddays">Добавить дни к заказам</a></div></li>
<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>
<li><div><span class="line"></span><a href="?do=catalog">Каталог сайтов</a></div></li>
<li><div><span class="line"></span><a href="?do=maillogs">Логи почты</a></div></li>
<li><div><span class="line"></span><a href="?do=mailsend">Отправить E-mail</a></div></li>
</ul>
</div>
</li>
<?
if (isset($_SESSION["adminId"])) {
?>
<li><div><span class="line"></span><span>►</span><a href="?do=logout">Выход</a></div></li>
<?
}
?>
</ul>
<?
}
?>
</td>
<style type=text/css>
td,th,a,input,body,select,pre {
font-size:11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
th {
background-color: #7F9DB9;
color: #FFFFFF;
}
th a {
color: #FFFFFF;
}
h4 {
margin:1px;
font-size:12px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
</style>
<td>
<table bgcolor='#FFFFFF'height=100%>
<tr>
<td width=900 align=center valign=top><br>
<??>