<%@ Page Language="C#" AutoEventWireup="true" debug="true" Inherits="WinLibClass.Form.Admin.UserMessage.UI_List"  CodePage="65001" PathLevel="1" PageFileFlag="UserMessage_List" 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 type="text/javascript" charset="utf-8" src="/paipaijs/dialoguser.js"></script>

<script>
function ChooseUser1(UserId, SpanId,InputId,ChooseType)
{
	var _dlgId = "Dom_UserChoose_Dlg";
	var s = jQuery("#inputSelectText").val();
	var _url="../Dialog/getDialogData_1.aspx";
	var _data = {"UserId":UserId,"SpanId":SpanId,"InputId":InputId,"ChooseType":ChooseType, "DialogId":_dlgId,"unnc":s};	
	_data={"InfoId":UserId,"SpanId":SpanId,"InputId":InputId,"ChooseType":ChooseType, "DialogId":_dlgId,"unnc":s,"p":1},	
	Common.EditFunction("POST",_url,_data,_dlgId,"会员选择");
}

//编辑
function Edit_Info(id)
{
//访问类型,AJAX路径,数据JSON,弹出框ID,弹出框标题,等执行的函数名;
var _url="update.aspx?IsAdd=1";
var _data = {"id":id};	
Common.EditFunction("POST",_url,_data,"<%=PageFileFlag%>","<%=PageFileTitle%>:编辑","SaveSub_UserMsg");	
//将本行设置为选中颜色
SetActive(id);
}
//删除
function Del_Info(id){	
//弹出框ID,标题，内容，删除程序执行路径，参数表
var _url =  "update.aspx?IsAdd=3";
var _data ={"id":id};
Common.ConfirmDelete2 ("POST",_url,_data,"<%=PageFileFlag%>","删除确认","");
SetActive(id);		
}

/*
function ChooseUser(UserId,SpanId,InputId,ChooseType)
{
var _url="../Dialog/UserNickNameList.aspx";
var _data = {"UserId":UserId,"SpanId":SpanId,"InputId":InputId,"ChooseType":ChooseType};	
Common.EditFunction("POST",_url,_data,"Dom_UserChoose","<%=PageFileTitle%>-会员选择:编辑","");	
}
*/








//11:43 2010-9-29
$(document).ready(function(){
});

</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_800_801" 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 style="width:100px">发送者</TH>
<TH style="width:100px">接收者</TH>
<TH style="width:60px">类型</TH>
<TH style="width:60px">审核</TH>
<TH style="width:60px">已读</TH>
<TH >标题</TH>
<TH style="width:130px">操作</TH>
</tr>

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

<tr id="tr_<%#Eval("id")%>">
		<td><%#Eval("id")%></TD>
		<TD><%//#GetUserNickName(Eval("FromUserId"),0)%><%#Eval("FromUserIdName")%>(<%#Eval("FromUserId")%>)</td>
		<TD><%//#GetUserNickName(Eval("ToUserId"),1)%><%#Eval("ToUserIdName")%>(<%#Eval("ToUserId")%>)</td>
		<td><%#UserMessageTypeName(Eval("FromUserId"),Eval("ToUserId"))%></td>
		<td ><%#Eval("IsChecked").Equals(1)?"<font color='green'>启用</font>":"<font color='red'>停用</font>"%></td>
		<td ><%#Eval("IsReaded").Equals(0)?"<font color='red'>未</font>":"<font color='green'>"+ Eval("IsReaded") +"次</font>"%></td>
		
		<TD><%#Eval("NoteTitle")%></td>
		<td>
				<A onclick="Edit_Info('<%#Eval("id")%>')" >编辑</A>
				<A onclick="Del_Info('<%#Eval("id")%>')" >删除</A>
		</td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>

		</div>
		<div class="ContBox" >
			<div class="page" style="margin-left:-13px;"><%=strPageInfo%>  -  <a href="#"onclick="Edit_Info();return false;"  class="A_Add">添加</a> 
			</div>
		</div>
	</div>
</div>


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