<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="projectProgress.aspx.cs" Inherits="Maticsoft.Web.projectProgress" %>

<%@ Register Src="~/projectRight.ascx" TagName="ascx" TagPrefix="projectRight" %>
<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/timeline.css" rel="stylesheet" />
   <link href="Images/1db826e5ef2ef3191131490e43a8940beb28.css" rel="stylesheet" type="text/css" />

    <link rel="stylesheet" href="../kindeditor-4.1.7/themes/default/default.css" />
    <link rel="stylesheet" href="../kindeditor-4.1.7/plugins/code/prettify.css" />
    <script charset="utf-8" src="../kindeditor-4.1.7/kindeditor.js"></script>
    <script src="../kindeditor-4.1.7/lang/zh_TW.js"></script>
    <script charset="utf-8" src="../kindeditor-4.1.7/plugins/code/prettify.js"></script>

</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>
    <!--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=<%=id %>">项目首页</a></li>
                    <li><a href="projectbacker.aspx?id=<%=id %>">支持者<i>（<%=zhichi %>）</i></a></li>
                    <li><a href="projectcomments.aspx?id=<%=id %>">讨论<i>（<%=Maticsoft.Web.Config.extend.commentsCount(id) %>）</i></a></li>
                    <li class="selected"><a href="projectProgress.aspx?id=<%=id %>">进度更新</a></li>
                </ul>
                <div class="m-topics">
                    <%try {
                            if(_show == "Y") { %>
                    <textarea name="content" style="width: 100%; height: 400px;"></textarea>
                    <asp:Button ID="Button1Progress" runat="server" Text="更新进度" OnClick="Button1Progress_Click" Style="padding: 10px; margin-top: 5px; background: #55acef; border: 0px; border-radius: 8px; color: #FFF;" />
                    
                    <%}
                        } catch { }%>

                    <!--Progress start-->
                    <div class="content">
                        <article>
                            <asp:Repeater ID="comments" runat="server">
                                <ItemTemplate>
                                    <section>
                                        <span class="point-time point-red"></span>
                                        <time>
                                            <span><%#Eval("addtime") %></span>
                                            <%if(_show == "Y") {%><span class="text-red"><a class="timeDel" data-id="<%#Eval("id") %>">[删除]</a></span><%} %>
                                        </time>
                                        <aside>
                                            <p class="things"><%#Eval("body") %></p>
                                        </aside>
                                    </section>
                                </ItemTemplate>
                            </asp:Repeater>
                        </article>
                    </div>
                    <!--Progress end-->

                    <div class="pager">
                    </div>
                </div>
            </div>
        </div>
        <projectRight:ascx ID="ascx" runat="server" />

        <script>
            //有参数调用
            $("#ctl00_ContentPlaceHolder1_Button1Progress").click(function () {
                $.ajax({
                    type: "POST",
                    contentType: "application/json",
                    url: "/admin/autoRun.asmx/sendEmail",
                    data: "{id:'<%=id%>',url:'<%=Request.Url.AbsoluteUri%>'}",
                    success: function (msg) {
                        alert(msg.d);
                    }
                });
            });

            // 发送私信
            $(".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 editor;
            KindEditor.ready(function (K) {
                editor = K.create('textarea[name="content"]', {
                    resizeType: 1,
                    uploadJson: "../kindeditor-4.1.7/asp.net/upload_json.ashx",
                    allowPreviewEmoticons: false,
                    allowImageUpload: true,
                    items: [
						'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
						'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
						'insertunorderedlist', '|', 'emoticons', 'image', 'link']
                });
            });
        </script>
    </div>
    <script src="Images/8de8de47e2079c79fe797d093000ad70eb28.js" type="text/javascript"></script>
</asp:Content>
