<%@ 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']" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>退款单</title>
<ilghar:Comment><link rel="stylesheet" type="text/css" href="../../S01/CHS/css/common.css" /></ilghar:Comment>
<link rel="stylesheet" href="<%=CssPath%>common.css" />
<script type="text/javascript" src="<%=CommonPath%>ajax.js"></script>
<script type="text/javascript" src="<%=JsPath%>common.js"></script>
<ilgharUC:Ime Ime="true" Eot="true" runat="server" />
<style type="text/css">
.Block TBODY TD{text-align:center}
</style>
<script type="text/javascript">
var _action = null;
function XmlHttpCallBack(xmlHttp)
{
	if (xmlHttp.status == 200)
	{
		if (_action == "Delete")
		{
			var row = document.getElementById("Row" + _objectID);
			row.parentElement.parentElement.deleteRow(row.rowIndex);
			
			alert("删除成功！");
		}
	}
	else
	{
		if (_action == "Delete")
			alert("删除失败！请查看日志！");
	}
}

function OnDelete(id)
{
	if (!confirm("要删除此项吗？"))
		return;
	
	_objectID = id;
	_action = "Delete";
	_ajax.Post("<%=WebPath%>ilghar.aspx?Lang=<%=ContentLang%>&Object=Refund&Operation=Delete&ID=" + id, null, XmlHttpCallBack);
}
</script>
</head>
<body>
<div class="WhiteHeader">
	<div class="Left"><img src="<%=ImagePath%>close_frame.gif" onclick="OpenCloseLeftFrame()" /></div>
	<div class="Title"><a href="list.aspx?Lang=<%=ContentLang%>">订单列表</a> → <span class="<%=ContentLang%>Font"><%=Order[Number]%></span></div>
	<div class="Right"></div>
</div>
<div class="Block">
	<ul class="TabMenu">
		<li class="Left"></li>
		<li class="Middle"><a href="view.aspx?Lang=<%=ContentLang%>&amp;ID=<%=Request.QueryString["ID"]%>">查看</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="payment.aspx?Lang=<%=ContentLang%>&amp;ID=<%=Request.QueryString["ID"]%>">收款单</a></li>
		<li class="Right"></li>
		<li class="Left Selected"></li>
		<li class="Middle Selected">退款单</li>
		<li class="Right Selected"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="delivery.aspx?Lang=<%=ContentLang%>&amp;ID=<%=Request.QueryString["ID"]%>">发货单</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="return.aspx?Lang=<%=ContentLang%>&amp;ID=<%=Request.QueryString["ID"]%>">退货单</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="feedback.aspx?Lang=<%=ContentLang%>&amp;ID=<%=Request.QueryString["ID"]%>">反馈</a></li>
		<li class="Right"></li>
	</ul>
	<ul class="Title">
		<li class="Left"></li>
		<li class="Middle"></li>
		<li class="Right"></li>
	</ul>
	<table border="0" cellpadding="4" cellspacing="1">
		<thead>
			<tr>
				<th>退款单号</th>
				<th>名称</th>
				<th>退款金额</th>
				<th>退款日期</th>
				<th>会员名</th>
				<th>备注</th>
				<th width="40">删除</th>
			</tr>
		</thead>
		<tbody>
			<ilghar:List ID="List" Object="Refund" Page="PageNumber" PageSize="20" Validate="True">
				<ilghar:Record>
					<tr id="Row<%=InnerID%>">
						<td><a href="view.aspx?Lang=<%=ContentLang%>&amp;ID=<%=InnerID%>"><%=Number%></a></td>
						<td class="<%=ContentLang%>Font"><%=OrderDetailName%></td>
						<td><%=Amount%></td>
						<td><%=Time%></td>
						<td class="<%=ContentLang%>Font"><%=Member%></td>
						<td><%=Memo%></td>
						<td><a href="javascript:OnDelete('<%=InnerID%>')"><img src="<%=ImagePath%>delete.gif" /></a></td>
					</tr>
				</ilghar:Record>
			</ilghar:List>
		</tbody>
	</table>
	<div class="Footer"></div>
</div>
<script type="text/javascript">
HandleFake404();
</script>
</body>
</html>