pcatalogue.php
上传用户:feiyaoda
上传日期:2016-11-21
资源大小:9556k
文件大小:2k
- //script pcatalogue
- <?
- include "page_haut.inc";
- require ("xml_domit_parser.php");
- require ("xml_domit_utilities.php");
- require ("xml_domit_nodemaps.php");
- echo"<br><br>";
- $prd=& new DOMIT_Document();
- $success=$prd->loadXML("./modules/client/admin/modules/administration/produits.xml");
-
- $cmp = count($prd->documentElement->childNodes);
- echo"<form method='post' name='form1'>";
- echo "<table border="0" width="90%" cellpadding="1" cellspacing="1" >";
- echo "<tr>";
- echo "<td valign="middle"><img src='./images/nos-produits.png'></td><td> </td></tr></table>";
- echo "<table border="0" width="80%" cellpadding="1" cellspacing="1" >";
- echo"<tr><td> <p class=catg>Choisissez votre produit pr閒閞閑</p></td></tr>";
- echo"<tr><td> </td></tr>";
- echo"</table>";
- echo"<table border='0' cellpadding='2' cellspacing='2' style='border-collapse: collapse' bordercolor='#111111' width='380' height='110' id='AutoNumber1'>";
- for ($i = 0; $i < $cmp; $i++) {
- $currentprd =& $prd->documentElement->childNodes[$i];
- $scatgid=$currentprd->childNodes[10]->firstChild->nodeValue;
- if($scatgid==$sid){
- $prdid=$currentprd->childNodes[0]->firstChild->nodeValue;
- $prdnom=$currentprd->childNodes[1]->firstChild->nodeValue;
- $prdprix=$currentprd->childNodes[2]->firstChild->nodeValue;
- $prdpht=$currentprd->childNodes[8]->firstChild->nodeValue;
- $prddes=$currentprd->childNodes[7]->firstChild->nodeValue;
- $photo=explode("..",$prdpht);
- $pht=$photo[1];
- echo"
- <tr>
- <td width='250' height='51' ><a href='?m=client&a=detail&id=$prdid' target='_self'>$prdnom</a></td>
- </tr>
- <tr >
- <td width='182' height='90' rowspan='1'><a href='?m=client&a=detail&id=$prdid' target='_self'><img src='./modules/client$pht' width='83' height='82' border='0' ></a ></td>
- <td> </td> <td width='220' height='55'> Prix: $prdprix </td>
- </tr>";
- echo "<tr width='380'><td><hr color="#d9eafb"></td></tr>";
- }
- }
- echo"</table>";
- echo"</form>";
- ?>