Вход Регистрация
Файл: modules/billing/services/ads/index.php
Строк: 127
<?php
$title 
'Биллинг | Услуги | Реклама';
include_once(
$_SERVER["DOCUMENT_ROOT"].'/style/head.php');
mode('user');
?>
<div class="title"><a href="/billing">Биллинг</a> | <a href="/billing/services/">Услуги</a> | Реклама</div>
<?
switch ($_GET['act']) {
    case 
'no_moderation':
            
?>
            <div class="section">Реклама: <a href="/billing/services/ads">Активная</a> | <a href="/billing/services/ads/old">Не активная</a> | <a href="/billing/services/ads/moderation">На модерации</a> | Отклонённые</div>
            <?
            $nav
=new navig("SELECT * FROM `ads_link` WHERE `id_us`='".$user['id']."' AND `moderation`='2'");
            
$q $db->query('SELECT * FROM `ads_link` WHERE `id_us`='.$user['id'].' AND `moderation`=2 ORDER BY `id` DESC LIMIT '.$nav->start.','.$nav->nstr);
            while(
$c=$q->fetch_assoc()){
                
?>
                <div class="section">
                    Название: <?=htmlspecialchars($c['name'])?><br/>
                    Ссылка: <a href="http://<?=htmlspecialchars($c['link'])?>"><?=htmlspecialchars($c['link'])?></a><br/>
                    Дата заказа: <?=times($c['time'])?><br/>
                    Дата окончания: <?=times($c['time2'])?><br/>
                    <?
                    
if(!empty($c['color'])){
                        
?>
                        Цвет: <font color="<?=$c['color']?>"><?=$c['color']?></font><br/>
                        <?
                    
}
                    if(!empty(
$c['bold']) or !empty($c['italic'])){
                        
?>
                        Дополнительно:<br/>
                        <?
                        
if(!empty($c['bold'])){?>
                            Жирность<br/>    
                        <?}
                        if(!empty(
$c['italic'])){?>
                            Курсив<br/>
                        <?}
                        
?>
                        <?
                    
}
                    
?>
                </div>
                <?
            
}
            
?>
            <div class="nvgstr">
            <?
            $nav
->panel();
            
?>
            </div>
            <?
            
if($db->query("SELECT `id` FROM `ads_link` WHERE `id_us`='".$user['id']."' AND `moderation='2'")->num_rows==0){
                
?>
                <div class="error">У вас нет отклоненной рекламы.</div>
                <?
            
}
        break;

    case 
'moderation':
            
?>
            <div class="section">Реклама: <a href="/billing/services/ads">Активная</a> | <a href="/billing/services/ads/old">Не активная</a> | На модерации | <a href="/billing/services/ads/no_moderation">Отклонённые</a></div>
            <?
            $nav
=new navig("SELECT * FROM `ads_link` WHERE `id_us`='".$user['id']."' AND `moderation`='0'");
            
$q $db->query('SELECT * FROM `ads_link` WHERE `id_us`='.$user['id'].' AND `moderation`=0 ORDER BY `id` DESC LIMIT '.$nav->start.','.$nav->nstr);
            while(
$c=$q->fetch_assoc()){
                
?>
                <div class="section">
                    Название: <?=htmlspecialchars($c['name'])?><br/>
                    Ссылка: <a href="http://<?=htmlspecialchars($c['link'])?>"><?=htmlspecialchars($c['link'])?></a><br/>
                    Дата заказа: <?=times($c['time'])?><br/>
                    Дата окончания: <?=times($c['time2'])?><br/>
                    <?
                    
if(!empty($c['color'])){
                        
?>
                        Цвет: <font color="<?=$c['color']?>"><?=$c['color']?></font><br/>
                        <?
                    
}
                    if(!empty(
$c['bold']) or !empty($c['italic'])){
                        
?>
                        Дополнительно:<br/>
                        <?
                        
if(!empty($c['bold'])){?>
                            Жирность<br/>    
                        <?}
                        if(!empty(
$c['italic'])){?>
                            Курсив<br/>
                        <?}
                        
?>
                        <?
                    
}
                    
?>
                </div>
                <?
            
}
            
?>
            <div class="nvgstr">
            <?
            $nav
->panel();
            
?>
            </div>
            <?
            
if($db->query("SELECT `id` FROM `ads_link` WHERE `id_us`='".$user['id']."' AND `moderation`='0'")->num_rows==0){
                
?>
                <div class="error">У вас нет рекламы на модерации.</div>
                <?
            
}
        break;

    case 
'old':
            
?>
            <div class="section">Реклама: <a href="/billing/services/ads">Активная</a> | Не активная | <a href="/billing/services/ads/moderation">На модерации</a> | <a href="/billing/services/ads/no_moderation">Отклонённые</a></div>
            <?
            $nav
=new navig("SELECT * FROM `ads_link` WHERE `id_us`='".$user['id']."' AND `moderation`='1' AND `time2`>".time()."");
            
$q $db->query('SELECT * FROM `ads_link` WHERE `id_us`='.$user['id'].' AND `moderation`=1 AND `time2`>'.time().' ORDER BY `id` DESC LIMIT '.$nav->start.','.$nav->nstr);
            while(
$c=$q->fetch_assoc()){
                
?>
                <div class="section">
                    Название: <?=htmlspecialchars($c['name'])?><br/>
                    Ссылка: <a href="http://<?=htmlspecialchars($c['link'])?>"><?=htmlspecialchars($c['link'])?></a><br/>
                    Дата заказа: <?=times($c['time'])?><br/>
                    Дата окончания: <?=times($c['time2'])?><br/>
                    <?
                    
if(!empty($c['color'])){
                        
?>
                        Цвет: <font color="<?=$c['color']?>"><?=$c['color']?></font><br/>
                        <?
                    
}
                    if(!empty(
$c['bold']) or !empty($c['italic'])){
                        
?>
                        Дополнительно:<br/>
                        <?
                        
if(!empty($c['bold'])){?>
                            Жирность<br/>    
                        <?}
                        if(!empty(
$c['italic'])){?>
                            Курсив<br/>
                        <?}
                        
?>
                        <?
                    
}
                    
?>
                </div>
                <?
            
}
            
?>
            <div class="nvgstr">
            <?
            $nav
->panel();
            
?>
            </div>
            <?
            
if($db->query("SELECT `id` FROM `ads_link` WHERE `id_us`='".$user['id']."' AND `moderation='1' AND `time2`>=".time()."")->num_rows==0){
                
?>
                <div class="error">У вас нет не активной рекламы.</div>
                <?
            
}
        break;
    
    default:
            
?>
            <div class="section">Реклама: Активная | <a href="/billing/services/ads/old">Не активная</a> | <a href="/billing/services/ads/moderation">На модерации</a> | <a href="/billing/services/ads/no_moderation">Отклонённые</a></div>
            <?
            $nav
=new navig("SELECT * FROM `ads_link` WHERE `id_us`='".$user['id']."' AND `moderation`='1' AND `time2`>=".time()."");
            
$q $db->query('SELECT * FROM `ads_link` WHERE `id_us`='.$user['id'].' AND `moderation`=1 AND `time2`>='.time().' ORDER BY `id` DESC LIMIT '.$nav->start.','.$nav->nstr);
            while(
$c=$q->fetch_assoc()){
                
?>
                <div class="section">
                    Название: <?=htmlspecialchars($c['name'])?><br/>
                    Ссылка: <a href="http://<?=htmlspecialchars($c['link'])?>"><?=htmlspecialchars($c['link'])?></a><br/>
                    Дата заказа: <?=times($c['time'])?><br/>
                    Дата окончания: <?=times($c['time2'])?><br/>
                    <?
                    
if(!empty($c['color'])){
                        
?>
                        Цвет: <font color="<?=$c['color']?>"><?=$c['color']?></font><br/>
                        <?
                    
}
                    if(!empty(
$c['bold']) or !empty($c['italic'])){
                        
?>
                        Дополнительно:<br/>
                        <?
                        
if(!empty($c['bold'])){?>
                            Жирность<br/>    
                        <?}
                        if(!empty(
$c['italic'])){?>
                            Курсив<br/>
                        <?}
                        
?>
                        <?
                    
}
                    
?>
                </div>
                <?
            
}
            
?>
            <div class="nvgstr">
            <?
            $nav
->panel();
            
?>
            </div>
            <?
            
if($db->query("SELECT `id` FROM `ads_link` WHERE `id_us`='".$user['id']."' AND `moderation='1' AND `time2`>=".time()."")->num_rows==0){
                
?>
                <div class="error">У вас нет действующей промодерированной рекламы.</div>
                <?
            
}
        break;
}
?>
<div class="section"><a href="/billing/services/ads/new_link">Купить рекламу</a></div>
<?
include_once($_SERVER["DOCUMENT_ROOT"].'/style/foot.php');
?>
Онлайн: 1
Реклама