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

WEB Mail

Development Platform:

PHP

  1. //script pcatalogue
  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.      $prd=& new DOMIT_Document();
  9.               $success=$prd->loadXML("./modules/client/admin/modules/administration/produits.xml");
  10.               
  11.              $cmp = count($prd->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="80%" cellpadding="1" cellspacing="1" >";
  17. echo"<tr><td> <p class=catg>Choisissez votre produit pr閒閞閑</p></td></tr>";
  18. echo"<tr><td>&nbsp;</td></tr>";
  19. echo"</table>";
  20. echo"<table border='0' cellpadding='2' cellspacing='2' style='border-collapse: collapse' bordercolor='#111111' width='380' height='110' id='AutoNumber1'>";
  21. for ($i = 0; $i < $cmp; $i++) {
  22. $currentprd =& $prd->documentElement->childNodes[$i];
  23.         $scatgid=$currentprd->childNodes[10]->firstChild->nodeValue;
  24. if($scatgid==$sid){
  25.                  $prdid=$currentprd->childNodes[0]->firstChild->nodeValue; 
  26.  $prdnom=$currentprd->childNodes[1]->firstChild->nodeValue; 
  27.                  $prdprix=$currentprd->childNodes[2]->firstChild->nodeValue; 
  28.  $prdpht=$currentprd->childNodes[8]->firstChild->nodeValue; 
  29.  $prddes=$currentprd->childNodes[7]->firstChild->nodeValue;
  30. $photo=explode("..",$prdpht);
  31. $pht=$photo[1];
  32.   echo"
  33.     <tr>
  34.       <td width='250' height='51' ><a href='?m=client&a=detail&id=$prdid' target='_self'>$prdnom</a></td>
  35.     </tr>
  36.     <tr >
  37.  <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>
  38.  <td>&nbsp;</td>  <td width='220' height='55'> Prix: $prdprix </td>
  39.     </tr>";
  40. echo "<tr width='380'><td><hr color="#d9eafb"></td></tr>";
  41. }
  42. }
  43. echo"</table>";
  44. echo"</form>";
  45. ?>