Untitled Document

کتابخانه بانو امین(ره)

تغییر اندازه فونت

A+ | A- | Reset

SetQuery("SELECT name FROM #__xegallerypro_catg WHERE published = '1' ORDER BY ordering asc"); $catnames=$database->loadObjectList(); $playlist = "\n"; $playlist .= "\n"; foreach($catnames as $catname) { $database->SetQuery("SELECT * FROM #__xegallerypro as a " . "\n left join #__xegallerypro_catg as c on c.cid=a.catid" . "\n WHERE a.published = '1' AND c.name = '" . $catname->name . "'"); $rows = $database->loadObjectList(); $playlist .= ""; foreach($rows as $row) { $playlist .= "" . $mosConfig_live_site . "/components/com_xegallerypro/img_pictures/" . $row->imgfilename . "" . $row->imgtitle . "" . $mosConfig_live_site . "/components/com_xegallerypro/img_thumbnails/" . $row->imgthumbname . "" . $row->imgtext . "\n"; } $playlist .= ""; } $playlist .= ""; $playlist = utf8_encode($playlist); $thefile = fopen($mosConfig_absolute_path . "/" . $file, "w+"); fwrite($thefile, $playlist); fclose($thefile); } ?>