<!DOCTYPE html>
<!--[if IE 8 ]><html dir="ltr" lang="zh-TW" class="ie8"><![endif]-->
<!--[if IE 9 ]><html dir="ltr" lang="zh-TW" class="ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html dir="ltr" lang="zh-TW">
<!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
<title>管理後臺</title>
<meta name="robots" content="noindex, nofollow" />
<link href="less/page.less" rel="stylesheet/less">
<link href="css/main.css" rel="stylesheet">
<link href="css/page.css" rel="stylesheet">
<script src="/jquery/jquery-1.10.js"></script>
<script>
	if('<?# alertMsg ?>' != ''){
		alert('<?# alertMsg ?>');
		if('<?# goBack ?>' == 'Y') history.back();
	}
	if('<?# locationHref ?>' != '') location.href = '<?# locationHref ?>';
</script>
</head>
<body>
	<?# sidePage ?>
	<div class="pos_rel" id="content">
		<?# header ?>
		<form id="form1" name="form1" method="post">
            <input type="hidden" id="id" name="id" value="<?# id ?>" />
            <input type="hidden" id="pUrl" name="pUrl" value="<?# pUrl ?>" />
			<div class="row mt_10 mb_5 h3 page_title"><?# page_name ?></div>
			<div class="card">
				<div class="pos_rel bg_g_100 tabs_warp" id="tabs_warp">
					<div class="tabs_list">
						<a class="tabs_item" href="orderList.php"><?# page_name ?></a>
						<a class="tabs_item" data-action="true" href="javascript:void(0);">訂單資訊</a>
					</div>
				</div>
				<?# delTxt ?>
				<div class="card_body form_box">
					<div class="mb_10">
						<ul class="mb_7 list_box">
							<php:repeater id="listOP">
							<template>
							<li class="d_lg_flex">
								<p class="col_lg_1"><label>產品圖</label><font><a href="<?# WebLink ?>" target="_blank"><img src="<?# IconImage ?>" /></a></font></p>
								<p class="col_lg_8"><label>產品名稱</label><font><a href="<?# WebLink ?>" target="_blank"><?# ProductName ?></a></font></p>
								<p class="col_lg_1"><label>單價</label><font><?# Price ?></font></p>
								<p class="col_lg_1"><label>數量</label><font><?# Quantity ?></font></p>
								<p class="col_lg_1"><label>小計</label><font><?# Amount ?></font></p>
							</li>
							</template>
							</php:repeater>
						</ul>
						<div class="mb_3 d_flex f_justify_end"><font class="mr_5">訂單產品金額</font><label class="talign_right"><?# ProductPrice ?></label></div>
						<div class="mb_3 d_flex f_justify_end"><font class="mr_5">運費</font><label class="talign_right"><?# TransPrice ?></label></div>
						<div class="mb_3 d_flex f_justify_end"><font class="mr_5">訂單總金額</font><label class="talign_right"><?# OrderPrice ?></label></div>
					</div>
					<div class="d_md_flex flex_wrap">
						<div class="col_md_6 d_flex form_list"><label>姓名</label><input type="text" value="<?# Name ?>" readonly /></div>
						<div class="col_md_6 d_flex form_list"><label>信箱</label><input type="text" value="<?# Email ?>" readonly /></div>
						<div class="col_md_6 d_flex form_list"><label>電話</label><input type="text" value="<?# Phone ?>" readonly /></div>
						<div class="col_md_6 d_flex form_list"><label>手機</label><input type="text" value="<?# Mobile ?>" readonly /></div>
						<div class="col_md_6 d_flex form_list"><label>地址</label><input type="text" value="<?# Address ?>" readonly /></div>
						<div class="col_md_6 d_flex form_list"><label>下單時間</label><input type="text" value="<?# CreatedTime ?>" readonly /></div>
						<div class="col_12 form_list"><label>備註</label><textarea readonly><?# Content ?></textarea></div>
					</div>
				</div>
			</div>
            <div class="row mt_5 d_flex start_box"><a class="mr_2 btn btn_g_300" id="btnCancel" href="javascript:void(0);">返回</a></div>
		</form>
		<?# footer ?>
	</div>
</body>
</html>
<script>
	$(function(){
		$('#btnCancel').click(function(){
			location.href = ($('#pUrl').val() == '') ?'orderList.php':$('#pUrl').val();
		});
	});
</script>