KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /home/queenjbs/www/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/queenjbs/www/admin/store_order_write.php
<?include $_SERVER['DOCUMENT_ROOT']."/admin/adminTopMenu.html";?>
<link href="/admin/css/order.css" type="text/css" rel="stylesheet" />
<script type="text/javascript"> 
function validate()
{
	if(!chkBlank(frm.title,"타이틀을 입력하여 주십시요.")) {return false;}
	if(!chkBlank(frm.thumnail,"썸네일 이미지를 등록하여 주십시요.")) {return false;}
	return true;
}
 
function go_List() {
	var f = document.form;
	f.action = 'store_orderlist.php';
	f.submit();
}

function joinChk(val,mval){
	var obj = document.form;
		obj.idx.value = val;
		obj.mode.value = mval;
		obj.action = "./Proc/store_order_proc.php";
		obj.submit();
}

</script>



<div id="contents">
<form name="form" method="post" target="_self" onsubmit="return false;">
<input type="hidden" name="act" value="<?=$act?>">
<input type="hidden" name="orderstep" value="<?=$orderstep?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="idx" value="<?=$idx?>">
<input type="hidden" name="key" value="<?=$key?>">
<input type="hidden" name="key_word" value="<?=$key_word?>">
<input type="hidden" name="mode" value="">
<?
	$tableName="shop";
	if($idx){
		$qry = "SELECT * FROM shop_order where uid='$idx'";
		$result= mysql_query($qry,$db_con);
		$row = mysql_fetch_array($result);
		$regdate = substr($row[d_regis],0,4)."-".substr($row[d_regis],4,2)."-".substr($row[d_regis],6,2)." ".substr($row[d_regis],8,2).":".substr($row[d_regis],10,2);

		
		$subject = stripslashes($row[subject]);
		$contents = stripslashes($row[contents]);

		$userid  = get_db("select userid from user where id='$row[mbruid]'");
		
		//$resub = Get_dbres("select * from shop_ordergoods where mbruid = '$row[mbruid]' and parent='$row[uid]'");
		//$rows	= mysql_fetch_array($resub);

		$QUERY_PAGE  = "select * from shop_ordergoods where mbruid = '$row[mbruid]' and parent='$row[uid]'";
		$resub= mysql_query($QUERY_PAGE,$db_con);
		$totals = mysql_affected_rows();

		$naviChkName = "수정";
		$mode = "proc";
	}else{
		$naviChkName = "등록";
		$mode = "";
	}

	switch($row[orderstep]) { 
		case "1" : 
			$flag1 = "注文受付"; //주문접수
			break;
		case "2" : 
			$flag1 = "入金完了"; //입금완료
			break;
		case "3" : 
			$flag1 = "配送準備"; //배송준비
			break;
		case "4" : 
			$flag1 = "商品発送"; //상품발송
			break; 
		case "5" : 
			$flag1 = "配送完了"; //배송완료
			break;
		case "6" : 
			$flag1 = "注文取り消し"; //주문취소
			break;
		case "7" : 
			$flag1 = "払い戻し要請"; //환불요청
			break;
		case "8" : 
			$flag1 = "払い戻し完了"; //환불완료
			break;
	}
?>
<div id="content">
	<h2>주문 상세 페이지 </h2>
 
	<!-- Util -->
	<div class="util">
		<div class="left">
			<h3>ID &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: <em><?=$userid?></em><br/>
			주문번호: <em><?=$row[orderid]?></em></h3>
		</div>
 
	</div>

<div class="splitbox">
		<div class="left">
			<!-- View Table -->
			<table border="0" cellspacing="0" class="view">
				<thead>
					<tr>
						<th colspan="2">주문 정보</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<th>결제방법</th>
						<td>
							일본은행 입금
						</td>
					</tr>
					<tr>
						<th>주문일자</th>
						<td><?=$regdate?></td>
					</tr>
				</tbody>
			</table>
		</div>
		<div class="right">
			<!-- View Table -->
			<table border="0" cellspacing="0" class="view">
				<tbody>
					<tr>
						<th>주문금액(円)</th>
						<td><?=$row[price]-$row[tack]?></td>
					</tr>
					<tr>
						<th>배송비(円)</th>
						<td><?=$row[tack]?></td>
					</tr>
					<tr>
						<th class="price">결제금액(円)</th>
						<td><?=$row[price]?></td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
 
	<!-- View Table -->
	<table border="0" cellspacing="0" class="view">
		<thead>
			<tr>
				<th colspan="4">주문자 정보</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<th>주문자</th>
				<td><input type="text" name="o_name" value="<?=$row[o_name]?>"/></td>
				<th>수령인</th>
				<td><input type="text" name="r_name" value="<?=$row[r_name]?>"/></td>
			</tr>
			<tr>
				<th>E-mail</th>
				<td><input type="text" name="o_email" value="<?=$row[o_email]?>" size="30"/></td>
				<th>E-mail</th>
				<td><input type="text" name="r_email" value="<?=$row[r_email]?>" size="30"/></td>
			</tr>
			<tr>
				<th>우편번호</th>
				<td><input type="text" name="o_zip" value="<?=$row[o_zip]?>"/></td>
				<th>우편번호</th>
				<td><input type="text" name="r_zip" value="<?=$row[r_zip]?>"/></td>
			</tr>
			<tr>
				<th>주소</th>
				<td><input type="text" name="o_addr" value="<?=$row[o_addr]?>" size="30"/></td>
				<th>주소</th>
				<td><input type="text" name="r_addr" value="<?=$row[r_addr]?>" size="30"/></td>
			</tr>
			<tr>
				<th>전화번호</th>
				<td><input type="text" name="o_tel" value="<?=$row[o_tel]?>"/></td>
				<th>전화번호</th>
				<td><input type="text" name="r_tel" value="<?=$row[r_tel]?>"/></td>
			</tr>
			
			<tr>
				<th>관리자메모</th>
				<td><textarea name="msg" style="width:230px;height:40px;"><?=$row[msg]?></textarea></td>
				<th>회원메모</th>
				<td><textarea name="memo" style="width:230px;height:40px;"><?=$row[memo]?></textarea></td>
			</tr>
		</tbody>
	</table>

	<!-- List Table -->
	<table border="0" cellspacing="0" class="list">
		<thead>
			<tr>
				<th>No.</th>
				<th>상품명</th>
				<th>가격</th>
				<th>수량</th>
				<th>주문금액</th>
				<th>상태</th>
				<th>구분</th>
			</tr>
		</thead>
		<tbody>
			<?
			$i=1;
			while($rows=mysql_fetch_array($resub)){
			?>
			<tr>
				<td><?=$i?></td>
				<td class="left"><?=$rows[goodsname]?></td>
				<td><?=$rows[price]?>円</td>
				<td><?=$rows[buynum]?>개</td>
				<td><?=$rows[price]?>円</td>
				<td><span class="order-status o08"><span><?=$flag1?></span></span></td>
				<td></td>
			</tr>
			<?
			$i++;
			}
			?>
		</tbody>
	</table>
 
 
	<!-- 배송 -->
	<table border="0" cellspacing="0" class="view">
		<tbody>
			<tr>
				<th>배송지시일</th>
				<td></td>
				<th>배송일</th>
				<td></td>
			</tr>
			<tr>
				<th>택배회사</th>
				<td></td>
				<th>송장번호</th>
				<td></td>
			</tr>
		</tbody>
	</table>

 
	<!-- Btn Area -->
	<div class="btn-area">
	<a href="javascript:joinChk('<?=$idx?>','modi');" class="btn-blue">수정</a>
		<a href="javascript:go_List();" class="btn-blue">Go to List</a>
	</div>
 </form>
</div>
<!-- footer -->
</div>
</body>
</html>

Anon7 - 2021