scatalogue.php
Upload User: feiyaoda
Upload Date: 2016-11-21
Package Size: 9556k
Code Size: 2k
Category:

WEB Mail

Development Platform:

PHP

  1. //script scatalogue
  2. <?
  3. include "page_haut.inc";
  4. require ("xml_domit_parser.php");
  5. require ("xml_domit_utilities.php");
  6. require ("xml_domit_nodemaps.php"); 
  7. echo"<br><br>";
  8.       $scatg=& new DOMIT_Document();
  9.               $success=$scatg->loadXML("./modules/client/admin/modules/administration/souscategories.xml");
  10.               
  11.              $cmp = count($scatg->documentElement->childNodes);
  12. echo"<form method='post' name='form1'>";
  13. echo "<table border="0" width="90%" cellpadding="1" cellspacing="1" >";
  14. echo "<tr>";
  15. echo "<td valign="middle"><img src='./images/nos-produits.png'></td><td>&nbsp;</td></tr></table>";
  16. echo"<table border="0" width="75%" cellpadding="1" cellspacing="1" >";
  17. echo"<tr><td><p class=catg> Choisissez votre sous cat間orie pr閒閞閑</p></td></tr>";
  18. echo"<tr><td>&nbsp;</td></tr>";
  19. echo"<tr><td>&nbsp;</td></tr>";
  20. echo"</table>";
  21. echo "<table border="0" width="50%" cellspacing="0" cellpadding="0" >";
  22. for ($i = 0; $i < $cmp; $i++) {
  23. $currentscatg =& $scatg->documentElement->childNodes[$i];
  24.         $sscatgid=$currentscatg->childNodes[3]->firstChild->nodeValue;
  25. if($sscatgid==$id){
  26.                  $scatgid=$currentscatg->childNodes[0]->firstChild->nodeValue; 
  27.  $scatgnom=$currentscatg->childNodes[1]->firstChild->nodeValue; 
  28.                  $scatgpht=$currentscatg->childNodes[2]->firstChild->nodeValue; 
  29. $photo=explode("..",$scatgpht);
  30. $pht=$photo[1];
  31. echo"
  32. <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>&nbsp</td><td><a href='?m=client&a=pcatalogue&sid=$scatgid' target='_self'>$scatgnom</a></td></tr>";
  33. echo "<tr><td><hr color="#d9eafb"></td></tr>";
  34. }
  35. }
  36. echo"</table>";
  37. echo"<table><tr><td><hr color="#d9eafb"></td></tr></table>";
  38. echo"</form>";
  39. ?>