View file admin.php

File size: 130.87Kb
<?php

session_start();

include "file/db.php";
include "file/config.php";
include "style/".$autorize['skin']."/head.php";
include "file/aut.php";
if ($autorize['id']<=2)
{
echo "</center><div class='menu'><center>";
print "Админка";
print "</center></div><div class='tab'>";
if (empty($m)) $m="file";
switch ($m)
{
case 'file';
echo "<div class='hr'></div><img src=\"style/".$autorize['skin']."/icon.png\" alt=\"*\"/>";echo "<a href=\"news.php?".session_name()."=".session_id()."\">Новости</a> ("; include_once "file/newsdate.php"; print ")<br/>";
echo "<div class='hr'></div><img src=\"style/".$autorize['skin']."/icon.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=users&amp;".session_name()."=".session_id()."\">Пользователи</a> ("; include_once "file/usercount.php"; print ")<br/>";
echo "<div class='hr'></div><img src=\"style/".$autorize['skin']."/icon.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=many&amp;".session_name()."=".session_id()."\">Готовые к выплатам</a> ("; include_once "file/usermany.php"; print ")<br/>";
echo "<div class='hr'></div><img src=\"style/".$autorize['skin']."/icon.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=gotovi&amp;".session_name()."=".session_id()."\">Заказали вывод</a> ("; include_once "file/uservipl.php"; print ")<br/>";
echo "<div class='hr'></div><img src=\"style/".$autorize['skin']."/icon.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=privat&amp;".session_name()."=".session_id()."\">Приваты</a> ("; include_once "file/privatcount.php"; print ")<br/>";
echo "<div class='hr'></div><img src=\"style/".$autorize['skin']."/icon.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=banners&amp;".session_name()."=".session_id()."\">Баннеры</a> ("; include_once "file/banscount.php"; print ")<br/>";
echo "<div class='hr'></div><img src=\"style/".$autorize['skin']."/icon.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=rekl&amp;".session_name()."=".session_id()."\">Реклама</a> ("; include_once "file/reklcount.php"; print ")<br/>";
echo "<div class='hr'></div><img src=\"style/".$autorize['skin']."/icon.png\" alt=\"*\"/>";echo "<a href=\"chat.php?".session_name()."=".session_id()."\">Чат</a> ("; include_once "file/chatcount.php"; print ")<br/>";
echo "<div class='hr'></div><img src=\"style/".$autorize['skin']."/icon.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=action&amp;".session_name()."=".session_id()."\">Акции</a> (";include_once "file/actioncount.php"; print ")<br/>";
echo "<div class='hr'></div><img src=\"style/".$autorize['skin']."/icon.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=stat&amp;".session_name()."=".session_id()."\">Статистика</a><br/>";
print "<div class='hr'></div><img src=\"style/".$autorize['skin']."/icon.png\" alt=\"*\"/><a href=\"admin.php?m=stats&amp;".session_name()."=".session_id()."\">Общая статистика</a><br />";
print "<div class='hr'></div><img src=\"style/".$autorize['skin']."/icon.png\" alt=\"*\"/><a href=\"admin.php?m=statsusers&amp;".session_name()."=".session_id()."\">Пользовательская статистика</a><br />";
echo "<div class='hr'></div><img src=\"style/".$autorize['skin']."/icon.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=urls&amp;".session_name()."=".session_id()."\">Cсылки</a><br/>";
echo "<div class='hr'></div><img src=\"style/".$autorize['skin']."/icon.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=pravila&amp;".session_name()."=".session_id()."\">Правила</a><br/>";
echo "<div class='hr'></div><img src=\"style/".$autorize['skin']."/icon.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=pravila&amp;".session_name()."=".session_id()."\">Правила</a><br/>";
echo "<div class='hr'></div><img src=\"style/".$autorize['skin']."/icon.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=refs&amp;".session_name()."=".session_id()."\">Просмотр реф.владельцев</a><br/>";
echo "<div class='hr'></div><img src=\"style/".$autorize['skin']."/icon.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=setoper&amp;".session_name()."=".session_id()."\">Операторы</a><br/>";
echo "<div class='hr'></div><img src=\"style/".$autorize['skin']."/icon.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=op&amp;".session_name()."=".session_id()."\">Прочие операторы</a><br/>";
echo "<div class='hr'></div><img src=\"style/".$autorize['skin']."/icon.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=settings&amp;".session_name()."=".session_id()."\">Настройки</a><br/>";
echo "<div class='hr'></div><img src=\"style/".$autorize['skin']."/icon.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=logs&amp;".session_name()."=".session_id()."\">Логи</a><br/>";
echo "<div class='hr'></div><img src=\"style/".$autorize['skin']."/icon.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=search&amp;".session_name()."=".session_id()."\">Поиск юзера</a><br/>";

break;

case 'users':
print "<table border ='1'><tr><td>ID</td><td>Логин</td><td>Доллары</td><td>Рубли</td><td>Функции</td><td>Статус</td></tr>";
$num = 10;
if(empty($_GET['page']) || $_GET['page']<0)$_GET['page']=1;
$page = intval($_GET['page']);
$results = mysql_query('SELECT * FROM `uzvers`');
$posts = mysql_num_rows($results);
$total = intval(($posts-1)/$num)+1;
if($page>$total) $page = $total;
$start = $page*$num-$num;

$result = mysql_query("SELECT * FROM `uzvers` ORDER BY `allmonth` DESC LIMIT $start, $num;");

if(mysql_affected_rows()==0)
{
 echo "<b>Список юзеров пуст...</b><br/>";
}
else
{
while($users = mysql_fetch_array($result))
{
print '<tr><td align="left">'.$users['id'].')</td><td align="center"><a href="admin.php?m=anketa&amp;id='.$users['id'].'&amp;'.session_name()."=".session_id().'">'.$users['log'].'</a></td><td align="center"> '.$users['allmonth'].' </td><td align="center"> '.floor($users['allmonth']*$dol).'</td><td align="center">';
if ($users['ban']==0)
         {
         echo " <a href=\"admin.php?m=bansite&amp;id=".$users['id']."&amp;".session_name()."=".session_id()."\">Забанить</a><br/>";
         }
         else
         {
         echo " <a href=\"admin.php?m=unbansite&amp;id=".$users['id']."&amp;".session_name()."=".session_id()."\">Разбанить</a><br/>";
         }
         echo " <a href=\"admin.php?m=del&amp;id=".$users['id']."&amp;".session_name()."=".session_id()."\">Удалить</a><br/>";
         echo " <a href=\"admin.php?m=null&amp;id=".$users['id']."&amp;".session_name()."=".session_id()."\">Изм.Баланс</a><br/>";

print '</td>';
print '<td align="center">';

if ($users['ban']==1)echo '<font color="red">Забанен</font>';
elseif ($users['allmonth']>0)echo '<font color="green">Активный</font>';
elseif ($users['allmonth']==0)echo '<font color="blue">Неактивный</font>';
else echo '';
print '</td></tr>';
}
}


print '</table><div class="str"><b>Стр:</b>';

$num_pages=ceil($posts/$num);
if($page>$num_pages || $page<1)
{
$page=1;
$start=0;
}
for($pr='', $i=1; $i<=$num_pages; $i++)
{
print $pr=(($i == 1 || $i == $num_pages || abs($i-$page) < 2) ? ($i == $page ? " <b>$i</b> " :
' <a href="'.$_SERVER['SCRIPT_NAME'].'?m=users&amp;page='.$i.'&amp;'.session_name().'='.session_id().'">'.$i.'</a> ') : (($pr == ' ... ' || $pr == '')? '' : ' ... '));
}
print "</div>";

echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";
break;


case 'anketa':
$id = $_GET['id'];
$result = mysql_query("SELECT * FROM `uzvers` where `id`='".$id."';");
$uzer=mysql_fetch_array($result);
print "<b>Аватар:</b>";
if(!empty($uzer['avatar']))
{
 echo "<img src=\"avatar/".$uzer['avatar'].".gif\" height=\"32\" width=\"32\" alt=\"Аватар\" /><div class='hr'></div>";
}
else
{
echo "<img src=\"no.gif\" height=\"32\" width=\"32\" alt=\"Аватар\" /><div class='hr'></div>";

}
print "<b>ID:</b>  <u>".$uzer['id']."</u><div class='hr'></div>";
print "<b>Логин:</b>  <u>".$uzer['log']."</u><div class='hr'></div>";
print "<img src='http://status.mail.ru/?".$uzer['email']."' alt='*'/>  <u><a href='mailto:".$uzer['email']."'>".$uzer['email']."</a></u><div class='hr'></div>";
print "<b>Сайт:</b>  <u><a href='".$uzer['site']."'>".$uzer['site']."</a></u><div class='hr'></div>";
if (!empty($uzer['site2']))print "<b>Сайт II:</b>  <u><a href='".$uzer['site2']."'>".$uzer['site2']."</a></u><div class='hr'></div>";
if (!empty($uzer['site3']))print "<b>Сайт III:</b>  <u><a href='".$uzer['site3']."'>".$uzer['site3']."</a></u><div class='hr'></div>";
if (!empty($uzer['site4']))print "<b>Сайт IV:</b>  <u><a href='".$uzer['site4']."'>".$uzer['site4']."</a></u><div class='hr'></div>";
if (!empty($uzer['site4']))print "<b>Сайт IV:</b>  <u><a href='".$uzer['site4']."'>".$uzer['site4']."</a></u><div class='hr'></div>";
if (!empty($uzer['site5']))print "<b>Сайт V:</b>  <u><a href='".$uzer['site5']."'>".$uzer['site5']."</a></u><div class='hr'></div>";
if (!empty($uzer['ic']))print "<img src='http://wwp.icq.com/scripts/online.dll?icq=".$uzer['ic']."&amp;img=5' alt='*'/>  <u>".$uzer['ic']."</u><div class='hr'></div>";
if (!empty($uzer['god']) || !empty($uzer['mesr']) || !empty($uzer['dr']))print "<b>День рождения:</b> <u>".$uzer['dr'].".".$uzer['mesr'].".".$uzer['god']."</u><div class='hr'></div>";
if (!empty($uzer['name']))print "<b>Имя:</b> <u>".$uzer['name']."</u><div class='hr'></div>";
if (!empty($uzer['city']))print "<b>Город:</b> <u>".$uzer['city']."</u><div class='hr'></div>";
if (!empty($uzer['wmr']))print "<b>WMR Кошелёк:</b> <u>".$uzer['wmr']."</u><div class='hr'></div>";
if (!empty($uzer['wmz']))print "<b>WMZ Кошелёк:</b> <u>".$uzer['wmz']."</u><div class='hr'></div>";
if (!empty($uzer['wmid']))print "<b>WMID:</b> <u>".$uzer['wmid']."</u><div class='hr'></div>";
if (!empty($uzer['psss']))print "<b>Пароль:</b> <u>".$uzer['psss']."</u><div class='hr'></div>";
if (!empty($uzer['skin']))print "<b>Тема оформления:</b> <u>".$uzer['skin']."</u><div class='hr'></div>";
if (!empty($uzer['opl']))print "<b>Заработал(а):</b> <u>".$uzer['opl']." $ = ".($uzer['opl']*$dol)." руб.</u><div class='hr'></div>";
if ($uzer['pol'] == 0)
{
print "";
}
else
{

print "<b>Пол:</b>&nbsp;";
if ($uzer['pol']==0)
{
print "<u>Женский</u>";
}
else
{
print "<u>Мужской</u><div class='hr'></div>";
}
}
if (!empty($uzer['browse']))print "<b>Браузер:</b> <u>".$uzer['browse']."</u><div class='hr'></div>";
if (!empty($uzer['ip']))print "<b>IP:</b> <u>".$uzer['ip']."</u><div class='hr'></div>";
if (!empty($uzer['date']))print "<b>Последнее посещение:</b> <u>".$uzer['date']."</u><div class='hr'></div>";
if (!empty($uzer['sebe']))print "<b>О себе:</b> <u>".$uzer['sebe']."</u><div class='hr'></div>";
print "<img src=\"style/".$autorize['skin']."/otvet.png\" alt=\"*\"/> <a href=\"privat.php?m=new&amp;kom_otvet=".$uzer['log']."&amp;".session_name()."=".session_id()."\">Написать сообщение</a><div class='hr'></div>";

echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=users&amp;".session_name()."=".session_id()."\">Назад</a><br/>\n";

break;
case 'unbansite':
$id = $_GET['id'];
$ban_pr3 = '';
$ban1 = '0';
@mysql_query("UPDATE `uzvers` SET `ban_pr` = '".$ban_pr3."',`ban` = '".$ban1."' where `id` = '".$id."';");
print "<center>Операция успешно выполнена !!<br />
Аккаунт разбанен !!!</center>";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=users&amp;".session_name()."=".session_id()."\">Назад</a><br/>\n";

break;
case 'bansite':
$id = $_GET['id'];

print "Вы хотите забанить ID: ".$id."!!!";
echo "<form action=\"admin.php?m=ban&amp;id=$id&amp;".session_name()."=".session_id()."\" method=\"post\">";
print "Причина:<br />";
echo "<input class=\"main\" name=\"ban_pr\" maxlength=\"250\" title=\"Причина\"/><br/>";
echo "<input class=\"main\" type=\"submit\" value=\"Забанить\"/>";
echo "</form>";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=users&amp;".session_name()."=".session_id()."\">Назад</a><br/>\n";

break;

case 'ban';
$id = $_GET['id'];
$ban_pr2 = base64_encode(htmlspecialchars(stripslashes(trim($_POST['ban_pr']))));
$ban = 1;
if(empty($error)) $error='';
if(empty($_POST['ban_pr'])) $error.='Заполните поле причина !!!<br/>';
if (empty($error))
{

@mysql_query("UPDATE `uzvers` SET `ban_pr` = '".$ban_pr2."',`ban` = '".$ban."' where `id` = '".$id."';");
print "<center>Операция успешно выполнена !!</center>";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=bansite&amp;".session_name()."=".session_id()."\">Назад</a><br/>\n";

}
else
{
print "<center>$error</center>";
}
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=users&amp;".session_name()."=".session_id()."\">Назад</a><br/>\n";

break;
case 'null';
$id = $_GET['id'];
$null = mysql_query("SELECT * FROM `uzvers` where `id` = '".$id."';");
$null2 = mysql_fetch_array($null);

print "<center>Изменение баланса у ID: ".$id."!!!</center>";
echo "<form action=\"admin.php?m=nullgo&amp;id=$id&amp;".session_name()."=".session_id()."\" method=\"post\">";
print "Баланс в долларах:<br />";
echo "<input class=\"main\" name=\"allmonth\" value =\"".$null2['allmonth']."\" maxlength=\"250\" title=\"Баланс\"/><br/>";
echo "<input class=\"main\" type=\"submit\" value=\"Изменить\"/>";
echo "</form>";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=users&amp;".session_name()."=".session_id()."\">Назад</a><br/>\n";

break;

case 'nullgo';

$allmonth2 = htmlspecialchars(stripslashes(trim($_POST['allmonth'])));
$id = $_GET['id'];

if(empty($error)) $error='';
if(empty($_POST['allmonth'])) $error.='Отсутствует Число<br/>';
if (empty($error))
{

@mysql_query("UPDATE `uzvers` SET `allmonth` = '".$allmonth2."' where `id` = '".$id."';");
print "<center>Операция успешно выполнена !!</center>";

}
else
{
print "<center>$error</center>";
}
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=users&amp;".session_name()."=".session_id()."\">Назад</a><br/>\n";

break;
case "del":
$id = $_GET['id'];

$del = mysql_query("SELECT `id` FROM `uzvers` WHERE `id`='".mysql_escape_string($id)."';");
if(mysql_num_rows($del) !== FALSE)
{
mysql_query("DELETE FROM `uzvers` WHERE `id` = '".mysql_escape_string($id)."';");
print "<center>Пользователь удален!!!</center><br />";
}
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=users&amp;".session_name()."=".session_id()."\">Назад</a><br/>\n";

break;


case 'urls':
$results = mysql_query('SELECT * FROM `urls`');
$url = mysql_fetch_array($results);
echo "<form action=\"admin.php?m=urlsgo&amp;".session_name()."=".session_id()."\" method=\"post\">";
print "Операторы:<br />";
echo "<input class=\"main\" name=\"sayt_operators\" value =\"".$url['sayt_operators']."\" maxlength=\"250\" title=\"Операторы\"/><br/>";
print "Опера Мини:<br />";
echo "<input class=\"main\" name=\"sayt_om\" value =\"".$url['sayt_om']."\" maxlength=\"250\" title=\"Опера Мини\"/><br/>";
print "Компьютеры:<br />";
echo "<input class=\"main\" name=\"sayt_pc\" value =\"".$url['sayt_pc']."\" maxlength=\"250\" title=\"Компьютеры\"/><br/>";
print "Прочие устройства:<br />";
echo "<input class=\"main\" name=\"sayt_more\" value =\"".$url['sayt_more']."\" maxlength=\"250\" title=\"Прочие устройства\"/><br/>";
echo "<input class=\"main\" type=\"submit\" value=\"Изменить\"/>";
echo "</form>";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=users&amp;".session_name()."=".session_id()."\">Назад</a><br/>\n";
break;

case 'urlsgo':
@mysql_query("UPDATE `urls` SET `sayt_operators` = '".$_POST['sayt_operators']."',`sayt_om` = '".$_POST['sayt_om']."',`sayt_pc` = '".$_POST['sayt_pc']."',`sayt_more` = '".$_POST['sayt_more']."';");
print "<center>Операция успешно выполнена !!</center>";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=urls&amp;".session_name()."=".session_id()."\">Назад</a><br/>\n";
break;

case 'search':
echo "<form action=\"admin.php?m=searchgo&amp;".session_name()."=".session_id()."\" method=\"post\">";
print "ID Юзера:<br />";
echo "<input class=\"main\" name=\"id_user\" maxlength=\"250\" title=\"ID Юзера\"/><br/>";
echo "<input class=\"main\" type=\"submit\" value=\"Поиск\"/>";
echo "</form>";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=users&amp;".session_name()."=".session_id()."\">Назад</a><br/>\n";
break;

case 'searchgo':
$result = mysql_query("SELECT * FROM `uzvers` where `id`='".$_POST['id_user']."';");
$uzer=mysql_fetch_array($result);
if (isset($uzer['id']))
{
print "<b>Аватар:</b>";
if(!empty($uzer['avatar']))
{
 echo "<img src=\"avatar/".$uzer['avatar'].".gif\" height=\"32\" width=\"32\" alt=\"Аватар\" /><div class='hr'></div>";
}
else
{
echo "<img src=\"no.gif\" height=\"32\" width=\"32\" alt=\"Аватар\" /><div class='hr'></div>";

}
print "<b>ID:</b>  <u>".$uzer['id']."</u><div class='hr'></div>";
print "<b>Логин:</b>  <u>".$uzer['log']."</u><div class='hr'></div>";
print "<img src='http://status.mail.ru/?".$uzer['email']."' alt='*'/>  <u><a href='mailto:".$uzer['email']."'>".$uzer['email']."</a></u><div class='hr'></div>";
print "<b>Сайт:</b>  <u><a href='".$uzer['site']."'>".$uzer['site']."</a></u><div class='hr'></div>";
if (!empty($uzer['site2']))print "<b>Сайт II:</b>  <u><a href='".$uzer['site2']."'>".$uzer['site2']."</a></u><div class='hr'></div>";
if (!empty($uzer['site3']))print "<b>Сайт III:</b>  <u><a href='".$uzer['site3']."'>".$uzer['site3']."</a></u><div class='hr'></div>";
if (!empty($uzer['site4']))print "<b>Сайт IV:</b>  <u><a href='".$uzer['site4']."'>".$uzer['site4']."</a></u><div class='hr'></div>";
if (!empty($uzer['site4']))print "<b>Сайт IV:</b>  <u><a href='".$uzer['site4']."'>".$uzer['site4']."</a></u><div class='hr'></div>";
if (!empty($uzer['site5']))print "<b>Сайт V:</b>  <u><a href='".$uzer['site5']."'>".$uzer['site5']."</a></u><div class='hr'></div>";
if (!empty($uzer['ic']))print "<img src='http://wwp.icq.com/scripts/online.dll?icq=".$uzer['ic']."&amp;img=5' alt='*'/>  <u>".$uzer['ic']."</u><div class='hr'></div>";
if (!empty($uzer['god']) || !empty($uzer['mesr']) || !empty($uzer['dr']))print "<b>День рождения:</b> <u>".$uzer['dr'].".".$uzer['mesr'].".".$uzer['god']."</u><div class='hr'></div>";
if (!empty($uzer['name']))print "<b>Имя:</b> <u>".$uzer['name']."</u><div class='hr'></div>";
if (!empty($uzer['city']))print "<b>Город:</b> <u>".$uzer['city']."</u><div class='hr'></div>";
if (!empty($uzer['wmr']))print "<b>WMR Кошелёк:</b> <u>".$uzer['wmr']."</u><div class='hr'></div>";
if (!empty($uzer['wmz']))print "<b>WMZ Кошелёк:</b> <u>".$uzer['wmz']."</u><div class='hr'></div>";
if (!empty($uzer['wmid']))print "<b>WMID:</b> <u>".$uzer['wmid']."</u><div class='hr'></div>";
if (!empty($uzer['psss']))print "<b>Пароль:</b> <u>".$uzer['psss']."</u><div class='hr'></div>";
if (!empty($uzer['skin']))print "<b>Тема оформления:</b> <u>".$uzer['skin']."</u><div class='hr'></div>";
if (!empty($uzer['opl']))print "<b>Заработал(а):</b> <u>".$uzer['opl']." $ = ".($uzer['opl']*$dol)." руб.</u><div class='hr'></div>";

if ($uzer['pol'] == 0)
{
print "";
}
else
{

print "<b>Пол:</b>&nbsp;";
if ($uzer['pol']==0)
{
print "<u>Женский</u>";
}
else
{
print "<u>Мужской</u><div class='hr'></div>";
}
}
if (!empty($uzer['browse']))print "<b>Браузер:</b> <u>".$uzer['browse']."</u><div class='hr'></div>";
if (!empty($uzer['ip']))print "<b>IP:</b> <u>".$uzer['ip']."</u><div class='hr'></div>";
if (!empty($uzer['date']))print "<b>Последнее посещение:</b> <u>".$uzer['date']."</u><div class='hr'></div>";
if (!empty($uzer['sebe']))print "<b>О себе:</b> <u>".$uzer['sebe']."</u><div class='hr'></div>";
print "<img src=\"style/".$autorize['skin']."/otvet.png\" alt=\"*\"/> <a href=\"privat.php?m=new&amp;kom_otvet=".$uzer['log']."&amp;".session_name()."=".session_id()."\">Написать сообщение</a><div class='hr'></div>";
}
else
{
print "<center>Пользователь с таким ID не найден !!!</center>";
}
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";

break;


case 'many':
$num = $nummer;
if(empty($_GET['page']) || $_GET['page']<0)$_GET['page']=1;
$page = intval($_GET['page']);
$results = mysql_query('SELECT * FROM `uzvers` where `allmonth`>"'.$mincost.'" and `ban`!="1" ');
$posts = mysql_num_rows($results);
$total = intval(($posts-1)/$num)+1;
if($page>$total) $page = $total;
$start = $page*$num-$num;

$result = mysql_query("SELECT * FROM `uzvers` where `allmonth`>'".$mincost."' and `ban`!='1' ORDER BY `allmonth` DESC LIMIT $start, $num;");

if(mysql_affected_rows()==0)
{
 echo "<b>Список юзеров пуст...</b><br/>";
}
else
{
print "<table border ='1'><tr><td>ID</td><td>Логин</td><td>Доллары</td><td>Рубли</td><td>Функции</td><td>Логи</td></tr>";
while($users = mysql_fetch_array($result))
{
print '<tr><td align="left">'.$users['id'].')</td><td align="center"><a href="admin.php?m=anketa&amp;id='.$users['id'].'&amp;'.session_name()."=".session_id().'">'.$users['log'].'</a></td><td align="center"> '.$users['allmonth'].' </td><td align="center"> '.floor($users['allmonth']*$dol).'</td><td align="center">';
         echo " <a href=\"admin.php?m=viplata&amp;id=".$users['id']."&amp;".session_name()."=".session_id()."\">Выплатить</a><br/>";
         echo " <a href=\"admin.php?m=null&amp;id=".$users['id']."&amp;".session_name()."=".session_id()."\">Изм.Баланс</a><br/>";

print '</td>';
print '<td align="center">';
echo " <a href=\"admin.php?m=logsgo&amp;id=".$users['id']."&amp;".session_name()."=".session_id()."\">Просмотр</a><br/>";
print '</td></tr>';
}
}


print '</table><div class="str"><b>Стр:</b>';

$num_pages=ceil($posts/$num);
if($page>$num_pages || $page<1)
{
$page=1;
$start=0;
}
for($pr='', $i=1; $i<=$num_pages; $i++)
{
print $pr=(($i == 1 || $i == $num_pages || abs($i-$page) < 2) ? ($i == $page ? " <b>$i</b> " :
' <a href="'.$_SERVER['SCRIPT_NAME'].'?m=many&amp;page='.$i.'&amp;'.session_name().'='.session_id().'">'.$i.'</a> ') : (($pr == ' ... ' || $pr == '')? '' : ' ... '));
}
print "</div>";

echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";
break;

case 'gotovi':
$num = $nummer;
if(empty($_GET['page']) || $_GET['page']<0)$_GET['page']=1;
$page = intval($_GET['page']);
$results = mysql_query('SELECT * FROM `uzvers` where `help`="1" and `ban`!="1" ');
$posts = mysql_num_rows($results);
$total = intval(($posts-1)/$num)+1;
if($page>$total) $page = $total;
$start = $page*$num-$num;

$result = mysql_query("SELECT * FROM `uzvers` where `help`='1' and `ban`!='1' ORDER BY `allmonth` DESC LIMIT $start, $num;");

if(mysql_affected_rows()==0)
{
 echo "<b>Список юзеров пуст...</b><br/>";
}
else
{
print "<table border ='1'><tr><td>ID</td><td>Логин</td><td>Доллары</td><td>Рубли</td><td>Функции</td><td>Логи</td></tr>";
while($users = mysql_fetch_array($result))
{
print '<tr><td align="left">'.$users['id'].')</td><td align="center"><a href="admin.php?m=anketa&amp;id='.$users['id'].'&amp;'.session_name()."=".session_id().'">'.$users['log'].'</a></td><td align="center"> '.$users['allmonth'].' </td><td align="center"> '.floor($users['allmonth']*$dol).'</td><td align="center">';
         echo " <a href=\"admin.php?m=viplata&amp;id=".$users['id']."&amp;".session_name()."=".session_id()."\">Выплатить</a><br/>";
         echo " <a href=\"admin.php?m=null&amp;id=".$users['id']."&amp;".session_name()."=".session_id()."\">Изм.Баланс</a><br/>";

print '</td>';
print '<td align="center">';
echo " <a href=\"admin.php?m=logsgo&amp;id=".$users['id']."&amp;".session_name()."=".session_id()."\">Просмотр</a><br/>";
print '</td></tr>';
}
}


print '</table><div class="str"><b>Стр:</b>';

$num_pages=ceil($posts/$num);
if($page>$num_pages || $page<1)
{
$page=1;
$start=0;
}
for($pr='', $i=1; $i<=$num_pages; $i++)
{
print $pr=(($i == 1 || $i == $num_pages || abs($i-$page) < 2) ? ($i == $page ? " <b>$i</b> " :
' <a href="'.$_SERVER['SCRIPT_NAME'].'?m=gotovi&amp;page='.$i.'&amp;'.session_name().'='.session_id().'">'.$i.'</a> ') : (($pr == ' ... ' || $pr == '')? '' : ' ... '));
}
print "</div>";

echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";
break;
case 'viplata':
$id = $_GET['id'];
$null = mysql_query("SELECT * FROM `uzvers` where `id` = '".$id."';");
$null2 = mysql_fetch_array($null);
$v = ($null2['allmonth']*$vivod/100);
$s = ($null2['allmonth']-$v);
print "<center>Выплата для ID: ".$id."!!!</center><div class='hr'></div>";
print "Доход от пользователя: ".$v." $ = ".($v*$dol)." руб.<div class='hr'></div>";
print "<font color='red'>Комиссия системы составляет $vivod %.</font><div class='hr'></div>";
print "Баланс в рублях: ".($dol*$s)." руб.<br />";
print "<input size='2' value='".($dol*$s)."' class=\"main\"/> руб.<br />";
echo "<form action=\"admin.php?m=vivodgo&amp;id=$id&amp;".session_name()."=".session_id()."\" method=\"post\">";
print "Сумма к выплате в долларах:<br />";
echo "<input class=\"main\" name=\"allmonth\" value =\"".$s."\" maxlength=\"250\" title=\"Сумма к выплате\"/><br/>";
echo "<input class=\"main\" type=\"submit\" value=\"Выплатить\"/>";
echo "</form>";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=many&amp;".session_name()."=".session_id()."\">Назад</a><br/>\n";
break;

case 'vivodgo':
$sum = $_POST['allmonth'];
$id = $_GET['id'];
$n = mysql_query("SELECT * FROM `uzvers` where `id` = '".$id."';");
$n2 = mysql_fetch_array($n);
$ni = mysql_query("SELECT * FROM `uzvers` where `id` = '1';");
$n2i = mysql_fetch_array($ni);
$time="14400"; // Смещение в секундах от Гринвича
$date=gmdate('d.m.Y H:i',time()+$time);
$vipl = $sum*$dol;
@mysql_query("UPDATE `uzvers` SET `allmonth`=`allmonth`-'$sum',`opl`=`opl`+'$sum',`help`='0' WHERE (`id`='$id')");
@mysql_query("insert into privat set kogo='".$n2i['log']."',komu='".$n2['log']."',date='".$date."',status='0',mess='Заявка на вывод ".$vipl." рублей обработана, в том числе комиссия системы ".$vivod."% = ".($vipl*$vivod/100)." рублей от данной суммы, сумма поступившая вам на кошелек ".($vipl-($vipl*$vivod/100))." рублей
. С уважением администрация !!!';") or die ('Ошибка повторите попытку !!!');
print "<center>Выплата в размере ".$vipl." рублей произведена !!!</center>";
print "WMR Кошелёк:<br />";
print "<input size='18' value='".$n2['wmr']."' class=\"main\"/><br />";
print "WMZ Кошелёк:<br />";
print "<input size='18' value='".$n2['wmz']."' class=\"main\"/><br />";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=many&amp;".session_name()."=".session_id()."\">Назад</a><br/>\n";
break;

case 'logs':
echo "<form action=\"admin.php?m=logsgo&amp;".session_name()."=".session_id()."\" method=\"post\">";
print "ID Юзера:<br />";
echo "<input class=\"main\" name=\"id\" maxlength=\"250\" title=\"ID Юзера\"/><br/>";
echo "<input class=\"main\" type=\"submit\" value=\"Смотреть\"/>";
echo "</form>";
break;

case 'logsgo':
if (isset($_POST['id']))
$id = trim($_POST['id']);
else
$id = trim($_GET['id']);

$num = $nummer;
if(empty($_GET['page']) || $_GET['page']<0)$_GET['page']=1;
$page = intval($_GET['page']);
$results = mysql_query('SELECT * FROM `clicks` where `userid` = "'.$id.'"');
$posts = mysql_num_rows($results);
$total = intval(($posts-1)/$num)+1;
if($page>$total) $page = $total;
$start = $page*$num-$num;

$result = mysql_query("SELECT * FROM `clicks` where `userid` = '".$id."' ORDER BY `id` DESC LIMIT $start, $num;");

if(mysql_affected_rows()==0)
{
 echo "<b>Логов нет...</b><br/>";
}
else
{
print "<table width='450px' border ='1'><tr><td>Оператор</td><td>IP</td><td>Реферер</td><td>User Agent</td><td>Дата</td></tr>";
while($users = mysql_fetch_array($result))
{
print '<tr><td align="left">';
if(!empty($users['oper_name']))
print "".trim(base64_decode($users['oper_name']))."";
else
print "Не определён";
print '</td><td align="center">';
if(!empty($users['ip']))
print "".trim($users['ip'])."";
else
print "Не определён";
print '</td><td align="center">';
if(!empty($users['referer']))
print '<a href="'.trim($users['referer']).'">'.trim($users['referer']).'</a>';
else
print "Не определён";
print '</td><td align="center">'.trim($users['agent']).'</td><td align="center">'.trim($users['data']).'</td></tr>';
}
print "</table>";

print '<div class="str"><b>Стр:</b>';

$num_pages=ceil($posts/$num);
if($page>$num_pages || $page<1)
{
$page=1;
$start=0;
}
for($pr='', $i=1; $i<=$num_pages; $i++)
{
print $pr=(($i == 1 || $i == $num_pages || abs($i-$page) < 2) ? ($i == $page ? " <b>$i</b> " :
' <a href="'.$_SERVER['SCRIPT_NAME'].'?m=logsgo&amp;id='.$id.'&amp;page='.$i.'&amp;'.session_name().'='.session_id().'">'.$i.'</a> ') : (($pr == ' ... ' || $pr == '')? '' : ' ... '));
}
print "</div>";
}
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";
break;

case 'settings':
$results = mysql_query('SELECT * FROM `config`;');
$set = mysql_fetch_array($results);
echo "<form action=\"admin.php?m=ok&amp;".session_name()."=".session_id()."\" method=\"post\">";
print "Название страниц:<br />";
echo "<input size='12' value='".base64_decode($set['title'])."' class=\"main\" name=\"title\" maxlength=\"250\" title=\"Название страниц\"/><br/>";
print "ICQ (Главного админа):<br />";
echo "<input size='12' value='".$set['icq1']."' class=\"main\" name=\"icq1\" maxlength=\"250\" title=\"ICQ (Главного админа)\"/><br/>";
print "ICQ (Соадмина):<br />";
echo "<input size='12' value='".$set['icq2']."' class=\"main\" name=\"icq2\" maxlength=\"250\" title=\"ICQ (Соадмина)\"/><br/>";
print "E-Mail (Главного админа):<br />";
echo "<input size='15' value='".$set['email']."' class=\"main\" name=\"email\" maxlength=\"250\" title=\"E-Mail (Главного админа)\"/><br/>";
print "E-Mail (Соадмина):<br />";
echo "<input size='15' value='".$set['email2']."' class=\"main\" name=\"email2\" maxlength=\"250\" title=\"E-Mail (Соадмина)\"/><br/>";
print "Процент на вывод:<br />";
echo "<input size='2' value='".$set['vivod']."' class=\"main\" name=\"vivod\" maxlength=\"250\" title=\"Процент на вывод\"/><br/>";
print "Минималка в долларах:<br />";
echo "<input size='2' value='".$set['mincost']."' class=\"main\" name=\"mincost\" maxlength=\"250\" title=\"Минималка в долларах\"/><br/>";
print "Курс доллара в рублях:<br />";
echo "<input size='2' value='".$set['dollar']."' class=\"main\" name=\"dollar\" maxlength=\"250\" title=\"Курс доллара в рублях\"/><br/>";
print "Кол-во элементов на страницу:<br />";
echo "<input size='2' value='".$set['num']."' class=\"main\" name=\"num\" maxlength=\"250\" title=\"Кол-во элементов на страницу\"/><br/>";
print "День выплат:<br />";
print "<select name='ned' class='main'><option value='0'>Воскресение</option><option value='1'>Понедельник</option><option value='2'>Вторник</option><option value='3'>Среда</option><option value='4'>Четверг</option><option value='5'>Пятница</option><option value='6'>Суббота</option></select><br />";
echo"Тема:<br />
<select name=\"skin\" class='main'><option>";
echo $themes;
echo"</option>";
$dir = opendir ("style");
   while ($file = readdir ($dir))
 {
    if (( $file != ".") && ($file != "..") && ($file != ".htaccess") && ($file != "$themes.php"))
    { $file= str_replace(".php","",$file);
echo "<option>$file</option>";
 }}
 echo "</select>";
closedir ($dir);
echo "<br />";
print "Реф. Процент:<br />";
echo "<input size='2' value='".$set['partproc']."' class=\"main\" name=\"partproc\" maxlength=\"250\" title=\"Реферальский процент\"/><br/>";
print "Время задержки клика:<br />";
echo "<input size='2' value='".$set['clicktime']."' class=\"main\" name=\"clicktime\" maxlength=\"250\" title=\"Время задержки клика\"/><br/>";
print "Шейф в процентах (max=100%):<br />";
echo "<input size='2' value='".$set['sheif']."' class=\"main\" name=\"sheif\" maxlength=\"250\" title=\"Шейф\"/><br/>";
echo "<input class=\"main\" type=\"submit\" value=\"Сохранить\"/>";
echo "</form>";
break;

case 'ok':
@mysql_query("UPDATE `config` SET `title`='".base64_encode($_POST['title'])."',`icq1`='".$_POST['icq1']."',`icq2`='".$_POST['icq2']."',`email`='".$_POST['email']."',`email2`='".$_POST['email2']."',`vivod`='".$_POST['vivod']."',`dollar`='".$_POST['dollar']."',`ned`='".$_POST['ned']."',`num`='".$_POST['num']."',`mincost`='".$_POST['mincost']."',`partproc`='".$_POST['partproc']."',`wap_skin`='".$_POST['skin']."',`clicktime`='".$_POST['clicktime']."',`sheif`='".$_POST['sheif']."' where `id`='1'");
print "<center>Изменено !!!</center>";
break;

case 'privat':
$num = $nummer;
if(empty($_GET['page']) || $_GET['page']<0)$_GET['page']=1;
$page = intval($_GET['page']);
$results = mysql_query("SELECT * FROM `privat`;");
$posts = mysql_num_rows($results);
$total = intval(($posts-1)/$num)+1;
if($page>$total) $page = $total;
$start = $page*$num-$num;


$q=mysql_query("select* from `privat` order by `id` DESC LIMIT $start, $num;");

if(mysql_affected_rows()==0)
{
 echo "<div class='hr'></div><b>Пусто...</b><br/>";
}
else
{
while ($row=mysql_fetch_array($q))
{
$id=$row['id'];
$l1=$row['kogo'];
$l2=$row['date'];
$l3=$row['status'];
print "<img src=\"style/".$autorize['skin']."/privat/$l3.png\" alt=\"*\"/>";
echo " <b>$l1</b> <a href=\"admin.php?m=privatgo&amp;id=$id&amp;".session_name()."=".session_id()."\"><u>$l2</u></a>&nbsp;[<a href=\"admin.php?m=delitprivat&amp;id=$id&amp;".session_name()."=".session_id()."\">del</a>]<div class='hr'></div>";
}
print '<div class="str"><b>Стр:</b>';

$num_pages=ceil($posts/$num);
if($page>$num_pages || $page<1)
{
$page=1;
$start=0;
}
for($pr='', $i=1; $i<=$num_pages; $i++)
{
print $pr=(($i == 1 || $i == $num_pages || abs($i-$page) < 2) ? ($i == $page ? " <b>$i</b> " :
' <a href="'.$_SERVER['SCRIPT_NAME'].'?m=privat&amp;page='.$i.'&amp;'.session_name().'='.session_id().'">'.$i.'</a> ') : (($pr == ' ... ' || $pr == '')? '' : ' ... '));
}
 print "</div>";
}


print "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/><a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br />";

break;

case 'privatgo':
$id = $_GET['id'];
$q=mysql_query("select * from `privat` where `id`='$id';");
$row=mysql_fetch_array($q);
$l1=$row['kogo'];
$l2=$row['date'];
$l4=$row['mess'];
echo "<u>От:</u> <b>$l1</b><u> $l2</u> <b>для ".$row['komu']."</b><div class='hr'></div>";
echo "<b>Сообщение:</b> <u>$l4</u><div class='hr'></div>";
print "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/><a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br />";
break;
case 'delitprivat':

mysql_query("DELETE FROM `privat` WHERE `id` = '".$_GET['id']."';");
print "<center>Удалено !!!</center><div class='hr'></div>";
print "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/><a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br />";

break;
case 'pravila':
echo "<div class='hr'></div><form action=\"admin.php?m=prgo&amp;".session_name()."=".session_id()."\" method=\"post\">";
echo "<div class='hr'></div>Текст правила:<br />";
print "<textarea name='msg' class='main' cols='25' rows='3'></textarea><br/>";
echo "Наказание за нар. правила:<br />";
echo "<input type=\"text\" name=\"nakaz\" size=\"18\" class=\"main\"/><br/>";
echo "<input class=\"main\" type=\"submit\" value=\"Добавить\"/></form>";
print "<div class='hr'></div>";
$r = mysql_query('SELECT * FROM `pravila`;');
if(mysql_affected_rows()==0)
{
echo "<center>Правил нет...</center><br/>";
}
else
{
print "<table border ='1'><tr><td>Номер</td><td>Текст правила</td><td>Наказание</td><td>Функции</td></tr>";
$i = 1;
while ($setpr = mysql_fetch_array($r))
{
print '<tr><td align="left">'.$i++.'</td><td align="center">'.base64_decode($setpr['msg']).'</td><td align="center">'.base64_decode($setpr['nakaz']).'</td><td align="center"><a href="admin.php?m=delpr&amp;id='.$setpr['id'].'&amp;'.session_name().'='.session_id().'">Удалить</a></td></tr>';
}
print "</table>";
}

echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";
break;
case 'delpr':
mysql_query("DELETE FROM `pravila` WHERE `id` = '".$_GET['id']."';");
print "<center>Операция выполнена !!!</center><br />";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>";
break;

case 'prgo':
@mysql_query("INSERT INTO `pravila` SET `msg`='".base64_encode($_POST['msg'])."',`nakaz`='".base64_encode($_POST['nakaz'])."'");
print "<center>Операция выполнена !!!</center><br />";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";

break;
case 'rekl':
$num = $nummer;
if(empty($_GET['page']) || $_GET['page']<0)$_GET['page']=1;
$page = intval($_GET['page']);
$results = mysql_query("SELECT * FROM `rekl`;");
$posts = mysql_num_rows($results);
$total = intval(($posts-1)/$num)+1;
if($page>$total) $page = $total;
$start = $page*$num-$num;


$q=mysql_query("select* from `rekl` order by `id` DESC LIMIT $start, $num;");
echo "<div class='hr'></div><form action=\"admin.php?m=reklgo&amp;".session_name()."=".session_id()."\" method=\"post\">";
echo "<div class='hr'></div>Ссылка:<br />";
echo "<input type=\"text\" value='http://' name=\"link\" size=\"20\" class=\"main\"/><br/>";
print "Имя ссылки:<br />";
echo "<input type=\"text\" name=\"linkname\" size=\"15\" class=\"main\"/><br/>";
print "Расположение:<br />";
print "<select name='mesto' class='main'><option value='0'>Главная вверх</option><option value='1'>Прочие стр. вверх</option><option value='3'>Главная низ</option><option value='2'>Прочие стр. низ</option></select><br />";
echo "<input class=\"main\" type=\"submit\" value=\"Добавить\"/></form>";
print "<div class='hr'></div>";
if(mysql_affected_rows()==0)
{
 echo "<div class='hr'></div><b>Пусто...</b><br/>";
}
else
{
$i =1;
while ($row=mysql_fetch_array($q))
{
print "".$i++.")&nbsp;";print "<a href='".$row['link']."'>".base64_decode($row['linkname'])."</a>";
if ($row['mesto']==0)print "&nbsp;<u>Расположена на главной вверху</u>";
elseif ($row['mesto']==1) print "&nbsp;<u>Расположена на других страницах вверху</u>";
elseif ($row['mesto']==2) print "&nbsp;<u>Расположена на других страницах внизу</u>";
elseif ($row['mesto']==3) print "&nbsp;<u>Расположена на главной внизу</u>";

echo "&nbsp;&nbsp;[<a href=\"admin.php?m=delrekl&amp;id=".$row['id']."&amp;".session_name()."=".session_id()."\">del</a>]<div class='hr'></div>";
}
print '<div class="str"><b>Стр:</b>';

$num_pages=ceil($posts/$num);
if($page>$num_pages || $page<1)
{
$page=1;
$start=0;
}
for($pr='', $i=1; $i<=$num_pages; $i++)
{
print $pr=(($i == 1 || $i == $num_pages || abs($i-$page) < 2) ? ($i == $page ? " <b>$i</b> " :
' <a href="'.$_SERVER['SCRIPT_NAME'].'?m=rekl&amp;page='.$i.'&amp;'.session_name().'='.session_id().'">'.$i.'</a> ') : (($pr == ' ... ' || $pr == '')? '' : ' ... '));
}
 print "</div>";
}


print "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/><a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br />";

break;
case 'reklgo';
@mysql_query("INSERT INTO `rekl` SET `link`='".$_POST['link']."',`linkname`='".base64_encode($_POST['linkname'])."',`mesto`='".$_POST['mesto']."'");
print "<center>Операция выполнена !!!</center><br />";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";

break;
case 'delrekl';
mysql_query("DELETE FROM `rekl` WHERE `id` = '".$_GET['id']."';");
print "<center>Операция выполнена !!!</center><br />";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>";
break;
case 'stats':
$arr = mysql_query("select * from `adm_stats` where `id`='1'");
$row=mysql_fetch_array($arr);
print "<table width='450px' border ='1'><tr><td>Opera Mini</td><td>Операторы</td><td>Компьютеры</td><td>Прочие</td></tr>";

    print '<tr><td align="left">';
    echo $row['om'];
    print "</td><td align=\"center\">";
    echo $row['op'];
    print "</td><td align=\"center\">";
    print $row['pc'];
    print "</td><td align=\"center\">";
    print $row['more'];
    print "</td>";
    print "</tr>";
    print "</table>";

break;

case 'refs':
echo "<form action=\"admin.php?m=searcref&amp;".session_name()."=".session_id()."\" method=\"post\">";
print "ID Юзера:<br />";
echo "<input class=\"main\" name=\"id\" maxlength=\"250\" title=\"ID Юзера\"/><br/>";
echo "<input class=\"main\" type=\"submit\" value=\"Просмотреть\"/>";
echo "</form>";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?m=refs&amp;".session_name()."=".session_id()."\">Назад</a><br/>\n";
break;

case 'searcref':

$results = mysql_query("SELECT * FROM `uzvers` where `partid`='".trim($_POST['id'])."';");
if(mysql_affected_rows()==0)
{
 echo "<div class='hr'></div><b>Пусто...</b><br/>";
}
else
{
echo "<table border ='1'><tr><td><b>Логин</b></td><td><b>Сайт</b></td></tr>";
while($row=mysql_fetch_array($results))
{
print "<tr><td align='left'>".$row['log']."</td><td align='center'><a href='".$row['site']."'>".$row['site']."</a></td></tr>";
}
print "</table>";
}
break;

case 'statsusers':
$t = mysql_query("select count(*) from `uzvers`;");
$r = mysql_result($t, 0);
$d = mysql_query("select * from `uzvers` where `allmonth`>'0';");
$e=mysql_num_rows($d);
$u2 = mysql_query("select * from `uzvers` where `ban`='1';");
$o2=mysql_num_rows($u2);
print "<table width='450px' border ='1'><tr><td>Всего пользователей</td><td>Активных</td><td>Не активных</td><td>Забанненых</td></tr>";

print '<tr><td align="left">';
    echo $r;
    print "</td><td align=\"center\">";
    echo $e;
    print "</td><td align=\"center\">";
    print "".floor($r-$e)."";
    print "</td><td align=\"center\">";
    print $o2;
    print "</td>";
    print "</tr>";
    print "</table>";
break;

case 'stat':

$num = $nummer;
if(empty($_GET['page']) || $_GET['page']<0)$_GET['page']=1;
$page = intval($_GET['page']);
$results = mysql_query("SELECT * FROM `stats`;");
$posts = mysql_num_rows($results);
$total = intval(($posts-1)/$num)+1;
if($page>$total) $page = $total;
$start = $page*$num-$num;
$qi=mysql_query("select* from `stats` order by `id` DESC LIMIT $start, $num;");

  if (mysql_affected_rows()==0)
  {
   echo "Статистика пуста !!!";
  }
  else
  {
  	print "<table width='450px' border ='1'><tr><td>Дата</td><td>Операторов</td><td>Прочих</td><td>Всего</td></tr>";

   while($row=mysql_fetch_array($qi))
   {
    $data=substr($row['data'],6,2).'-'.substr($row['data'],4,2).'-'.substr($row['data'],0,4);
    print '<tr><td align="left">';
    echo $data;
    print "</td><td align=\"center\">";
    echo $row['OP'];
    print "</td><td align=\"center\">";
    print "".($row['ALL']-$row['OP'])."";
    print "</td><td align=\"center\">";
    print $row['ALL'];
    print "</td></tr>";

   }
   print "</table>";
    print '<div class="str"><b>Стр:</b>';

   $num_pages=ceil($posts/$num);
   if($page>$num_pages || $page<1)
   {
   $page=1;
   $start=0;
   }
   for($pr='', $i=1; $i<=$num_pages; $i++)
   {
   print $pr=(($i == 1 || $i == $num_pages || abs($i-$page) < 2) ? ($i == $page ? " <b>$i</b> " :
   ' <a href="'.$_SERVER['SCRIPT_NAME'].'?m=stat&amp;page='.$i.'&amp;'.session_name().'='.session_id().'">'.$i.'</a> ') : (($pr == ' ... ' || $pr == '')? '' : ' ... '));
   }
   print "</div>";
   }



   print "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/><a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br />";


break;

case 'action':
$time="14400"; // Смещение в секундах от Гринвича
$date=gmdate('d.m.Y H:i',time()+$time);
$q=mysql_query("select* from `action` order by `id`;");
echo "<div class='hr'></div><form action=\"admin.php?m=actiongo&amp;".session_name()."=".session_id()."\" method=\"post\">";
echo "<div class='hr'></div>Название акции:<br />";
echo "<input type=\"text\" name=\"name\" size=\"20\" class=\"main\"/><br/>";
echo "Дата окончания (13.08.2009 20:05):<br />";
echo "<input type=\"text\" value='".$date."' name=\"timekon\" size=\"20\" class=\"main\"/><br/>";
print "Текст акции:<br />";
print "<textarea name='text' class='main' maxlength='1000' type='text' cols='22' rows='4'></textarea><br/>";
print "<input type='submit' class='main' value='Добавить'/>";
echo "</form>";
print "<div class='hr'></div>";
 if (mysql_affected_rows()==0)
  {
   echo "Акций нет !!!<br />";
  }
  else
  {
   while($row=mysql_fetch_array($q))
   {
   print "<b>".base64_decode($row['name'])."</b><br />";
   print "".base64_decode($row['text'])."<br />";
   print "Начало: ".$row['timego']."<br />";
   print "Конец: ".$row['timekon']."<br />";
   if ($date==$row['timekon'] and $date>$row['timekon'])
   {
   print "Статус: <font color='red'>Завершена</font>";
   }
   else
   {
   print "Статус: <font color='green'>Активна</font>";
   }
   print "&nbsp;&nbsp;[<a href=\"admin.php?m=delaction&amp;id=".$row['id']."&amp;".session_name()."=".session_id()."\">del</a>]<div class='hr'></div>";
   }
  }
print "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/><a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br />";
break;

case 'delaction':
mysql_query("DELETE FROM `action` WHERE `id` = '".$_GET['id']."';");
print "<center>Операция выполнена !!!</center><br />";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>";

break;
case 'actiongo':
$time="14400"; // Смещение в секундах от Гринвича
$d=gmdate('d.m.Y H:i',time()+$time);
@mysql_query("INSERT INTO `action` SET `name`='".base64_encode($_POST['name'])."',`timekon`='".$_POST['timekon']."',`text`='".base64_encode($_POST['text'])."',`timego`='".$d."'");
print "<center>Операция выполнена !!!</center><br />";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";

break;


case 'bannersgo';
@mysql_query("INSERT INTO `banners` SET `link`='".$_POST['link']."',`linkimg`='".$_POST['linkimg']."',`banname`='".base64_encode($_POST['banname'])."',`mesto`='".$_POST['mesto']."'");
print "<center>Операция выполнена !!!</center><br />";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";

break;

case 'banners':
$num = $nummer;
if(empty($_GET['page']) || $_GET['page']<0)$_GET['page']=1;
$page = intval($_GET['page']);
$results = mysql_query("SELECT * FROM `banners`;");
$posts = mysql_num_rows($results);
$total = intval(($posts-1)/$num)+1;
if($page>$total) $page = $total;
$start = $page*$num-$num;


$q=mysql_query("select* from `banners` order by `id` DESC LIMIT $start, $num;");
echo "<div class='hr'></div><form action=\"admin.php?m=bannersgo&amp;".session_name()."=".session_id()."\" method=\"post\">";
echo "<div class='hr'></div>Ссылка:<br />";
echo "<input type=\"text\" value='http://' name=\"link\" size=\"20\" class=\"main\"/><br/>";
echo "Адрес картинки:<br />";
echo "<input type=\"text\" value='http://' name=\"linkimg\" size=\"20\" class=\"main\"/><br/>";
print "Имя картинки:<br />";
echo "<input type=\"text\" name=\"banname\" size=\"15\" class=\"main\"/><br/>";
print "Расположение:<br />";
print "<select name='mesto' class='main'><option value='0'>Главная низ</option><option value='1'>Прочие стр. низ</option></select><br />";
echo "<input class=\"main\" type=\"submit\" value=\"Добавить\"/></form>";
print "<div class='hr'></div>";
if(mysql_affected_rows()==0)
{
 echo "<div class='hr'></div><b>Пусто...</b><br/>";
}
else
{
$i =1;
while ($row=mysql_fetch_array($q))
{
print "".$i++.")&nbsp;";print "<a href='".$row['link']."'><img src='".$row['linkimg']."' alt='".base64_decode($row['banname'])."' /></a>";
if ($row['mesto']==0)print "&nbsp;<u>Расположен на главной внизу</u>";
elseif ($row['mesto']==1) print "&nbsp;<u>Расположен на других страницах внизу</u>";
echo "&nbsp;&nbsp;[<a href=\"admin.php?m=delbanners&amp;id=".$row['id']."&amp;".session_name()."=".session_id()."\">del</a>]<div class='hr'></div>";
}
print '<div class="str"><b>Стр:</b>';

$num_pages=ceil($posts/$num);
if($page>$num_pages || $page<1)
{
$page=1;
$start=0;
}
for($pr='', $i=1; $i<=$num_pages; $i++)
{
print $pr=(($i == 1 || $i == $num_pages || abs($i-$page) < 2) ? ($i == $page ? " <b>$i</b> " :
' <a href="'.$_SERVER['SCRIPT_NAME'].'?m=banners&amp;page='.$i.'&amp;'.session_name().'='.session_id().'">'.$i.'</a> ') : (($pr == ' ... ' || $pr == '')? '' : ' ... '));
}
 print "</div>";
}


print "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/><a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br />";

break;
case 'bannersgo';
@mysql_query("INSERT INTO `banners` SET `link`='".$_POST['link']."',`linkimg`='".$_POST['linkimg']."',`banname`='".base64_encode($_POST['banname'])."',`mesto`='".$_POST['mesto']."'");
print "<center>Операция выполнена !!!</center><br />";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";

break;
case 'delbanners';
mysql_query("DELETE FROM `banners` WHERE `id` = '".$_GET['id']."';");
print "<center>Операция выполнена !!!</center><br />";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>";
break;
case 'setoper':
print "<center>Цены в долларах !!!</center>";
echo "<form action=\"admin.php?m=operators&amp;".session_name()."=".session_id()."\" method=\"post\">";
echo "Мегафон:<br/>";
   echo "<input class='main' name=\"price1\" title=\"Цена\" value=\"".$op_bd['1_price']."\"/> ";
   echo "<select class='main' name=\"status1\">\n";
   $check='';
   if ($op_bd['1_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['1_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Билайн:<br/>";
   echo "<input class='main' name=\"price2\" title=\"Цена\" value=\"".$op_bd['2_price']."\"/> ";
   echo "<select class='main' name=\"status2\">\n";
   $check='';
   if ($op_bd['2_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['2_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Utel:<br/>";
   echo "<input class='main' name=\"price3\" title=\"Цена\" value=\"".$op_bd['3_price']."\"/> ";
   echo "<select class='main' name=\"status3\">\n";
   $check='';
   if ($op_bd['3_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['3_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "БайкалВестКом:<br/>";
   echo "<input class='main' name=\"price4\" title=\"Цена\" value=\"".$op_bd['4_price']."\"/> ";
   echo "<select class='main' name=\"status4\">\n";
   $check='';
   if ($op_bd['4_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['4_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "МТС:<br/>";
   echo "<input class='main' name=\"price5\" title=\"Цена\" value=\"".$op_bd['5_price']."\"/> ";
   echo "<select class='main' name=\"status5\">\n";
   $check='';
   if ($op_bd['5_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['5_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "TELE2:<br/>";
   echo "<input class='main' name=\"price6\" title=\"Цена\" value=\"".$op_bd['6_price']."\"/> ";
   echo "<select class='main' name=\"status6\">\n";
   $check='';
   if ($op_bd['6_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['6_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "МОТИВ:<br/>";
   echo "<input class='main' name=\"price7\" title=\"Цена\" value=\"".$op_bd['7_price']."\"/> ";
   echo "<select class='main' name=\"status7\">\n";
   $check='';
   if ($op_bd['7_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['7_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Енисейтелеком:<br/>";
   echo "<input class='main' name=\"price8\" title=\"Цена\" value=\"".$op_bd['8_price']."\"/> ";
   echo "<select class='main' name=\"status8\">\n";
   $check='';
   if ($op_bd['8_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['8_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "НСС:<br/>";
   echo "<input class='main' name=\"price9\" title=\"Цена\" value=\"".$op_bd['9_price']."\"/> ";
   echo "<select class='main' name=\"status9\">\n";
   $check='';
   if ($op_bd['9_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['9_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "СМАРТС:<br/>";
   echo "<input class='main' name=\"price10\" title=\"Цена\" value=\"".$op_bd['10_price']."\"/> ";
   echo "<select class='main' name=\"status10\">\n";
   $check='';
   if ($op_bd['10_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['10_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "СТЕК GSM:<br/>";
   echo "<input class='main' name=\"price11\" title=\"Цена\" value=\"".$op_bd['11_price']."\"/> ";
   echo "<select class='main' name=\"status11\">\n";
   $check='';
   if ($op_bd['11_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['11_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Татинком-Т:<br/>";
   echo "<input class='main' name=\"price12\" title=\"Цена\" value=\"".$op_bd['12_price']."\"/> ";
   echo "<select class='main' name=\"status12\">\n";
   $check='';
   if ($op_bd['12_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['12_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Ульяновск GSM:<br/>";
   echo "<input class='main' name=\"price13\" title=\"Цена\" value=\"".$op_bd['13_price']."\"/> ";
   echo "<select class='main' name=\"status13\">\n";
   $check='';
   if ($op_bd['13_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['13_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "НТК:<br/>";
   echo "<input class='main' name=\"price14\" title=\"Цена\" value=\"".$op_bd['14_price']."\"/> ";
   echo "<select class='main' name=\"status14\">\n";
   $check='';
   if ($op_bd['14_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['14_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "СКАЙЛИНК:<br/>";
   echo "<input class='main' name=\"price15\" title=\"Цена\" value=\"".$op_bd['15_price']."\"/> ";
   echo "<select class='main' name=\"status15\">\n";
   $check='';
   if ($op_bd['15_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['15_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Цифровая экспансия:<br/>";
   echo "<input class='main' name=\"price16\" title=\"Цена\" value=\"".$op_bd['16_price']."\"/> ";
   echo "<select class='main' name=\"status16\">\n";
   $check='';
   if ($op_bd['16_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['16_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "ИНДИГО:<br/>";
   echo "<input class='main' name=\"price17\" title=\"Цена\" value=\"".$op_bd['17_price']."\"/> ";
   echo "<select class='main' name=\"status17\">\n";
   $check='';
   if ($op_bd['17_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['17_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Emt (Эстония):<br/>";
   echo "<input class='main' name=\"price18\" title=\"Цена\" value=\"".$op_bd['18_price']."\"/> ";
   echo "<select class='main' name=\"status18\">\n";
   $check='';
   if ($op_bd['18_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['18_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Elisa (Эстония):<br/>";
   echo "<input class='main' name=\"price19\" title=\"Цена\" value=\"".$op_bd['19_price']."\"/> ";
   echo "<select class='main' name=\"status19\">\n";
   $check='';
   if ($op_bd['19_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['19_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Tele-2 (Эстония):<br/>";
   echo "<input class='main' name=\"price20\" title=\"Цена\" value=\"".$op_bd['20_price']."\"/> ";
   echo "<select class='main' name=\"status20\">\n";
   $check='';
   if ($op_bd['20_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['20_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Bite (Литва):<br/>";
   echo "<input class='main' name=\"price21\" title=\"Цена\" value=\"".$op_bd['21_price']."\"/> ";
   echo "<select class='main' name=\"status21\">\n";
   $check='';
   if ($op_bd['21_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['21_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Omnitel (Литва):<br/>";
   echo "<input class='main' name=\"price22\" title=\"Цена\" value=\"".$op_bd['22_price']."\"/> ";
   echo "<select class='main' name=\"status22\">\n";
   $check='';
   if ($op_bd['22_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['22_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Tele-2 (Литва):<br/>";
   echo "<input class='main' name=\"price23\" title=\"Цена\" value=\"".$op_bd['23_price']."\"/> ";
   echo "<select class='main' name=\"status23\">\n";
   $check='';
   if ($op_bd['23_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['23_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Tele-2 (Латвия):<br/>";
   echo "<input class='main' name=\"price24\" title=\"Цена\" value=\"".$op_bd['24_price']."\"/> ";
   echo "<select class='main' name=\"status24\">\n";
   $check='';
   if ($op_bd['24_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['24_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Lmt (Латвия):<br/>";
   echo "<input class='main' name=\"price25\" title=\"Цена\" value=\"".$op_bd['25_price']."\"/> ";
   echo "<select class='main' name=\"status25\">\n";
   $check='';
   if ($op_bd['25_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['25_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Киевстар:<br/>";
   echo "<input class='main' name=\"price26\" title=\"Цена\" value=\"".$op_bd['26_price']."\"/> ";
   echo "<select class='main' name=\"status26\">\n";
   $check='';
   if ($op_bd['26_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['26_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "UMC:<br/>";
   echo "<input class='main' name=\"price27\" title=\"Цена\" value=\"".$op_bd['27_price']."\"/> ";
   echo "<select class='main' name=\"status27\">\n";
   $check='';
   if ($op_bd['27_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['27_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "life:):<br/>";
   echo "<input class='main' name=\"price28\" title=\"Цена\" value=\"".$op_bd['28_price']."\"/> ";
   echo "<select class='main' name=\"status28\">\n";
   $check='';
   if ($op_bd['28_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['28_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "WellCOM (Билайн):<br/>";
   echo "<input class='main' name=\"price29\" title=\"Цена\" value=\"".$op_bd['29_price']."\"/> ";
   echo "<select class='main' name=\"status29\">\n";
   $check='';
   if ($op_bd['29_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['29_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "KCELL:<br/>";
   echo "<input class='main' name=\"price30\" title=\"Цена\" value=\"".$op_bd['30_price']."\"/> ";
   echo "<select class='main' name=\"status30\">\n";
   $check='';
   if ($op_bd['30_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['30_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Прибалтийские операторы:<br/>";
   echo "<input class='main' name=\"price31\" title=\"Цена\" value=\"".$op_bd['31_price']."\"/> ";
   echo "<select class='main' name=\"status31\">\n";
   $check='';
   if ($op_bd['31_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['31_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Opera Mini:<br/>";
   echo "<input class='main' name=\"price32\" title=\"Цена\" value=\"".$op_bd['32_price']."\"/> ";
   echo "<select class='main' name=\"status32\">\n";
   $check='';
   if ($op_bd['32_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['32_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Beeline (Казахстан):<br/>";
   echo "<input class='main' name=\"price33\" title=\"Цена\" value=\"".$op_bd['33_price']."\"/> ";
   echo "<select class='main' name=\"status33\">\n";
   $check='';
   if ($op_bd['33_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['33_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Экстел GSM:<br/>";
   echo "<input class='main' name=\"price34\" title=\"Цена\" value=\"".$op_bd['34_price']."\"/> ";
   echo "<select class='main' name=\"status34\">\n";
   $check='';
   if ($op_bd['34_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['34_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Babilon GSM (Таджикистан):<br/>";
   echo "<input class='main' name=\"price35\" title=\"Цена\" value=\"".$op_bd['35_price']."\"/> ";
   echo "<select class='main' name=\"status35\">\n";
   $check='';
   if ($op_bd['35_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['35_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "БеСТ (Беларусь):<br/>";
   echo "<input class='main' name=\"price36\" title=\"Цена\" value=\"".$op_bd['36_price']."\"/> ";
   echo "<select class='main' name=\"status36\">\n";
   $check='';
   if ($op_bd['36_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['36_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Сотовая Связь Улан-Уде (Россия):<br/>";
   echo "<input class='main' name=\"price37\" title=\"Цена\" value=\"".$op_bd['37_price']."\"/> ";
   echo "<select class='main' name=\"status37\">\n";
   $check='';
   if ($op_bd['37_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['37_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "AQUAFON Абхазия-GSM (Россия):<br/>";
   echo "<input class='main' name=\"price38\" title=\"Цена\" value=\"".$op_bd['38_price']."\"/> ";
   echo "<select class='main' name=\"status38\">\n";
   $check='';
   if ($op_bd['38_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['38_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "MegaCom KG (Киргизия):<br/>";

   echo "<input class='main' name=\"price39\" title=\"Цена\" value=\"".$op_bd['39_price']."\"/> ";
   echo "<select class='main' name=\"status39\">\n";
   $check='';
   if ($op_bd['39_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['39_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Kyrgyztelecom (Киргизия):<br/>";
   echo "<input class='main' name=\"price40\" title=\"Цена\" value=\"".$op_bd['40_price']."\"/> ";
   echo "<select class='main' name=\"status40\">\n";
   $check='';
   if ($op_bd['40_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['40_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "BiTel (Киргизия):<br/>";
   echo "<input class='main' name=\"price41\" title=\"Цена\" value=\"".$op_bd['41_price']."\"/> ";
   echo "<select class='main' name=\"status41\">\n";
   $check='';
   if ($op_bd['41_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['41_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "ON GSM (Россия):<br/>";
   echo "<input class='main' name=\"price42\" title=\"Цена\" value=\"".$op_bd['42_price']."\"/> ";
   echo "<select class='main' name=\"status42\">\n";
   $check='';
   if ($op_bd['42_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['42_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "VELCOM (Белорусь):<br/>";
   echo "<input class='main' name=\"price43\" title=\"Цена\" value=\"".$op_bd['43_price']."\"/> ";
   echo "<select class='main' name=\"status43\">\n";
   $check='';
   if ($op_bd['43_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['43_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Алтайсвязь (Россия):<br/>";
   echo "<input class='main' name=\"price44\" title=\"Цена\" value=\"".$op_bd['44_price']."\"/> ";
   echo "<select class='main' name=\"status44\">\n";
   $check='';
   if ($op_bd['44_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['44_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Тамбов GSM (Россия):<br/>";
   echo "<input class='main' name=\"price45\" title=\"Цена\" value=\"".$op_bd['45_price']."\"/> ";
   echo "<select class='main' name=\"status45\">\n";
   $check='';
   if ($op_bd['45_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['45_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "БашСел (Россия):<br/>";
   echo "<input class='main' name=\"price46\" title=\"Цена\" value=\"".$op_bd['46_price']."\"/> ";
   echo "<select class='main' name=\"status46\">\n";
   $check='';
   if ($op_bd['46_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['46_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "ДальСвязь (Россия):<br/>";
   echo "<input class='main' name=\"price47\" title=\"Цена\" value=\"".$op_bd['47_price']."\"/> ";
   echo "<select class='main' name=\"status47\">\n";
   $check='';
   if ($op_bd['47_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['47_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Оренбург GSM (Россия):<br/>";
   echo "<input class='main' name=\"price48\" title=\"Цена\" value=\"".$op_bd['48_price']."\"/> ";
   echo "<select class='main' name=\"status48\">\n";
   $check='';
   if ($op_bd['48_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['48_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Скай Мобайл (Россия):<br/>";
   echo "<input class='main' name=\"price49\" title=\"Цена\" value=\"".$op_bd['49_price']."\"/> ";
   echo "<select class='main' name=\"status49\">\n";
   $check='';
   if ($op_bd['49_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['49_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "УралСвязьИнформ (Россия):<br/>";
   echo "<input class='main' name=\"price50\" title=\"Цена\" value=\"".$op_bd['50_price']."\"/> ";
   echo "<select class='main' name=\"status50\">\n";
   $check='';
   if ($op_bd['50_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['50_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "MLT (Tаджикистан):<br/>";
   echo "<input class='main' name=\"price51\" title=\"Цена\" value=\"".$op_bd['51_price']."\"/> ";
   echo "<select class='main' name=\"status51\">\n";
   $check='';
   if ($op_bd['51_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['51_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "BiMoCom:<br/>";
   echo "<input class='main' name=\"price52\" title=\"Цена\" value=\"".$op_bd['52_price']."\"/> ";
   echo "<select class='main' name=\"status52\">\n";
   $check='';
   if ($op_bd['52_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['52_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "K-Mobile:<br/>";
   echo "<input class='main' name=\"price53\" title=\"Цена\" value=\"".$op_bd['53_price']."\"/> ";
   echo "<select class='main' name=\"status53\">\n";
   $check='';
   if ($op_bd['53_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['53_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "MTN (ЮАР):<br/>";
   echo "<input class='main' name=\"price54\" title=\"Цена\" value=\"".$op_bd['54_price']."\"/> ";
   echo "<select class='main' name=\"status54\">\n";
   $check='';
   if ($op_bd['54_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['54_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Cell (ЮАР):<br/>";
   echo "<input class='main' name=\"price55\" title=\"Цена\" value=\"".$op_bd['55_price']."\"/> ";
   echo "<select class='main' name=\"status55\">\n";
   $check='';
   if ($op_bd['55_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['55_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Vodacom (ЮАР):<br/>";
   echo "<input class='main' name=\"price56\" title=\"Цена\" value=\"".$op_bd['56_price']."\"/> ";
   echo "<select class='main' name=\"status56\">\n";
   $check='';
   if ($op_bd['56_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['56_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Magticom (Грузия):<br/>";
   echo "<input class='main' name=\"price57\" title=\"Цена\" value=\"".$op_bd['57_price']."\"/> ";
   echo "<select class='main' name=\"status57\">\n";
   $check='';
   if ($op_bd['57_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['57_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Geocell (Грузия):<br/>";
   echo "<input class='main' name=\"price58\" title=\"Цена\" value=\"".$op_bd['58_price']."\"/> ";
   echo "<select class='main' name=\"status58\">\n";
   $check='';
   if ($op_bd['58_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['58_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Orange (Израиль):<br/>";
   echo "<input class='main' name=\"price59\" title=\"Цена\" value=\"".$op_bd['59_price']."\"/> ";
   echo "<select class='main' name=\"status59\">\n";
   $check='';
   if ($op_bd['59_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['59_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Cellcom (Израиль):<br/>";
   echo "<input class='main' name=\"price60\" title=\"Цена\" value=\"".$op_bd['60_price']."\"/> ";
   echo "<select class='main' name=\"status60\">\n";
   $check='';
   if ($op_bd['60_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['60_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Voxtel GSM (Молдова):<br/>";
   echo "<input class='main' name=\"price61\" title=\"Цена\" value=\"".$op_bd['61_price']."\"/> ";
   echo "<select class='main' name=\"status61\">\n";
   $check='';
   if ($op_bd['61_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['61_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Moldcell (Молдова):<br/>";
   echo "<input class='main' name=\"price62\" title=\"Цена\" value=\"".$op_bd['62_price']."\"/> ";
   echo "<select class='main' name=\"status62\">\n";
   $check='';
   if ($op_bd['62_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['62_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "GLOBUL (Болгария):<br/>";
   echo "<input class='main' name=\"price63\" title=\"Цена\" value=\"".$op_bd['63_price']."\"/> ";
   echo "<select class='main' name=\"status63\">\n";
   $check='';
   if ($op_bd['63_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['6_3status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "M-TEL GSM (Болгария):<br/>";
   echo "<input class='main' name=\"price64\" title=\"Цена\" value=\"".$op_bd['64_price']."\"/> ";
   echo "<select class='main' name=\"status64\">\n";
   $check='';
   if ($op_bd['64_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['64_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "China Mobile (Китай):<br/>";
   echo "<input class='main' name=\"price65\" title=\"Цена\" value=\"".$op_bd['65_price']."\"/> ";
   echo "<select class='main' name=\"status65\">\n";
   $check='';
   if ($op_bd['65_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['65_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Orange (Румыния):<br/>";
   echo "<input class='main' name=\"price66\" title=\"Цена\" value=\"".$op_bd['66_price']."\"/> ";
   echo "<select class='main' name=\"status66\">\n";
   $check='';
   if ($op_bd['66_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['66_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Vodafone (Румыния):<br/>";
   echo "<input class='main' name=\"price67\" title=\"Цена\" value=\"".$op_bd['67_price']."\"/> ";
   echo "<select class='main' name=\"status67\">\n";
   $check='';
   if ($op_bd['67_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['67_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Indosat (Индонезия):<br/>";
   echo "<input class='main' name=\"price68\" title=\"Цена\" value=\"".$op_bd['68_price']."\"/> ";
   echo "<select class='main' name=\"status68\">\n";
   $check='';
   if ($op_bd['68_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['68_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "proXL (Индонезия):<br/>";
   echo "<input class='main' name=\"price69\" title=\"Цена\" value=\"".$op_bd['69_price']."\"/> ";
   echo "<select class='main' name=\"status69\">\n";
   $check='';
   if ($op_bd['69_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['69_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "T-SEL (Индонезия):<br/>";
   echo "<input class='main' name=\"price70\" title=\"Цена\" value=\"".$op_bd['70_price']."\"/> ";
   echo "<select class='main' name=\"status70\">\n";
   $check='';
   if ($op_bd['70_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['70_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Orange (Франция):<br/>";
   echo "<input class='main' name=\"price71\" title=\"Цена\" value=\"".$op_bd['71_price']."\"/> ";
   echo "<select class='main' name=\"status71\">\n";
   $check='';
   if ($op_bd['71_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['71_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "SFR (Франция):<br/>";
   echo "<input class='main' name=\"price72\" title=\"Цена\" value=\"".$op_bd['72_price']."\"/> ";
   echo "<select class='main' name=\"status72\">\n";
   $check='';
   if ($op_bd['72_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['72_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Bouygues Telecom (Франция):<br/>";
   echo "<input class='main' name=\"price73\" title=\"Цена\" value=\"".$op_bd['73_price']."\"/> ";
   echo "<select class='main' name=\"status73\">\n";
   $check='';
   if ($op_bd['73_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['73_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Orange (Великобритания):<br/>";
   echo "<input class='main' name=\"price74\" title=\"Цена\" value=\"".$op_bd['74_price']."\"/> ";
   echo "<select class='main' name=\"status74\">\n";
   $check='';
   if ($op_bd['74_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['74_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "O2 (Великобритания):<br/>";
   echo "<input class='main' name=\"price75\" title=\"Цена\" value=\"".$op_bd['75_price']."\"/> ";
   echo "<select class='main' name=\"status75\">\n";
   $check='';
   if ($op_bd['75_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['75_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "T-Mobile (Великобритания):<br/>";
   echo "<input class='main' name=\"price76\" title=\"Цена\" value=\"".$op_bd['76_price']."\"/> ";
   echo "<select class='main' name=\"status76\">\n";
   $check='';
   if ($op_bd['76_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['76_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Dishnet (Индия):<br/>";
   echo "<input class='main' name=\"price77\" title=\"Цена\" value=\"".$op_bd['77_price']."\"/> ";
   echo "<select class='main' name=\"status77\">\n";
   $check='';
   if ($op_bd['77_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['77_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Vodafone (Великобритания):<br/>";
   echo "<input class='main' name=\"price78\" title=\"Цена\" value=\"".$op_bd['78_price']."\"/> ";
   echo "<select class='main' name=\"status78\">\n";
   $check='';
   if ($op_bd['78_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['78_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "HUTCH (Индия:<br/>";
   echo "<input class='main' name=\"price79\" title=\"Цена\" value=\"".$op_bd['79_price']."\"/> ";
   echo "<select class='main' name=\"status79\">\n";
   $check='';
   if ($op_bd['79_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['79_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "idEA (Индия):<br/>";
   echo "<input class='main' name=\"price80\" title=\"Цена\" value=\"".$op_bd['80_price']."\"/> ";
   echo "<select class='main' name=\"status80\">\n";
   $check='';
   if ($op_bd['80_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['80_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "MTNL (Индия):<br/>";
   echo "<input class='main' name=\"price81\" title=\"Цена\" value=\"".$op_bd['81_price']."\"/> ";
   echo "<select class='main' name=\"status81\">\n";
   $check='';
   if ($op_bd['81_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['81_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "АКОС (Россия):<br/>";
   echo "<input class='main' name=\"price82\" title=\"Цена\" value=\"".$op_bd['82_price']."\"/> ";
   echo "<select class='main' name=\"status82\">\n";
   $check='';
   if ($op_bd['82_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['82_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Airtel (Индия):<br/>";
   echo "<input class='main' name=\"price83\" title=\"Цена\" value=\"".$op_bd['83_price']."\"/> ";
   echo "<select class='main' name=\"status83\">\n";
   $check='';
   if ($op_bd['83_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['83_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Vodafone (Италия):<br/>";
   echo "<input class='main' name=\"price84\" title=\"Цена\" value=\"".$op_bd['84_price']."\"/> ";
   echo "<select class='main' name=\"status84\">\n";
   $check='';
   if ($op_bd['84_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['84_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Telecom Italia Mobile (Италия):<br/>";
   echo "<input class='main' name=\"price85\" title=\"Цена\" value=\"".$op_bd['85_price']."\"/> ";
   echo "<select class='main' name=\"status85\">\n";
   $check='';
   if ($op_bd['85_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['85_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "T-Mobile (США):<br/>";
   echo "<input class='main' name=\"price86\" title=\"Цена\" value=\"".$op_bd['86_price']."\"/> ";
   echo "<select class='main' name=\"status86\">\n";
   $check='';
   if ($op_bd['86_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['86_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "AT T (США):<br/>";
   echo "<input class='main' name=\"price87\" title=\"Цена\" value=\"".$op_bd['87_price']."\"/> ";
   echo "<select class='main' name=\"status87\">\n";
   $check='';
   if ($op_bd['87_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['87_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Mobilkom (Австрия):<br/>";
   echo "<input class='main' name=\"price88\" title=\"Цена\" value=\"".$op_bd['88_price']."\"/> ";
   echo "<select class='main' name=\"status88\">\n";
   $check='';
   if ($op_bd['88_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['88_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Azercell Telecom (Aзербайджан):<br/>";
   echo "<input class='main' name=\"price89\" title=\"Цена\" value=\"".$op_bd['89_price']."\"/> ";
   echo "<select class='main' name=\"status89\">\n";
   $check='';
   if ($op_bd['89_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['89_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Bakcell (Aзербайджан):<br/>";
   echo "<input class='main' name=\"price90\" title=\"Цена\" value=\"".$op_bd['90_price']."\"/> ";
   echo "<select class='main' name=\"status90\">\n";
   $check='';
   if ($op_bd['90_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['90_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Nar Mobile (Aзебайджан):<br/>";
   echo "<input class='main' name=\"price91\" title=\"Цена\" value=\"".$op_bd['91_price']."\"/> ";
   echo "<select class='main' name=\"status91\">\n";
   $check='';
   if ($op_bd['91_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['91_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Topnet 3G (Сербия и Черногория):<br/>";
   echo "<input class='main' name=\"price92\" title=\"Цена\" value=\"".$op_bd['92_price']."\"/> ";
   echo "<select class='main' name=\"status92\">\n";
   $check='';
   if ($op_bd['92_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['92_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "TELEKOM SRBIJA (Сербия и Черногория):<br/>";
   echo "<input class='main' name=\"price93\" title=\"Цена\" value=\"".$op_bd['93_price']."\"/> ";
   echo "<select class='main' name=\"status93\">\n";
   $check='';
   if ($op_bd['93_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['93_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "MOBTEL (Югославия):<br/>";
   echo "<input class='main' name=\"price94\" title=\"Цена\" value=\"".$op_bd['94_price']."\"/> ";
   echo "<select class='main' name=\"status94\">\n";
   $check='';
   if ($op_bd['94_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['94_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Vodafone (Ирландия):<br/>";
   echo "<input class='main' name=\"price95\" title=\"Цена\" value=\"".$op_bd['95_price']."\"/> ";
   echo "<select class='main' name=\"status95\">\n";
   $check='';
   if ($op_bd['95_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['95_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Vipnet (Хорватия):<br/>";
   echo "<input class='main' name=\"price96\" title=\"Цена\" value=\"".$op_bd['96_price']."\"/> ";
   echo "<select class='main' name=\"status96\">\n";
   $check='';
   if ($op_bd['96_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['96_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Vivacell (Армения):<br/>";
   echo "<input class='main' name=\"price97\" title=\"Цена\" value=\"".$op_bd['97_price']."\"/> ";
   echo "<select class='main' name=\"status97\">\n";
   $check='';
   if ($op_bd['97_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['97_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "E-Plus (Германия):<br/>";
   echo "<input class='main' name=\"price98\" title=\"Цена\" value=\"".$op_bd['98_price']."\"/> ";
   echo "<select class='main' name=\"status98\">\n";
   $check='';
   if ($op_bd['98_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['98_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "O2 DE (Германия):<br/>";
   echo "<input class='main' name=\"price99\" title=\"Цена\" value=\"".$op_bd['99_price']."\"/> ";
   echo "<select class='main' name=\"status99\">\n";
   $check='';
   if ($op_bd['99_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['99_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "T-Mobile DE (Германия):<br/>";
   echo "<input class='main' name=\"price100\" title=\"Цена\" value=\"".$op_bd['100_price']."\"/> ";
   echo "<select class='main' name=\"status100\">\n";
   $check='';
   if ($op_bd['100_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['100_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";
echo "<input class=\"main\" type=\"submit\" value=\"Изменить\"/>";
echo "</form>";

break;

case 'operators':
   @mysql_query("UPDATE `operators` SET `1_status`='".intval($status1)."',`1_price`='".intval($price1)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `2_status`='".intval($status2)."',`2_price`='".intval($price2)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `3_status`='".intval($status3)."',`3_price`='".intval($price3)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `4_status`='".intval($status4)."',`4_price`='".intval($price4)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `5_status`='".intval($status5)."',`5_price`='".intval($price5)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `6_status`='".intval($status6)."',`6_price`='".intval($price6)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `7_status`='".intval($status7)."',`7_price`='".intval($price7)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `8_status`='".intval($status8)."',`8_price`='".intval($price8)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `9_status`='".intval($status9)."',`9_price`='".intval($price9)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `10_status`='".intval($status10)."',`10_price`='".intval($price10)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `11_status`='".intval($status11)."',`11_price`='".intval($price11)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `12_status`='".intval($status12)."',`12_price`='".intval($price12)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `13_status`='".intval($status13)."',`13_price`='".intval($price13)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `14_status`='".intval($status14)."',`14_price`='".intval($price14)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `15_status`='".intval($status15)."',`15_price`='".intval($price15)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `16_status`='".intval($status16)."',`16_price`='".intval($price16)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `17_status`='".intval($status17)."',`17_price`='".intval($price17)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `18_status`='".intval($status18)."',`18_price`='".intval($price18)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `19_status`='".intval($status19)."',`19_price`='".intval($price19)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `20_status`='".intval($status20)."',`20_price`='".intval($price20)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `21_status`='".intval($status21)."',`21_price`='".intval($price21)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `22_status`='".intval($status22)."',`22_price`='".intval($price22)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `23_status`='".intval($status23)."',`23_price`='".intval($price23)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `24_status`='".intval($status24)."',`24_price`='".intval($price24)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `25_status`='".intval($status25)."',`25_price`='".intval($price25)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `26_status`='".intval($status26)."',`26_price`='".intval($price26)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `27_status`='".intval($status27)."',`27_price`='".intval($price27)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `28_status`='".intval($status28)."',`28_price`='".intval($price28)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `29_status`='".intval($status29)."',`29_price`='".intval($price29)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `30_status`='".intval($status30)."',`30_price`='".intval($price30)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `31_status`='".intval($status31)."',`31_price`='".intval($price31)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `32_status`='".intval($status32)."',`32_price`='".intval($price32)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `33_status`='".intval($status33)."',`33_price`='".intval($price33)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `34_status`='".intval($status34)."',`34_price`='".intval($price34)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `35_status`='".intval($status35)."',`35_price`='".intval($price35)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `36_status`='".intval($status36)."',`36_price`='".intval($price36)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `37_status`='".intval($status37)."',`37_price`='".intval($price37)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `38_status`='".intval($status38)."',`38_price`='".intval($price38)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `39_status`='".intval($status39)."',`39_price`='".intval($price39)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `40_status`='".intval($status40)."',`40_price`='".intval($price40)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `41_status`='".intval($status41)."',`41_price`='".intval($price41)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `42_status`='".intval($status42)."',`42_price`='".intval($price42)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `43_status`='".intval($status43)."',`43_price`='".intval($price43)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `44_status`='".intval($status44)."',`44_price`='".intval($price44)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `45_status`='".intval($status45)."',`45_price`='".intval($price45)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `46_status`='".intval($status46)."',`46_price`='".intval($price46)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `47_status`='".intval($status47)."',`47_price`='".intval($price47)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `48_status`='".intval($status48)."',`48_price`='".intval($price48)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `49_status`='".intval($status49)."',`49_price`='".intval($price49)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `50_status`='".intval($status50)."',`50_price`='".intval($price50)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `51_status`='".intval($status51)."',`51_price`='".intval($price51)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `52_status`='".intval($status52)."',`52_price`='".intval($price52)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `53_status`='".intval($status53)."',`53_price`='".intval($price53)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `54_status`='".intval($status54)."',`54_price`='".intval($price54)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `55_status`='".intval($status55)."',`55_price`='".intval($price55)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `56_status`='".intval($status56)."',`56_price`='".intval($price56)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `57_status`='".intval($status57)."',`57_price`='".intval($price57)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `58_status`='".intval($status58)."',`58_price`='".intval($price58)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `59_status`='".intval($status59)."',`59_price`='".intval($price59)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `60_status`='".intval($status60)."',`60_price`='".intval($price60)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `61_status`='".intval($status61)."',`61_price`='".intval($price61)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `62_status`='".intval($status62)."',`62_price`='".intval($price62)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `63_status`='".intval($status63)."',`63_price`='".intval($price63)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `64_status`='".intval($status64)."',`64_price`='".intval($price64)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `65_status`='".intval($status65)."',`65_price`='".intval($price65)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `66_status`='".intval($status66)."',`66_price`='".intval($price66)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `67_status`='".intval($status67)."',`67_price`='".intval($price67)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `68_status`='".intval($status68)."',`68_price`='".intval($price68)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `69_status`='".intval($status69)."',`69_price`='".intval($price69)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `70_status`='".intval($status70)."',`70_price`='".intval($price70)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `71_status`='".intval($status71)."',`71_price`='".intval($price71)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `72_status`='".intval($status72)."',`72_price`='".intval($price72)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `73_status`='".intval($status73)."',`73_price`='".intval($price73)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `74_status`='".intval($status74)."',`74_price`='".intval($price74)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `75_status`='".intval($status75)."',`75_price`='".intval($price75)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `76_status`='".intval($status76)."',`76_price`='".intval($price76)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `77_status`='".intval($status77)."',`77_price`='".intval($price77)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `78_status`='".intval($status78)."',`78_price`='".intval($price78)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `79_status`='".intval($status79)."',`79_price`='".intval($price79)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `80_status`='".intval($status80)."',`80_price`='".intval($price80)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `81_status`='".intval($status81)."',`81_price`='".intval($price81)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `82_status`='".intval($status82)."',`82_price`='".intval($price82)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `83_status`='".intval($status83)."',`83_price`='".intval($price83)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `84_status`='".intval($status84)."',`84_price`='".intval($price84)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `85_status`='".intval($status85)."',`85_price`='".intval($price85)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `86_status`='".intval($status86)."',`86_price`='".intval($price86)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `87_status`='".intval($status87)."',`87_price`='".intval($price87)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `88_status`='".intval($status88)."',`88_price`='".intval($price88)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `89_status`='".intval($status89)."',`89_price`='".intval($price89)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `90_status`='".intval($status90)."',`90_price`='".intval($price90)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `91_status`='".intval($status91)."',`91_price`='".intval($price91)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `92_status`='".intval($status92)."',`92_price`='".intval($price92)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `93_status`='".intval($status93)."',`93_price`='".intval($price93)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `94_status`='".intval($status94)."',`94_price`='".intval($price94)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `95_status`='".intval($status95)."',`95_price`='".intval($price95)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `96_status`='".intval($status96)."',`96_price`='".intval($price96)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `97_status`='".intval($status97)."',`97_price`='".intval($price97)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `98_status`='".intval($status98)."',`98_price`='".intval($price98)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `99_status`='".intval($status99)."',`99_price`='".intval($price99)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `100_status`='".intval($status100)."',`100_price`='".intval($price100)."' where `id`='1'");
print "<center>Изменено !!!</center>";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";
break;
case 'op':
print "<center>Цены в долларах !!!</center>";
echo "<form action=\"admin.php?m=oper&amp;".session_name()."=".session_id()."\" method=\"post\">";
echo "Vodafone DE (Германия):<br/>";
   echo "<input class='main' name=\"price101\" title=\"Цена\" value=\"".$op_bd['101_price']."\"/> ";
   echo "<select class='main' name=\"status101\">\n";
   $check='';
   if ($op_bd['101_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['101_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "WIND (Италия):<br/>";
   echo "<input class='main' name=\"price102\" title=\"Цена\" value=\"".$op_bd['102_price']."\"/> ";
   echo "<select class='main' name=\"status102\">\n";
   $check='';
   if ($op_bd['102_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['102_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Eventis (Молдавия):<br/>";
   echo "<input class='main' name=\"price103\" title=\"Цена\" value=\"".$op_bd['103_price']."\"/> ";
   echo "<select class='main' name=\"status103\">\n";
   $check='';
   if ($op_bd['103_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['103_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Vodafone (Испания):<br/>";
   echo "<input class='main' name=\"price104\" title=\"Цена\" value=\"".$op_bd['104_price']."\"/> ";
   echo "<select class='main' name=\"status104\">\n";
   $check='';
   if ($op_bd['104_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['104_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Orange (Испания):<br/>";
   echo "<input class='main' name=\"price105\" title=\"Цена\" value=\"".$op_bd['105_price']."\"/> ";
   echo "<select class='main' name=\"status105\">\n";
   $check='';
   if ($op_bd['105_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['105_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Euskaltel (Испания):<br/>";
   echo "<input class='main' name=\"price106\" title=\"Цена\" value=\"".$op_bd['106_price']."\"/> ";
   echo "<select class='main' name=\"status106\">\n";
   $check='';
   if ($op_bd['106_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['106_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "R (Испания):<br/>";
   echo "<input class='main' name=\"price107\" title=\"Цена\" value=\"".$op_bd['107_price']."\"/> ";
   echo "<select class='main' name=\"status107\">\n";
   $check='';
   if ($op_bd['107_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['107_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Telecable (Испания):<br/>";
   echo "<input class='main' name=\"price108\" title=\"Цена\" value=\"".$op_bd['108_price']."\"/> ";
   echo "<select class='main' name=\"status108\">\n";
   $check='';
   if ($op_bd['108_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['108_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "KPN (Голландия):<br/>";
   echo "<input class='main' name=\"price109\" title=\"Цена\" value=\"".$op_bd['109_price']."\"/> ";
   echo "<select class='main' name=\"status109\">\n";
   $check='';
   if ($op_bd['109_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['109_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "T-Mobile (Голландия):<br/>";
   echo "<input class='main' name=\"price110\" title=\"Цена\" value=\"".$op_bd['110_price']."\"/> ";
   echo "<select class='main' name=\"status110\">\n";
   $check='';
   if ($op_bd['110_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['110_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Vodafone (Голландия):<br/>";
   echo "<input class='main' name=\"price111\" title=\"Цена\" value=\"".$op_bd['111_price']."\"/> ";
   echo "<select class='main' name=\"status111\">\n";
   $check='';
   if ($op_bd['111_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['111_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Orange (Голландия):<br/>";
   echo "<input class='main' name=\"price112\" title=\"Цена\" value=\"".$op_bd['112_price']."\"/> ";
   echo "<select class='main' name=\"status112\">\n";
   $check='';
   if ($op_bd['112_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['112_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Telfort (Голландия):<br/>";
   echo "<input class='main' name=\"price113\" title=\"Цена\" value=\"".$op_bd['113_price']."\"/> ";
   echo "<select class='main' name=\"status113\">\n";
   $check='';
   if ($op_bd['113_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['113_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Tele2 (Голландия):<br/>";
   echo "<input class='main' name=\"price114\" title=\"Цена\" value=\"".$op_bd['114_price']."\"/> ";
   echo "<select class='main' name=\"status114\">\n";
   $check='';
   if ($op_bd['114_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['114_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "O2 (Чехия):<br/>";
   echo "<input class='main' name=\"price115\" title=\"Цена\" value=\"".$op_bd['115_price']."\"/> ";
   echo "<select class='main' name=\"status115\">\n";
   $check='';
   if ($op_bd['115_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['115_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "T-Mobile (Чехия):<br/>";
   echo "<input class='main' name=\"price116\" title=\"Цена\" value=\"".$op_bd['116_price']."\"/> ";
   echo "<select class='main' name=\"status116\">\n";
   $check='';
   if ($op_bd['116_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['116_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";

   echo "Компы:<br/>";
   echo "<input class='main' name=\"price117\" title=\"Цена\" value=\"".$op_bd['117_price']."\"/> ";
   echo "<select class='main' name=\"status117\">\n";
   $check='';
   if ($op_bd['117_status']==1){$check=' selected="selected"';}
    echo "<option$check value=\"1\">Вкл</option>\n";
   $check='';
   if ($op_bd['117_status']==0){$check=' selected="selected"';}
    echo "<option$check value=\"0\">Выкл</option>\n";
   $check='';
   echo "</select><br />\n";
echo "<input class=\"main\" type=\"submit\" value=\"Изменить\"/>";
echo "</form>";
break;

case 'oper':
@mysql_query("UPDATE `operators` SET `101_status`='".intval($status101)."',`101_price`='".intval($price101)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `102_status`='".intval($status102)."',`102_price`='".intval($price102)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `103_status`='".intval($status103)."',`103_price`='".intval($price103)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `104_status`='".intval($status104)."',`104_price`='".intval($price104)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `105_status`='".intval($status105)."',`105_price`='".intval($price105)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `106_status`='".intval($status106)."',`106_price`='".intval($price106)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `107_status`='".intval($status107)."',`107_price`='".intval($price107)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `108_status`='".intval($status108)."',`108_price`='".intval($price108)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `109_status`='".intval($status109)."',`109_price`='".intval($price109)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `110_status`='".intval($status110)."',`110_price`='".intval($price110)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `111_status`='".intval($status111)."',`111_price`='".intval($price111)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `112_status`='".intval($status112)."',`112_price`='".intval($price112)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `113_status`='".intval($status113)."',`113_price`='".intval($price113)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `114_status`='".intval($status114)."',`114_price`='".intval($price114)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `115_status`='".intval($status115)."',`115_price`='".intval($price115)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `116_status`='".intval($status116)."',`116_price`='".intval($price116)."' where `id`='1'");
   @mysql_query("UPDATE `operators` SET `117_status`='".intval($_POST['status117'])."',`117_price`='".intval($_POST['price117'])."' where `id`='1'");
print "<center>Изменено !!!</center>";
echo "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"admin.php?".session_name()."=".session_id()."\">Админка</a><br/>\n";

break;
}

print "<img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"enter.php?".session_name()."=".session_id()."\">Панель</a><div class='hr'></div></div>";
include "style/".$autorize['skin']."/foot2.php";
}
else
{
print "</center>Ошибка входа !!!";
print "<br /><img src=\"style/".$autorize['skin']."/home.png\" alt=\"*\"/>";echo "<a href=\"enter.php?".session_name()."=".session_id()."\">Панель</a><div class='hr'></div>";
include "style/".$autorize['skin']."/foot2.php";
}
?>