libdir/state.php"); //頁尾 $sql_footer=db_query("select description from footer_info".$lang["language"]." where id=1 "); //即時新聞 $sql_offhand_news = db_query("SELECT * FROM news".$lang["language"]." WHERE (available='1' or (available='0' and sdate <= '".date("Y-m-d")."' AND edate >= '".date("Y-m-d")."')) and category ='1' ORDER BY id desc LIMIT 0, 10"); /*if(db_num_rows($sql_offhand_news) >0) { if(db_num_rows($sql_offhand_news) < 1){$offhand_for_value = db_num_rows($sql_offhand_news);}else{$offhand_for_value =1;} $offhand_newsRand = rand_value($offhand_for_value,db_num_rows($sql_offhand_news)); }*/ //商務資訊 $sql_bus_news = db_query("SELECT * FROM news".$lang["language"]." WHERE (available='1' or (available='0' and sdate <= '".date("Y-m-d")."' AND edate >= '".date("Y-m-d")."')) and category ='3' ORDER BY id desc "); if(db_num_rows($sql_bus_news) >0) { if(db_num_rows($sql_bus_news) < 5){$bus_for_value = db_num_rows($sql_bus_news);}else{$bus_for_value =5;} $bus_newsRand = rand_value($bus_for_value,db_num_rows($sql_bus_news)); } //生活資訊 $sql_lives_info = db_query("SELECT t1.* FROM lives_info".$lang["language"]." as t1 inner join lives_info_cate".$lang["language"]." as t2 on t1.cateId=t2.id WHERE (t1.available='1' or (t1.available='0' and t1.sdate <= '".date("Y-m-d")."' AND t1.edate >= '".date("Y-m-d")."')) and t2.available='1' ORDER BY t2.id ,t1.numbered LIMIT 0, 6"); //地方巡禮 $sql_customs = db_query("SELECT t1.* FROM social_customs".$lang["language"]." as t1 inner join social_customs_cate".$lang["language"]." as t2 on t1.cateId=t2.id WHERE (t1.available='1' or (t1.available='0' and t1.sdate <= '".date("Y-m-d")."' AND t1.edate >= '".date("Y-m-d")."')) and t2.available='1' ORDER BY t2.id ,t1.numbered "); if(db_num_rows($sql_customs) >0) { if(db_num_rows($sql_customs) < 1){$for_value = db_num_rows($sql_customs);}else{$for_value =1;} $customsRand = rand_value($for_value,db_num_rows($sql_customs)); } //生活資訊 $sql_comm_city = db_query("SELECT t1.* FROM commercial_city".$lang["language"]." as t1 inner join commercial_city_cate".$lang["language"]." as t2 on t1.cateId=t2.id WHERE (t1.available='1' or (t1.available='0' and t1.sdate <= '".date("Y-m-d")."' AND t1.edate >= '".date("Y-m-d")."')) and t2.available='1' ORDER BY t2.id ,t1.numbered LIMIT 0, 6"); //計數器 $sql_counter = db_query("select sum(pagecounter) as pagecounter from page_counter".$lang["language"]); $rs_counter = db_fetch_array($sql_counter); $Gdraw =""; for($i=1;$i<=7-strlen($rs_counter["pagecounter"]);$i++){ $Gdraw .= ""; } for($i=0;$i"; } //大廣告 $sql_big_ad = db_query("SELECT id,up_file,link_url FROM ad".$lang["language"]." WHERE (available='1' or (available='0' and sdate <= '".date("Y-m-d")."' AND edate >= '".date("Y-m-d")."')) and adType='1'"); /* if(db_num_rows($sql_big_ad) >0) { if(db_num_rows($sql_big_ad) < 1){$big_for_value = db_num_rows($sql_big_ad);}else{$big_for_value =1;} $big_adRand = rand_value($big_for_value,db_num_rows($sql_big_ad)); }*/ if(db_num_rows($sql_big_ad) >0){ $num_total2 = db_num_rows($sql_big_ad); $iValue3 = "imageArray3=new Array(".$num_total2.");"; $iValue4 = "imageArray4=new Array(".$num_total2.");"; $i=0; while($rs_big_ad = db_fetch_array($sql_big_ad)) { $iValue3 .= "imageArray3[".$i."]='".$rs_big_ad["up_file"]."';"; $iValue4 .= "imageArray4[".$i."]='".$rs_big_ad["link_url"]."';"; $i++; } ?> :::: 旱溪地區報 HANSI NEWS :::: /temp.css" rel="stylesheet" type="text/css"> document.qform.submit();setTimeout('change_image()', 6000);setTimeout('change_image2()', 6000);" >

 
 
0){?>

 
"> " target="_blank"> (更新日期:)


0){ for($k=0;$k= '".date("Y-m-d")."')) and category ='3' ORDER BY id desc LIMIT ".$limitValue.",1"); if(db_num_rows($sql_bus_news3) >0){ $rs_bus_news=db_fetch_array($sql_bus_news3); if($rs_bus_news["available"]==1){$date= $rs_bus_news["createDate"];}else{$date= $rs_bus_news["sdate"];} //連結 if($rs_bus_news["conType"]==0){$bus_link = ""; }else{ $bus_link = ""; } ?>


3){$i=1;} $chk_table = $i %3; ?>
">
  >> 更多  
3){$i=1;} $chk_table = $i %3; ?>
">
  >> 更多  
0){ for($k=0;$k= '".date("Y-m-d")."')) and t2.available='1' ORDER BY t2.id ,t1.numbered LIMIT ".$limitValue.",1"); if(db_num_rows($sql_customs3) >0){ $rs_customs=db_fetch_array($sql_customs3); //圖檔 if($rs_customs["up_file"] != "") { $image_customs = $CFG->wwwimage."/customs/".$rs_customs["up_file"]; } else { $image_customs = $CFG->wwwroot."/images/_tw/nopic.gif"; } //連結 if($rs_customs["conType"]==0){$customs_link = ""; }else{ $customs_link = ""; } ?>
">