/**DEDECMS Home and list pages call multiple pictures in a single picture set function Getimg ($aid, $imgwith =110, $imgheight =110, $num =0) {global $dsql; $imgurls = "; $row = $dsql->getone ("Select Aid,imgurls from ' js_addonimages ' where aid= ' $aid '"); $id = $row [' Aid ']; $imgurls = $row [' Imgurls ']; $DTP = new Dedetagparse (); $DTP->loadsource ($imgurls); if (Is_array ($DTP->ctags)) {$i = 0; foreach ($DTP->ctags as $ctag) {if ($i < $num) {if ($ctag->getname () = = "img") {$bigimg = Trim ($ctag->getinnertext ()); if ($ctag->getatt (' ddimg ')! = $bigimg && $ctag->getatt (' ddimg ') '! = ') { $litimg = $ctag->getatt (' ddimg '); } $title = $ctag->getatt (' text '); $imglist. = ' <li><a title= '. $title. ' href= '/plus/view.php?aid= '. $id. ' " ></a></li> '; $i + +; }}}} return $imglist; }
DEDECMS Home and list pages call multiple pictures in a single picture set