articles.php
上传用户:feiyaoda
上传日期:2016-11-21
资源大小:9556k
文件大小:2k
- //script articles
- <html>
- <head>
- <link rel="stylesheet" type="text/css" href="style.css">
- </head>
- </html>
- <?
- include "configuration.php";
- include "page_haut.inc";
- require ("xml_domit_parser.php");
- require ("xml_domit_utilities.php");
- require ("xml_domit_nodemaps.php");
- ?>
- <table border="1" cellpadding="5" cellspacing="0" bordercolordark="white" bordercolorlight="black">
- <tr>
- <?
- $prd=& new DOMIT_Document();
- $success=$prd->loadXML("./modules/client/admin/modules/administration/produits.xml");
-
- $cmp = count($prd->documentElement->childNodes);
- 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;
- $prdphoto=$currentprd->childNodes[8]->firstChild->nodeValue;
- $prdprix=$currentprd->childNodes[2]->firstChild->nodeValue;
- if ($prdphoto != "nul") {
- $split = explode("../", $prdphoto);
- $prdphoto = $split[1];
- $img = "<img src="./modules/client/$prdphoto" width='30%' border=0>";
- } else {
- $img = "<img src="./modules/client/$images/na.jpg" width='30%' border=0>";
- }
- echo "<td valign=top><center><a href="?m=client&a=detail&id=$prdid" target="_self"><font color=navy><b>$prdnom</b></font></a><br>";
- echo "<center><a href="?m=client&a=detail&id=$prdid" target="_self">$img</a>";
- echo "<br><center><font class='grand'><b>";
- $prix = $prdprix;
- $prix = sprintf("%0.2f", $prix);
- echo "$prix $devises TTC</b></font></td>";
- }
- }
- ?>
- </tr>
- </table>
- <?
- include "page_bas.inc";
- ?>