<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="content.aspx.cs" Inherits="JuSNS.Web.home.news.content" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title id="ptitle" runat="server"></title>
<script language="javascript" type="text/javascript" src="<%=root %>/js/ajax.js"></script>
<script language="javascript" type="text/javascript" src="<%=root %>/js/public.js"></script>
<link href="<%=root %>/template/<% Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/css/base.css"   id="skinpath" type="text/css" rel="stylesheet" />
</head>
<body>
   <!--头部-->
   <%=this.GetHtmlShort()%> 
    <div id="divhead">
        <%=this.GetHtmlHead()%>
    </div>
    <div id="divbody">
        <div id="body_first">
            <div class="body_menu">
                <%=this.GetHtmlLeft()%>
            </div>
        </div>
        <div id="body_sec">
           
                <div id="body_mid">
                    <div class="body_frame">
                        <!--主题内容中-->
                        <div class="body_frame_otherinfo">
                            <div class="title">
                                <div class="l">
                                <div class="l"><img src="<%=root %>/template/<%Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/images/site/news.gif" align="absmiddle" /> <span class="shenlan bold font14 ocolor">阅读新闻</span></div>
                                </div>
                                <div class="r">
                                    <a href="javascript:history.back();">返回上一级</a>                                   
                                </div>
                                <div class="c">
                                </div>
                            </div>
                            <div class="nav-menu">
                                <ul>
                                    <li runat="server" id="allNews"><a href="<%=root %>/home/news" title="所有新闻">全部</a></li>
                                    <%if (isAll)
                                      {%>
                                    <li>
                                        <a href="javascript:void(0);"   onmouseover="showSetMenu('newsclass_div');"  onmouseout="delayhidemenu('newsclass_div')">所有分类</a>
                                        <div  onmouseover="clearhidemenu()"  onmouseout="delayhidemenu('newsclass_div')" class="divstyle-newsclass" style="display:none;" id="newsclass_div" runat="server">
                                        </div>
                                    
                                    </li>
                                    <%} %>
                                    <%=allClass %>
                                 </ul>
                            </div>                                
                         </div>
                        
                        
                        
                        <div class="body_sec_all">
                                <div class="spline"></div>
                                <span class="content font16 bold nl" id="NewsTitle" runat="server"></span><span class="time nr" id="NewsTime" runat="server"></span>
                                <div class="line-none"></div>
                                <div class="content" style="line-height:30px;font-size:15px;" id="NewsContent" runat="server"></div>
                                <div class="line1"></div>
                                <div class="conent"><span class="nl">共<asp:Literal ID="LtrNum" runat="server"></asp:Literal>个评论</span>
                                <span class="nr"><span class="share"><a href="javascript:ShowShareDiv(7,'<%=newsID %>','<%=nTitle %>','','<%=nContent %>','0');" title="分享此新闻">分享</a></span>
                                </span>
                                </div>
                               <div class="newscomment-list" id="newscomment-list">
                                        <ul>
                                            <asp:Repeater runat="server" ID="NewsCommentList">
                                                <ItemTemplate>
                                                    <%# DataBinder.Eval(Container.DataItem, "d") %>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </ul>
                                       <div class="msg-error" id="ShowError" runat="server" visible="false"></div> 
                                       <div class="spline"></div>
                                        <form id="Form1" runat="server">
                                           <div class="content">
                                                <label class="f-label">评论内容</label>
                                               <asp:TextBox ID="CommentContent" TextMode="MultiLine" Height="80" CssClass="f-text s60" MaxLength="200"  runat="server"></asp:TextBox>
                                           </div> 
                                          <div class="content">
                                                <label class="f-label">&nbsp;</label>
                                                <a href="javascript:void(0);"  id="face" onclick="showface(this.id,'CommentContent',0);"><img src="../../template/images/face/c.gif" title="选择表情"  align="absmiddle" /></a> 
                                                <asp:Button ID="Button1" CssClass="f-button" runat="server" Text="发表评论" OnClick="Button1_Click" />
                                                </div> 
                                       </form>
                                </div>
                                
                        </div>
                        
                        </div>
                         <!--底部-->
                         <div class="divbottom">
                          <%=this.GetHtmlFoot()%>
                          </div>
                        
                        </div>
                        </div>
                        </div>
                        
</body>
</html>
<script language="javascript" type="text/javascript">
    <!--
    function DeleteComment(id)
    {
       if(window.confirm('确定删除该新闻评论吗?'))
       {
            var  options={
            method:'get',
            parameters:"Option=DelComment&nid="+ id,
            onComplete:
            function(transport)
	            {
	                var retv =transport.responseText;
	                if(retv == '1')
	                {
	                    document.getElementById('li_'+ id).style.display="none";
	                }
	            } 
	        }
	        new  Ajax.Request('<%=root %>/home/news/content.aspx',options);
       }
    }
    //-->
    </script>