ÿØÿà 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/ticket/ |
Upload File : |
<? include "../include/top.html"; include "_common.php"; //공급처 $prod_arr = member_fetch(" and mb_level ='13' and del_flag='N' ", "bz_corp_nm ASC"); ?> <div class="contents_wrap"> <div class="contents_wrap_in"> <div class="title"><strong>대량 검색</strong></div> <div class="contents_detail"> <div id="Content_box"> <!-- 폼 --> <form name="frm_ins" id="frm_ins" method="post" enctype="multipart/form-data"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register mt10"> <caption>티켓 등록 & 바코드 생성</caption> <tbody> <tr> <th scope="row" style="width:100px; text-align:center">검색 번호</th> <td> <input type="text" name="search_barcode_num" class="input_text" style="width:351px;" hname="바코드 검색" placeholder="바코드 일련번호를 입력해주세요."> <img src="../image/btn/btn_search.gif" align="top" alt="검색" style="cursor:pointer;" class="input_btn_search" onclick="single_search();"> <span class="form_tip">* 티켓목록 검색결과로 이동합니다.</span> </td> </tr> </tbody> </table> </form> <form name="frm_checker" id="frm_checker" method="post" enctype="multipart/form-data"> <input type="hidden" name="mode" value="ticket_check" /> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register mt30" summary="티켓을 등록합니다."> <caption>티켓 등록 & 바코드 생성</caption> <tbody> <tr> <th width="100" scope="row" style="text-align:center">티켓공급처</th> <td> <select name="producer_id" id="producer_id" style="width:357px;" > <option value=""> ======= 공급처 선택 =======</option> <? foreach($prod_arr as $k => $v) { ?> <option value="<?=$v['mb_id']?>" <?=($v['mb_id']==$producer_id)?"selected":""?>><?=$v['bz_corp_nm']?></option> <?}?> </select> </tr> <tr> <th width="100" scope="row" style="text-align:center">대량 검색</th> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register" summary="티켓을 등록합니다."> <tr> <th scope="row" class="txt_c" style="color:#fff;background-color: #333;">검색 바코드 (<span class="ticket_count">0</span>개)</th> <th scope="row" class="txt_c"></th> <th scope="row" class="txt_c"style="color:#fff;background-color: #333;">발송완료 & 사용 (<span class="ticket_count_s">0</span>개)</th> <th scope="row" class="txt_c"style="color:#fff;background-color: #333;">미사용 (<span class="ticket_count_w">0</span>개)</th> <th scope="row" class="txt_c"style="color:#fff;background-color: #333;">미등록 (<span class="ticket_count_n">0</span>개)</th> </tr> <tr> <td class="txt_c"> <textarea id="search_list" name="search_list" style="width:200px; height:500px; border:1px solid #000;"></textarea> <br><span class="form_tip">* 바코드 번호는 한줄당 한개씩 입력해주세요.</span> </td> <td class="txt_c"> <img src="/tmbi_images/common/icon_arrow_right.png" width="40"> </td> <td class="txt_c"> <textarea id="ticket_result_s" style="width:200px; height:500px;" readonly></textarea> <br><span class="form_tip"> </span> </td> <td class="txt_c"> <textarea id="ticket_result_w" style="width:200px; height:500px; color:#FF0000;" readonly></textarea> <br><span class="form_tip"> </span> </td> <td class="txt_c"> <textarea id="ticket_result_n" style="width:200px; height:500px; color:#FF0000;" readonly></textarea> <br><span class="form_tip"> </span> </td> </tr> </tbody> </table> </td> </tr> </table> </form> <!-- /폼 --> <div class="btn_wrap_C mt30" style="background:#edf0f5"> <a class="Bbtn red" href="javascript:;" onClick="barcode_check();">시작하기</a> </div> </div> </div> </div> <script Language="javascript"> // 바코드 개별 검색 - 티켓목록으로 이동 function single_search(){ var barcode = $("input[name='search_barcode_num']").val(); var url = "ticket_list.html?search_key_s=ticket_number&search_word_s=" + barcode; window.open(url); //document.location.href = url; } function barcode_check(){ var producer_id = $("#producer_id option:selected").val(); if(producer_id == ''){ alert('공급처를 선택하세요.'); return false; } var search_list = $("#search_list").val(); if(search_list == ''){ alert('검색할 바코드를 입력하세요.'); return false; } ajax_post("ajax_proc","ticket_ajax.php","frm_checker", "fn_check_result"); } function fn_check_result(data, status){ var result = JSON.parse(data); $("#ticket_result_s").val(result.send.join("\r\n")); $("#ticket_result_w").val(result.wait.join("\r\n")); $("#ticket_result_n").val(result.none.join("\r\n")); $(".ticket_count_s").text(result.count_send); $(".ticket_count_w").text(result.count_wait); $(".ticket_count_n").text(result.count_none); } $(function(){ // check data count $('#search_list').on('input focus keydown keyup', function() { var text = $(this).val(); if(text){ var lines = text.split("\n"); var count = lines.length; if(lines[count-1] == ''){ count = count - 1; } $(".ticket_count").text(count); } }); }); </script> <? include "../include/footer.html" ?>