<%@ Page Language="C#" AutoEventWireup="true" CodeFile="messages.aspx.cs" Inherits="messages" %>

<%@ Register TagPrefix="Ycbw" TagName="Head" src="ctrls/head.ascx" %>
<%@ Register TagPrefix="Ycbw" TagName="Foot" src="ctrls/foot.ascx" %>
<%@ Register TagPrefix="Ycbw" TagName="Right" src="ctrls/right.ascx" %>
<%@ Register TagPrefix="Ycbw" TagName="Navigation" src="ctrls/navigation.ascx" %>
<%@ Register TagPrefix="Ycbw" TagName="Articles" src="articles/ctrls/articles.ascx" %>

<Ycbw:Head ID="Head" ShowBanner="false" runat="server" />

<form id="form1" runat="server">

<table width="990" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top" height="600">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
		<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
			  <td class="title2">
			  <table width="100%" border="0" cellspacing="0" cellpadding="0">
			    <tr>
				  <td class="title" nowrap="nowrap"><asp:Label ID="category" runat="server" /></td>
				  <td class="right" width="90%"><asp:Label ID="path" runat="server" /></td>
			    </tr>
			  </table>
			  </td>
			</tr>
			<tr>
			  <td valign="top" style="padding:5px; padding-top:10px">
			  
				<asp:DataList ID="data_list" Width="100%" HorizontalAlign="Center" BorderWidth="0" CellPadding="0" CellSpacing="0" autogeneratecolumns="false" runat="server">
                    <itemtemplate>
 					<table width="100%" align="center" border="0" cellspacing="0" cellpadding="8">
					  <tr>
					    <td width="50" valign="top"><img src="images/noavatar.png" /></td>
						<td valign="top">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
						  <tr>
							<td style="color:#999999"><div style="float:left"><%# Eval("nickname") %>：</div> <div style="float:right"><%# ((DateTime)Eval("addtime")).ToString("yyyy-MM-dd") %></div></td>
						  </tr>
						  <tr>
							<td valign="top" style="padding:15px; padding-bottom:0px">
							<div style="border:1px dotted #cccccc; padding:5px; background:#fafcfd" class="hg25"><%# (Eval("verify").ToString() == "0") ? "<font color=gray>留言审核中...</font>" : Eval("content").ToString() %>
                            <asp:Panel Visible='<%# GetVisible(DataBinder.Eval(Container.DataItem, "reply")) %>' runat="server">
                            <font color="#005aa0"><strong>回复：<%# Eval("reply") %></strong></font>
                            </asp:Panel>
							
							</div>
							</td>
						  </tr>
						</table>
						</td>
					  </tr>
					</table>
					<hr color="#ffffff" class="border_bottom_dotted" />
                    </itemtemplate>
                    <footertemplate>
                      <div style="text-align:center; padding:30px;border:1px dashed #cccccc">暂时还没有留言...</div>
                    </footertemplate>
                  </asp:DataList>
                <div style="text-align:center; line-height:30px;">
                  <asp:Label ID="text_pages" runat="server" />
                </div>
				  
				<div class="title4">发表留言</div>
				<table width="100%" align="center" border="0" cellspacing="0" cellpadding="8" class="border1">
				  <tr>
					<td width="50" align="center" bgcolor="#f9f9f9" valign="top"><img src="images/noavatar.png" /></td>
					<td><table border="0" cellspacing="0" cellpadding="8">
                      <tr>
                        <td>昵称：</td>
                        <td><asp:TextBox ID="nickname" CssClass="text1" runat="server" /></td>
                      </tr>
                      <tr>
                        <td>联系方式：</td>
                        <td><asp:TextBox ID="qq" CssClass="text1" runat="server" /></td>
                      </tr>
                      <tr>
                        <td>留言内容：</td>
                        <td><asp:TextBox ID="c_content" CssClass="text1" Width="520" Height="60" TextMode="MultiLine" Text="文明上网，理性发言" onClick="if(this.value=='文明上网，理性发言'){this.value='';}" runat="server" /></td>
                      </tr>
                    </table>
					</td>
				  </tr>
				</table>
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
				  <tr>
					<td>评论审核后方可显示，请遵守相关规定</a></td>
					<td height="50" align="right"><table border="0" cellspacing="0" cellpadding="3">
					  <tr>
						<td>请输入验证码：</td>
						<td><img src="ctrls/vcode.aspx" style="cursor:hand" onclick="this.src='../ctrls/vcode.aspx?time=' + Math.random()" title="点击刷新验证码" align="absmiddle" /></td>
						<td><asp:TextBox ID="vcode" CssClass="text1" Width="50" Height="20" MaxLength="4" runat="server" Font-Size="14px" /></td>
						<td><asp:Button Text=" 发表留言 " OnClick="button_submit_click" runat="server" /></td>
					  </tr>
					</table>
					  </td>
				  </tr>
				</table>

			  </td>
			</tr>
		</table></td>
	  </tr>
    </table>
    </td>
    <td width="15" valign="top">&nbsp;</td>
	<td width="250" valign="top">
	<div id="leftDiv" style="float:left;width:250px; position:absolute; top:373px;">
	<Ycbw:Navigation ID="navigation" runat="server" />
	<Ycbw:Right runat="server" />
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="10"></td>
      </tr>
    </table>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td class="title1"><div style="float:left">最新动态</div><div class="more"><a href="case-20.aspx">更多>></a></div></td>
      </tr>
      <tr>
        <td class="table1" height="154" valign="top"><Ycbw:Articles Cid="42" Type="1" Top="6" TitleLength="32" ShowDateTime="0" CssClass="list1" runat="server" /></td>
      </tr>
    </table>
	</div>
	<script language="javascript" src="js/scroll.js"></script>
    </td>
  </tr>
</table>

</form>

<Ycbw:Foot ID="Foot" runat="server" />
