scatalogue.php
上传用户:feiyaoda
上传日期:2016-11-21
资源大小:9556k
文件大小:2k
- //script scatalogue
- <?
- include "page_haut.inc";
- require ("xml_domit_parser.php");
- require ("xml_domit_utilities.php");
- require ("xml_domit_nodemaps.php");
- echo"<br><br>";
- $scatg=& new DOMIT_Document();
- $success=$scatg->loadXML("./modules/client/admin/modules/administration/souscategories.xml");
-
- $cmp = count($scatg->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="75%" cellpadding="1" cellspacing="1" >";
- echo"<tr><td><p class=catg> Choisissez votre sous cat間orie pr閒閞閑</p></td></tr>";
- echo"<tr><td> </td></tr>";
- echo"<tr><td> </td></tr>";
- echo"</table>";
- echo "<table border="0" width="50%" cellspacing="0" cellpadding="0" >";
- for ($i = 0; $i < $cmp; $i++) {
- $currentscatg =& $scatg->documentElement->childNodes[$i];
- $sscatgid=$currentscatg->childNodes[3]->firstChild->nodeValue;
- if($sscatgid==$id){
- $scatgid=$currentscatg->childNodes[0]->firstChild->nodeValue;
- $scatgnom=$currentscatg->childNodes[1]->firstChild->nodeValue;
- $scatgpht=$currentscatg->childNodes[2]->firstChild->nodeValue;
-
- $photo=explode("..",$scatgpht);
- $pht=$photo[1];
- echo"
- <tr><td align='center'><a href='?m=client&a=pcatalogue&sid=$scatgid' target='_self'><img src='./modules/client$pht' width='92' height='82' border='0'></a></td><td> </td><td><a href='?m=client&a=pcatalogue&sid=$scatgid' target='_self'>$scatgnom</a></td></tr>";
- echo "<tr><td><hr color="#d9eafb"></td></tr>";
- }
- }
- echo"</table>";
- echo"<table><tr><td><hr color="#d9eafb"></td></tr></table>";
- echo"</form>";
- ?>