<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>
<%@ Page language="c#" Codebehind="user_ly.aspx.cs" AutoEventWireup="True" Inherits="Webdisk.user_ly" trace="False" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
<% @ Import Namespace="Webdisk" %>
		<link href="<%=xml.GetStyle()%>" rel="stylesheet" type="text/css">
  </HEAD>
	<body>
		<script language="javascript">
function showly()
{
var url='ly_input.aspx?username='+document.MenuPane.Hiduser.value;
window.open(url,'','scrollbars=yes,top=0,left=0,resizable=no,status=no,toolbar=no,menubar=no,location=no,width=400,height=250');
}
function checkAll()
{
	var objID;
	objID=document.forms[0].elements;
	for (var i=1 ;i<objID.length-3;i++)
	{
		objID[i].checked=true;
		AddRemoveValues(objID[i]);
	}
}
function uncheckAll()
{
	var objID;
	objID=document.forms[0].elements;
	for (var i=1 ;i<objID.length-3;i++)
	{
		objID[i].checked=false;
		AddRemoveValues(objID[i]); 
	}
}
function AddRemoveValues(oChk) { 
if(oChk.checked)
document.MenuPane.HdnSelectedValues.value += "," + oChk.value; 
else
document.MenuPane.HdnSelectedValues.value = document.MenuPane.HdnSelectedValues.value.replace("," + oChk.value,""); 
}
		</script>
		<form id="MenuPane" method="post" runat="server"><FONT 
face=宋体></FONT>
			<br>
			<TABLE cellSpacing="0" cellPadding="0" width="98%" align="center">
				<TR>
					<TD width="5" background="pics/wenbenkuan_02.gif"><IMG height="5" src="pics/wenbenkuan_01.gif" width="5"></TD>
					<TD width="874" background="pics/wenbenkuan_02.gif"><IMG height="5" src="pics/wenbenkuan_02.gif" width="5"></TD>
					<TD><IMG height="5" src="pics/wenbenkuan_03.gif" width="5"></TD>
				</TR>
				<TR>
					<TD background="pics/wenbenkuan_04.gif">&nbsp;</TD>
					<TD class="tablebg" background="pics/wenbenkuan_05.gif"><TABLE width="100%">
							<TR>
								<TD width="100%" class="tabletop"><img src="pics/page.gif" width="18" height="18" align="absMiddle"> 留言管理&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:history.go(-1);"><img src="pics/link_back.gif" border="0" align="absMiddle"></a></TD>
							</TR>
							<TR class="tablebg">
								<TD><div align="center">
										<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="842" height="20"><INPUT id=chkSelect onclick=AddRemoveValues(this) type=checkbox value='<%#DataBinder.Eval(Container.DataItem,"id")%>' name=chkSelect runat="server">
																											<%# DataBinder.Eval(Container.DataItem, "ly_user") %>
																											[
																							        <%# DataBinder.Eval(Container.DataItem, "ly_time","{0:d}")%>
																											]																										</td>
																										<td width="76"><div align="center"><%# Mark(DataBinder.Eval(Container, "DataItem.mark").ToString()) %></div></td>
																										<td width="76"><div align="center">
																												<asp:HyperLink id="Hyperlink1" Target="_blank" runat="server" Text='回复' NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "ID","ly_reply.aspx?ID={0}") %>'>																												</asp:HyperLink>
																											</div>																										</td>
																										<td width="69"><div align="center">
																												<asp:HyperLink id="Hyperlink2" runat="server" Text='删除' NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "ID","user_ly.aspx?ID={0}") %>'>																												</asp:HyperLink>
																											</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>
										<webdiyer:aspnetpager id="Pager" runat="server" HorizontalAlign="Right" AlwaysShow="True" ShowCustomInfoSection="Left"
											NumericButtonCount="15" ShowBoxThreshold="21" PageSize="20" 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>
										<p align="left"><a href="#" onClick="checkAll()"> 全选</a> <a href="#" onClick="uncheckAll()">
												全不选</a>
											<span class="forumrow">
												<span class="px14">
													<INPUT class="btn" id="Submit1" type="button" value="删除选中" name="Submit1" runat="server" onserverclick="Submit1_ServerClick">
													<INPUT class="btn" id="Submit2" type="button" value="审核留言" name="Submit2" runat="server" onserverclick="Submit2_ServerClick">
													<INPUT type="hidden" id="HdnSelectedValues" name="HdnSelectedValues" runat="server">
											</span>											</span></p>
									</div>
								</TD>
							</TR>
						</TABLE>
					</TD>
					<TD width="5" background="pics/wenbenkuan_06.gif"><IMG height="5" src="pics/wenbenkuan_06.gif" width="5"></TD>
				</TR>
				<TR>
					<TD background="pics/wenbenkuan_08.gif"><IMG height="5" src="pics/wenbenkuan_07.gif" width="5"></TD>
					<TD background="pics/wenbenkuan_08.gif"><IMG height="5" src="pics/wenbenkuan_08.gif" width="5"></TD>
					<TD><IMG height="5" src="pics/wenbenkuan_09.gif" width="5"></TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
