is_login()) { rt_js_move("로그인을 해주세요.", "parent", "href", "/page/mb/login.php?prepage=".urlencode("/page/s5/s331.php")); } rt_load_component("board"); $cls_board = new board("RT_RENTAL", 5, 10); $add_qry = array(); //DB 쿼리 배열 $add_url = ""; //전달 변수 배열 //고정 데이터 $add_qry[] = "(userid='".$user['user_id']."' OR (name='".$user['user_nm']."' AND phone='".$user['phone']."'))"; $add_url.= ""; //변동 쿼리 if ($env->_get['search'] && $env->_get['searchstring']) { $add_qry[] = "(".$env->_get['search']." LIKE '%".$env->_get['searchstring']."%')"; $add_url.= "&search=".$env->_get['search']."&searchstring=".$env->_get['searchstring']; $add_sch_url = "&search=".$env->_get['search']."&searchstring=".$env->_get['searchstring']; } if (count($add_qry) > 0) { $str_add_qry = implode(" AND ", $add_qry); $cls_board->set_fix_where_qry($str_add_qry); } $cls_board->set_fix_url_val($add_url); $cls_board->init(); //공간정보 $_p = $dbo->fetch_list("SELECT * FROM RT_RENTAL_PLACE ORDER BY ord ASC"); for ($m = 0; $m < count($_p); $m++) { $place_arr[$_p[$m]['seq_rp']] = $_p[$m]['place_nm']; } ?>
예약신청 |
||
---|---|---|
예약시간 |
fetch_list("SELECT * FROM RT_RENTAL_DATA WHERE seq_rt='".$_l[$i]['seq_rt']."' ORDER BY rvdt_d ASC");
if (count($_s) > 0) {
for ($m = 0; $m < count($_s); $m++){
$tmarr[$_s[$m]['seq_rp']][] = ($_s[$m]['rvdt_h'] < 10)?"0".$_s[$m]['rvdt_h']:$_s[$m]['rvdt_h'];
}
}
echo " ";
foreach ($tmarr as $k => $v) {
if ($tmarr[$k]) {
$place_nm = $place_arr[$k];
$newarr = null;
sort($v);
for ($aa = 0; $aa < count($v); $aa++) {
$newarr[] = ($v[$aa] < 10)?$v[$aa].":00":$v[$aa].":00";
}
}
$time_str = implode(" , ", $newarr);
echo $place_nm." ".$time_str." |
|
이용상황 |
총 일 예약 / 잔여 일 |