<%@ Page Title="" Language="C#" MasterPageFile="~/Master/UserMaster.master" CodeBehind="BorrowSelect.aspx.cs" Inherits="WAP2P.Web.PC.User.Borrow.BorrowSelect" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <div class="m-userbox m-buserbox">
        <div class="m-prompt pl10 pr10 mt20 pb15">
            <div class="prompt-left g-left mt10">
                联系专属客服：<div class="mt10 fs14 g-fcenter"><% =CurrentUser.GetService() %></div>
            </div>
            <div class="prompt-small g-right">
                <p>发布借款前请确保您已拥有足够的额度，并且以阅读并熟知相关的借款说明，并具备了足够的还款能力。</p>
                <p>详细情况具体请查看 <a href="/Help/" target="_blank">帮助中心</a>。</p>
            </div>
        </div>
        <asp:Repeater runat="server" ID="rptBorrowType" ItemType="WAP2P.Sys.BorrowType">
            <ItemTemplate>
                <a href="<%# quotaResult.Success ? string.Format("BorrowDetail{0}?tid={1}", PageBase.PageExt, Item.Id) :  string.Format("javascript:$.jError( '{0}');",quotaResult.Message)  %>" class="m-borrowbid">
                    <div class="borrowbid-photo g-left">
                        <img src="<%# Item.Cover %>" />
                    </div>
                    <div class="t-borrowbidinfor g-left">
                        <h4><%# Item.Name %></h4>
                        <p><%# Item.Description.LeftX(80) %></p>
                        <ul>
                            <li>借款金额：<span class="fcblue-2"><%# Item.MinAmount.ToMoneyString() %> 元 - <%# Item.MaxAmount.ToMoneyString() %> 元</span></li>
                            <li>借款期限：<span class="fcblue-2"><%# Item.LoanTime.Select(item => string.Format("{0}-{1}{2}", item.Min, item.Max, item.Unit.GetDescription())).Join() %></span></li>
                            <li>最大投标天数：<span class="fcblue-2"><%# Item.MaxBidDay %> 天</span></li>
                            <li>借款利率：<span class="fcblue-2"><%# Item.MinInterest == Item.MaxInterest ? string.Format("{0} %", (Item.MinInterest * 100).ToInterestString()) : string.Format("{0} % - {1} %", (Item.MinInterest* 100).ToInterestString(), (Item.MaxInterest* 100).ToInterestString()) %> </span></li>
                        </ul>
                    </div>
                </a>
            </ItemTemplate>
        </asp:Repeater>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="list" runat="server">
</asp:Content>
