
服務項目
Service
-
網站與形象設計
形象官網設計 客製化網站設計 平面印刷設計 -
行銷規劃與諮詢
網站規劃服務 在線客服諮詢 網路行銷規劃 -
網站優化與維護
虛擬主機任賃 基礎SEO優化 網站維護代管

精選作品
Collections
-
#preinclude#
include_once("inc/config.php");
include_once("function/sql_func.php");
include_once("function/str_func.php");
include_once("function/form_func.php");
include_once("function/theme_func.php");
//include_once("../function/mail_func.php");
//include_once("../tw/mem_chklogin.php");
#pre defined#
$cfg['lang']="tw";
//$pid=substr($_REQUEST['pid'],0,20);
$type=$_REQUEST["type"];
$qty=$_REQUEST["qty"];
$cate=$_REQUEST["cate"];
$cid=$_REQUEST["cid"];
$size=$_REQUEST["size"];
$delay=6000;
$show=$_REQUEST["show"];
$odr=$_REQUEST["odr"];
$txt=$_REQUEST["txt"];
$txt1=$_REQUEST["txt1"];
$txt2=$_REQUEST["txt2"];
$txt3=$_REQUEST["txt3"];
$txt4=$_REQUEST["txt4"];
$txt5=$_REQUEST["txt5"];
$txt6=$_REQUEST["txt6"];
$txt7=$_REQUEST["txt7"];
$txt8=$_REQUEST["txt8"];
$sqlcol="";
for($i=1;$i<=16;$i++){
${"col".$i}="";
if(!empty($_REQUEST["col".$i])) {
${"col".$i}=str_replace(array("\r","\n"),"",mb_substr(strip_tags($_REQUEST["col".$i]),0,10,"utf-8"));
$sqlcol.=" and th_col".$i." like '%".${"col".$i}."%' ";
}
}
/*
說明 在原本的參數後面加 col1 ~ col8 就能抓到指定的目標
ex: adm18.php?col5=春;
col對應
1.縣市
2.鄉鎮
3.類別
4.景點
5.四季
6.活動
7.主題
8.其他
txt對應
txt=標題
txt1=文章
txt2=縣市
txt3=鄉鎮
txt4=類別
txt5=景點
txt6=四季
txt7=活動
txt8=主題
txt9=其他
*/
if(!empty($_REQUEST["delay"])) $delay=trim($_REQUEST["delay"]);
if(!empty($_REQUEST["size"])) $size=" width=".str_replace("x"," height=",$size." ");
$order=" rand() ";
if($odr=="desc") $order=" th_odr desc ";
if($odr=="asc") $order=" th_odr asc ";
if($qty==1||empty($qty)){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."' ";
if(!empty($cid)) $sql.=" and th_uid='".$cid."' ";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,1";
$result=DB_GetRow($sql);
//print_r($result);
$link="javascript:body.focus()";
$linktype=$result["th_subodr"];
if(!empty($result)) $piclink=$result["th_detail"];
if(!empty($result["th_subremark"])) $link=$result["th_subremark"];
if(!empty($result)){
//$output="
".$result["th_title"]."
".$result["th_remark"]."
".$result["th_col1"]."