...oder ist die datei nicht von dir?
also im script (Window.open)? die actionbuttons einfügen
wenn ja weis ich nicht wie.
window.open ('blah.htm'...)
// blah.htm
// hier kommt der code rein!
<html>
<head>
<title></title>
<style type="text/css">
.......
.......
.......
</style>
<script type="text/javascript">
var neufenster="window.open()";
function NaviFenster(datei)
{
if (neufenster.closed != null)
{
neufenster.close();
neufenster=window.open(datei,"Navigation" ," scrollbars, height=400, width=700 ");
}
else
{
neufenster=window.open(datei,"Navigation" ," scrollbars, height=400, width=700 ");
}
}
</script>
</head>
<body>
<?php
$path = "../../etserver/27960/pb/svss/";
$arr = array();
function sortdir ($a, $b)
{
return $a[1] < $b[1];
}
if ($handle = opendir($path))
{
while (false !== ($f = readdir($handle)))
{
$arr[] = array($f, filemtime($path."/".$f), filesize($path."/".$f));
}
closedir($handle);
}
echo '<table border="0" cellpadding="2" cellspacing="2" width="100%">
<tr><th colspan="2"><<WK>> Wolfkillers Server 27960</a></th></tr></table>' . "\n";
echo '<table border="0" cellpadding="2" cellspacing="2" width="100%">
<tr><th colspan="2" width="5%"></th>
<th colspan="2" width="20%">Picture</th><th width="20%">Datum</th>
<th width="10%">Filesize</th><th width="15%">MapPicture</th></th></tr></table>' . "\n";
usort($arr, "sortdir");
foreach ($arr as $v)
{
$path_inf = pathinfo("$path$v[0]");
if ($v[0] != "." && $v[0] != ".." && $path_inf["extension"] != "htm")
{
echo '<table border="0" cellpadding="2" cellspacing="2" width="100%">
<tr><th colspan="2"></a></th></tr></table>' . "\n";
$i++;
print '<table border="0" cellpadding="2" cellspacing="2" width="100%">
<tr><th colspan="2" width="5%">'. $i .'</th>
<th width="20%">
<a href=javascript:NaviFenster("'. $path .''.$v[0].'")>'. substr($v[0],0 , -4) .'</a>
</th>
<th width="20%">'. date("d.m.Y H:i:s", $v[1]) .'</th>
<th width="10%">'. round(($v[2]/ 1024),2) .' KB</th>
<th width="15%"><img src="'. $path .''.$v[0].'" width=80 height=50></th></tr></table>' . "\n";
}
}
?>
</body>
</html>
<form action="input_button.htm">
<p>
<input type="button" name="zoomin" value="ZOOMIN"
onClick="href='bildgrössermachen'">
</p>
</form>
<a href=java script:NaviFenster("'. $path .''.$v[0].'")>
<a href=java script:NaviFenster("/showpic.php?pic='. urlencode($path .$v[0]).'")>
<?php
if (isset($_GET['pic'])) {
$pic = str_replace('../..', '', urldecode($_GET['pic']));
echo '<img src="'.$pic.'" id="zoomable_pic" />';
}
Kommentar