View file iframe/wk/list-init.php

File size: 1.06Kb
<?php
require_once 'connect.php'; //ConnectDB
include_once'head.php'; //header
include_once($_SERVER["DOCUMENT_ROOT"]."/style/head.php");

echo'<div class="title">Не оплаченные ссылки</div>';

echo'<div class="creawap"><a href="list-active.php">активные</a></div>';

$rmq=mysql_query('SELECT `url`,`name`,`color`,`bold`,`italic`,`init` FROM `iframe` WHERE `payment`=0 ORDER BY `init` DESC')or die('DB: '.mysql_error());

$imr=mysql_num_rows($rmq);

if($imr>0){

echo'Всего: '.$imr.'<br/>';

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

echo'<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> <span style="font-size:x-small">'.$link['url'].'</span>
<br/>
От '.$link['init'].'
<br/>';

};

}else{
echo'<div class="creawap">Нет не оплаченных ссылок.</div>';
};


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