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

WEB Mail

Development Platform:

PHP

  1. //script editer_prd1
  2. <table  width="90%" cellpadding="1" cellspacing="1" >
  3. <tr><td><img src="./images/administration.png"></td></tr>
  4. </table>
  5. <table  width="80%" cellpadding="1" cellspacing="1" >
  6. <tr><td><img src="./images/edition.png"></td></tr>
  7. <tr><td>&nbsp;</td></tr>
  8. <tr><td>&nbsp;</td></tr>
  9. </table>
  10. <?
  11. include "page_haut.inc";
  12. require ("xml_domit_parser.php");
  13. require ("xml_domit_utilities.php");
  14. require ("xml_domit_nodemaps.php");
  15. echo "<center>";
  16. echo "<table border="0" width="90%" cellpadding="1" cellspacing="1" >";
  17. echo "<tr>";
  18. echo "</tr><tr>";
  19. echo "<td valign="middle"><font color='navy'>Modifier l'article </font></td><td>&nbsp;";
  20. echo"<form action='?m=administration&a=editer_prd2' method='post' target='_self'>";
  21. echo"<select name=id>";
  22.    $prd=& new DOMIT_Document();
  23.               $success=$prd->loadXML("./modules/administration/produits.xml");
  24.               
  25.              $cmp = count($prd->documentElement->childNodes);
  26. for ($i = 0; $i < $cmp; $i++) {
  27. $currentprd =& $prd->documentElement->childNodes[$i];
  28.         $prdid=$currentprd->childNodes[0]->firstChild->nodeValue;
  29.                  $prdnom=$currentprd->childNodes[1]->firstChild->nodeValue; 
  30. echo "<option name="id" value=" $prdid">$prdnom &nbsp;";
  31. echo "</option>"; 
  32. }
  33. echo "</select>";
  34. echo "<input type=Submit value=' Ok '>
  35. </form></td></tr></table>";
  36. ?>