#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>
#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"];
$sqlcol="";
for($i=1;$i<=8;$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.其他
*/
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="

";
if(strpos($piclink,".swf")!==false) $output="
";
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js") $output="document.write('".addslashes($output)."')";
}//end type1
if($qty>1){
$sql="select * from oki_thedata_banner where th_status<>'-1' and th_open='Y' $sqlcol ";
if(!empty($cate)) $sql.=" and th_upid='".$cate."'";
$sql.=make_sqlstr_date("th_opendate","th_closedate",$cfg["date"]);
$sql.=" order by $order limit 0,$qty ";
$result=DB_GetAll($sql);
if(!empty($result)){
$i=0;
$output="";
$idrand="oki_ad".rand(10000,99999)."_";
foreach($result as $value){
$link="javascript:body.focus()";
$linktype=$value["th_subodr"];
if(!empty($value)) $piclink=$value["th_detail"];
if(!empty($value["th_subremark"])) $link=$value["th_subremark"];
$i++;
$none="none";
if($i==1) $none="";
$output.="
";
(strpos($piclink,".swf")!==false) ? $output.="" : $output.="";
$output.="\n";
}
$outputjs=$idrand."now=1\n";
$outputjs.=$idrand."all=$i\n";
$outputjs.="function chg_".$idrand."(){\n";
$outputjs.="for(i=1;i<=".$idrand."all;i++){\n";
$outputjs.="document.getElementById('".$idrand."'+i).style.display='none'\n";
$outputjs.="}\n";
$outputjs.=$idrand."now++\n";
$outputjs.="if(".$idrand."now>".$idrand."all) ".$idrand."now=1 \n";
$outputjs.="document.getElementById('".$idrand."'+".$idrand."now).style.display=''\n";
$outputjs.="}\n";
$outputjs.="setInterval(chg_".$idrand.",$delay)\n";
if($show=="all") {
$output=str_replace("","",$output);
$output=str_replace("display:none","",$output);
$outputjs ="";
}
}else{
$piclink="nopic.jpg";
$output="

";
}
if($type=="js"){
//$output="document.write('".addslashes(str_replace("\n","",$output))."')\n".$outputjs;
//$output="document.write('".addslashes( $output )."')";
//$output=str_replace("\n","');\n document.write('",$output).$outputjs;
$rdm_id="oki_pt_".rand(1,3000000);
$opt="document.write('
');\n";
$opt.="document.getElementById('".$rdm_id."').innerHTML='".addslashes( str_replace("\n","",$output) )."'";
$output=$opt;
}else{
if(!empty($outputjs)) $output.="\n\n";
}
}
echo $output;
?>