<?require ('header.php');?>
<div class="menucenter">
<?
if(!isset($_SESSION["username"]) && !isset($_SESSION["password"])){
	echo '<div class=error>Ошибка! Для доступа к данной странице необходимо зарегистрироваться!</div>';
	include('footer.php');
	exit();
}
//Настройки
$wmid_cab = $duser["wmid"];
//Динамические ссылки             //Мини ссылки
$time_d[20] = 0;                  $time_m[5] = 0.012;
$time_d[25] = 3;                  $time_m[10] = 0.017;
$time_d[30] = 6;                  $time_m[15] = 0.022;
$time_d[35] = 9;
$time_d[40] = 12;
$activ_d[1] = 0.005;              $activ_m[1] = 0.005;

$mon_d_p = 0.023;
$plan_c[1] = 100;                 $plan_mc[1] = 100; //Показов
$plan_c[2] = 200;                 $plan_mc[2] = 200;
$plan_c[3] = 300;                 $plan_mc[3] = 300;
$plan_c[4] = 500;                 $plan_mc[4] = 500;
$plan_c[5] = 1000;                $plan_mc[5] = 1000;
$plan_c[6] = 5000;                $plan_mc[6] = 1500;

//Баннер 468х60                   //Баннер 100х100
$mon_b_p = 3;                    $mon_b1_p = 2.5; //Цена
$plan_bc[1] = 1;                 $plan_b1c[1] = 1; //Дней
$plan_bc[2] = 2;                 $plan_b1c[2] = 2;
$plan_bc[3] = 3;                 $plan_b1c[3] = 3;
$plan_bc[4] = 5;                 $plan_b1c[4] = 5;
$plan_bc[5] = 10;                $plan_b1c[5] = 10;
$plan_bc[6] = 50;                $plan_b1c[6] = 11;

//Баннер 468х60 кликовый
$mon_b3_p = 0.05;
$plan_b3c[1] = 10;
$plan_b3c[2] = 20;
$plan_b3c[3] = 30;
$plan_b3c[4] = 50;
$plan_b3c[5] = 100;
$plan_b3c[6] = 500;

//Баннер 200х300                 //Статические ссылки
$mon_b2_p = 4;                   $mon_s_p = 2; //Цена
$plan_b2c[1] = 1;                $plan_sc[1] = 1; //Дней
$plan_b2c[2] = 2;                $plan_sc[2] = 2;
$plan_b2c[3] = 3;                $plan_sc[3] = 3;
$plan_b2c[4] = 5;                $plan_sc[4] = 5;
$plan_b2c[5] = 10;               $plan_sc[5] = 10;
$plan_b2c[6] = 50;               $plan_sc[6] = 11;

//Контент                        //Псевдо
$mon_l_p = 2;                 $mon_p_p = 2; //Цена
$plan_lc[1] = 1;                 $plan_pc[1] = 1; //Дней
$plan_lc[2] = 2;                 $plan_pc[2] = 2;
$plan_lc[3] = 3;                 $plan_pc[3] = 3;
$plan_lc[4] = 5;                 $plan_pc[4] = 5;
$plan_lc[5] = 10;                $plan_pc[5] = 10;
$plan_lc[6] = 50;                $plan_pc[6] = 11;

//Фрайм                          //Текстовые об.
$mon_f_p = 2;                 $mon_t_p = 2; //Цена
$plan_fc[1] = 1;                 $plan_tc[1] = 1; //Дней
$plan_fc[2] = 2;                 $plan_tc[2] = 2;
$plan_fc[3] = 3;                 $plan_tc[3] = 3;
$plan_fc[4] = 5;                 $plan_tc[4] = 5;
$plan_fc[5] = 10;                $plan_tc[5] = 10;
$plan_fc[6] = 50;                $plan_tc[6] = 11;

//Письма
$mon_ma_p = 0.025;
$plan_mac[1] = 100; //Показов
$plan_mac[2] = 200;
$plan_mac[3] = 300;
$plan_mac[4] = 500;
$plan_mac[5] = 1000;
$plan_mac[6] = 3000;


function limpiarez($mess)
	{
		$mess=str_replace(";"," ",$mess);
		$mess=str_replace("$"," ",$mess);
		$mess=str_replace("'"," ",$mess);
		$mess=strip_tags($mess);
		return $mess;
	}

require ('stillkab/obrabotka.php');

$dinam_cab = mysql_query("SELECT * FROM `tb_ads` WHERE `paypalemail` = '$wmid_cab' and `tipo` = 'ads' and `vid` = '0' ORDER BY `fechainicia` DESC");
$mini_cab = mysql_query("SELECT * FROM `tb_ads1` WHERE `paypalemail` = '$wmid_cab' and `tipo` = 'ads' ORDER BY `fechainicia` DESC");
$banner_cab = mysql_query("SELECT * FROM `tb_advban` WHERE `wmid` = '$wmid_cab'  ORDER BY `begindate` DESC");
$banner_cabclick = mysql_query("SELECT * FROM `tb_advbanclick` WHERE `wmid` = '$wmid_cab'  ORDER BY `id` DESC");
$banner100_cab = mysql_query("SELECT * FROM `tb_ban` WHERE `wmid` = '$wmid_cab'  ORDER BY `begindate` DESC");
$banner200_cab = mysql_query("SELECT * FROM `tb_advban200` WHERE `wmid` = '$wmid_cab'  ORDER BY `begindate` DESC");
$stat_cab = mysql_query("SELECT * FROM `tb_statlinks` WHERE `wmid` = '$wmid_cab'  ORDER BY `begindate` DESC");
$link_cab = mysql_query("SELECT * FROM `tb_statlink` WHERE `wmid` = '$wmid_cab'  ORDER BY `begindate` DESC");
$psevdo_cab = mysql_query("SELECT * FROM `tb_psevdolinks` WHERE `wmid` = '$wmid_cab'  ORDER BY `begindate` DESC");
$text_cab = mysql_query("SELECT * FROM `tb_textads` WHERE `wmid` = '$wmid_cab'  ORDER BY `id` DESC");
$fram_cab = mysql_query("SELECT * FROM `tb_frameads` WHERE `wmid` = '$wmid_cab'  ORDER BY `id` DESC");
$mail_cab = mysql_query("SELECT * FROM `tb_adsmail` WHERE `user` = '$wmid_cab'  ORDER BY `id` DESC");
?>
<script type="text/javascript" src="js/jquery.js"></script>
<script src="js/popup.js"></script>
<style>
table.kab{border-collapse: collapse;}
.butto_p{background-color:#F5F5F5;border:1px solid #9ACD32;padding:2px;text-decoration:none;box-shadow:0 1px 2px #ddd;color:#808080;width:40px;}
.butto_o{background-color:#F5F5F5;border:1px solid #b2b2b2;padding:2px;text-decoration:none;box-shadow:0 1px 2px #ddd;color:#808080;width:40px;}
.butto_m{background-color:#F5F5F5;border:1px solid #c65e5e;padding:2px;text-decoration:none;box-shadow:0 1px 2px #ddd;color:#808080;width:40px;}
.butto_pdm{background-color:#8888FF;text-align:center;font-size:11px;}
.butto_pdo{background-color:#FFA448;text-align:center;font-size:11px;}

#mask {position:absolute;left:0;top:0;z-index:9000;background-color:#000;display:none;font-size:11px;}
.forum_o {position:absolute;left:0;top:0;margin-top:300px;display:none;width:500px;z-index:9000;padding:20px;padding-top:5px;background:#fff;border:2px solid #909090; -moz-border-radius-topleft:15px;-moz-border-radius-bottomleft:15px;-moz-border-radius-bottomright:15px;-webkit-border-top-left-radius:15px;font-size:11px;
-webkit-border-bottom-left-radius:15px;-webkit-border-bottom-right-radius:15px;-webkit-border-top-right-radius:15px;-moz-border-radius-topright:15px;font-size:11px;}
</style>
<table class='reyt' width='100%' border='0' cellpadding='0' cellspacing='0'>
<thead><tr>
<th align="left" width='10px'></th>
<th align="left">Выберите вид рекламы</th>
<th align="left" width='10px'></th>
<th align="left"></th>
</tr></thead>
<tbody><tr>
<td class='value' align='left' width='10px'><img src="images/2.png" align="absmiddle" /></td>
<td class='value' align='left' ><span class="desctext3"><a href=still_kab.php?vid=dinam>Динамические ссылки</a> [<font color="#FF3300"><?=mysql_num_rows($dinam_cab)?> шт.</font>]</span></td>
<td class='value' align='left' width='10px'><img src="images/2.png" align="absmiddle" /></td>
<td class='value' align='left' ><span class="desctext3"><a href=still_kab.php?vid=mini>Динамические ссылки "МИНИ"</a> [<font color="#FF3300"><?=mysql_num_rows($mini_cab)?> шт.</font>]</span></td>
</tr><tr>
<td class='value' align='left' width='10px'><img src="images/2.png" align="absmiddle" /></td>
<td class='value' align='left' ><span class="desctext3"><a href=still_kab.php?vid=psevdo>Псевдодинамические ссылки</a> [<font color="#FF3300"><?=mysql_num_rows($psevdo_cab)?> шт.</font>]</span></td>
<td class='value' align='left' width='10px'><img src="images/2.png" align="absmiddle" /></td>
<td class='value' align='left' ><span class="desctext3"><a href=still_kab.php?vid=mail>Текстовые Письма</a> [<font color="#FF3300"><?=mysql_num_rows($mail_cab)?> шт.</font>]</span></td>
</tr><tr>
<td class='value' align='left' width='10px'><img src="images/2.png" align="absmiddle" /></td>
<td class='value' align='left' ><span class="desctext3"><a href=still_kab.php?vid=stat>Статические ссылки</a> [<font color="#FF3300"><?=mysql_num_rows($stat_cab)?> шт.</font>]</span></td>
<td class='value' align='left' width='10px'><img src="images/2.png" align="absmiddle" /></td>
<td class='value' align='left' ><span class="desctext3"><a href=still_kab.php?vid=banner200>Статические баннеры 200x300</a> [<font color="#FF3300"><?=mysql_num_rows($banner200_cab)?> шт.</font>]</span></td>
</tr><tr>
<td class='value' align='left' width='10px'><img src="images/2.png" align="absmiddle" /></td>
<td class='value' align='left' ><span class="desctext3"><a href=still_kab.php?vid=banner>Статические баннеры 468x60</a> [<font color="#FF3300"><?=mysql_num_rows($banner_cab)?> шт.</font>]</span></td>
<td class='value' align='left' width='10px'><img src="images/2.png" align="absmiddle" /></td>
<td class='value' align='left' ><span class="desctext3"><a href=still_kab.php?vid=fram>Фрейм</a> [<font color="#FF3300"><?=mysql_num_rows($fram_cab)?> шт.</font>]</span></td>
</tr><tr>
<td class='value' align='left' width='10px'><img src="images/2.png" align="absmiddle" /></td>
<td class='value' align='left' ><span class="desctext3"><a href=still_kab.php?vid=banner100>Статические баннеры 100x100</a> [<font color="#FF3300"><?=mysql_num_rows($banner100_cab)?> шт.</font>]</span></td>
<td class='value' align='left' width='10px'><img src="images/2.png" align="absmiddle" /></td>
<td class='value' align='left' ><span class="desctext3"><a href=still_kab.php?vid=text>Текстовое обьявление</a> [<font color="#FF3300"><?=mysql_num_rows($text_cab)?> шт.</font>]</span></td>
</tr><tr>
<td class='value' align='left' width='10px'><img src="images/2.png" align="absmiddle" /></td>
<td class='value' align='left' ><span class="desctext3"><a href=still_kab.php?vid=link>Контекстная реклама</a> [<font color="#FF3300"><?=mysql_num_rows($link_cab)?> шт.</font>]</span></td>
<td class='value' align='left' width='10px'></td>
<td class='value' align='left' ></td>
</tr></tbody></table>
<div align="center" style="padding: 5px 0;">
<div align="left" class="navil">
<table width='100%'>
<tr>
<td align="left" style="font-size:11px;"> <b>Ваш рекламный счет:</b> <b style="color:#ff0000;"><?=round($duser["money_cr"],3)?> руб.</b></td>
<td align="right" style="font-size:11px;"><a href="moneytoacc.php" title="Пополнить баланс">» Пополнить рекламный счет</a></td>
</tr>
</table>
</div>
<div align="left" class="navil">
<table width='100%'>
<tr>
<td align="left" style="font-size:11px;"><a href="cr_moneyforadv.php" title="Заказать рекламу с рекламного счета">» Заказать рекламу с рек. счета</a></td>
<td align="right" style="font-size:11px;"><a href="advertise.php?adv=paket" title="Заказать рекламу за WebMoney">» Заказать рекламу за WebMoney</a></td>
</tr>
</table>
</div>
</div>
</div>
<div class="menucenter">
<?
switch ($_GET["vid"]) {
case 'dinam': require ('stillkab/dinam.php'); break;
case 'mini': require ('stillkab/mini.php'); break;
case 'psevdo': require ('stillkab/psevdo.php'); break;
case 'mail': require ('stillkab/mail.php'); break;
case 'stat': require ('stillkab/stat.php'); break;
case 'banner200': require ('stillkab/banner200.php'); break;
case 'banner': require ('stillkab/banner.php'); break;
case 'fram': require ('stillkab/fram.php'); break;
case 'banner100': require ('stillkab/banner100.php'); break;
case 'text': require ('stillkab/text.php'); break;
case 'link': require ('stillkab/link.php'); break;
case 'balans': require ('stillkab/balans.php'); break;
default:require ('stillkab/dinam.php');};
?>
<?require ('footer.php');?>