<%@ Page CodeFileBaseClass="IlgharCMS.Lib.AdminPageBase" %>
<%@ Register TagPrefix="IlgharUC" TagName="Ime" Src="../../ime.dwt.ascx"%>
<%@ Register TagPrefix="IlgharUC" TagName="LanguageMenu" Src="../../language_menu.dwt.ascx"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->
<ilghar:Get ID="Order" Object="Order" InnerID="Request.QueryString['ID']" />
<base target="_self" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="Mon,1 Fab 1979 23:36:05 GMT" />
<title>生成收款单</title>
<link rel="stylesheet" type="text/css" href="<%=CommonPath%>jquery/themes/lightness/all.css" />
<ilghar:Comment><link rel="stylesheet" type="text/css" href="../../S01/CHS/css/common.css" /></ilghar:Comment>
<link rel="stylesheet" href="<%=CssPath%>common.css" />
<ilgharUC:Ime Ime="true" Eot="true" runat="server" />
<style type="text/css">
TD TABLE{background:#FFF}
TD TABLE TH{width:100px}
</style>
<script type="text/javascript">
var _page = "make_payment";
var _lang = "<%=ContentLang%>";
var _webPath = "<%=WebPath%>";
var _imagePath = "<%=ImagePath%>";
var _id = "<%=Request.QueryString["ID"]%>";
var _orderID = "<%=Order[ID]%>";
var _sum = <%=Order[Sum]%>;
var _hasPayed = <%=Order[HasPayed]%>;
var _currency = "<%=Order[Currency]%>";
var _paymentName = "<%=Order[PaymentName]%>";
var _data;
var _lang_working = "正在操作...";
var _lang_operation_fail = "操作失败！";
var _lang_operation_success = "操作成功！";
var _lang_amount_incorrect = "付款金额格式不正确！";
var _lang_amount_less_than_zero = "付款金额必须大于零！";
var _lang_amount_greater_than_sum = "付款金额不能大于订单总价！";
var _lang_time_incorrect = "付款时间格式不正确！";
var _lang_making_payment = "正在生成收款单...";
</script>
</head>
<body>
<div class="Block">
	<ul class="Title">
		<li class="Left"></li>
		<li class="Middle">生成收款单</li>
		<li class="Right"></li>
	</ul>
	<form>
		<table border="0" cellpadding="4" cellspacing="1">
			<tfoot>
				<tr><td colspan="2"><input type="submit" value="付款" /></td></tr>
			</tfoot>
			<tbody>
				<tr>
					<th width="120">订单号：</th>
					<td><%=Order[Number]%></td>
				</tr>
				<tr>
					<th>收款单号：</th>
					<td><input type="text" name="Number" size="30" maxlength="50" class="Text" />如果留空，则会自动生成</td>
				</tr>
				<tr>
					<th>付款人：</th>
					<td>
						<table border="0" cellpadding="4" cellspacing="1">
							<tr>
								<th>姓名：</th>
								<td><input type="text" name="Name" value="<%=Order[OrdererName]%>" maxlength="50" class="Text <%=ContentLang%>Font" /></td>
							</tr>
							<tr>
								<th>电话：</th>
								<td><input type="text" name="Phone" value="<%=Order[OrdererPhone]%>" maxlength="20" class="Text" /></td>
							</tr>
							<tr>
								<th>手机：</th>
								<td><input type="text" name="Mobile" value="<%=Order[OrdererMobile]%>" maxlength="20" class="Text" /></td>
							</tr>
							<tr>
								<th>Email：</th>
								<td><input type="text" name="Email" value="<%=Order[OrdererEmail]%>" maxlength="50" class="Text" /></td>
							</tr>
							<tr>
								<th>QQ：</th>
								<td><input type="text" name="QQ" value="<%=Order[OrdererQQ]%>" maxlength="20" class="Text" /></td>
							</tr>
							<tr>
								<th>WW：</th>
								<td><input type="text" name="WW" value="<%=Order[OrdererWW]%>" maxlength="50" class="Text" /></td>
							</tr>
							<tr>
								<th>MSN：</th>
								<td><input type="text" name="MSN" value="<%=Order[OrdererMSN]%>" maxlength="50" class="Text" /></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<th>付款方式：</th>
					<td><%=Order[PaymentName]%></td>
				</tr>
				<tr>
					<th>付款货币：</th>
					<td><%=Order[Currency]%></td>
				</tr>
				<tr>
					<th>付款金额：</th>
					<td><input type="text" name="Amount" value="0" size="5" maxlength="10" class="Text" /></td>
				</tr>
				<tr>
					<th>付款时间：</th>
					<td><input type="text" name="Time" value="<%=DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")%>" maxlength="20" class="Text" /></td>
				</tr>
				<tr>
					<th>备注：</th>
					<td><textarea name="Memo" cols="70" rows="6" wrap="off" class="Text <%=ContentLang%>Font"></textarea></td>
				</tr>
				<tr>
					<th>需付金额：</th>
					<td><%=Convert.ToDecimal(Order[Sum]) - Convert.ToDecimal(Order[HasPayed])%></td>
				</tr>
			</tbody>
		</table>
	</form>
	<div class="Footer"></div>
</div>
<script type="text/javascript" src="<%=CommonPath%>jquery/core.js"></script>
<script type="text/javascript" src="<%=CommonPath%>jquery/ui.js"></script>
<script type="text/javascript" src="<%=CommonPath%>utility.js"></script>
<script type="text/javascript" src="<%=JsPath%>global.js"></script>
<script type="text/javascript" src="<%=JsPath%>shop.js"></script>
</body>
</html>