promos.php
上传用户:feiyaoda
上传日期:2016-11-21
资源大小:9556k
文件大小:3k
- //script promos
- <html>
- <head>
- <link rel='stylesheet' href='style.css'>
- </head>
- <?php
- include ("configuration.php");
- include("page_haut.inc");
- require ("xml_domit_parser.php");
- require ("xml_domit_utilities.php");
- require ("xml_domit_nodemaps.php");
- echo"<br><br>";
- ?>
- <table border="0" bordercolorlight="black" width="90%" cellspacing="1">
- <tr><td><img src="./images/promos.png"></td></tr>
- <tr><td> </td></tr>
- </table>
- <p><b> Les meilleures promos</font> </b></p>
- <table border="1" bordercolordark="white" bordercolorlight="black" width="90%" cellspacing="1">
- <tr class=entete>
- <td align=center>Articles</td>
- <td align=center>Photo</td>
- <td align=center>Ancien Prix</td>
- <td align=center>Nouveau Prix</td>
- <td align=center>Visualiser</td>
- </tr>
- <?
- $prd=& new DOMIT_Document();
- $success=$prd->loadXML("./modules/client/admin/modules/administration/produits.xml");
-
- $comp = count($prd->documentElement->childNodes);
- for($i=0;$i<$comp;$i++){
- $currentprd =& $prd->documentElement->childNodes[$i];
- $promo=$currentprd->childNodes[4]->firstChild->nodeValue;
- if($promo==oui){
- $prdid=$currentprd->childNodes[0]->firstChild->nodeValue;
- $prdnom=$currentprd->childNodes[1]->firstChild->nodeValue;
- $prdprix=$currentprd->childNodes[2]->firstChild->nodeValue;
- $prdancienprix=$currentprd->childNodes[5]->firstChild->nodeValue;
- $prdphoto=$currentprd->childNodes[8]->firstChild->nodeValue;
- $split = explode("../", $prdphoto);
- $prdphoto = $split[1];
- $img = "<img src="./modules/client/$prdphoto" border="0" width='50'>";
- $ancienprix = $prdancienprix;
- $ancienprix = sprintf("%0.2f", $ancienprix);
- $nouveauprix = $prdprix;
- $nouveauprix = sprintf("%0.2f", $nouveauprix);
- echo "<tr><td align='center'><b > $prdnom </b></td>";
- echo "<td> $img </td><td><b><center><font class='promo2'>$ancienprix </b></font></td><td><center><font class=grand><b><a href="?m=client&a=detail&id=$prdid" target="_self">$nouveauprix</b></a></font></td><td><a href="?m=client&a=detail&id=$prdid" target="_self"><center><img src= "./images/visu.gif" border="0" alt="Visualiser l'article"></a></td></tr>";
-
- }
- }
- ?>
- </table>
- <table width=95%>
- <tr><td> </td></tr>
- <tr><td> </td></tr>
- <tr><td> </td></tr>
- <tr><td> <hr></td></tr>
- <tr><td align=center><font size="-2" face="Verdana, Arial, Helvetica, sans-serif">© Copyright WebGenerator.com. Tous
- droits réservés</FONT></td></tr>
- </table>
- <?
- include("page_bas.inc");
- ?>