$row_sql["nid"], "sname"=>$row_sql["sshortname"], "longname"=>$row_sql["sname"]); } mysql_free_result ($result_sql); $allphotoarray = array(); if ($page==1&&!isset($groupbuysite[$mysite])&&!isset($dealtypearray[$mytype])&&!isset($pricearray[$myprice])) { if (false) { $command_sql = "select d.norder, d.nid,d.ssubject, d.sthumbpath,d.surl,d.ddealenddate,d.norgprice,d.nprice,d.ntotal,d.dcreatedate,s.sname, s.surl as siteurl, s.nimgheight, (select count(*) from deal_love where did=d.nid) as totallove, (select count(*) from deal_love where did=d.nid and mid=".intval($_SESSION["loginid"]).") as inmylove, (select count(*) from deal_bought where did=d.nid) as totalbought, (select count(*) from deal_bought where did=d.nid and mid=".intval($_SESSION["loginid"]).") as inmybought,s.slogopath,d.nsiteid,DATE_FORMAT(d.dcreatedate, '%Y%m%d') as orderdate, (d.ddealenddate$row_sql["nid"], "ssubject"=>$row_sql["ssubject"], "sthumbpath"=>$row_sql["sthumbpath"], "surl"=>$row_sql["surl"], "ddealenddate"=>$row_sql["ddealenddate"], "norgprice"=>$row_sql["norgprice"], "nprice"=>$row_sql["nprice"], "ntotal"=>$row_sql["ntotal"],"dcreatedate"=>$row_sql["dcreatedate"],"name"=>$row_sql["sname"],"siteurl"=>$row_sql["siteurl"],"logourl"=>$row_sql["slogopath"],"nsiteid"=>$row_sql["nsiteid"], "totalbought"=>$row_sql["totalbought"], "totallove"=>$row_sql["totallove"], "inmylove"=>$row_sql["inmylove"], "inmybought"=>$row_sql["inmybought"], "threads"=>array(), "nimgheight"=>$row_sql["nimgheight"]); array_push($allphotoarray,$row_sql["nid"]); } mysql_free_result ($result_sql); } if (false) { $command_sql = "select d.norder, d.nid,d.ssubject, d.sthumbpath,d.surl,d.ddealenddate,d.norgprice,d.nprice,d.ntotal,d.dcreatedate,s.sname, s.surl as siteurl, s.nimgheight, (select count(*) from deal_love where did=d.nid) as totallove, (select count(*) from deal_love where did=d.nid and mid=".intval($_SESSION["loginid"]).") as inmylove, (select count(*) from deal_bought where did=d.nid) as totalbought, (select count(*) from deal_bought where did=d.nid and mid=".intval($_SESSION["loginid"]).") as inmybought,s.slogopath,d.nsiteid,DATE_FORMAT(d.dcreatedate, '%Y%m%d') as orderdate, (d.ddealenddate$row_sql["nid"], "ssubject"=>$row_sql["ssubject"], "sthumbpath"=>$row_sql["sthumbpath"], "surl"=>$row_sql["surl"], "ddealenddate"=>$row_sql["ddealenddate"], "norgprice"=>$row_sql["norgprice"], "nprice"=>$row_sql["nprice"], "ntotal"=>$row_sql["ntotal"],"dcreatedate"=>$row_sql["dcreatedate"],"name"=>$row_sql["sname"],"siteurl"=>$row_sql["siteurl"],"logourl"=>$row_sql["slogopath"],"nsiteid"=>$row_sql["nsiteid"], "totalbought"=>$row_sql["totalbought"], "totallove"=>$row_sql["totallove"], "inmylove"=>$row_sql["inmylove"], "inmybought"=>$row_sql["inmybought"], "threads"=>array(), "nimgheight"=>$row_sql["nimgheight"]); array_push($allphotoarray,$row_sql["nid"]); } mysql_free_result ($result_sql); } } $command_sql = "select d.nid, (d.nid mod 12) as orderid,d.ssubject, d.sthumbpath,d.surl,d.ddealenddate,d.norgprice,d.nprice,d.ntotal,d.dcreatedate,s.sname, s.surl as siteurl, s.nimgheight, (select count(*) from deal_love where did=d.nid) as totallove, (select count(*) from deal_love where did=d.nid and mid=".intval($_SESSION["loginid"]).") as inmylove, (select count(*) from deal_bought where did=d.nid) as totalbought, (select count(*) from deal_bought where did=d.nid and mid=".intval($_SESSION["loginid"]).") as inmybought,s.slogopath,d.nsiteid,DATE_FORMAT(d.dcreatedate, '%Y%m%d') as orderdate, (d.ddealenddate$row_sql["nid"], "ssubject"=>$row_sql["ssubject"], "sthumbpath"=>$row_sql["sthumbpath"], "surl"=>$row_sql["surl"], "ddealenddate"=>$row_sql["ddealenddate"], "norgprice"=>$row_sql["norgprice"], "nprice"=>$row_sql["nprice"], "ntotal"=>$row_sql["ntotal"],"dcreatedate"=>$row_sql["dcreatedate"],"name"=>$row_sql["sname"],"siteurl"=>$row_sql["siteurl"],"logourl"=>$row_sql["slogopath"],"nsiteid"=>$row_sql["nsiteid"], "totalbought"=>$row_sql["totalbought"], "totallove"=>$row_sql["totallove"], "inmylove"=>$row_sql["inmylove"], "inmybought"=>$row_sql["inmybought"], "threads"=>array(), "nimgheight"=>$row_sql["nimgheight"]); array_push($allphotoarray,$row_sql["nid"]); } } mysql_free_result ($result_sql); $command_sql = "select t.nid, t.ndealid, t.uid, t.scomment, t.dcreatedate, m.sname, m.sfaceurl,m.nid as userid, t.nshow, m.nfbid from deal_comments t left join members m on t.uid=m.nid where t.nshow>=1 and t.ndealid in (".implode(",",$allphotoarray).") order by t.dcreatedate"; $result_sql=mysql_query($command_sql, $db_link); while ($row_sql = mysql_fetch_assoc($result_sql)) { array_push($dealdata[$row_sql["ndealid"]]["threads"],array("nfbid"=>$row_sql["nfbid"],"nid"=>$row_sql["nid"],"userid"=>$row_sql["userid"],"scomment"=>$row_sql["scomment"],"sname"=>$row_sql["sname"],"nshow"=>$row_sql["nshow"],"sfaceurl"=>$row_sql["sfaceurl"],"dcreatedate"=>time_elapsed_string(strtotime($row_sql["dcreatedate"])))); } mysql_free_result ($result_sql); mysql_close($db_link); ?> <? if (isset($groupbuysite[$mysite])) {?><? }?><? if (isset($pricearray[$myprice])) {?><? }?><? if (isset($pricearray[$myprice])||isset($groupbuysite[$mysite])) {?>的<? }?><? if (isset($dealtypearray[$mytype])) {?><? }?>團購優惠 - GroupBuyE 團購易香港團購導航 - 團購餐飲,美食,優惠券,購物券,化妝品團購

所有團購優惠

已完結
0&&(date('YmdH',strtotime($dealdata[$key]["ddealenddate"]))-date('YmdH')<24)) { ?>
最後今日
最新團購
20) { ?>
熱賣團購
0) {?>原價:$ | 特價:$