ÿØÿà JFIF ` ` ÿþ
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_231024/ |
Upload File : |
<?php //if (!is_array($cf)) exit; // 여행상품예약 클래스 20200211오류요청으로 추가 $GoodReserv_class = new GoodReserv(); $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년 // 상품예약정보의 시작년도,마지막년도 //$data_yy['minyy'] = "2019"; //$data_yy['maxyy'] = "2020"; // 상품예약정보의 시작년도,마지막년도 20200211오류요청으로 변경 $data_yy= $GoodReserv_class->goodResDateMinMax(); if($period_yy_s == ''){ $period_yy_s = date('Y'); } ?> <!-- 폼 --> <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:"bebore3month"?>"> <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 style="display:<?=($search_box_s=="simple")?"none":""?>;"> <th>검색어</th> <td><ul class="form_list"> <li class="mr5"> <select name="search_key_s" id=""> <option value="good_name" <?=($search_key_s=="good_name") ? "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;" 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> <li> <a href="javascript:;" class="Table_btn green" align="top" onclick="location.reload();" style="padding:5px 10px;border-radius:2px"> 새로고침(F5)</a></div> </li> </ul></td> </tr> <tr style="display:<?=($search_box_s=="simple")?"none":""?>;"> <th rowspan="2">기간</th> <td><ul class="form_list"> <li class="pt5"> <input type="radio" name="mode_period_s" Id="period_s_1" value="regdate" style="vertical-align:middle;" <?=(!$mode_period_s or $mode_period_s=="regdate") ? "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 class="pt5"> <input type="radio" name="mode_period_s" Id="period_s_3" value="ev_end" style="vertical-align:middle;" <?=($mode_period_s=="ev_end") ? "checked":""?>/> <label for="period_s_3" title="도착일">도착일</label> </li>--> <li> <input type="text" name="date_s1" id="date_s1" class="cal_input" value="<?=(!$period_date_s) ? $bebore3month:$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');"style="color:#cf2d36;font-weight:700">오늘</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" || !$period_date_s) ? "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 style="display:<?=($search_box_s=="simple")?"none":""?>;"> <td><ul class="form_list"> <li class="mr5"> <select name="period_yy_s" id="item_period_yy"> <?php if(is_array($data_yy)){for ($yy=$data_yy['maxyy'] ; $yy>=$data_yy['minyy'] ; $yy--){?> <option value="<?=$yy?>" <?=($yy==$period_yy_s) ? "selected":""?>><?=$yy?>년</option> <?php }}?> </select> <!--20200211오류요청으로 변경--> <!--<select name="period_yy_s" id="item_period_yy"> <?php if(is_array($data_yy)){for ($yy=$data_yy['minyy'] ; $yy<=$data_yy['maxyy'] ; $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 style="display:<?=($search_box_s=="simple")?"none":""?>;"> <th>결제수단</th> <td><ul class="form_list"> <li> <input type="radio" name="srh_payment_s" Id="srh_payment_s_1" value="" style="vertical-align:middle;" <?=(!$srh_payment_s) ? "checked":""?>/> <label for="srh_payment_s_1" title="전체">전체</label> </li> <li> <input type="radio" name="srh_payment_s" Id="srh_payment_s_2" value="A" style="vertical-align:middle;" <?=($srh_payment_s=="A") ? "checked":""?>/> <label for="srh_payment_s_2" title="무통장입금">무통장입금</label> </li> <li> <input type="radio" name="srh_payment_s" Id="srh_payment_s_3" value="B" style="vertical-align:middle;" <?=($srh_payment_s=="B") ? "checked":""?>/> <label for="srh_payment_s_3" title="전자결제">전자결제</label> </li> </ul></td> </tr>--> <tr class="bot_line" style="display:<?=($search_box_s=="simple")?"none":""?>;"> <th>구분</th> <td><ul class="form_list"> <li> <input type="radio" name="order_state_s" id="order_state_s_99" style="vertical-align:middle;" <?=(!$order_state_s) ? "checked":""?> value="" /> <label for="order_state_s_99">전체</label> </li> <li> <input type="radio" name="order_state_s" Id="order_state_s_1" value="A" style="vertical-align:middle;" <?=($order_state_s=="A") ? "checked":""?>/> <label for="order_state_s_1" title="견적서발행">견적서발행</label> </li> <li> <input type="radio" name="order_state_s" Id="order_state_s_3" value="B" style="vertical-align:middle;" <?=($order_state_s=="B") ? "checked":""?>/> <label for="order_state_s_3" title="예약확정">예약확정</label> </li> <li> <input type="radio" name="order_state_s" Id="order_state_s_2" value="C" style="vertical-align:middle;" <?=($order_state_s=="C") ? "checked":""?>/> <label for="order_state_s_2" title="INVOICE발행">INVOICE발행</label> </li> <li> <input type="radio" name="order_state_s" Id="order_state_s_4" value="D" style="vertical-align:middle;" <?=($order_state_s=="D") ? "checked":""?>/> <label for="order_state_s_4" title="입금완료">입금완료</label> </li> <li> <input type="radio" name="order_state_s" Id="order_state_s_5" value="E" style="vertical-align:middle;" <?=($order_state_s=="E") ? "checked":""?>/> <label for="order_state_s_5" title="VOUCHER발행">VOUCHER발행</label> </li> <li> <input type="radio" name="order_state_s" Id="order_state_s_6" value="F" style="vertical-align:middle;" <?=($order_state_s=="F") ? "checked":""?>/> <label for="order_state_s_6" title="행사완료">행사완료</label> </li> <li> <input type="radio" name="order_state_s" Id="order_state_s_7" value="G" style="vertical-align:middle;" <?=($order_state_s=="G") ? "checked":""?>/> <label for="order_state_s_7" title="취소완료">취소완료</label> </li> </ul></td> </tr> <!-- <tr class="bot_line" style="display:<?=($search_box_s=="simple")?"none":""?>;"> <th>입금</th> <td><ul class="form_list"> <li> <input type="radio" name="srh_pay_stat_s" Id="srh_pay_stat_s_1" value="" style="vertical-align:middle;" <?=(!$srh_pay_stat_s) ? "checked":""?>/> <label for="srh_pay_stat_s_1" title="전체">전체</label> </li> <li> <input type="radio" name="srh_pay_stat_s" Id="srh_pay_stat_s_2" value="A" style="vertical-align:middle;" <?=($srh_pay_stat_s=="A") ? "checked":""?>/> <label for="srh_pay_stat_s_2" title="미입금">미입금</label> </li> <li> <input type="radio" name="srh_pay_stat_s" Id="srh_pay_stat_s_3" value="B" style="vertical-align:middle;" <?=($srh_pay_stat_s=="B") ? "checked":""?>/> <label for="srh_pay_stat_s_3" title="부분입금">부분입금</label> </li> <li> <input type="radio" name="srh_pay_stat_s" Id="srh_pay_stat_s_4" value="C" style="vertical-align:middle;" <?=($srh_pay_stat_s=="C") ? "checked":""?>/> <label for="srh_pay_stat_s_4" title="입금완료">입금완료</label> </li> </ul></td> </tr> --> </tbody> </table> <div class="Bclose" t='<?=($search_box_s=="simple") ?"s":"c"?>' style="display:none;"><a href="#"><img src="../image/btn/arrow_<?=($search_box_s=="simple") ?"down":"up"?>.gif" alt="닫기" /></a></div> </div> <script type="text/javascript"> function clear_period_date() { //no op } $(document).ready(function(){ $(".Bclose").on("click",function(){ if($(this).attr('t')=='c') { $(".c_top_bar_search tr").hide().first().show().addClass("bot_line"); $(this).children().children("img").attr("src","../image/btn/arrow_down.gif"); $(this).attr('t','s'); $("#search_box_s").val("simple"); } else{ $(".c_top_bar_search tr").show().removeClass("bot_line"); $(this).children().children("img").attr("src","../image/btn/arrow_up.gif"); $(this).attr('t','c'); $("#search_box_s").val("complex"); } }); // 기간검색 $(".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); }); }); </script> </form> <!-- /폼 -->