ÿØÿà 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/erp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/admin/erp/bus_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년

// 버스 회사 목록
$bus_corp_row = get_bus_corp_list();

?>

<style>
	#bus_corp_info {line-height:28px; font-size:14px;}
	#bus_corp_info img {padding-bottom:4px;}
</style>

<!-- 폼 -->
<form name="frm_search" id="frm_search" method="get">
<input type="hidden" name="period_date_s" id="period_date_s" value="<?=($period_date_s) ? $period_date_s:"bebore1month"?>">
<input type="hidden" name="period_yy_s" id="period_yy_s" value="<?=$period_yy_s?>">
<input type="hidden" name="period_mm_s" id="period_mm_s" value="<?=$period_mm_s?>">
<input type="hidden" name="search_box_s" id="search_box_s" value="<?=$search_box_s?>">
<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="mr15">
							<select name="bc_idx_s" id="bc_idx_s" style="width:200px;" >
								<option value="">==선택==</option>
								<? foreach($bus_corp_row as $k => $v) { ?>
								<option value="<?=$v['bc_idx']?>" <?if($v['bc_idx'] == $bc_idx_s) echo "selected"?>><?=$v['corp_nm']?></option>
								<?}?>
							</select>
						</li>
                        <li>
                            <a href="javascript:;" class="sch_btn" onclick="document.frm_search.submit();">검색</a>
                        </li>
						<li id="bus_corp_info">

						</li>
					</ul>
				</td>
			</tr>
			<!--
			<tr>
				<th>검색어</th>
				<td><ul class="form_list">
						<li class="mr5">
							<select name="search_key_s" id="">
								<option value="schedule_name" <?=($search_key_s=="schedule") ? "selected":""?>>버스회사명</option>
								<option value="charger" <?=($search_key_s=="charger") ? "selected":""?>>담당자명</option>
								<option value="res_name" <?=($search_key_s=="res_name") ? "selected":""?>>고객이름</option>
								<option value="res_phone" <?=($search_key_s=="res_phone") ? "selected":""?>>고객 핸드폰번호</option>
								<option value="res_email" <?=($search_key_s=="res_email") ? "selected":""?>>고객 이메일</option>
							</select>
						</li>
						<li>
							<input type="text" id="" name="search_word_s" value="<?=$search_word_s?>" style="width:330px;" />
						</li>
					</ul></td>
			</tr>
			-->
			<tr>
				<th rowspan="2">기간</th>
				<td><ul class="form_list">
						<li class="pt5">
							<input type="radio" name="mode_period_s" Id="period_s_1" value="ins_dt" style="vertical-align:middle;" <?=(!$mode_period_s or $mode_period_s=="ins_dt") ? "checked":""?>/>
							<label for="period_s_1" title="작성일">작성일</label>
						</li>
						<li class="pt5">
							<input type="radio" name="mode_period_s" Id="period_s_2" value="start_date" style="vertical-align:middle;" <?=($mode_period_s=="start_date") ? "checked":""?>/>
							<label for="period_s_2" title="운행날짜">운행날짜</label>
						</li>
						<li>
							<input type="text" name="date_s1" id="date_s1" class="cal_input" value="<?=(!$period_date_s) ? $today:$date_s1?>" onclick="AjaxCal(this,event,{'add_event':'clear_period_date()'});" readonly>
							~
							<input type="text" name="date_s2" id="date_s2" class="cal_input" value="<?=(!$period_date_s) ? $today:$date_s2?>" onclick="AjaxCal(this,event,{'add_event':'clear_period_date()'});" 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" || !$period_date_s) ? "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>
							</ul>
						</li>
					</ul>
					</td>
			</tr>
			<tr>
				<td><ul class="form_list">
						<li class="mr5">
							<select name="period_yy_s" id="item_period_yy">
								<?php for ($yy=date('Y')+1; $yy>=2020 ; $yy--){?>
								<option value="<?=$yy?>" <?=($yy==$period_yy_s) ? "selected":""?>><?=$yy?>년</option>
								<?php }?>
							</select>
						</li>
						<li>
							<ul class="form_in_btn item_period_mm">
								<?php for($s=1 ; $s<=12 ; $s++){?>
									<li class="<?if($s==$period_mm_s)echo "on";if(!$period_mm_s and sprintf("%02d",$s)==date("m"))echo "on";?>"><a href="javascript:;"><?=$s?>월</a></li>
								<?php }?>
							</ul>
						</li>
					</ul>
					</td>
			</tr>

			<tr class="bot_line">
				<th>진행상태</th>
				<td><ul class="form_list">
						<li>
							<input type="radio" name="srh_esti_state" Id="srh_esti_state_1" value="" style="vertical-align:middle;" <?=(!$srh_esti_state) ? "checked":""?>/>
							<label for="srh_esti_state_1" title="전체">전체</label>
						</li>
						<li>
							<input type="radio" name="srh_esti_state" Id="srh_esti_state_2" value="N" style="vertical-align:middle;" <?=($srh_esti_state=="N") ? "checked":""?>/>
							<label for="srh_esti_state_2" title="미정산">미정산(예약완료)</label>
						</li>
						<li>
							<input type="radio" name="srh_esti_state" Id="srh_esti_state_3" value="Y" style="vertical-align:middle;" <?=($srh_esti_state=="Y") ? "checked":""?>/>
							<label for="srh_esti_state_3" title="정산완료">정산완료</label>
						</li>
					</ul></td>
			</tr>
		</tbody>
	</table>
</div>
<script type="text/javascript">
function clear_period_date()
{
	//no op
}

$(document).ready(function(){
	// 기간검색
	$(".item_period_date li").on("click",function(){
		$(this).addClass("on").siblings().removeClass("on");
	});
	
	$("#item_period_yy").on("change",function(){
		var yy = $(this).val();
		var mm = '';

		$(".item_period_mm li").each(function(){
			if($(this).hasClass("on")) {
				mm=parseInt($(this).index())+1;
				if(mm<10) mm='0'+mm;
			}
		});

		var dd = (new Date( yy, mm, 0) ).getDate().toString();

		$("#date_s1").val(yy+'-'+mm+'-01');
		$("#date_s2").val(yy+'-'+mm+'-'+dd);	

		$("#period_yy_s").val(yy);
	});

	$(".item_period_mm li").on("click",function(){
		var yy='';
		var mm='';
		
		$(this).addClass("on").siblings().removeClass("on");

		yy = $("#item_period_yy").val();
		
		$(".item_period_mm li").each(function(){
			if($(this).hasClass("on")) {
				mm=parseInt($(this).index())+1;
				if(mm<10) mm='0'+mm;
			}
		});	

		var dd = (new Date( yy, mm, 0) ).getDate().toString();

		$("#date_s1").val(yy+'-'+mm+'-01');
		$("#date_s2").val(yy+'-'+mm+'-'+dd);	

		$("#period_mm_s").val(mm);
	});

	$('#bc_idx_s').on('change', function(){
		var bc_idx = $(this).val();
		show_bus_corp_info(bc_idx);
	});

	var bc_idx = $('#bc_idx_s').val();
	show_bus_corp_info(bc_idx);

	function show_bus_corp_info(bc_idx){

		if(bc_idx == '') return;

		var params = 'bc_idx='+bc_idx;

		$.ajax({
			type: "POST",
			url: "bus_corp_info.ajax.php",
			data: {
				'bc_idx' : bc_idx
			},
			dataType: 'html',
			success: function (data) {
				$('#bus_corp_info').html(data);
			},
			error: function (e) {
				alert("fail");
			}
		});
	}
});


</script>

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





Anon7 - 2021