Merhaba, Ziyaretçi. Lütfen giriş yapın veya üye olun.
Aktivasyon mailiniz gelmediyse buraya tıklayın.
23, 2008, 05:18:50 pm
42935 Mesaj 8140 Konu Gönderen: 18019 Üye
Son üye: yavuz.yuksel@yonca-ad.com
Turk-Php.Com Forum  |  Yardım Forumları  |  PHP Yardım Forumu  |  php sayfayı pop-up ile acmak « önceki sonraki »
Sayfa: [1] Yazdır
Yazan Konu: php sayfayı pop-up ile acmak  (Okunma Sayısı 364 defa)
yousemeti
Yeni Kullanıcılar
*
Offline Offline

Mesaj Sayısı: 5


Üyelik Bilgileri WWW
php sayfayı pop-up ile acmak
« : 09, 2006, 10:35:17 am »

selam degerli hocalar;

pop-up acarken hata oluyor tam kod  aşagıda tumbs uzerine tıkladıgımda hata alıyorum ve show.php acılmıyor link direk yazarsam su sekilde acılıyor  echo "<a href=show.php?resim=$filelist[$i]>\n";

ama boyle gonderirsem acımıyor
echo "<a href=\"javascript:popUpWindow('show.php?resim=$filelist[$i]', 50,50, 400,350);\">\n";
nerede hata yapıyorum yardım ederseniz sevinririm

 salih hanifeoğlu
www.yucehan.com


Kod:
<html>
<head>
<title>İndex sayfa</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
<style>
body {
    background-color : #FFFFFF;
    color : #000000;
    font-family : Verdana, Arial, Helvetica, sans-serif;
    font-size : 16px;
    font-weight : bold;
    text-decoration : none;
}
a, a:link {
    color : #000000;
    font-family : Verdana, Arial, Helvetica, sans-serif;
    font-size : 9pt;
    font-weight : bold;
    text-decoration : none;
}
a:alink {
    color : #FF0000;
}
a:hover {
      color : #FF8000;
      text-decoration : underline;
}
.tr{
    font-family : Verdana, Arial, Helvetica, sans-serif;
    font-size : 14px;
    font-weight : bold;
}
.td {
      font-size : 16pt;
      font-weight : bold;
      font-family : Courier New;
      color : #FFFFFF;
      background-color : #FF8000;
}
input {
    font-family : Verdana;
    font-size : 9pt;
    font-weight : bold;
}
select {
      font-size : 8pt;
      font-weight : bold;
      font-family : Verdana;
      color : #000000;
      background-color : #FFFFFF;
}
</style>
<script>
var popUpWin = 0;
function popUpWindow(, left, top, width, height)
{
 if(popUpWin)
   {
  if(!popUpWin.closed) popUpWin.close();
   }

   popUpWin = open(URLStr, 'popUpWin',
'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+width+',height='+height+',left='+left+',
top='+top+',screenX='+left+',screenY='+top+'');
}
</script>
<?php

    
function utime ()
    {
        
$time explode(" "microtime());
        
$usec = (double)$time[0];
        
$sec = (double)$time[1];
        return 
$sec $usec;
    }
//$start = utime();
//error_reporting(0);

@require_once 'config.inc.php';

if(
is_dir($thumb_path)) {
    
$dir opendir($thumb_path);

} else {
    exit(
'Küçük Resim Klasörünü Bulamadym!Klasör Yok yada Gerekli izinler 
Verilmemiş.'
);
}

while((
$file readdir($dir)) !== false)
{
    if (
preg_match('/.*\.jpg/i',$file) || preg_match('/.*\.jpeg/i',$file))
    {
        
$filelist[] = $file;
    }
}

closedir($dir);
sort($filelist);
$pictures count($filelist);

if(empty(
$_GET['offset']))
{
    
$offset 0;
}
else
{
    
$offset intval($_GET['offset']);
}

$numpages intval($pictures $pics);

if((
$offset 0) || (empty($offset)) || ($offset >= $pictures))
{
    
$offset 0;
}

if(
$pictures $pics)
{
    
$numpages++;
}

if(!empty(
$_GET['limit']))
{
    
$limit intval($_GET['limit']);
    if(
$limit $pictures || $limit $pictures)
    {
        
$limit $offset $pics;
    }
}
else
{
    
$limit $offset $pics;
}

?>

</head>
<body vlink="#FF8040" alink="#FF0000" link="#FF8040">
<table width="700" align="center" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td>&nbsp;</td>
<td align="right">
<form action="<?php echo $_SERVER['PHP_SELF'?>">
<select onChange='submit();' name="offset">
<option selected>Page List</option>
<?php
for ($i=$i <= $numpages $i++)
{
    
$next $pics * ($i-1);
?>

<option value="<?php echo $next ?>"><?php echo "Page $i" ?></option>
<?php
}
?>

</select>

</form>
</td>
</tr>
<tr class="td">
<td align="left">Femina 2004 Winter</td>
<td>&nbsp;</td>
</tr>
</table>
<table width="600" align="center" border="0" cellpadding="2"
cellspacing="2">
<tr>
<td colspan="<?php echo $cols ?>">
</td>
</tr>
<tr>
<?php
for($i $offset$y 1$i $limit$i++)
{
    if(!empty(
$filelist[$i]))
    {
        
$size getimagesize("$thumb_path/$filelist[$i]");
        echo 
"<td align=\"center\">\n";
       
// echo "<a href=show.php?resim=$filelist[$i]>\n";

echo "<a href=\"javascript:popUpWindow('show.php?resim=$filelist[$i]', 50,50, 400,350);\">\n";
        echo 
"<img src=\"$thumb_path/$filelist[$i]\" $size[3] 
border=$border><br>\n$filelist[$i]\n"
;
        echo 
"</a></td>\n";
        if(
$y == $cols)
        {
            echo 
"</tr><tr>\n";
            
$y 0;
        }
        
$y++;
    }
}

?>

</tr>
</table>
</body>
</html>
« Son Düzenleme: 09, 2006, 02:05:06 pm Gönderen: mudkicker » Logged
Sayfa: [1] Yazdır 
« önceki sonraki »
Gitmek istediğiniz yer:  


Turk-Php.Com Forum | SMF Forum Software © 2005, Simple Machines LLC. All Rights Reserved.