<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理後臺</title>
<meta name="keywords" content="管理後臺" />
<meta name="description" content="管理後臺" />
<script src="/jquery/jquery-1.8.2.min.js"></script>
</head>
<body>
	<div class="wrapper">
    	<?# header ?>
    	<div class="wrap">
        	<?# sidePage ?>
            <div class="contentMain">
            	<h3>線上訂單</h3>
                <div class="article" style="width: 100%;">
                <form id="form1" name="form1" action="orderView.php" method="post">
                	<fieldset style="width: 100%;">
                    	<div class="titleTyp"><p>訂單資訊</p></div>
                        <div style=" background: rgba(75, 141, 248, 0.07); padding: 10px 20px;">
                        	<div style="overflow: hidden;">
                        		<label style="float: left; width: 150px; padding: 60px 0;">訂單產品</label>
                                <div style="overflow: hidden;">
                                    <div style="overflow: hidden;">
                                        <p style="width: 100px; float: left; margin: 0 10px;">產品名稱</p>
                                        <p style="width: 100px; float: left; margin: 0 10px;">產品編號</p>
                                        <p style="width:80px; float: left; margin: 0 10px;">單價</p>
                                        <p style="width:80px; float: left; margin: 0 10px;">數量</p>
                                        <p style="width:80px; float: left; margin: 0 10px;">小計</p>
                                    </div>
                                    <php:repeater id="listOP">
                                        <template>
                                            <div style="overflow: hidden; margin: 10px 0;">
                                                <p style="width: 100px; height: 100px; float: left; margin: 0 10px;"><a href="/<?# htLink ?>-<?# ProductID ?>.html" target="_blank"><img style="max-height: 100px; max-width: 100px;" src="<?# IconImage ?>"<?# imageStyle ?> /><?# ProductName ?></a></p>
                                                <p style="width: 100px; float: left; margin: 0 10px;"><?# ProductNO ?></p>
                                                <p style="width:80px; float: left; margin: 0 10px;"><?# Price ?></p>
                                                <p style="width:80px; float: left; margin: 0 10px;"><?# Quantity ?></p>
                                                <p style="width:80px; float: left; margin: 0 10px;"><?# Amount ?></p>
                                            </div>
                                        </template>
                                    </php:repeater>
                                </div>
                            </div>
                        	<div style="overflow: hidden;">
                        		<label style="float: left; width: 150px;">商品金額</label>
                                <div style="overflow: hidden;"><?# ProductPrice ?></div>
                            </div>
                        	<div style="overflow: hidden;">
                        		<label style="float: left; width: 150px;">運費</label>
                                <div style="overflow: hidden;"><?# TransPrice ?></div>
                            </div>
                        	<div style="overflow: hidden;">
                        		<label style="float: left; width: 150px;">總金額</label>
                                <div style="overflow: hidden;"><?# OrderPrice ?></div>
                            </div>
                        	<div style="overflow: hidden;">
                        		<label style="float: left; width: 150px;">備註</label>
                                <div style="overflow: hidden;"><textarea id="Content" name="Content" style="width:540px; height:200px;" disabled="disabled"><?# Content ?></textarea></div>
                            </div>
                        	<div style="overflow: hidden;">
                        		<label style="float: left; width: 150px;">下單時間</label>
                                <div style="overflow: hidden;"><?# CreatedTime ?></div>
                            </div>
                        </div>
                        <div class="titleTyp" style="background: #66CC96; margin: 5px 0 0;"><p>客戶資訊</p></div>
                        <div style="background: rgba(102, 204, 150, 0.11); padding: 10px 20px;;">
                        	<div style="overflow: hidden;">
                        		<label style="float: left; width: 150px;">姓名</label>
                                <div style="overflow: hidden;"><?# Name ?></div>
                            </div>
                        	<div style="overflow: hidden;">
                        		<label style="float: left; width: 150px;">信箱</label>
                                <div style="overflow: hidden;"><?# Email ?></div>
                            </div>
                        	<div style="overflow: hidden;">
                        		<label style="float: left; width: 150px;">電話</label>
                                <div style="overflow: hidden;"><?# Phone ?></div>
                            </div>
                        	<div style="overflow: hidden;">
                        		<label style="float: left; width: 150px;">手機</label>
                                <div style="overflow: hidden;"><?# Mobile ?></div>
                            </div>
                        	<div style="overflow: hidden;">
                        		<label style="float: left; width: 150px;">地址</label>
                                <div style="overflow: hidden;"><?# Address ?></div>
                            </div>
                        </div>
                        <p><input type="button" id="btnCancel" value="返 回" /></p>
                        <input type="hidden" id="id" name="id" value="<?# id ?>" />
                        <input type="hidden" id="pUrl" name="pUrl" value="<?# pUrl ?>" />
                    </fieldset>
                </form>
                </div>
            </div>
        </div>
        <?# footer ?>
    </div>
<script>
<!--
	$(function(){
		$('#btnCancel').click(function(){
			if($('#pUrl').val() == '')
				location.href = 'contactList.php';
			else
				location.href = $('#pUrl').val();
		});
	});
//-->
</script>
</body>
</html>