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

<%@ 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">
<script language="javascript">
window.onload = function () { scroll(0,370); }
</script>
<table width="990" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
		<td height="600" valign="top">
		<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">
			  <table width="100%" border="0" cellspacing="0" cellpadding="0">
			    <tr>
				  <td align="center" class="article_title"><h1><%= this.title %></h1></td>
			    </tr>
			    <tr>
				  <td align="center" class="gray">来源：<asp:Label ID="source" runat="server" /> / <asp:Label ID="addtime" runat="server" /> / <asp:Label ID="hits" runat="server" />人关注</td>
			    </tr>
			    <tr>
				  <td class="article_content"><asp:Label ID="content" runat="server" /> <asp:Label ID="link" runat="server" /></td>
			    </tr>
			  </table>
			  </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="comments-<%= Request.QueryString["id"] %>.aspx">查看更多评论>></a></div></td>
		  </tr>
		  <tr>
			<td valign="top" style="padding:5px; padding-bottom:0px;">
				<asp:DataList ID="data_comments" Width="100%" HorizontalAlign="Center" BorderWidth="0" CellPadding="0" CellSpacing="0" 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">网友：</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("state").ToString() == "0") ? "<font color=gray>留言审核中...</font>" : Eval("content").ToString() %>
							</div>
							</td>
						  </tr>
						</table>
						</td>
					  </tr>
					</table>
					<hr color="#ffffff" class="border_bottom_dotted" />
				  </itemtemplate>
				  <footertemplate>
				    <div style="padding:25px; text-align:center">
						<div style="border:1px dotted #cccccc; padding:5px; background:#fafcfd" class="hg25">
							沙发很寂寞
						</div>
					</div>
				  </footertemplate>
				</asp:DataList>
				<asp:Label ID="text_pages" runat="server" Visible="false" />
				
			<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><asp:TextBox ID="c_content" CssClass="text2" Width="100%" Height="40" TextMode="MultiLine" Text="文明上网，理性发言" onClick="if(this.value=='文明上网，理性发言'){this.value='';}" runat="server" /></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" /></td>
                    <td><asp:Button Text=" 发表评论 " OnClick="button_submit_click" runat="server" /></td>
                  </tr>
                </table>
			      </td>
			  </tr>
			</table>
			</td>
		  </tr>
		</table>

		<asp:Panel ID="p_recommend" runat="server">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td class="title1">相关推荐</td>
		  </tr>
		  <tr>
			<td valign="top" style="padding-top:10px;">
			  <asp:DataList ID="data_articles" Width="100%" CellPadding="0" CellSpacing="0" runat="server" RepeatColumns="2" RepeatDirection="Horizontal">
			    <itemstyle Width="50%" CssClass="list1" />
				<itemtemplate>·<a href="<%# Eval("file") %>-<%# Eval("id") %>.aspx"><%# Eval("title") %></a></itemtemplate>
			  </asp:DataList>
			</td>
		  </tr>
		</table>
		</asp:Panel>
		</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" />
