10 && $_GET['zone']<20){ $_title = mb_convert_encoding($_ZONE1[$_GET['zone']-10],'EUC-JP','SJIS'); }else if($_GET['zone']>30 && $_POST['zone']<40){ $_title = mb_convert_encoding($_ZONE3[$_GET['zone']-30],'EUC-JP','SJIS'); } } }else{ $_title = mb_convert_encoding($_ZONE1[1],'EUC-JP','SJIS'); } //検索処理========================================== $_errmsgs = array(); $_total_cnt = 0; $form = array(); $corp_data = array(); $vals = array(); $db_corp =& new db_corp($db); $sort['crp_kana'] = "asc"; //検索条件 $vals['zone_cd'] = 1; if(isset($_GET['zone'])){ //ゾーン検索 //zone/field /* if(isset($_GET['zone']) && $_GET['zone'] != 0){ $vals['zone_cd'] = $_GET['zone']; } */ if(isset($_GET['zone']) && $_GET['zone'] != 0){ if($_GET['zone']>10 && $_GET['zone']<20){ $vals['zone_cd'] = $_GET['zone']-10; }else if($_GET['zone']>30 && $_GET['zone']<40){ unset($vals['zone_cd']); $vals['zone_cd3'] = $_GET['zone']-30; } } } if(!$db_corp->set_corp($vals, $sort)){ // print "aaa"; } $corp_data = $db_corp->get_corp(); foreach($corp_data as $key => $val){ foreach($val as $key2 => $val2){ $_corp_data[$key][$key2] = mb_convert_encoding($val2,'EUC-JP','SJIS'); } } //var_dump($_corp_data); //テンプレート読み込み include_once(DIR_TMPL."search/list.tmpl"); ?>