?? require("../config.php"); require($doc_lib."class.query.php"); //session_start(); $scat = ""; $mcat = ""; $hcid = ""; $query = new classQuery(); // generate the archive date and url for($x=3;$x>0;$x--) { $d = date("m-Y",mktime(0,0,0,date("m")-($x-1),date("d"),date("Y"))); $fd = date("F",mktime(0,0,0,date("m")-($x-1),date("d"),date("Y"))); $archive .="$fd "; } $sql = "SELECT cat.id,cat.name,count(p.special) as cnt FROM category as cat, product as p WHERE p.categoryid=cat.id AND p.special='1' GROUP BY cat.id HAVING cnt>0 ORDER BY cat.name"; $res = $query->query($sql); $num = $query->numrows($res); $i=0; while($row=mysql_fetch_assoc($res)) { $sql = "SELECT photo1 FROM product WHERE categoryid=$row[id] AND photo1<>'' ORDER BY RAND() LIMIT 1"; $rs = $query->query($sql); $rw = mysql_fetch_assoc($rs); if($i%5==0) $speciallist .= ""; $speciallist .= " "; $speciallist .= ""; $size = @getimagesize("http://www.unioncameraltd.com/products/$rw[photo1]"); if($size[0]>$size[1]) $image_size = "width=\"100\""; else $image_size = "height=\"100\""; $speciallist .= ""; $speciallist .= ""; $speciallist .= ""; $speciallist .= "
$row[name]"; $speciallist .= "


"; ++$i; if($i%5==0 || $num==$i) { if($i%5!=0) for($x=0;$x<5-($i%5);++$x) $speciallist .= "
 
"; $speciallist .= ""; } } ?>
30, July, 2010

English españolpyccko 中文 日本語

Главная/Специальные Предложения О нас Товары, Услуги и Процесс Отгрузки Как Купить? Возможности бизнеса Возможности трудоустройства Cвяжитесь с нами

Fatal error: Class 'classQuery' not found in /home/unioncameraltd/public_html/russian/box-hotitem.php on line 3