Location: PHPKode > projects > PHPExplorer > skins/default/_pl_img/_zoom.php
<html>
<head><title><?=$zoom?></title>
<Script Language="JavaScript">
function reload(h,w){
 if(document.f.prop.checked)  {
  document.all['ifr'].src='<?=$PHP_SELF?>?ifr=<?=$zoom?>&h='+h+'&w='+w;
 }else{
  document.all['ifr'].src='<?=$PHP_SELF?>?ifr=<?=$zoom?>&yau=1&h='+h+'&w='+w;
 }
}
function go(url){window.location.href=url;}
function zoom(radio){var d=document.f; d.hei.value=d.hei.value*radio;d.wid.value=d.wid.value*radio;
reload(d.hei.value,d.wid.value);}
function test(){
var v=prompt('Choisissez le nom de l\'image','<?=dirname($zoom)."/vign_".basename($zoom)?>');
if(v) go('<?="$PHP_SELF?ac=save&img=$zoom"?>&h='+document.f.hei.value+'&w='+document.f.wid.value+'&v='+v);
}
</Script></head><? $s=getimagesize($zoom); ?>

<body bgcolor="#777777">
<table align=center width=99% height=99% cellspacing=0 cellpadding=6 border=2 bgcolor="#CCCCCC" bordercolor="black">
<tr><td width=100% align=center><table border=1 cellspacing=0 width=100% height=100%><tr><td width=70% height=100%>
<iframe id="ifr" src="<?="$PHP_SELF?ifr=$zoom&h=".$s[1]."&w=".$s[0]?>" height="100%" width="100%"></iframe></td>
<td align=center width=30%>
<h3 align=center>Modification</h3><hr width=80%>
<form name="f">
<input type="text" name="hei" value="<?=$s[1]?>" size=4> Hauteur en pixels<br>
<input type="text" name="wid" value="<?=$s[0]?>" size=4> Largeur en pixels<br><br>
<input type="checkbox" checked name="prop" id="prop"> <label for="prop">Conserver les proportions</label><br><br>
<input type="button" value="Modifier" onClick="reload(document.f.hei.value,document.f.wid.value);" style="width:70;"> 
<input style="width:70;" type="button" value="1 : 1" onClick="reload(<?=$s[0].",".$s[1]?>);document.f.hei.value='<?=$s[0]?>';document.f.wid.value='<?=$s[1]?>';">
<br><br><hr width=80%>
<input type=button style="width:40;" value="x0.5" onClick="zoom(0.5);">
<input type=button style="width:40;" value="x0.75" onClick="zoom(0.75);">
<input type=button style="width:40;" value="x1.5" onClick="zoom(1.5);">
<input type=button style="width:40;" value="x2.0" onClick="zoom(2);">
<hr width=80%></form>
<? if($s[2]!=1) { ?><input type="button" value="Enregistrer" style="width:140;" onClick="test();"><br>
<? } ?><input type="button" onClick="window.close();" value="Fermer" style="width:140;">
</td></tr></table></td></tr></table>
</body>
</html>
Return current item: PHPExplorer