Вход Регистрация
Файл: wk/list-active.php
Строк: 33
<?php
require_once 'connect.php'//ConnectDB
include_once'head.php'//header
include_once($_SERVER["DOCUMENT_ROOT"]."/style/head.php");
echo 
'<div class=title>Список заказов</div>';

$rmq=mysql_query('SELECT `url`,`name`,`color`,`bold`,`italic`,`expire` FROM `iframe` WHERE `expire`>NOW() ORDER BY RAND() LIMIT 50')or die('DB: '.mysql_error());

$imr=mysql_num_rows($rmq);

if(
$imr>0){
if(
mysql_num_rows($rmq)>0){

while(
$link=mysql_fetch_assoc($rmq)){

echo
'<div class="creawap"><a '.(($link['color'] || $link['bold'] || $link['italic']) ? 'style="'.($link['bold']?'font-weight:bold;':'').($link['italic']?'font-style:italic;':'').($link['color']?'color:'.$link['color']:'').'" ' '' ).'href="'.$link['url'].'" target="_blank">'.$link['name'].'</a> <iframe width="5" height="5" src="'.$link['url'].'"></iframe> <br/>';
echo 
'<div class="Меню">Истекает : '.$link['expire'].'';
echo 
'<br/></br></div></div>';
echo 
'</div>';
};

};

}else{
echo
'<div class="creawap"><b><font color="red">ЗАКАЗОВ НЕТ !</font></b></div>';
};


include_once(
$_SERVER["DOCUMENT_ROOT"]."/style/foot.php");

?>
Онлайн: 3
Реклама