<%@ Page CodeBehind="Ly.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Typhoto.Ly" %>
<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>
<%@ Register TagPrefix="uc1" TagName="top" Src="template/top.ascx" %>
<%@ Register TagPrefix="uc2" TagName="bottom" Src="template/bottom.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD>
		<title>
			<%=title%>
			用户留言</title>
		<link href="template/img/style.css" rel="stylesheet" type="text/css">
			<style type="text/css">.style5 { COLOR: #ff0000 }
	.ListTop { BACKGROUND-COLOR: #e4f6ff }
	.ListLine { BACKGROUND-COLOR: #909090 }
	</style>
			<script>
function SetScript(info) 
{ 
   document.getElementById('Layer5').innerHTML=info;
   document.getElementById('success').style.display ='';
}
			</script>
	</HEAD>
	<body>
		<div id="success" style="MARGIN-TOP:-80px;DISPLAY:none;Z-INDEX:300;LEFT:50%;MARGIN-LEFT:-150px;WIDTH:284px;POSITION:absolute;TOP:50%;HEIGHT:50px">
			<div id="Layer2" style="BORDER-RIGHT:#000000 1px solid; BORDER-TOP:#000000 1px solid; FONT-SIZE:14px; Z-INDEX:300; BORDER-LEFT:#000000 1px solid; WIDTH:270px; BORDER-BOTTOM:#000000 1px solid; POSITION:absolute; HEIGHT:50px; BACKGROUND-COLOR:#ffffae">
				<div id="Layer5" style="PADDING-RIGHT:3px;PADDING-LEFT:3px;PADDING-BOTTOM:0px;LINE-HEIGHT:150%;PADDING-TOP:10px;HEIGHT:30px"
					align="center">11</div>
			</div>
		</div>
		<form runat="server" id="Form1" name="Form1" method="post">
				<uc1:top id="index1" runat="server"></uc1:top>
				<table cellSpacing="0" cellPadding="0" width="760" align="center" border="0">
					<tbody>
						<tr>
							<td class="body_range_3">
								<div class="title"><IMG height="16" src="images/icon_help.gif" width="17" align="absMiddle"><span class="tabletop"> 用户留言</span></div>
								<div class="body">
									<div align="center">
										<table cellSpacing="7" cellPadding="3" width="100%" align="center" border="0">
											<tbody>
												<tr>
													<td id="tdMessage" align="center" colSpan="2"></td>
												</tr>
												<tr>
													<td width="187">
														<div align="right">留言标题：</div>
													</td>
													<td width="527">
														<div align="left">
															<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>
														</div>
													</td>
												</tr>
												<tr>
													<td><div align="right">留言内容：</div>
													</td>
													<td class="td_input_1">
														<div align="left">
															<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>
														</div>
													</td>
												</tr>
												<tr>
													<td 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"></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>
														<div align="left"></div>
													</td>
												</tr>
												<tr>
													<td colspan="2" align="left"><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>
														<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>
														</div>
													</td>
												</tr>
											</tbody></table>
									</div>
								</div>
							</td>
						</tr>
					</tbody></table>
				<uc2:bottom id="index2" runat="server"></uc2:bottom>
		</form>
	</body>
</HTML>
