include "../include/top.html"; include "_list.html"; // Made by Paul 12-03-2019 -- Start $_TOP_path = $_SERVER[DOCUMENT_ROOT] . "/toadmin/_TOPTRAVEL_CUST_/"; $_TOP_files = scandir($_TOP_path); $_TOP_files = array_diff(scandir($_TOP_path), array('.', '..')); foreach($_TOP_files as $_TOP_file) $_TOP_[str_replace(".db", "", str_replace("permalink_", "", $_TOP_file))] = file_get_contents($_TOP_path."/".$_TOP_file); function _TOP_PERMALINK_($href) { global $_TOP_; $Key = explode("&", explode("g_uid=", $href)[1])[0]; $PERMALINK = $_TOP_[$Key]; if ($PERMALINK) { return "../good/" . $PERMALINK; } else return $href; } // -- End // 테이블명 $table = " good "; // 검색 설정 //$sql_where = "AND g_uid = (SELECT g_uid FROM `date` WHERE g_uid= good.g_uid AND d_start > CURDATE() ORDER BY d_start ASC LIMIT 1)"; // spark(20190525) : 행사등록을 하지 않은 상품도 Display 하도록 변경 //$sql_where .= " AND "; //$ag = get_cookie('ag'); // 출발지 지정 sjang(2019/07) $ag = $_COOKIE['ag']; // 쿠키값으로 ag 값 가져옴 if($ag == 'WS'){ $sql_where .= "g_ok='Y' "; }else if($ag == 'NY'){ $sql_where .= "g_ok2='Y' "; }else if($ag == 'OT'){ $sql_where .= "g_ok3='Y' "; }else if($ag == 'SE'){ $sql_where .= "g_ok4='Y' "; }else{ $sql_where .= "g_ok='Y' and g_ok2='Y' and g_ok3='Y' and g_ok4='Y' "; } $sql_where.= $cf['on_site']['user_where']; // spark(20190227): 원더풀투어 선택시 sql 변경 //if ($b_uid_s) $sql_where .= " and b_uid='{$b_uid_s}' "; // 1차 카테고리(필수) if ($b_uid_s){ if($b_uid_s == 38) { /* -- Original by 9/1/2021 -- $sql_where .= " and displayToWT='y' "; // 원더풀투어 */ /*$sql_where .= " and b_uid='{$b_uid_s}' "; // 바로 하단과 같이 수정 - 오류 문제로 임시로 수정 by 9/1/2021*/ $sql_where .= " and displayToWT='y' "; } else { $sql_where .= " and b_uid='{$b_uid_s}' "; // 1차 카테고리(필수) } } if ($m_uid_s) $sql_where .= " and m_uid='{$m_uid_s}' "; // 2차 카테고리 if ($s_uid_s) $sql_where .= " and s_uid='{$s_uid_s}' "; // 3차 카테고리 if ($Bidx_s) $sql_where .= " and Bidx='{$Bidx_s}' "; // 국가 if ($Cidx_s) $sql_where .= " and Cidx='{$Cidx_s}' "; // 도시 //if ($start_dt_s) $sql_where .= " and d_start='{$start_dt_s}' ";// 출발일 if($g_title_s) //공백을통한 여러 단어가 포함된 단어 연관검색 예) 워싱턴 2박. { $g_title_sc_ar=explode(' ',$g_title_s); for($i=0; $i CURDATE() GROUP BY g_uid) AS sdate ON good.g_uid = sdate.g_uid where {$sql_where} "; $sql = "SELECT count(*) as total FROM {$table} where {$sql_where} "; $row = db_fetch($sql); $total = $row['total']; // 페이지수 설정 if (!$page) $page = 1; // 페이지 번호 $line = 10; // 보여줄 갯수 $list = 10; // 블럭 갯수 $total_page = ceil($total / $line); // 총페이지 if ($total == 0) $total_page = 1; // 데이터가 하나도 없으면 총페이지 1 if ($page > $total_page) $page = $total_page; // 페이지가 전체 페이지보다 크면 페이지 번호를 바꿈 $total_list = intval($total_page / $list); if ($total_page % $list == 0) $total_list--; $curr_list = intval($page / $list); if ($page % $list == 0) $curr_list--; $start_page = $curr_list * $list + 1; $prev_list = $start_page - $list; $next_list = $start_page + $list; $olds = $line * ($page - 1); // 정렬 설정 $sql_order=""; $sql_order.= $cf['on_site']['user_order']; //배열에 저장 $data = array(); //$data = good_list($sql_where,$sql_order,$olds,$line); $data = new_good_list($sql_where,$sql_order,$olds,$line); //검색기간 리스트 $period_list = base_codec("TGO","PERD","","N"); $banner12 = homepage_banner("TMSS012","","Y","20", "and b_uid='{$b_uid_s}' "); ?> 0){//검색모드가 아닐때?> }?> }?> include "snb.html" ?> 홈 =$disp_navi?> =($nav['m_name'])?$nav['m_name']." ":""?>=$nav['b_name']?> =is_medical_tab($b_uid_s) ?"": is_usim_tab($b_uid_s) ? " 칩 구매 " : "여행상품";?> 검색: =$g_title_s?>}?> 유심구입 가이드(클릭)}else{}?> /**/?> =$row['special_icon']?> =$row['g_title']?> =$row['g_brief']?> =is_medical_tab($b_uid_s) ? "검진" : "여행";?>일정 =$row['period_date']?> 상품코드 =$row['g_code']?> =$row['main_to_max_price2']?> 일정표 보기 사용일 선택 } else{ ?> 출발일 보기 }?> }}?> =TO_get_paging($total_page, $page, $list, "?$href&page=", "")?> include "../include/footer.html"; ?>
=is_medical_tab($b_uid_s) ? "검진" : "여행";?>일정 =$row['period_date']?> 상품코드 =$row['g_code']?>