<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="projectComments.aspx.cs" Inherits="Maticsoft.Web.projectComments" %>
<%@ Register Src="~/projectRight.ascx" TagName="ascx" TagPrefix="ascxRight" %>

<asp:Content ID="Content1" ContentPlaceHolderID="titleContent" runat="server">
    <%=pbModel.LengName + "," + pbModel.seoName%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <meta name="keywords" content="<%=pbModel.seoName %>|<%=pGlobla["key"] %>" />
    <meta name="description" content="<%=Maticsoft.Common.StringPlus.MyFormatstr(pbModel.jianjie) %>|<%=pGlobla["des"] %>" />
    <link href="Images/1db826e5ef2ef3191131490e43a8940beb28.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="bg-white clearfix">
        <div class="wrap">
            <h1><%=pbModel.LengName %></h1>
        </div>
    </div>    
    <style>
        .m-message .form-item { margin-bottom: 10px; height: 32px; line-height: 32px; }
        .m-message .form-item label { float: left; font-size: 14px; height: 28px; line-height: 28px; text-align: right; width: 100px; }
        .m-message input[type="text"] { border: 1px solid #e4e4e4; color: black; font-size: 14px; height: 17px; line-height: 17px; padding: 8px 0 8px 10px; width: 235px; }
        .m-message .pop-body { padding: 20px; }
    </style>
    <!-- pop -->
    <div class="pops" id="pops">
    </div>
    <div class="project-jz" id="project-jz">
        <p>
            以图文并茂的形式，将你为此项目努力的进展和成果发布在此，让大家看到你的努力，可以更好的吸引大家来支持你的项目，加油吧~
        </p>
    </div>
    <!-- 项目进展弹框-->
    <!-- pop end -->
    <style type="text/css">
        .particulars-left .m-matter p { padding: 11px 0; }
    </style>
    <!--particulars static-->
    <div class="particulars clearfix">
        <a name="maodian"></a>
        <div class="particulars-left">
            <div id="Js-detail" class="m-matter white">
                <ul class="particulars-list-nav clearfix Js-topbill">
                    <li><a href="project.aspx?id=<%=Request.QueryString["id"] %>">项目首页</a></li>
                    <li><a href="projectbacker.aspx?id=<%=Request.QueryString["id"] %>">支持者<i>（<%=zhichi %>）</i></a></li>
                    <li class="selected"><a href="projectcomments.aspx?id=<%=Request.QueryString["id"] %>">评论<i>（<%=Maticsoft.Web.Config.extend.commentsCount(id) %>）</i></a></li>
                    <li><a href="projectProgress.aspx?id=<%=Request.QueryString["id"] %>">进度更新</a></li>
                </ul>
                <div class="m-topics">
			<input type="hidden" value="<%=id %>" name="id" />
            <textarea name="contentliuyan"></textarea>
			<div class="hom-gn Js-img_insert">
				<div class="use-width"></div>				
                <a href="javascript:;" class="mm-blue ml-pm">发表回复</a>
			</div>
            <ul>
                <asp:Repeater ID="comments" runat="server" OnItemDataBound="comments_ItemDataBound">
                    <ItemTemplate>
                        <li id="Js-logId<%#Eval("id") %>" class="Js-talkList">
                            <div class="f-outs">
                                <div class="f-outs-updow clearfix">
                                    <a href="/user/backer.aspx?uid=<%#Eval("userID") %>&type=backer" class="cyclo-img01">
                                        <img src="/user/image/<%#Eval("headimg") %>"></a>
                                    <div class="fl">
                                        <p>
                                            <a href="/user/backer.aspx?uid=<%#Eval("userID") %>&type=backer">
                                                <%#Eval("realname") %>
                                            </a>&nbsp;<span><%#Eval("addtime") %></span></p>
                                        <p>
                                            <%#Eval("neirong") %></p>
                                    </div>
                                </div>
                                <p class="lp-hn">
                                    <a href="javascript:;" data-href="id-<%#Eval("id") %>" class="Js-showComment">回复</a></p>
                                <div class="clearfix" style="display: none;">
                                    <div class="f-criticism">
                                        <textarea name="content_huifu"></textarea>
                                        <input type="hidden" value="<%#Eval("id") %>" name="replyid" />
                                        <p>
                                            <a href="javascript:;" class="<%=Request.Cookies["login"] == null ? "Js-showLogin" : "Js-commentSubmit"%> mm-blue text-01">评论</a></p>
                                        <div class="Js-commentList">
                                            <asp:Repeater ID="replaycomment" runat="server">
                                                <ItemTemplate>
                                                    <div class="bx-return clearfix ">
                                                        <span><a href="/user/backer.aspx?uid=<%#Eval("userID") %>&type=backer" class="cyclo-img01 cyclo-img02">
                                                            <img src="/user/image/<%#Eval("headimg") %>"></a><em><a href="/user/backer.aspx?uid=<%#Eval("userID") %>&type=backer"><%#Eval("realname") %></a>：</em><i><%#Eval("neirong") %>。(<%#Eval("addtime") %>)</i></span> <a href="javascript:;" data-comm-id="<%#Eval("id") %>" data-topic-id="<%#Eval("id") %>"
                                                                data-comm-name="<%#Eval("realname") %>" class="bx-hf Js-commentRpl" style="display: none">回复</a>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>

            </ul>
            <div class="pager">
							</div>
    </div>
            </div>            
        </div>
        <ascxRight:ascx ID="right" runat="server" />
        <script>
            // 发送私信
            $(".a-btn-blue").live("click", function () {
                var content = $("textarea[name='message']").val();
                var sid = $("#sid").val();
                if (!content) {
                    alert('什么都没写，我怎么留言啊？逗我呢');
                    $("textarea[name='msgs']").focus();
                    return;
                }
                $.ajax({
                    type: 'get',
                    cache: false,
                    url: '/user/message.aspx?action=relpy&msg=' + content + "&sid=" + sid,
                    success: function (msg) {
                        if (msg.indexOf('1') > -1) {
                            wx.alert("留言成功");
                        } else {
                            wx.alert("留言失败");
                        }
                    },
                    error: function () {
                        wx.alert("异常，请联系管理员");
                    }
                });
            });
        </script>
        <script id="Js-mess-tpl" type="text">
            <div class="m-message">
                <div class="title">
                    <h3 class="">发送私信</h3>
                    <a href="javascript:;" class="btn-close Js-pop-close">×</a>
                </div> 
                <div class="pop-body">
                        <div class="pop-msg">
                            <h3>收件人：<&name&></h3>
                            <textarea name="message"></textarea>
                            <input type="hidden" id="sid" name="top_id" value="<&id&>">
                        </div>
                        <div class="btn">
                            <a class="a-btn-gray Js-pop-close">
                                取消
                            </a>
                            <a class="a-btn-blue btn-effect-blue" type="button">
                                发送
                            </a>
                        </div>
                </div>
            </div>
        </script>
        <script>
            var user_id="", status = 1;
            function commentBlock_before($form) {
                var id = "";
                $(".Js-removeImage").each(function () {
                    id += '<input type="hidden" name="image_id[]" value="' + $(this).attr('data-id') + '"/>';
                });
                $form.append(id);
                return true;
            }
</script>
    </div>
    <script src="Images/8de8de47e2079c79fe797d093000ad70eb28.js" type="text/javascript"></script>
</asp:Content>
