<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>
<%@ Page CodeBehind="guest_ly.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Webdisk.guest_ly" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>网站留言</title>
		<% @ Import Namespace="Webdisk" %>
		<link href="<%=xml.GetStyle()%>" type=text/css rel=stylesheet>
	</HEAD>
	<body>
		<form id="MenuPane" method="post" runat="server">
			<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 class="tabletop" width="100%"><img src="pics/files.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">
										<TABLE width="90%">
											<TR class="tablebg">
												<TD width="100%">
													<TABLE class="tablebgborder" cellSpacing="1" cellPadding="2" width="100%" align="center"
														border="0">
														<TR class="tablebg">
															<TD height="10"><div align="right">留言标题：</div>
															</TD>
															<TD><input class="kuan" id="ly_title" type="text" size="30" name="ly_title" runat="server">
																<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="请输入留言标题" EnableViewState="False"
																	ControlToValidate="ly_title" Display="None"></asp:RequiredFieldValidator></TD>
														</TR>
														<TR class="tablebg">
															<TD width="32%" height="10"><div align="right">留言内容：</div>
															</TD>
															<TD width="68%"><textarea class="kuan" id="ly_content" name="ly_content" rows="5" cols="50" runat="server"></textarea>
																<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="请输入留言内容" EnableViewState="False"
																	ControlToValidate="ly_content" Display="None"></asp:RequiredFieldValidator></TD>
														</TR>
														<TR class="tablebg">
															<TD height="18" colspan="2">
																<div align="center">留言人： <input class="kuan" id="ly_user" type="text" size="10" name="ly_user" runat="server">
																	<asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" ErrorMessage="请输入留言人" EnableViewState="False"
																		ControlToValidate="ly_user" Display="None"></asp:requiredfieldvalidator><span id="vcode" runat="server">请输入验证码：&nbsp; <input class="kuan" id="ValidateCode" type="text" size="7" name="ValidateCode" runat="server"> <IMG src="ValidateCode.aspx" align="absBottom" style="cursor:pointer" onClick="this.src='ValidateCode.aspx?time=' + new Date()"></span>
																	<input class="btn" id="Submit1" type="button" value="提交留言" name="Submit1" runat="server" onserverclick="Submit1_ServerClick">
																	&nbsp;
																	<asp:validationsummary id="ValidationSummary1" runat="server" ShowSummary="False" ShowMessageBox="True"
																		Width="132px" DisplayMode="List"></asp:validationsummary></div>
															</TD>
														</TR>
													</TABLE>
												</TD>
											</TR>
										</TABLE>
										<asp:datalist id="DataList" runat="server" EnableViewState="False" Width="100%" CellPadding="0">
											<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">&nbsp;&nbsp;标题：<%# DataBinder.Eval(Container.DataItem, "ly_title") %>&nbsp;&nbsp;用户：<%# DataBinder.Eval(Container.DataItem, "ly_user") %>
																											[
																											<%# DataBinder.Eval(Container.DataItem, "ly_time","{0:d}")%>
																											]
																										</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" UrlPaging="True" PageSize="20" ShowBoxThreshold="21" NumericButtonCount="15"
											ShowCustomInfoSection="Left" HorizontalAlign="Right" 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><span class="forumrow"><span class="px14"></span>
										</span></div><div align="center">关键字： 
										  <input class="kuan" id="key" type="text" size="30" name="key" runat="server">
										  &nbsp;
										  <asp:Button ID="search" runat="server" Text="搜索" CausesValidation="False" CssClass="btn" onclick="search_Click"></asp:Button>
										  <br>
										  <br>
										</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>
