Old stuff/old_sites/pigeon/shop.php
(Deskargatu)
<? include("connect.php"); include("func.php"); ?>
<html>
<head>
<title> - LBB - The Shop </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
color: #333333;
}
li { margin:10px 0; }
body {
margin-left: 15px;
margin-top: 15px;
margin-right: 15px;
margin-bottom: 15px;
}
a:link {
color: #000000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #999999;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: none;
}
span.gris { color:#bbb; }
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body bgcolor="#ffffff" onLoad="MM_preloadImages('images/home_on.png','images/shop_on.png','images/pigeon_on.png','images/mega_on.png','images/contact_on.png')">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="780">
<tr>
<td><img src="images/spacer.gif" width="196" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="7" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="18" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="198" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="338" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="23" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td colspan="6"><img name="shop_r1_c1" src="images/header.png" width="780" height="384" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="1" height="384" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="3" colspan="2"><img name="shop_r2_c1" src="images/nav.png" width="203" height="74" border="0" alt=""></td>
<td colspan="4"><img name="shop" src="images/shop.png" width="577" height="41" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="1" height="41" border="0" alt=""></td>
</tr>
<tr>
<td colspan="4"><img name="shop_r3_c3" src="images/shop_r3_c3.png" width="577" height="21" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="1" height="21" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="6" colspan="2"><img name="shop_r4_c3" src="images/shop_r4_c3.png" width="216" height="121" border="0" alt=""></td>
<td rowspan="4" align="left" valign="top"><p align="center">PROMO<strong>PROMO</strong>PROMO<strong><strong>PROMO</strong></strong>PROMO<strong><strong>PROMO</strong></strong>PROMO<strong><strong>PROMO</strong></strong></p>
<ul>
<?
$date= date(YmdHis);
$query = "SELECT * FROM pig_promo WHERE expiration > $date LIMIT 2";
$result = mysql_query($query) or die(mysql_error());
if (mysql_num_rows($result) == 0) { echo "<p>Pas de promos actuellement.</p>"; }
while($row = mysql_fetch_assoc($result))
{
$row{'expiration'} =
preg_replace(
"/([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{6})/",
"$3/$2/$1",
$row{'expiration'}
);
$row{'date'} =
preg_replace(
"/([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{6})/",
"$3/$2/$1",
$row{'date'}
);
echo "<li>".$row{'contenu'}."<br >
<span class=\"gris\">(offre valable du ".$row{'date'}." au ".$row{'expiration'}.")</span></li>\n";
}
?>
</ul></td>
<td rowspan="14"><img name="shop_r4_c6" src="images/shop_r4_c6.png" width="23" height="648" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="1" height="12" border="0" alt=""></td>
</tr>
<tr>
<td><a href="index.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image44','','images/home_on.png',1)"><img src="images/home.png" name="Image44" width="196" height="28" border="0"></a></td>
<td rowspan="13"><img name="shop_r5_c2" src="images/shop_r5_c2.png" width="7" height="636" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="1" height="28" border="0" alt=""></td>
</tr>
<tr>
<td><img name="shop_r6_c1" src="images/shop_r6_c1.png" width="196" height="39" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="1" height="39" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="2"><a href="shop.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image45','','images/shop_on.png',1)"><img src="images/menushop.png" name="Image45" width="196" height="28" border="0"></a></td>
<td><img src="images/spacer.gif" width="1" height="18" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="2"><img name="shop_r8_c5" src="images/shop_r8_c5.png" width="338" height="24" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="1" height="10" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="2"><img name="shop_r9_c1" src="images/shop_r9_c1.png" width="196" height="39" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="1" height="14" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="8"><img name="shop_r10_c3" src="images/shop_r10_c3.png" width="18" height="527" border="0" alt=""></td>
<td style="background-color:#f7f7f7" colspan="2" rowspan="7" align="left" valign="top">
<?
$query = "SELECT contenu FROM pig_shop";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_assoc($result);
affichage($row{'contenu'},0,0);
?>
</td>
<td><img src="images/spacer.gif" width="1" height="25" border="0" alt=""></td>
</tr>
<tr>
<td><a href="pigeon.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image46','','images/pigeon_on.png',1)"><img src="images/menupigeon.png" name="Image46" width="196" height="28" border="0"></a></td>
<td><img src="images/spacer.gif" width="1" height="28" border="0" alt=""></td>
</tr>
<tr>
<td><img name="shop_r12_c1" src="images/shop_r12_c1.png" width="196" height="39" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="1" height="39" border="0" alt=""></td>
</tr>
<tr>
<td><a href="mega.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image47','','images/mega_on.png',1)"><img src="images/mega.png" name="Image47" width="196" height="28" border="0"></a></td>
<td><img src="images/spacer.gif" width="1" height="28" border="0" alt=""></td>
</tr>
<tr>
<td><img name="shop_r14_c1" src="images/shop_r14_c1.png" width="196" height="39" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="1" height="39" border="0" alt=""></td>
</tr>
<tr>
<td><a href="contact.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image48','','images/contact_on.png',1)"><img src="images/contact.png" name="Image48" width="196" height="28" border="0"></a></td>
<td><img src="images/spacer.gif" width="1" height="28" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="2"><img name="shop_r16_c1" src="images/shop_r16_c1.png" width="196" height="340" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="1" height="114" border="0" alt=""></td>
</tr>
<tr>
<td colspan="2"><img name="shop_r17_c4" src="images/shop_r17_c4.png" width="536" height="226" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="1" height="226" border="0" alt=""></td>
</tr>
</table>
</center>
</body>
</html>