"; //echo "amountfilexml=".$amountfilexml."
"; for($i=1;$i<=$amountfilexml;$i++){ if($typeid == '' || $typeid == '0'){ if($i=='1'){ $filename = "xml/wallpaper_animate.xml"; }else if($i=='2'){ $filename = "xml/wallpaper.xml"; }else if($i=='3'){ $filename = "xml/theme_nokia.xml"; }else if($i=='4'){ $filename = "xml/java_game.xml"; }else if($i=='5'){ $filename = "xml/ringtone.xml"; }else if($i=='6'){ $filename = "xml/gag.xml"; } $ir = $i; }else{ if($typeid=='1'){ $filename = "xml/wallpaper_animate.xml"; }else if($typeid=='2'){ $filename = "xml/wallpaper.xml"; }else if($typeid=='3'){ $filename = "xml/theme_nokia.xml"; }else if($typeid=='4'){ $filename = "xml/java_game.xml"; }else if($typeid=='5'){ $filename = "xml/ringtone.xml"; }else if($typeid=='6'){ $filename = "xml/gag.xml"; } $ir = $typeid; } //echo ("$filename
"); $urlfile = "allcontent.php?typeid=".$ir; $doc = new DOMDocument(); $doc->load( $filename ); $name = $doc->getElementsByTagName("name"); $total = $doc->getElementsByTagName("total"); $subcategory_name = $doc->getElementsByTagName("subcategory_name"); $cname = $name->item(0)->nodeValue; $ctotal = $total->item(0)->nodeValue; $csubcategory_name = $subcategory_name->item(0)->nodeValue; $content = $doc->getElementsByTagName("content"); //echo "ctotal=".$ctotal."
"; //echo "csubcategory_name=".$csubcategory_name."
"; ?>
getElementsByTagName( "contentcode" ); $ccode = $contentcode->item(0)->nodeValue; $partnercode = $cc->getElementsByTagName( "partnercode" ); $pcode = $partnercode->item(0)->nodeValue; $contentshortcode = $cc->getElementsByTagName( "contentshortcode" ); $shortcode = $contentshortcode->item(0)->nodeValue; $contentnameth = $cc->getElementsByTagName( "contentnameth" ); $nameth = $contentnameth->item(0)->nodeValue; $contentnameen = $cc->getElementsByTagName( "contentnameen" ); $nameen = $contentnameen->item(0)->nodeValue; $previewlink = $cc->getElementsByTagName( "previewlink" ); $viewlink = $previewlink->item(0)->nodeValue; $weblink = $cc->getElementsByTagName( "weblink" ); $pathlink = $weblink->item(0)->nodeValue; $price = $cc->getElementsByTagName( "price" ); $cprice = $price->item(0)->nodeValue; $contentid = $i; $loopfilename = "img/preview/agc/pillowmon/".$i.".gif"; $tourl = "content.php?ajax=true&width=700px&height=447px&ccode=".$ccode."&pcode=".$pcode."&shortcode=".$shortcode."&nameth=".$nameth."&nameen=".$nameen."&pathlink=".$pathlink."&cname=".$cname."&cprice=".$cprice; //echo "tourl=".$tourl."
"; ?>