<%@ page language="C#" autoeventwireup="true" inherits="Comment, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Import Namespace="D.Common" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="user/css/css.css" type="text/css" rel="stylesheet" />
    <script language="javascript" type="text/javascript" src="js/comment.js"></script>    
    <script language="javascript" src="js/zh-cn/Xmlhttp.js"></script>

    <style>
        body
        {
            background: url(images/commentbg.gif) #bcd1e4 fixed repeat-x;
        }
        .f24
        {
            font-size: 24px;
        }
        form{margin:   0}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table cellpadding="0" cellspacing="0" border="0" width="900px" align="center" style="margin-top: 10px;"
                bgcolor="#ffffff">
                <tr>
                    <td height="50" bgcolor="#e1e8ee">
                        <table cellpadding="4" width="99%" cellspacing="0" align="center" bgcolor="#ffffff"
                            style="margin: 5px 0px 5px 0px">
                            <tr>
                                <td height="50">
                                    <asp:Image ID="Image1" runat="server" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td height="2" bgcolor="#6b97be">
                    </td>
                </tr>
                <tr>
                    <td background="images/commentbg1.gif" height="38">
                    </td>
                </tr>
                <tr>
                    <td height="80" align="center">
                        <asp:Literal ID="LitTitle" runat="server"></asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td height="30" align="center">
                        本评论只代表本网网友个人观点，不代表本网观点
                    </td>
                </tr>
            </table>
            <table cellpadding="0" cellspacing="0" border="0" width="900px" align="center" bgcolor="#ffffff">
                <tr>
                    <td>
                        <div style="float: left; margin-left: 5px">
                            <ajaxToolkit:SliderExtender ID="SliderExtender1" runat="server" TargetControlID="TextBox1"
                                BoundControlID="Label1" Length="800" Minimum="1" EnableHandleAnimation="true">
                            </ajaxToolkit:SliderExtender>
                            <asp:TextBox ID="TextBox1" runat="server" AutoPostBack="True" OnTextChanged="TextBox1_TextChanged"
                                Style="display: none"></asp:TextBox></div>
                        <div style="float: left; margin-left: 10px;">
                            <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></div>
                        <table cellpadding="0" cellspacing="1" class="dh" align="center" width="99%">
                            <tr>
                                <td>
                                    <webdiyer:AspNetPager ID="AspNetPager" runat="server" AlwaysShow="True" FirstPageText="首页"
                                        LastPageText="尾页" NextPageText="下一页" OnPageChanging="Pager_PageChanging" PageSize="20"
                                        PrevPageText="上一页" ShowCustomInfoSection="Left" ShowInputBox="Never" CustomInfoSectionWidth="10%"
                                        ShowNavigationToolTip="True" Width="99%" HorizontalAlign="Right" 
                                        LayoutType="Table" CurrentPageIndex="10">
                                    </webdiyer:AspNetPager>
                                </td>
                            </tr>
                        </table>
                        <table width="99%" cellpadding="0" cellspacing="0" border="0" align="center">
                            <asp:Repeater ID="RepCommentList" runat="server">
                                <ItemTemplate>
                                    <tr>
                                        <td>
                                            <table width="100%" cellpadding="2" cellspacing="1" bgcolor="#afd3eb" style="margin-bottom: 10px;">
                                                <tr>
                                                    <td height="22" bgcolor="#dff5ff" style="padding-left: 10px;">
                                                        <b><font color="#666">
                                                            <%#Eval("NickName") %>(<%# GetIp(Eval("ip","{0}")) %>)</font></b> 发表于：<%#Eval("AddTime","{0:yyyy-MM-dd}") %>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td height="40" bgcolor="#ffffff">
                                                        <%#Eval("Content") %>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                        <table cellpadding="0" cellspacing="1" class="dh" align="center" width="99%">
                            <tr>
                                <td>
                                    <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" FirstPageText="首页"
                                        LastPageText="尾页" NextPageText="下一页" OnPageChanging="Pager_PageChanging" PageSize="20"
                                        PrevPageText="上一页" ShowCustomInfoSection="Left" ShowInputBox="Never" CustomInfoSectionWidth="10%"
                                        ShowNavigationToolTip="True" Width="99%" HorizontalAlign="Right" LayoutType="Table">
                                    </webdiyer:AspNetPager>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
    <table cellpadding="0" cellspacing="0" border="0" width="900px" align="center" bgcolor="#ffffff">
        <tr>
            <td>
                <table style="margin-top: 5px;" cellpadding="4" cellspacing="1" border="0" width="99%"
                    align="center" bgcolor="#afd3eb">
                    <tr>
                        <td bgcolor="#dff5ff" height="25">
                            <span style="padding-left: 10px"><b>发表评论</tr>
                    <tr>
                        <td bgcolor="#ffffff">
                            <div id="Comment"></div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <table cellpadding="0" cellspacing="0" border="0" width="900px" align="center" bgcolor="#ffffff">
        <tr>
            <td>
                <table style="margin-top: 5px;" cellpadding="4" cellspacing="1" border="0" width="99%"
                    align="center">
                    <tr>
                        <td height="80" align="center">
                            <asp:Literal ID="LitFooter" runat="server"></asp:Literal></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</body>
</html>
<script language='javascript'>
    var data = XmlHttpPostMethodText('/Common/comment.aspx?ModelId=<%=Request.QueryString["ModelId"] %>&InfoId=<%=Request.QueryString["Id"] %>', '');
    document.getElementById("Comment").innerHTML = data;
</script>