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 54 55 56 57 58 59 60 61 62 63
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>panier</title>
<script language="JavaScript">
function pop_up_panier(url_panier, name)
{
window.open (url_panier, name, config='toolbar=no, location=no, directories=no, status=yes, scrollbars=yes, resizable=yes, copyhistory=no, width=700, height=650')
}
function ajax_panier(url_panier, name)
{
var xhr=null;
if (window.XMLHttpRequest) {
xhr = new XMLHttpRequest();
}
else if (window.ActiveXObject)
{
xhr = new ActiveXObject("Microsoft.XMLHTTP");
}
xhr.open("GET", url_panier, false);
xhr.send(null);
}
</script>
</head>
<body>
<a href="panier.php" onclick="pop_up_panier(this.href, 'panier'); return false;">Afficher le panier</a>
<p> </p>
<?
$folder = "images";
$dossier = opendir($folder);
while ($Fichier = readdir($dossier))
{
if ($Fichier != "." && $Fichier != "..")
{
echo "<img src=\"images/$Fichier\" width=\"10%\" height=\"10%\">";
?>
<a href="javascript:ajax_panier('panier.php?action=ajout&l=produit1&q=1&p=1','panier');">10x15</a> -
<a href="javascript:ajax_panier('panier.php?action=ajout&l=produit2&q=1&p=2','panier');">13x18</a> -
<a href="javascript:ajax_panier('panier.php?action=ajout&l=produit3&q=1&p=3','panier');">18x24</a>
<?php
echo "<br>";
}
}
closedir($dossier);
?>
</body>
</html> |
Partager