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

<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" />
    <link href="Images/project.css" rel="stylesheet" type="text/css" />
        <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; }
        a.sx{width: 70px;right:15px;height: 22px;color:#ffffff;line-height: 22px;font-size: 12px;text-align: center;display: inline-block;background: #55acef;border-radius: 5px;}
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<!--div class="project-banner">
	<div class="wrap-1024 banner-light">
		<dl class="banner-left">
			<dt><img src="http://ustatic.yuanshihui.com/attachment/201412/15/19/548ebfb4a59f8_crop_148x92.jpg"></dt>
			<dd>
				<span class="fs24">逗将游戏</span>
				<i class="btn btn-thin btn-orange">发行中</i>
				<p class="fs16">独具一格的手游思维，5款游戏出奇制胜，前景可期。</p>
			</dd>
		</dl>
		<div class="banner-right">
		 
			<a id="Js-focus" data-id="1310" data-isfocus="0" href="javascript:;"><i></i><span class="Js-focus-label">关注</span>(<span class="Js-focus-num">39</span>)</a>
			<span>
			<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis no-m" target="_blank">
				<i class="share"></i>
				分享(
			</a><a id="no-m" class="jiathis_counter_style"><span class="jiathis_button_expanded jiathis_counter jiathis_bubble_style" id="jiathis_counter_14" title="累计分享2次">2</span></a><a href="###" class="no-m">)</a>
</span>
		</div>
	</div>
</div-->
<div class="wrap-1024 clearfix">
	<div class="project-info clearfix">
		<ul class="project-info-list w374">
			<li>企业名称<em>上海逗将网络科技有限公司</em></li>
			<li>项目类型            <em>游戏动漫</em>
        </li>
		</ul>
		<div class="line"></div>
		<ul class="project-info-list w240">
			<li class="text-overflow">所在城市<em title="上海－杨浦区">上海－杨浦区</em></li>
			<li>团队成员<em>5</em></li>
		</ul>
		<div class="line"></div>
		<ul class="project-info-list">
			<li>成立时间<em>2014.01</em></li>
			<li>项目阶段<em>研发中</em></li>
		</ul>
	</div>
	<div class="project-con">
		<ul class="pro-hd">
                    <li class="selected"><a href="#qy">企业信息</a></li>
                    <li><a href="#cy">核心成员</a></li>
                    <li><a href="#yl">盈利模式</a></li>
                    <li><a href="#xm">项目介绍</a></li>                    
                    <li><a href="#fj">附件下载</a></li>
                    <!--li><a href="#jh">商业计划</a></li>
                    <li><a href="projectbacker1.aspx?id=<%=Request.QueryString["id"] %>">支持者<i><%=zhichi %></i></a></li-->
                    <li><a href="projectcomments1.aspx?id=<%=Request.QueryString["id"] %>">评论<i><%=Maticsoft.Web.Config.extend.commentsCount(id) %></i></a></li>
            </ul> 
<script type="text/javascript">
    var jiathis_config = {
        title: '我在原始会看到创业项目【逗将游戏】很靠谱！火速点击一下链接来关注讨论吧',
        summary: " "
    };
</script>
<script type="text/javascript" src="http://v3.jiathis.com/code/jia.js" charset="utf-8"></script><script type="text/javascript" src="http://v3.jiathis.com/code/plugin.client.js" charset="utf-8"></script>
<input type="hidden" value="<%=id %>" name="id" />
<div class="m-topics" style="padding:20px;">
			<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>
<!-- content结束 -->
</div>
<div class="project-sideBar">
	<dl class="pro-promoters clearfix">
		<dt><img src="/user/image/<%=userModel.headimg %>" /></dt>
        <dd class="fs14 fb"><%=userModel.realname%><a href="###" data-info="<%=userModel.id %>|<%=userModel.realname%>|<%=userModel.id %>" class="sx Js-sendMessage">发私信给他</a></dd>
		<dd><em>项目开始发起时间</em><%=pbModel.addtime %></dd>
	</dl>
	<div class="pro-plan">
		<p class="fs16">融资计划</p>
		<p><i class="fs36"><%=allmoney/10000%></i>万元</p>
	</div>
	<ul class="financing-list clearfix">
		<li class="w80 "><span class="zgb"><%=pbModel.gufen %></span><i>%</i><em>出让股份</em></li>		
		<li class="w73"><%=day%><i>天</i><em>剩余时间</em></li>		
		<li class="w36"><%=pbModel.minMoney/10000 %><i>万</i><em>最低投资额</em></li>
	</ul>
	<div class="appointment-money clearfix">
    <%if (DateTime.Now >= pbModel.startTime) {%>
		<p class="fs14"><em>认购金额</em><span class="fb"><%=money / 10000%>万元</span></p>
        <%} else { %>
        <p class="fs14"><em>预约金额</em><span class="fb"><%=_yuyuecount/10000%>万元</span></p>
        <%} %>
		<div class="financing-progress"><i class="fb" style="width:<%=bfb %>"></i></div>
		<p class="financing-info"><i class="fl fb"><%=bfbtext %></i><em class="fr">剩余<span class="fb"><%=day%></span>天</em></p>
	</div>
    <div class="pro-plan" style="text-align:center">
        <%if (DateTime.Now < pbModel.startTime) {%>
                                <%if (Request.Cookies["login"] != null) {%>
                                <a id="b" href="###" class="myButton">预约认购</a>
                                <%} else {%>
                                <a id="A3" href="/User/login.aspx" class="myButton">登录后可预约认购</a>
                                <%} %>
                                <%} else { %>
                                <%if (Datatable.Rows.Count == 0) {%>
                                <a href="buyList.aspx?id=<%=Request.QueryString["id"] %>&m=<%=minMoney %>&tou=1" class="myButton">我来领投</a>
                                <%} else { %>
                                <small><a class="myButton">已有人领投</a></small>
                                <%} %>
                                <br />
                                <a href="buyList.aspx?id=<%=Request.QueryString["id"] %>&m=<%=minMoney %>&tou=0" class="myButton">我要跟投</a>
                                <%} %>
    </div>
		<div class="promoters-tit">投资人列表</div>
	<div class="Js-long">
        <asp:Repeater ID="moneyListRP" runat="server">
            <ItemTemplate>
                <dl class="pro-promoters clearfix">
                    <dt>
                        <img src="/user/image/<%#Eval("headimg") %>"></dt>
                    <dd class="fs14 fb">
                        <%#Eval("realname") %><i class="btn btn-small btn-orange fn"><%#Eval("zhutou").ToString() == "1" ? "领投人" : ""%></i></dd>
                    <dd>
                        <em>投资金额</em><span class="fb"><%# decimal.Parse(Eval("money").ToString())/10000 %>万</span></dd>
                    <dd>
                        <em>投资时间</em><%#Eval("addtime") %></dd>
                </dl>
            </ItemTemplate>
        </asp:Repeater>
    </div>
</div>

</div>
<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 type="text/javascript" src="/Images/8de8de47e2079c79fe797d093000ad70eb28.js"></script>
    <style>
        #dialog{ font-size:18px; }
        #dialog div{ margin:10px; line-height:28px;}
        #dialog input{line-height:26px;}
    </style>
    <script src="/Scripts/lhgdialog/lhgdialog.min.js" type="text/javascript"></script>
    <script>
        (function (config) {
            config['extendDrag'] = true; // 注意，此配置参数只能在这里使用全局配置，在调用窗口的传参数使用无效
            config['lock'] = true;
            config['fixed'] = true;
        })($.dialog.setting);

        function pointKeyUp(_this) {
            //先把非数字的都替换掉，除了数字和.    
            $(_this).attr("value", $(_this).val().replace(/[^\d.]/g, ""));
            //必须保证第一个为数字而不是.    
            $(_this).attr("value", $(_this).val().replace(/^\./g, ""));
            //保证只有出现一个.而没有多个.    
            $(_this).attr("value", $(_this).val().replace(/\.{2,}/g, "."));
            //保证.只出现一次，而不能出现两次以上    
            $(_this).attr("value", $(_this).val().replace(".", "$#$").replace(/\./g, "").replace("$#$", "."));
            if ($(_this).val() != "") {
                if ($(_this).val().indexOf('.') != -1)
                    $(_this).attr("value", parseInt($(_this).val().substr(0, $(_this).val().indexOf('.')), 10) + $(_this).val().substring($(_this).val().indexOf('.')));
                else $(_this).attr("value", parseInt($(_this).val(), 10));
            }
        }

        $(function () {
            $("#b").dialog({
                id: 'yuyue', title: '预约认购', content: '<div id="dialog"> 请输入您预约认购的金额数：<input id="values" placeholder="￥<%=pbModel.minMoney %>" maxlength="8" value="" onkeyup="pointKeyUp(this)" /><div style="color:red">建议不少于发布者设定的￥<%=pbModel.minMoney %>最低认购限额，否则将影响您的投资意向诚意度</div></div>',
                button: [
                  {
                      name: '预约认购',
                      callback: function () {
                          var value = $('#values').val();
                          alert(value);
                          $.ajax({
                              url: 'project1.aspx?add=yuyueadd&v=' + value + "&id=<%=id %>",
                              cache: false,
                              success: function (date) {
                                  if (date.indexOf('添加成功') >= 0) {
                                      $.dialog({
                                          icon: 'success.gif',
                                          content: '认购成功，请密切关注该项目的正式认购时间。'
                                      });
                                  } else {
                                      $.dialog({
                                          icon: 'error.gif',
                                          content: date
                                      });
                                  }
                              }
                          });
                      },
                      focus: true
                  },
                    {
                        name: '关闭窗口'
                    }
                ]
            });
        });
    </script>
</asp:Content>