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
|
<html>
<head>
<script type="text/javascript">
function see_picture(picture)
{
var file = /File=(.*)/;
var dossier = file.exec(window.parent.location)[1];
var reg = /\/{1}(.*)\//;
var link = reg.exec(dossier)[0] + picture;
var reg = /\/(.*)/
var url = reg.exec(link)[1];
document.getElementById('picture').innerHTML = '<p>Picture : <p><a href="' + url + '" rel="lytebox" title="difference"><img src="' + url + '" alt="difference"></a></p></p>';
}
</script>
<script type="text/javascript" language="javascript" src="js/lytebox.js"></script>
<link rel="stylesheet" media="screen" type="text/css" title="Design" href="css/detail.css" />
</head>
<?php
if (isset($_GET['picture']))
echo "<body onload=\"see_picture('".htmlspecialchars($_GET['picture'])."')\">";
else
echo "<body>";
if (isset($_GET['remarks']))
echo "<div id=\"remarks\"><p>Remark : ".$_GET['remarks']."</p></div>";
if (isset($_GET['picture']))
echo "<div id=\"picture\" class=\"picture\"></div>";
echo "</body>";
?>
</html> |