<%@ Page Language="C#" AutoEventWireup="true" debug="true" Inherits="WinLibClass.Form.Admin.UserPointsExchange.UI_List"  CodePage="65001" PathLevel="1" PageFileFlag="Shop" PageFileTitle="积分商城兑换" DataBindingType="1" PageFlagId="1"%>


<%@ Register TagPrefix="Site" TagName="Menu" Src="../WUC/Site_Menu.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<Site:Menu id="menu_headtitle" runat="server" Flag="HeadTitle" CurrentPageTitle = "后台管理 - 积分兑换" />
<Site:Menu id="menu_headjs" runat="server" Flag="HeadJs" PathLevel="1" />
<Site:Menu id="menu_headcss" runat="server" Flag="HeadCss" PathLevel="1" />
<script>


//编辑
function Edit_Info(id){
	//访问类型,AJAX路径,数据JSON,弹出框ID,弹出框标题,等执行的函数名;
	var _url="update.aspx";
	var _data = {"id":id};
	Common.EditFunction("POST",_url,_data,"<%=PageFileFlag%>","编辑积分配置信息","_ShopUpdate");
	//将本行设置为选中颜色
	SetActive(id);
}

//增加
function Add_Info(){
//访问类型,AJAX路径,数据JSON,弹出框ID,弹出框标题,等执行的函数名;
var _url="update.aspx";
var _data = {"id":0};
Common.EditFunction("POST",_url,_data,"<%=PageFileFlag%>","编辑积分配置信息","_ShopUpdate");	
}

//删除
function Del_Info(id)
{
//弹出框ID,标题，内容，执行函数
Common.ConfirmDelete ("<%=PageFileFlag%>","删除确认","",function(){Del_Info_Yes(id);});
SetActive(id);

}

function Del_Info_Yes(id){
	$.ajax({
		type: "POST",
		url: "Update.aspx?isadd=20",
		data:{"id":id,"DeleteType":3},//DeleteType==2:删除
		cache: false,
		success: function(msg){
			Common.Refresh();
		}
	});

}


</script>

</head>
<body>

<Site:Menu id="menu_topmenu" runat="server" Flag="TopMenu"  />
<div class1="wrap" id="wrap">
	<Site:Menu id="Wuc_LeftMenu" runat="server" Flag="LeftMenu" PageFileFlag="Menu_A_1_10" PathLevel="1" />	
	<div class1="mainbox" class="MainBox W1100 ">

		<div class="PGTitle LH30  ">
			<div class="W200 FL MGL10 FWB FS12"><%=PageFileTitle%></div>
			<div class="ChileMenu1 FL FS12">

			</div>
			<div class="Clear"></div>
		</div>

		<div class="ContBox MGT10 " >

<table class="Table FS12 ">

<tr style="height:30px;	font-weight: bold;">
<TH style="width:30px">序号</TH>
<TH >产品</TH>
<TH style="width:70px">会员</TH>
<TH style="width:70px">积分值</TH>
<TH style="width:130px">兑换时间</TH>
<TH style="width:130px">发货时间</TH>
<TH style="width:130px">货到确认</TH>

<TH style="width:120px;display:none" >状态</TH>
<TH style="width:80px">操作</TH>
</tr>

<asp:Repeater id="rpList" runat="server">
<ItemTemplate>

<tr id="tr_<%#Eval("id")%>">
		<td><%#Eval("id")%></TD>
		<TD ><%#Eval("ProductName")%> </td>
		<td><%#Eval("UserNickName")%></td>
		<td><%#Eval("UserPoints")%></td>
		
		<td><%#Eval("CreateTime","{0:yyyy-MM-dd HH:mm:ss}")%></td>
		<td><%#ShowTime(Eval("UpdateTime"),Eval("CreateTime"))%></td>
		<td><%#ShowTime(Eval("EndTime"),Eval("CreateTime"))%></td>
		
		<td style="display:none"><%#Eval("IsChecked").Equals(1)?"<font color='green'>启用</font>":"<font color='red'>停用</font>"%></td>
		<td>
			
				<a  onclick="Edit_Info('<%#Eval("id")%>');" >编辑</a>
				<%//#CreateButton(Eval("id"),Eval("IsReserve"))%>
			
		</td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>


		</div>
		<div class="ContBox" >
			<div class="page" style="margin-left:-13px;"><%=strPageInfo%>    </div>		
		</div>

	</div>
</div>


<div class="clear"></div>
<Site:Menu id="menu_foot" runat="server" Flag="Foot"   />
</body>
</html>
