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

<asp:Content ID="Content1" ContentPlaceHolderID="titleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="protop">
        <div class="wrap">
            <h1>
                <%=pbModel.LengName %></h1>
        </div>
        <div class="protab">
            <div class="wrap">
                <ul class="protabnav">
                    <li><a href="project1.aspx?id=<%=Request.QueryString["id"] %>">项目首页</a></li>
                    <li><a href="project1.aspx?id=<%=Request.QueryString["id"] %>#qy">企业信息</a></li>
                    <li><a href="project1.aspx?id=<%=Request.QueryString["id"] %>#xm">项目介绍</a></li>
                    <li><a href="project1.aspx?id=<%=Request.QueryString["id"] %>#cy">核心成员</a></li>
                    <li><a href="project1.aspx?id=<%=Request.QueryString["id"] %>#yl">盈利模式</a></li>
                    <li><a href="project1.aspx?id=<%=Request.QueryString["id"] %>#jh">商业计划</a></li>
                    <li class="cur"><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>
            </div>
        </div>
    </div>
    <div class="wrap">
        <div class="procon clearfix">
            <div class="probackers fl">
            投资人列表
                <asp:Repeater ID="backer" runat="server">
                    <ItemTemplate>
                        <div class="probacker">
                            <a href="/user/backer.aspx?uid=<%#Eval("id") %>&type=backer" class="fl">
                                <img class="fl" src="<%#Eval("headimg") %>" width="100" height="100" onerror="javascript:this.src='../images/nophoto.jpg';" alt=""></a>
                            <div class="probackerinfo">
                                <h6>
                                    <p class="fr">
                                        <a href="javascript:void(0)" class="message" data-id="<%#Eval("id") %>_<%#Eval("loginname") %>" onclick="sendMessage(this)">发送私信</a></p>
                                    <a href="/user/backer.aspx?uid=<%#Eval("id") %>&type=backer" target="_blank" class="backer">
                                        <%#Eval("loginname") %></a>
                                </h6>
                                <a href="/user/backer.aspx?uid=<%#Eval("id") %>&type=backer" target="_blank" class="back">已支持<%#userzhichi()%>个项目</a>
                            </div>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>
                <div style="clear: both">
                    <!-- 分页预留位置 -->
                </div>
            </div>
            <!--updates-->
            <div class="proinfo fl">
                <div class="profin">
                    <div class="pro1">
                        <!--<p class="profinstatus active">
                                                众筹中                            </p>  -->
                        <div class="pro1-box">
                            <div class="pro1-top">
                                <div class="pro1-top-p1">
                                    <p class="f16">
                                        已筹集</p>
                                    <p class="money">
                                        <%=money.ToString("C")%></p>
                                </div>
                                <div class="pro1-top-p1">
                                    <p class="f16">
                                        已达到</p>
                                    <p class="money">
                                        <%=bfb %></p>
                                </div>
                                <div class="pro1-top-p1">
                                    <p class="f16">
                                        剩余时间</p>
                                    <p class="mperhour">
                                        <%=day %>天</p>
                                    <!--p>即将到期</p-->
                                    <div id="favor_product">
                                    </div>
                                </div>
                            </div>
                            <div class="pro1-bottom">
                                <!--                    <div class="sidebar-percentage">					
                        <span class="sidebar-percentage-progress-span">10%</span>
                        <div class="sidebar-percentage-progress" style="width:10%"></div>	
                    </div>-->
                                <a href="buyList.aspx?id=<%=id %>&uid=<%=Request.QueryString["uid"] %>" class="pro-sup-btn">立即支持</a>
                                <div class="sidebar-box">
                                    <div class="value" style="color: #999;">
                                        <p style="font-weight: bold; color: #666;">
                                            温馨提示：</p>
                                        项目须在<%=allday %>前达到 <b>￥<%=allmoney %></b> 的目标才可成功。
                                    </div>
                                </div>
                                <!--郑帅：暂时去掉div class="sidebar-bottom">目标为¥100000</div-->
                            </div>
                        </div>
                        <div class="proba clearfix">
                            <div class="fr attentions">
                                <span id="fav_count">
                                    <%=zhichi %>支持者</span>
                            </div>
                            <div class="fl backers">
                                <a href="483-2.html?id=483">
                                    <%=lookcount %>浏览次数</a>
                            </div>
                        </div>
                    </div>
                    <!--div class="proauthor" style="margin-bottom: 0">
                        <a href="indexeb9e.html?id=931660" class="fl" >
                            <img src="images/931660_1420533760_120x120.jpg" width="87" alt="" /></a>
                        <div>
                            <h5>
                                <a href="indexeb9e.html?id=931660" >三国英雄</a></h5>
                            <p>
                                <a style="margin-left: 0" href="javascript:void(0)" class="sendmes" data-id="931660_三国英雄" onclick="sendMessage(this);">发私信</a></p>
                            <p>
                                上次登录时间：2015-01-19 14:55:43</p>
                            <p>
                                <a href="user4644.html?id=931660&amp;type=backer" >支持的项目：1</a></p>
                            <p>
                                <a href="userd90f.html?id=931660&amp;type=index" >发起的项目：1</a></p>
                            <p>
                            </p>
                        </div>
                        <div class="cl">
                        </div>
                    </div-->
                    <div style="margin-bottom: 30px; padding: 10px; border: 1px solid #dcdcdc; background-color: #fafafa; color: #0EA5DF;">
                        <b>退款说明：</b><br />
                        项目众筹失败后，您的支持金额将在10个工作日内原路退回到您的支付账户。</div>
                    
                </div>
                <!--profin-->
            </div>
            <div class="popmodel new-pledges">
                <h1>
                    支持项目吧!</h1>
                <form action="/main/back" method="GET" id="custom-form">
                <ul>
                    <li class="clicked_reward clearfix">
                        <label class="title" for="amount">
                            支持金额</label>
                        <div class="amount-input-wrap pledges-cont">
                            <span class="currency">¥</span>
                            <input type="text" id="amount" name="money" value="">
                            <input type="hidden" name="id" id="pro-id" value="462">
                            <input type="hidden" name="rid" id="rew-id">
                        </div>
                    </li>
                    <li class="clicked_reward clearfix">
                        <p class="title">
                            回报内容</p>
                        <div class="reward-wrap pledges-cont">
                            <b id="custom-rew-prompt">请支持¥10或更多</b>
                            <p id="custom-rew-cont-short">
                            </p>
                            <p id="custom-rew-cont-full" style="display: none;">
                            </p>
                            <a href="#" id="display-full-cont" style="color: #00ccff; font-size: 14px;">显示更多</a>
                        </div>
                    </li>
                </ul>
                <div class="pledges-action clearfix">
                    <span class="vail"></span>
                    <input type="button" class="backbtn" value="去下单">
                </div>
                </form>
            </div>
            <script type="text/javascript">
                $(document).ready(function () {
                    $('.flexslider').flexslider({
                        directionNav: false,
                        pauseOnAction: false,
                        slideshowSpeed: 3000,
                        controlNav: false
                    });

                    $(".probacks .backbtn.back-enable").on("click", function () {

                        $('.vail').html('');
                        $("#custom-rew-cont-short").show();
                        $("#custom-rew-cont-full").hide();

                        if ($(this).siblings('.rew-cont').length == 0)
                            $("#display-full-cont").hide();
                        else
                            $("#display-full-cont").show();

                        var rid = $(this).attr('data-rid');
                        var cont = $(this).siblings('.rew-cont-short').html();
                        var full_cont = $(this).siblings('.rew-cont').html();
                        var m = $(this).siblings('.probttl').attr('data-amount');
                        $('#custom-rew-prompt').html('请支持&yen;' + m + '或更多');
                        $('#custom-rew-cont-short').html(cont);
                        $('#custom-rew-cont-full').html(full_cont);
                        $('#amount').val(m);

                        $("#rew-id").val(rid);
                        _popModel($(this), {
                            width: 600,
                            href: '.new-pledges',
                            overlayShow: true
                        });

                        return false;
                    });

                    $(".pledges-action .backbtn").on("click", function () {
                        var id = 462;
                        var rid = $("#rew-id").val();
                        var money = $("#amount").val();

                        $.ajax({
                            type: 'get',
                            url: '/main/ajax_valid_back',
                            data: { id: id, r_id: rid, money: money },
                            dataType: 'json',
                            success: function (data) {
                                if (data['status'] < 0) {
                                    $('.vail').html(data['msg']);
                                    return false;
                                }
                                else {
                                    $('#custom-form').submit();
                                }
                            }
                        });
                        return false;
                    });


                    $("#amount").on("blur", function () {
                        var max = 99999999;
                        var imoney = Math.round($(this).val() * 100) / 100;
                        if (!$.isNumeric(imoney) || imoney >= max)
                            imoney = 0;
                        $(this).val(imoney);
                    })

                    $('#display-full-cont').on('click', function (evt) {
                        evt.preventDefault();
                        $(this).parent().find('#custom-rew-cont-short').css('display', 'none');
                        $(this).parent().find('#custom-rew-cont-full').css('display', 'block');
                        $(this).css('display', 'none');
                    });


                    /*        $("input[name='money']").on("focus",function(){
                    console.log(11111);
                    $('.vali').html('aaa');
                    })*/

                });
            </script>
        </div>
    </div>
</asp:Content>
