$val) { $FORM[$key] = $val; } foreach($_GET as $key => $val) { $FORM[$key] = $val; } //空室検索条件をセッションに保持 if(isset($FORM['CheckIn_Year']) && $FORM['CheckIn_Year'] != '') { $_SESSION['CheckIn_Year'] = $FORM['CheckIn_Year']; } if(isset($FORM['CheckIn_Day']) && $FORM['CheckIn_Day'] != '') { $_SESSION['CheckIn_Day'] = $FORM['CheckIn_Day']; } if(isset($FORM['CheckIn_Month']) && $FORM['CheckIn_Month'] != '') { $_SESSION['CheckIn_Month'] = $FORM['CheckIn_Month']; } if(isset($FORM['StayNights']) && $FORM['StayNights'] != '') { $_SESSION['StayNights'] = $FORM['StayNights']; } if(isset($FORM['RateType']) && $FORM['RateType'] != '') { $_SESSION['RateType'] = $FORM['RateType']; } if(isset($FORM['StayNinzu']) && $FORM['StayNinzu'] != '') { $_SESSION['StayNinzu'] = $FORM['StayNinzu']; } if(isset($FORM['StayRooms']) && $FORM['StayRooms'] != '') { $_SESSION['StayRooms'] = $FORM['StayRooms']; } require_once 'stay/stay.inc'; $s = new stay; if(!isset($FORM['mode'])) { $FORM['mode'] = ''; } switch($FORM['mode']) { case 'yado_list' : $s->yado_list($FORM); break; case 'yado_detail' : $FORM['YadoNo'] = $s->common->get_yadono($s->db, $FORM); $s->yado_detail($FORM); break; case 'plan_preview' : $s->plan_detail($FORM); break; default : // if($_SERVER['REMOTE_ADDR']!='118.243.35.182' && $_SERVER['REMOTE_ADDR']!='219.121.8.61'){ // include('maintenance.php'); // exit; // }else{ $_SESSION['mode'] = ''; $s->yado_list($FORM); // } break; } ?>