Viewing File: /people/testlab/www/testlab.com.pl/script/popup.php

<?
$db = new DBConnect();
$db2 = new DBConnect();

$sql = "select * from `aktualnosci` where skrypt_id='400' order by rand()";
$result = $db->query($sql);

if ($row=$db->fetchrow())
{
echo "<div id=popup1 style='position:absolute;z-index:10000000;background:#aaa;width:100%;filter: alpha(opacity=80); -moz-opacity: 0.80; opacity: 0.80;'></div>
<div style='position:absolute;z-index:10000001;width:100%;height:100%;' id=popup2>";

if (file_exists("upload/".$row['plik'].".jpg"))
list($width, $height, $type, $attr) = getimagesize('upload/'.$row['plik'].'.jpg');

echo "<diV style='margin:auto;margin-top:150px;text-align:center;border:10px solid #b60016;width:".$width."px'>";
echo "<div style='float:right;margin-top:-25px;margin-right:-25px;cursor:pointer;height:25px;width:25px;background:url(../css/images/close.png) no-repeat;border:0px solid red;' onclick=\"$('popup1').style.display='none';$('popup2').style.display='none'\"></div>";
if ($row['opcje']=='_blank') $row['link']='http://'.$row['link'];
if ($row['link']!='http://') echo "<a href='".$row['link']."' target='".$row['opcje']."' title=''>";
if (file_exists("upload/".$row['plik'].".jpg")) echo "<img src='upload/".$row['plik'].".jpg' alt='' style='vertical-align:middle;'>";
if (($row['nazwa']!='') || ($row['tresc']!='')) echo " ".$row['nazwa']." ".$row['tresc']; 
if ($row['link']!='http://') echo "</a>";
echo "</div></div>"; 
}
?>


Back to Directory File Manager