Location: PHPKode > scripts > Dynapic SE > dynapic-se/view.php3
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<?
error_reporting(63);
include "conf.php3";
print "<TITLE>$title[$gal]</TITLE></HEAD>";
print "<BODY BACKGROUND=\"\" BGCOLOR=\"#ffffff\" TEXT=\"#000000\" LINK=\"#0000ff\" VLINK=\"#800080\" ALINK=\"#ff0000\">";
include "banner.php3";

$handle=opendir($dir[$gal]);
$i=0;
while ($file = readdir($handle)) {
if (eregi("jpg$",$file)){
$folder[$i]=$file;
$i=$i+1;
};
};
closedir($handle);
sort($folder);

print "<h1 align=\"center\"><a href=\"index.php3?gal=$gal&pg=$pg\">$title[$gal]</a></h1>";
$path=$picurl[$gal]."/".$id;
print "<center><img src=\"$path\" ></center>";
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="center" valign="center">
<?
$i=0;
$next=$count+1;
$prev=$count-1;
while (isset($folder[$i])){
if ($i==$prev){
print "<td valign=\"center\" align=\"center\"><a href=\"view.php3?id=$folder[$prev]&gal=$gal&pg=$pg&count=$prev\"><img src=\"prev.gif\" alt=\"prev\" width=\"30\" height=\"20\" border=\"0\"><img src=\"$tndir[$gal]/$folder[$i]\" BORDER=0></a></td>";
};
if ($i==$next){
print "<td valign=\"center\" align=\"center\"><a href=\"view.php3?id=$folder[$next]&gal=$gal&pg=$pg&count=$next\"><img src=\"$tndir[$gal]/$folder[$i]\" BORDER=0><img src=\"next.gif\" alt=\"prev\" width=\"30\" height=\"20\" border=\"0\"></a></td>";
};

$i++;
};
?>
</tr></table>
<?
include "bannerbot.php3";
?>
</BODY>
</HTML>
Return current item: Dynapic SE