<%@ Register TagPrefix="uc1" TagName="UIHead" Src="Controls/UIHead.ascx" %>
<%@ Register TagPrefix="uc1" TagName="UIFrameTop" Src="Controls/UIFrameTop.ascx" %>
<%@ Register TagPrefix="uc1" TagName="UIFrameLeft" Src="Controls/UIFrameLeft.ascx" %>
<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>
<%@ Page CodeBehind="User_Ly.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Typhoto.User_Ly" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">

<script language=JAVASCRIPT>
function checkAll()
{
	var objID;
	objID=document.all.chkSelect;
	for (var i=0 ;i<objID.length;i++)
	{
		if(objID[i].checked)
		{
			objID[i].checked=false;
			AddRemoveValues(objID[i]); 
			
		}
		else
		{
			objID[i].checked=true;
			AddRemoveValues(objID[i]);
		}
	}
}
function AddRemoveValues(oChk) { 
if(oChk.checked)
document.Form1.HdnSelectedValues.value += "," + oChk.value; 
else
document.Form1.HdnSelectedValues.value = document.Form1.HdnSelectedValues.value.replace("," + oChk.value,""); 
}
function over(obj){
try{
obj.className=(obj.className == "GridMove" ? "GridItem" : "GridMove")
}
catch(e){
}
}
function btnover(obj){
obj.className="butdiv";
}
function btnout(obj){
obj.className="";
}
			</script>
<form id="Form1" name="Form1" runat=server>
  </HEAD>
<body class=body_1 scroll=no>
<table height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
  <tr>
    <td height=60><uc1:uihead id=UIHead1 runat="server"></uc1:uihead></td></tr>
  <tr>
    <td height=10><uc1:uiframetop id=UIFrameTop1 runat="server"></uc1:uiframetop></td></tr>
  <tr>
    <td>
      <table height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0 
      >
        <tr>
          <td class=frame_left_1 vAlign=top width=193><uc1:uiframeleft id=UIFrameLeft1 runat="server" Current="MyZips"></uc1:uiframeleft></td>
          <td class=frame_body_1 vAlign=top>
            <table height="100%" cellSpacing=0 cellPadding=0 width="100%" 
            border=0>
              <tr>
                <td height=32>
                  <div class=main_tool_1><input class=button1 id=Submit1 type=button value=" 删 除 " runat="server" onserverclick="Submit1_ServerClick">
                    <input class=button1 id=Submit2 type=button value=" 审 核 " runat="server" onserverclick="Submit2_ServerClick">
                  <INPUT id=HdnSelectedValues type=hidden name=HdnSelectedValues 
                  runat="server">&nbsp;                  </div></td>
                <td><div align="right">
                  <INPUT type="text" id="key" name="key" runat="server" class=text1 size="20">
                    <INPUT class="button1" id="Button2" type="button" value=" 查 找 " name="Button2" runat="server" onserverclick="Button2_ServerClick">
                </div></td>
              </tr>
              <tr>
                <td height=32 colspan="2" class=main_title_1>
                  <table cellSpacing=2 cellPadding=3 width="100%" border=0 
                  >
                    <tr>
                      <td width=150><IMG src="images/202.gif" width="21" height="17" align=absMiddle >&nbsp;<span class="tabletop">留言管理</span></td>
                      <td align=center><span id=dMessage 
                         runat="server"></span></td>
                      <td align=right width=180><A href="javascript:history.back();" ><IMG src="images/link_back.gif" align=absMiddle ></A></td></tr></table></td></tr>
              <tr>
                <td colspan="2" vAlign=top class=main_content_0><div class=main_content_2 id="content">
                    <asp:datalist id="DataList" runat="server" CellPadding="0" Width="100%" EnableViewState="False">
                      <ItemTemplate>
                         <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
                          <tr>
                            <td width="100%" bgcolor="#ffffff"><TABLE width="100%" border="0" align="center" cellPadding="0" cellSpacing="0">
                                <TR>
                                  <TD width="100%" colSpan="2"><table width="100%" align="center" border="0" cellpadding="0" cellspacing="0">
                                      <tr>
                                        <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                            <tr>
                                              <td><table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" class="ListTop">
                                                  <tr>
                                                    <td width="1137" height="20"><INPUT onClick="AddRemoveValues(this)" type=checkbox value='<%#DataBinder.Eval(Container.DataItem,"id")%>' name=chkSelect>
                                                        <%# DataBinder.Eval(Container.DataItem, "ly_user") %> [ <%# DataBinder.Eval(Container.DataItem, "ly_time","{0:d}")%> ] </td>
                                                    <td width="145"><div align="center"><%# Mark(DataBinder.Eval(Container, "DataItem.mark").ToString()) %></div></td>
                                                    <td width="145"><div align="right"> <a href='User_Ly_Reply.aspx?id=<%# DataBinder.Eval(Container.DataItem, "id") %>' target="_blank">回复</a>&nbsp;&nbsp; </div></td>
                                                    <td width="107"><div align="right"> <a href='User_Ly.aspx?id=<%# DataBinder.Eval(Container.DataItem, "id") %>'>删除</a>&nbsp;&nbsp; </div></td>
                                                  </tr>
                                              </table></td>
                                            </tr>
                                            <tr>
                                              <td align="left" class="ListLine" height="1"></td>
                                            </tr>
                                        </table></td>
                                      </tr>
                                      <tr>
                                        <td><table width="100%" border="0" cellspacing="6" bgcolor="#FFFFFF">
                                            <tr>
                                              <td height="20"><%# ShowContent(DataBinder.Eval(Container.DataItem, "ly_content").ToString())%> <span class="style1"> <%# ShowReply(DataBinder.Eval(Container.DataItem, "ly_reply").ToString())%> </span> </td>
                                            </tr>
                                        </table></td>
                                      </tr>
                                  </table></TD>
                                </TR>
                            </TABLE></td>
                          </tr>
                        </table>
                      </ItemTemplate>
                    </asp:datalist></div>
                  </td></tr>
              <tr>
                <td height=32 colspan="2" class=main_title_1>
                  <table width="100%">
                    <tr>
                      <td width="8%"><input id=bAll onClick="checkAll()" type=checkbox name=bAll> <label 
                        for=bAll><b>全 
                        选</b></label> <asp:label id=lStat Runat="server"></asp:label></td>
                      <td id=tdStat align=right width="92%" 
                      runat="server">
                        <webdiyer:AspNetPager id="Pager" runat="server" PageSize="24" HorizontalAlign="Right" AlwaysShow="True" ShowCustomInfoSection="Left" NumericButtonCount="15" ShowBoxThreshold="21" FirstPageText="<font face=webdings>9</font>" PrevPageText="<font face=webdings>3</font>" NextPageText="<font face=webdings>4</font>" LastPageText="<font face=webdings>:</font>" Height="20px" onpagechanged="Pager_PageChanged"></webdiyer:AspNetPager></td></tr></table></td></tr></table></td></tr></table></td></tr></table></FORM>
	</body>
</HTML>
