??php /* 首頁控制?*/ // 載入 Initialize Setup 初始化配置檔 require_once('init.php'); // 載入 預設連結? require_once(INCDIR . '/inc_0.php'); // 載入 函式?require_once(INCDIR .'/inis/ini_webhome.php'); //require_once(CLSDIR. '/clsPeople.php'); //統計目前線上人數 require_once(CDIR .'/exec/exec_webhome.php'); //==> 版面控制預設 var變數 7=>'ctrl/mem_referral.php?act=reforg', $var_location = array( 0=>'ctrl/member.php?act=login&au=1', 1=>'ctrl/member.php?act=join&au=1', 2=>'ctrl/member.php?act=get_pwd&au=1', 3=>'ctrl/member.php?act=get_mail&au=1', 4=>'ctrl/member.php?act=login&au=2', 5=>'ctrl/member.php?act=joinorg', 6=>'ctrl/mem_index1.php', 7=>'ctrl/referral.php?act=A049', 10=>'ctrl/member.php?act=logout', ); $var_location[11] = (! $tovip && ! $islogin) ? '#' : 'ctrl/member.php?act=A100'; $var_actionPage = array(0=>"index1.php?act=odedmproc",); //==> 預設 var變數 $var_contentblock = false; $doCheckCode = false; $var_tb1 = $var_tb2 = $var_arealist = false; $web_desc = $web_key = $step = false; //地區電話簿統? $CountTb1 = get_tb1('', false); $_tb1db = $CountTb1['data']; $var_tb1db_a = $_tb1db['a']; //行業類別數量 //==> 導入處理機制 $setAct = isset($_GET['act']) ? $_GET['act'] : ''; switch ($setAct) { //array_unique -- 移除陣列中重複的? #========================================================== #==> 貸款廣告刊登 case 'E007a': $var_step = 'E007'; $step = 'E007a'; $var_citylist = $var_arealist = false; $url0 = 'http://'. WEB_URL ; $parm_url = "index1.php?act=E007"; $input_1 = isset($HttpVar['post']['input_1']) ? strFormat($HttpVar['post']['input_1']) : ''; $input_2 = isset($HttpVar['post']['input_2']) ? strFormat($HttpVar['post']['input_2']) : ''; $input_3 = isset($HttpVar['post']['input_3']) ? strFormat($HttpVar['post']['input_3']) : ''; $input_4 = isset($HttpVar['post']['input_4']) ? strFormat($HttpVar['post']['input_4']) : ''; $input_5 = isset($HttpVar['post']['input_5']) ? strFormat($HttpVar['post']['input_5']) : ''; $input_6 = isset($HttpVar['post']['addr']) ? strFormat($HttpVar['post']['addr']) : ''; $mailSubject = ' 參加左鄰右舍 貸款廣告 ('. date("Y-m-d H:i") .')'; $mailBody = " 參加左鄰右舍 貸款廣告
廠商名稱?. $input_4 ."
連絡人:". $input_1 ."
連絡電話?. $input_2 ."
連絡手機?. $input_5 ."
連絡E-mail?. $input_3 ."
公司地址?. $input_6 ."
"; // 內容 // 寄送郵件處? $mailform['memid'] = ''; $mailform['srctype'] = 'bbs_blog'; $mailform['is_now'] = MEM_CHECK_MAIL_DAY; $mailform['mailstat'] = 2; $mailform['mailSubject'] = $mailSubject; $mailform['mailBody'] = $mailBody; // 內容 $mailform['fromMail'] = 'card2626@yahoo.com.tw'; //寄件者信? $mailform['fromName'] = '貸款廣告'; //寄件者名? $mailform['logFromNname'] = '主機發?; $mailform['toMail'] = DEF_BOOKING; //收件者信? $mailform['toName'] = ''; //收件者名? $mailform['mailCC'] = ''; //附本收件? $mailform['mailBCC'] = ''; //密件附本收件? $mailform['Reply'] = ''; //轉寄電郵 $AttachFile = array(); if ($input_1 && ($input_2 || $input_3) ) { $form['msgkind'] = 8; //訊息分類: 8廠商刊廣? $form['exptype'] = ''; $form['bodydir'] = $mailBody; $form['msgto'] = DEF_BVIP; $form['usetype'] = $form['msgopen'] = 1; $form['totype'] = 2; $form['subject'] = mb_substr($form['bodydir'], 0, 60, 'UTF-8'); $form['mip'] = real_ip(); $form['msgname1'] = $input_1; $form['msgname2'] = $form['vipsn'] = $form['refurl'] = ''; $form['email'] = $input_3; $getdb = clsMyDb::editMessage($form, 'A163'); send_mail($mailform, $AttachFile); unset($_SESSION['forms']); echo ""; } else { echo ""; } //==> 輸出 View include_once(VDIR. '/web_ads.htm.php'); break; case 'E007': $var_step = 'E007'; $step = 'E007'; $var_citylist = $var_arealist = false; $web_title = "貸款 廣告刊登 -- "; $web_desc = $web_key = "貸款,借錢,借貸"; //==> 輸出 View include_once(VDIR. '/web_ads.htm.php'); break; #========================================================== #==> 關鍵字廣告刊? case 'E005a': $var_tb1 = $var_tb2 = $var_arealist = false; $var_step = 'E005'; $step = 'E005a'; $var_citylist = true; $url0 = 'http://'. WEB_URL ; $parm_url = $url0 . "/index1.php?act=E005"; $input_1 = isset($HttpVar['post']['input_1']) ? strFormat($HttpVar['post']['input_1']) : ''; $input_2 = isset($HttpVar['post']['input_2']) ? strFormat($HttpVar['post']['input_2']) : ''; $input_3 = isset($HttpVar['post']['input_3']) ? strFormat($HttpVar['post']['input_3']) : ''; $input_4 = isset($HttpVar['post']['input_4']) ? strFormat($HttpVar['post']['input_4']) : ''; $input_5 = isset($HttpVar['post']['input_5']) ? strFormat($HttpVar['post']['input_5']) : ''; $input_6 = isset($HttpVar['post']['input_6']) ? strFormat($HttpVar['post']['input_6']) : ''; $input_7 = isset($HttpVar['post']['input_7']) ? strTxtArea($HttpVar['post']['input_7']) : ''; $oyy = isset($HttpVar['post']['oyy']) ? strFormat($HttpVar['post']['oyy']) : ''; $omm = isset($HttpVar['post']['omm']) ? strFormat($HttpVar['post']['omm']) : ''; $odd = isset($HttpVar['post']['odd']) ? strFormat($HttpVar['post']['odd']) : ''; $opend = $oyy .'-'. $omm .'-'. $odd; $oyy2 = isset($HttpVar['post']['oyy2']) ? strFormat($HttpVar['post']['oyy2']) : ''; $omm2 = isset($HttpVar['post']['omm2']) ? strFormat($HttpVar['post']['omm2']) : ''; $odd2 = isset($HttpVar['post']['odd2']) ? strFormat($HttpVar['post']['odd2']) : ''; $endd = $oyy2 .'-'. $omm2 .'-'. $odd2; $dates = $opend ." ~ ". $endd; $mailSubject = ' 參加左鄰右舍關鍵字廣?('. date("Y-m-d H:i") .')'; $mailBody = " 參加左鄰右舍關鍵字廣?br> 簽約期限?. $dates ."
連絡人:". $input_1 ."
連絡電話?. $input_2 ."
連絡人Email?. $input_3 ."
網站名稱?. $input_4 ."
英文網址?. $input_5 ."
每月預算?. $input_6 ."
想刊登的關鍵字:". $input_7 ."
"; // 內容 // 寄送郵件處? $mailform['memid'] = ''; $mailform['srctype'] = 'bbs_blog'; $mailform['is_now'] = MEM_CHECK_MAIL_DAY; $mailform['mailstat'] = 2; $mailform['mailSubject'] = $mailSubject; $mailform['mailBody'] = $mailBody; // 內容 $mailform['fromMail'] = 'card2626@yahoo.com.tw'; //寄件者信? $mailform['fromName'] = '關鍵字廣?; //寄件者名? $mailform['logFromNname'] = '主機發?; $mailform['toMail'] = DEF_BOOKING; //收件者信? $mailform['toName'] = ''; //收件者名? $mailform['mailCC'] = ''; //附本收件? $mailform['mailBCC'] = ''; //密件附本收件? $mailform['Reply'] = ''; //轉寄電郵 $AttachFile = array(); if ($input_1 && ($input_2 || $input_3) ) { $form['msgkind'] = 8; //訊息分類: 8廠商刊廣? $form['exptype'] = ''; $form['bodydir'] = $mailBody; $form['msgto'] = DEF_BVIP; $form['usetype'] = $form['msgopen'] = 1; $form['totype'] = 2; $form['subject'] = mb_substr($form['bodydir'], 0, 60, 'UTF-8'); $form['mip'] = real_ip(); $form['msgname1'] = $input_1; $form['msgname2'] = $form['vipsn'] = $form['refurl'] = ''; $form['email'] = $input_3; $getdb = clsMyDb::editMessage($form, 'A163'); send_mail($mailform, $AttachFile); unset($_SESSION['forms']); echo ""; } else { echo ""; } //==> 輸出 View include_once(VDIR. '/web_ads.htm.php'); break; case 'E005': $var_tb1 = $var_tb2 = $var_arealist = false; $var_step = 'E005'; $step = 'E005'; $var_citylist = true; $web_title = "關鍵?廣告刊登 -- "; //==> 輸出 View include_once(VDIR. '/web_ads.htm.php'); break; case 'E004': $var_tb1 = $var_tb2 = $var_arealist = false; $var_step = 'E005'; $step = 'E005'; $var_citylist = true; $web_title = "關鍵?廣告刊登 -- "; //==> 輸出 View include_once(VDIR. '/web_ads.htm.php'); //web_home.htm.php break; case 'E006': $var_tb1 = $var_tb2 = $var_arealist = false; $var_step = 'E005'; $step = 'E006'; $var_citylist = true; //==> 輸出 View include_once(VDIR. '/web_home.htm.php'); break; #========================================================== #==> 商品查詢 case 'A300pd': $var_tb1 = $var_tb2 = $var_arealist = false; $var_step = 'A300pd'; $step = $val['step'] = 'A300pd'; $tb3way = 'D005'; //縣市商品數量 //$CountC1 = get_v1('', false); //$var_v1db = $CountC1['data']['a']; //地區數量 $HttpVar['usetype'] = 1; $var_rowlist = true; $form['orgkind'] = $_c = isset($HttpVar['get']['c']) ? (int)strFormat($HttpVar['get']['c']) : ''; $form['pdname'] = $_vn = isset($HttpVar['get']['vn']) ? strFormat($HttpVar['get']['vn']) : ''; $form['p1'] = $_p1 = isset($HttpVar['get']['p1']) ? (int)strFormat($HttpVar['get']['p1']) : ''; $form['p2'] = $_p2 = isset($HttpVar['get']['p2']) ? (int)strFormat($HttpVar['get']['p2']) : ''; $_exp = ($HttpVar['get']['exp']) ? (int)$HttpVar['get']['exp'] : ''; $form['org_exp'] = ($_exp !=='') ? $_exp : ''; //列表資料 $form['page'] = isset($HttpVar['get']['page']) ? $HttpVar['get']['page'] : 1; $getTb = clsMyDb::selectProduct($form, 'A300pd'); //查詢字串 $params = array('act' => 'A300pd', 'c' => $_c, 'vn' => $_vn, 'p1' => $_p1, 'p2' => $_p2, 'exp' => $_exp, 'tb3way' => $tb3way,); $var_showArr = ($getTb['data']) ? $getTb['data'] : false; if (count($getTb['data'])>0) { $pages = $getTb['pages']; $pager = page_url($getTb['pages'], 'index1.php', $params); } //==> 輸出 View include_once(VDIR. '/web_home.htm.php'); break; #========================================================== #==> $gn=='10' 查活?$gn=='13' 查商? case 'B500b': $var_step = 'B500m'; $step = 'B500b'; $doCheckCode = $var_showArr = false; $var_tb1 = $var_tb2 = $var_arealist = false; // 載入 管理函式? require_once(CDIR .'/exec/exec_mod1.php'); //列表資料 $var_rowlist = $tr = true; $val['gn'] = $gn = isset($HttpVar['get']['gn']) ? $HttpVar['get']['gn'] : ''; $way = isset($HttpVar['get']['way']) ? $HttpVar['get']['way'] : ''; $key = isset($HttpVar['get']['key']) ? (int)$HttpVar['get']['key'] : 0; $val['usetype'] = isset($HttpVar['get']['ut']) ? (int)$HttpVar['get']['ut'] : 0; $trname1 = isset($HttpVar['get']['trname1']) ? $HttpVar['get']['trname1'] : ''; $trname2 = isset($HttpVar['get']['trname2']) ? $HttpVar['get']['trname2'] : ''; $trname3 = isset($HttpVar['get']['trname3']) ? $HttpVar['get']['trname3'] : ''; $val['page'] = isset($HttpVar['get']['page']) ? $HttpVar['get']['page'] : 1; $_s = isset($HttpVar['get']['s']) ? (int)$HttpVar['get']['s'] : 0; if ($way && $gn) { if($trname1 && $key==1) { $val['pdname'] = $trname1; } elseif($trname2 && $key==2) { $val['pdname'] = $trname2; } elseif($trname3 && $key==3) { $val['pdname'] = $trname3; } if ($_s) { mod_edit($gn,'B500b', $val, false); //存入p_7 商品關鍵? } //查商品關鍵字 統計 $_db = mod_edit($gn, 'B500b_m', $val, false); $var_loc = $_db['data']; //查詢結果20?依日期排?列表資料 $val['usetype'] = ($gn=='10') ? 1 : 0; //#{0預約商品查詢, 1活動查詢} $selP7 = clsMyDb::selectM_2($val, 'p7_sel'); //查詢字串 $params = array('act' => 'B500b', 'gn' => $gn, 'way' => 1, 'ut' => $val['usetype'], 'key' => $key, 'trname1' => $trname1, 'trname2' => $trname2, 'trname3' => $trname3, ); $showArr = (!$selP7['data']) ? false : $selP7['data']; if (count($selP7['data'])>0) { $pages = $selP7['pages']; $pager = page_url($selP7['pages'], 'index1.php', $params); } } //==> 輸出 View include_once(VDIR. '/mem_index2a.htm.php'); break; #========================================================== #==> 里長電話? case 'A300a': //里長電話簿統? $var_tb1 = $var_tb2 = false; $var_step = 'A300'; $step = $val['step'] = 'A300a'; $tb3way = 'D001'; //縣市里長數量 $CountC1 = get_v1('', false); $var_v1db = $CountC1['data']['a']; //熱心里長 $nonimg[0] = array("vvip"=>"", "logodir"=>"/images/blog_image/b0.jpg"); $nonimg[1] = array("vvip"=>"", "logodir"=>"/images/blog_image/bc1.jpg"); $nonimg[2] = array("vvip"=>"", "logodir"=>"/images/blog_image/bc2.jpg"); $nonimg[3] = array("vvip"=>"", "logodir"=>"/images/blog_image/bc3.jpg"); $nonimg[4] = array("vvip"=>"", "logodir"=>"/images/blog_image/bc4.jpg"); $nonimg[5] = array("vvip"=>"", "logodir"=>"/images/blog_image/bc5.jpg"); $nonimg[6] = array("vvip"=>"", "logodir"=>"/images/blog_image/bc6.jpg"); $nonimg[7] = array("vvip"=>"", "logodir"=>"/images/blog_image/bc7.jpg"); $nonimg[8] = array("vvip"=>"", "logodir"=>"/images/blog_image/bc8.jpg"); $nonimg[9] = array("vvip"=>"", "logodir"=>"/images/blog_image/bc9.jpg"); $_Vinfo = list_H03($val, false); $V_info = (!$_Vinfo['data']) ? array() : $_Vinfo['data']; $Vinfo = array_merge($V_info, $nonimg); //里長列表資料 $var_rowlist = true; $val['gn'] = '1'; $val['c'] = isset($HttpVar['get']['c']) ? strFormat($HttpVar['get']['c']) : ''; $val['page'] = isset($HttpVar['get']['page']) ? $HttpVar['get']['page'] : 1; //查詢資料 $getTb = list_VRow($val, false); //查詢字串 $params = array('act' => 'A300a', 'c' => $val['c'], 'gn' => $val['gn'],); $var_showArr = ($getTb['data']) ? $getTb['data'] : false; if (count($getTb['data'])>0) { $pages = $getTb['pages']; $pager = page_url($getTb['pages'], 'index1.php', $params); } //==> 輸出 View include_once(VDIR. '/web_home.htm.php'); break; case 'A301a': $var_step = 'A300'; $step = $val['step'] = 'A301a'; $tb3way = 'D001'; //縣市里長數量 $CountC1 = get_v1('', false); $var_v1db = $CountC1['data']['a']; //==> 輸出 View include_once(VDIR. '/web_home.htm.php'); break; case 'A301': //里長電話簿統? $var_tb1 = $var_tb2 = false; $var_step = 'A300'; $step = $val['step'] = 'A301'; $tb3way = 'D001'; //縣市里長數量 $CountC1 = get_v1('', false); $var_v1db = $CountC1['data']['a']; //地區里長數量 $var_v1dbb = $CountC1['data']['b']; $var_arealist = isset($HttpVar['get']['c']) ? true : false; $val['city'] = $c = isset($HttpVar['get']['c']) ? strFormat($HttpVar['get']['c']) : ''; //里長列表資料 $var_rowlist = isset($HttpVar['get']['ca']) ? true : false; $val['area'] = $ca = isset($HttpVar['get']['ca']) ? strFormat($HttpVar['get']['ca']) : ''; if (! $ca) { $arrayKeys = arrayKeys($areaarr[$c]); $ca = $arrayKeys[0]; } $val['villagen'] = $vn = isset($HttpVar['get']['vn']) ? strFormat($HttpVar['get']['vn']) : ''; $val['page'] = isset($HttpVar['get']['page']) ? $HttpVar['get']['page'] : 1; //查詢資料 $getTb = list_Row1($val, false); //查詢字串 $params = array('act' => 'A301', 'c' => $c, 'ca' => $ca, 'vn' => $vn,); $var_showArr = ($getTb['data']) ? $getTb['data'] : false; if (count($getTb['data'])>0) { $pages = $getTb['pages']; $pager = page_url($getTb['pages'], 'index1.php', $params); } //==> 輸出 View include_once(VDIR. '/web_home.htm.php'); break; #========================================================== #==> 里長電話? case 'A300': //里長電話簿統? $var_tb1 = $var_tb2 = $var_arealist = false; $var_step = 'A300'; $step = $val['step'] = 'A300'; $tb3way = 'D001'; //縣市里長數量 $CountC1 = get_v1('', false); $var_v1db = $CountC1['data']['a']; //==> 輸出 View include_once(VDIR. '/web_home.htm.php'); break; #========================================================== #==> 社區電話? case 'A305a': //社區電話簿統? $var_tb1 = $var_tb2 = $var_arealist = false; $var_step = 'H05'; $step = $val['step'] = 'A306'; //縣市社區數量 $CountC1 = get_c1('', false); $var_c1db = $CountC1['data']['a']; //社區列表資料 $vn = isset($HttpVar['post']['vn']) ? strFormat($HttpVar['post']['vn']) : ''; $vn = ($vn) ? $vn : strFormat($HttpVar['get']['vn']); $c = ($HttpVar['post']['city']) ? strFormat($HttpVar['post']['city']) : ''; $c = ($c) ? $c : strFormat($HttpVar['get']['city']); $ca = ($HttpVar['post']['area']) ? strFormat($HttpVar['post']['area']) : ''; //地區社區數量 $var_rowlist = true; $var_c1dbb = $CountC1['data']['b']; $var_arealist = ($c) ? true : false; $var_city = $val['city'] = $c; $var_area = $val['area'] = $ca; $var_vn = $val['orgname'] = $vn; $val['page'] = isset($HttpVar['get']['page']) ? $HttpVar['get']['page'] : 1; $getTb = list_Row1($val, false); //查詢字串 $params = array('act' => 'A305a', 'city' => $c, 'area' => $ca, 'vn' => $vn); $var_showArr = $getTb['data']; if (count($getTb['data'])>0) { $pages = $getTb['pages']; $pager = page_url($getTb['pages'], 'index1.php', $params); } //==> 輸出 View include_once(VDIR. '/web_home.htm.php'); break; #========================================================== #==> 社區電話? case 'A305': //社區電話簿統? $var_tb1 = $var_tb2 = $var_citylist = $var_arealist = false; $var_step = 'H05'; //縣市社區數量 $CountC1 = get_c1('', false); $var_c1db = $CountC1['data']['a']; //地區社區數量 $var_c1dbb = $CountC1['data']['b']; $var_arealist = true; //社區列表資料 $var_rowlist = true; $vn = isset($HttpVar['get']['vn']) ? strFormat($HttpVar['get']['vn']) : ''; $c = isset($HttpVar['get']['c']) ? strFormat($HttpVar['get']['c']) : 3; $ca = isset($HttpVar['get']['ca']) ? strFormat($HttpVar['get']['ca']) : ''; $tb3way = isset($HttpVar['get']['tb3way']) ? strFormat($HttpVar['get']['tb3way']) : 'D002'; /* if (! $ca) { $arrayKeys = arrayKeys($areaarr[$c]); $ca = $arrayKeys[0]; }*/ $step = $val['step'] = 'A305'; $val['city'] = $c; $val['area'] = $ca; $val['orgname'] = $vn; $val['page'] = isset($HttpVar['get']['page']) ? $HttpVar['get']['page'] : 1; $getTb = list_Row1($val, false); //查詢字串 $params = array('act' => 'A305', 'c' => $c, 'ca' => $ca, 'vn' => $vn, 'tb3way' => $tb3way); $var_showArr = $getTb['data']; if (count($getTb['data'])>0) { $pages = $getTb['pages']; $pager = page_url($getTb['pages'], 'index1.php', $params); } //==> 輸出 View include_once(VDIR. '/web_home.htm.php'); break; #========================================================== #==> 社區電話? case 'A306': //社區電話簿統? $var_tb1 = $var_tb2 = $var_citylist = $var_arealist = false; $var_step = 'A206'; //社區列表資料 $var_rowlist = true; $city = ($HttpVar['post']['city']) ? strFormat($HttpVar['post']['city']) : 3; $area = ($HttpVar['post']['area']) ? strFormat($HttpVar['post']['area']) : ''; $vn = isset($HttpVar['post']['vn']) ? strFormat($HttpVar['post']['vn']) : ''; $step = $val['step'] = 'A306'; $var_city = $val['city'] = $city; $var_area = $val['area'] = $area; $var_vn = $val['orgname'] = $vn; $val['page'] = isset($HttpVar['get']['page']) ? $HttpVar['get']['page'] : 1; $getTb = list_Row1($val, false); //查詢字串 $params = array('act' => 'A306', 'city' => $city, 'area' => $area, 'vn' => $vn); $var_showArr = $getTb['data']; if (count($getTb['data'])>0) { $pages = $getTb['pages']; $pager = page_url($getTb['pages'], 'index1.php', $params); } //==> 輸出 View include_once(VDIR. '/web_home.htm.php'); break; case 'A206': $linkto = $var_url .'/ctrl/a_home.php?gid=12&act=A206'; echo ""; /* //舊版 $var_step = 'A206'; $step = $val['step'] = 'A206'; $var_msg = false; //列表資料 $var_rowlist = true; $gn = 1; $val['subject'] = $vn = isset($HttpVar['get']['vn']) ? strFormat($HttpVar['get']['vn']) : ''; $val['page'] = isset($HttpVar['get']['page']) ? $HttpVar['get']['page'] : 1; $getTb = list_Row1($val, false); //查詢字串 $params = array('act' => 'A206', 'vn' => $vn); $var_showArr = $getTb['data']; if (count($getTb['data'])>0) { $pages = $getTb['pages']; $pager = page_url($getTb['pages'], 'index1.php', $params); } $web_title = "哈啦社區 -- "; //==> 輸出 View include_once(VDIR. '/web_home.htm.php'); */ break; case 'B600': $var_step = 'B600'; $step = 'B600'; $var_msg = false; //==> 輸出 View include_once(VDIR. '/web_home.htm.php'); break; #========================================================== #==> 廠商優惠查詢 case 'A323': $var_tb1 = $var_tb2 = $var_arealist = false; $var_step = 'A323'; //行業類別?地區數量 //$var_tb1db_c = $_tb1db['c']; $way = ''; $p_kind = isset($HttpVar['get']['kind']) ? (int)$HttpVar['get']['kind'] : 0; //廠商類別:食衣住行 $kind_type = 0; //列表資料 $var_rowlist = true; $c = isset($HttpVar['get']['c']) ? $HttpVar['get']['c'] : ''; $step = $val['step'] = 'A323'; $val['kind'] = $p_kind; $val['orgname'] = $c; $val['page'] = isset($HttpVar['get']['page']) ? $HttpVar['get']['page'] : 1; $getTb = list_Row1($val, false); //查詢字串 $params = array('act' => 'A323', 'c' => $c); $var_showArr = $getTb['data']; if (count($getTb['data'])>0) { $pages = $getTb['pages']; $pager = page_url($getTb['pages'], 'index1.php', $params); } //==> 輸出 View include_once(VDIR. '/web_home.htm.php'); break; case 'A324': //地區廠商電話簿統? $var_tb1 = $var_tb2 = $var_arealist = false; $var_step = 'A323'; $step = $val['step'] = 'A324'; $var_tb1db_c = $_tb1db['c']; //行業類別?地區數量 //廠商列表資料 $getTb['data'] = $getTb['pages'] = array(); $p_expt = $HttpVar['get']['expt']; $val['page'] = isset($HttpVar['get']['page']) ? $HttpVar['get']['page'] : 1; if ($val['page']==1) { $_SESSION['forms'] = $HttpVar['post']; } $way = isset($HttpVar['post']['way']) ? $HttpVar['post']['way'] : $_SESSION['forms']['way']; //行業類別 $expt_arr = array(1=>'美食',2=>'飲品',3=>'點心'); $var_rowlist = ($way) ? true : false; if ($way) { $var_objuse = $val['objuse'] = isset($HttpVar['post']['objuse']) ? $HttpVar['post']['objuse'] : $_form_objuse; $var_pdname = $val['pdname'] = isset($HttpVar['post']['pdname']) ? $HttpVar['post']['pdname'] : $_form_pdname; $var_objdir = $val['objdir'] = isset($HttpVar['post']['objdir']) ? $HttpVar['post']['objdir'] : $_form_objdir; $var_city = $val['city'] = isset($HttpVar['post']['city']) ? $HttpVar['post']['city'] : $_form_city; $var_area = $val['area'] = isset($HttpVar['post']['area']) ? $HttpVar['post']['area'] : $_form_area; $exp_type = isset($HttpVar['post']['exptype']) ? (int)$HttpVar['post']['exptype'] : (int)$_form_exptype; $exp_krys = array_keys($food5_2arr[$exp_type]); $val['exptype'] = implode(',', $exp_krys); //$var_pdmemo3 = $val['pdmemo3'] = isset($HttpVar['post']['pdmemo3']) ? $HttpVar['post']['pdmemo3'] : $_form_pdmemo3; $getTb = list_Row1($val, false); } //查詢字串 $params = array('act' => 'A322', 'expt' => $p_expt,); $var_showArr = $getTb['data']; if (count($getTb['data'])>0) { $pages = $getTb['pages']; $pager = page_url($getTb['pages'], 'index1.php', $params); } //==> 輸出 View include_once(VDIR. '/web_home.htm.php'); break; #========================================================== #==> 查詢 某校相關校友? case 'A143a': $var_step = 'A142'; $step = 'A143a'; $var_msg = false; $var_showForm = false; $var_actionPage = array( 0=>"index1.php?act=A143", ); $val['get']['vipsn'] = $mem_vipsn; $val['page'] = $HttpVar['page']; $sel_edu = isset($HttpVar['post']['edu']) ? (int)$HttpVar['post']['edu'] : (int)$HttpVar['get']['edu']; $sel_city = isset($HttpVar['post']['city']) ? (int)$HttpVar['post']['city'] : (int)$HttpVar['get']['city']; $val['edu'] = $sel_edu; $val['city'] = $sel_city; //某地區相關學校 /////////////////////////////////////////////////////////// $get_db = web_school_data('A143a', $val, false); $schdb = ($get_db['data']) ? $get_db['data'] : ''; //某校相關校友?/////////////////////////////////////////////////////////// $var_rowlist = true; $getTb = web_school_data('A143sel', $val, false); //查詢字串 $params = array('act' => 'A143a', 'edu' => $sel_edu, 'city' => $sel_city, ); if ($getTb['data']) { $var_showArr = (count($getTb['data'])>0) ? $getTb['data'] : array(); $pages = $getTb['pages']; $pager = page_url($getTb['pages'], 'index1.php', $params); } //==> 輸出 View include_once(VDIR. '/web_home.htm.php'); break; #========================================================== #==> 查詢 某校相關校友? case 'A143': $var_step = 'A142'; $step = 'A143'; $var_msg = false; $var_showForm = false; $var_actionPage = array( 0=>"index1.php?act=A143", ); $val['get']['vipsn'] = $mem_vipsn; $val['page'] = $HttpVar['page']; $sel_edu = isset($HttpVar['post']['edu']) ? (int)$HttpVar['post']['edu'] : (int)$HttpVar['get']['edu']; $sel_city = isset($HttpVar['post']['city']) ? (int)$HttpVar['post']['city'] : (int)$HttpVar['get']['city']; $sel_area = isset($HttpVar['post']['area']) ? (int)$HttpVar['post']['area'] : (int)$HttpVar['get']['area']; $sel_schn = isset($HttpVar['post']['schn']) ? strFormat($HttpVar['post']['schn']) : strFormat($HttpVar['get']['schn']); $sel_clsyy = isset($HttpVar['post']['clsyy']) ? (int)$HttpVar['post']['clsyy'] : (int)$HttpVar['get']['clsyy']; $val['edu'] = $sel_edu; $val['city'] = $sel_city; $val['area'] = $sel_area; $val['schn'] = $sel_schn; $val['clsyy'] = $sel_clsyy; //某地區相關學校 /////////////////////////////////////////////////////////// $get_db = web_school_data('A143a', $val, false); $schdb = ($get_db['data']) ? $get_db['data'] : ''; //某校相關校友?/////////////////////////////////////////////////////////// $var_rowlist = true; $getTb = web_school_data('A143', $val, false); //查詢字串 $params = array('act' => 'A143', 'edu' => $sel_edu, 'city' => $sel_city, 'area' => $sel_area, 'schn' => $sel_schn, 'clsyy' => $sel_clsyy, ); if ($getTb['data']) { $var_showArr = (count($getTb['data'])>0) ? $getTb['data'] : array(); $pages = $getTb['pages']; $pager = page_url($getTb['pages'], 'index1.php', $params); } //==> 輸出 View include_once(VDIR. '/web_home.htm.php'); break; #========================================================== #==> 同班同學 case 'A142': require_once(VDIR .'/web_school.htm.php'); break; case 'A144': $var_step = 'A142'; $step = 'A144'; $val['get']['vipsn'] = $mem_vipsn; $val['page'] = $HttpVar['page']; $val['id'] = $_id = $HttpVar['get']['id']; $val['edu'] = $_edu = (int)$HttpVar['get']['edu']; $var_msg = false; $var_showForm = false; $var_actionPage = array( 0=>"index1.php?act=A143", ); //某地區相關學校 /////////////////////////////////////////////////////////// $get_db = web_school_data('A143a', $val, false); $schdb = ($get_db['data']) ? $get_db['data'] : ''; //某校相關校友?/////////////////////////////////////////////////////////// $var_rowlist = true; $getTb = web_school_data('A144a', $val, false); //查詢字串 $params = array('act' => 'A144', 'id' => $_id, 'edu' => $_edu, ); if ($getTb['data']) { $var_showArr = (count($getTb['data'])>0) ? $getTb['data'] : array(); $pages = $getTb['pages']; $pager = page_url($getTb['pages'], 'index1.php', $params); } //該校最?0個校?/////////////////////////////////////////////////////////// $_sch = web_school_data('A144b', $val, $doCheckCode); $row_r = $_sch['data']; //某學校名? $_schn = web_school_data('A144c', $val, $doCheckCode); $school = $_schn['data']; //==> 輸出 View include_once(VDIR. '/web_home.htm.php'); break; #========================================================== #==> 查詢 某校相關校友? case 'A142b': $var_step = 'A142'; $step = 'A142b'; $var_msg = false; $var_showForm = false; $var_actionPage = array( 0=>"index1.php?act=A143", ); $val['get']['vipsn'] = $mem_vipsn; $val['page'] = $HttpVar['page']; $val['edu'] = $sel_edu = isset($HttpVar['post']['edu']) ? (int)$HttpVar['post']['edu'] : (int)$HttpVar['get']['edu']; $val['city'] = $sel_city = isset($HttpVar['post']['city']) ? (int)$HttpVar['post']['city'] : (int)$HttpVar['get']['city']; $val['area'] = $sel_area = isset($HttpVar['post']['area']) ? (int)$HttpVar['post']['area'] : (int)$HttpVar['get']['area']; $val['email'] = $sel_email = isset($HttpVar['post']['e']) ? strFormat($HttpVar['post']['e']) : strFormat($HttpVar['get']['e']); $val['name1'] = $sel_name1 = isset($HttpVar['post']['n']) ? strFormat($HttpVar['post']['n']) : strFormat($HttpVar['get']['n']); //某地區相關學校 /////////////////////////////////////////////////////////// $get_db = web_school_data('A143a', $val, false); $schdb = ($get_db['data']) ? $get_db['data'] : ''; //某校相關校友?/////////////////////////////////////////////////////////// $var_rowlist = true; $getTb = web_school_data('A142b', $val, false); //查詢字串 $params = array('act' => 'A142b', 'e' => $sel_email, 'n' => $sel_name1, 'edu' => $sel_edu, 'city' => $sel_city, 'area' => $sel_area,); if ($getTb['data']) { $var_showArr = (count($getTb['data'])>0) ? $getTb['data'] : array(); $pages = $getTb['pages']; $pager = page_url($getTb['pages'], 'index1.php', $params); } //==> 輸出 View include_once(VDIR. '/web_home.htm.php'); break; #========================================================== #==> 同班同學 case 'A142': $var_step = 'A142'; $step = 'A142'; $val['page'] = $HttpVar['page']; $var_msg = false; $var_showForm = false; $var_actionPage = array( 0=>"index1.php?act=A143", ); //MY 學校資料 /////////////////////////////////////////////////////////// $my_sch = web_school_data('A142', $val, $doCheckCode); $mysch = $my_sch['data']; //MY 幼稚?/////////////////////////////////////////////////////////// $val['educat'] = 1; $_rowlist1 = true; $tb3row1 = $mysch[1]; //MY 國小 /////////////////////////////////////////////////////////// $val['educat'] = 2; $_rowlist2 = true; $tb3row2 = $mysch[2]; //MY 國中 /////////////////////////////////////////////////////////// $val['educat'] = 3; $_rowlist3 = true; $tb3row3 = $mysch[3]; //MY 高中 /////////////////////////////////////////////////////////// $val['educat'] = 4; $_rowlist4 = true; $tb3row4 = $mysch[4]; //MY 專科 /////////////////////////////////////////////////////////// $val['educat'] = 5; $_rowlist5 = true; $tb3row5 = $mysch[5]; //MY 大學 /////////////////////////////////////////////////////////// $val['educat'] = 6; $_rowlist6 = true; $tb3row6 = $mysch[6]; //MY 碩士?$val['educat'] = 7; //MY 博士?$val['educat'] = 8; $web_title = "我的同學 -- "; //==> 輸出 View include_once(VDIR. '/web_home.htm.php'); break; case 'A206a': $var_step = 'A206a'; $step = 'A206a'; $var_msg = false; //==> 輸出 View include_once(VDIR. '/web_home.htm.php'); break; case 'A206b': $var_step = 'A206a'; $step = 'A206b'; $var_msg = false; //==> 輸出 View include_once(VDIR. '/web_home.htm.php'); break; case 'B310': $var_step = 'B310'; $step = 'B310'; $var_msg = false; //==> 輸出 View include_once(VDIR. '/web_home.htm.php'); break; #========================================================== #==> 廠商電話? case 'H04a': //廠商電話簿統? $var_tb1 = $var_tb2 = $var_arealist = false; $var_step = 'H03'; //縣市廠商數量 $var_tb1db_c = $_tb1db['c']; //地區廠商數量 $var_tb1dbd = $_tb1db['d']; $_ce = isset($HttpVar['get']['ce']) ? $HttpVar['get']['ce'] : '3_0'; $ce = explode('_', $_ce); $val['expt'] = $p_expt = $ce[1]; $val['city'] = $ce[0]; //查詢資料 $getTb = list_Row1($val, false
bd