1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
| <DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />
<title>Test</title>
</head>
<body>
<?php
$num_img_defaut_texte = htmlentities(trim('n° de photo à afficher'));
$num_img = (isset($_POST['numero_affich_photo']) && htmlentities(trim($_POST['numero_affich_photo']))!=$num_img_defaut_texte)? htmlentities(trim($_POST['numero_affich_photo'])) : ''; ?>
<table style="border:0; border-collapse:separate;">
<tr>
<td style="border:1px solid blue; height:25px;">
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="text" name="numero_affich_photo" value="<?php echo ($num_img!='')? $num_img : $num_img_defaut_texte; ?>" onfocus="this.value='';" onblur="if(this.value==''){this.value='<?php echo $num_img_defaut_texte; ?>'};" />
<input type="submit" name="btenvoiphoto" value="Afficher la photo" />
</form>
</td>
<td rowspan="2" style="border:1px solid red; height:550px; width:100px;">
<?php if($num_img!='' && file_exists('images/bdd1/'.$num_img.'.jpg')) { ?>
<img src="images/bdd1/<?php echo $num_img; ?>.jpg" style="border:3px solid #000; height:550px;" alt="photo" />
<?php } elseif($num_img!='') { ?>
Oh bouffon ! C'est pas une image ton que-tru !
<?php } ?>
</td>
</tr>
<tr>
<td style="border:1px solid green; height:525px;">
toto
</td>
</tr>
</table>
<script language="JavaScript1.1">
<!--
hsh = new Date();
hsd = document;
hsr = hsd.referrer.replace(/[<>]/g, '');
hsi = '<a href="http://www.xiti.com/xiti.asp?s=119801"';
hsi += ' TARGET="_top"><img width="39" height="25" border=0 ';
hsi += 'src="http://logv22.xiti.com/hit.xiti?s=119801';
hsi += '&p=admin';
hsi += '&hl=' + hsh.getHours() + 'x' + hsh.getMinutes() + 'x' + hsh.getSeconds();
if(parseFloat(navigator.appVersion)>=4)
{Xiti_s=screen;hsi += '&r=' + Xiti_s.width + 'x' + Xiti_s.height + 'x' + Xiti_s.pixelDepth + 'x' + Xiti_s.colorDepth;}
hsd.writeln(hsi + '&ref=' + hsr.replace(/&/g, '$') + '" title="Mesurez votre audience"></a><\!--');
//-->
</script>
<noscript>
<a href="http://www.xiti.com/xiti.asp?s=119801" TARGET="_top"><img width="39" height="25" border=0 src="http://logv22.xiti.com/hit.xiti?s=119801&p=&admin" title="Mesurez votre audience"></a>
</noscript><!--//-->
</body>
</html> |