<%@ Page Title="" Language="C#" MasterPageFile="~/Master/UserMaster.master" CodeBehind="Recommend.aspx.cs" Inherits="WAP2P.Web.PC.User.Reward.Recommend" %>
<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="t-recommend">
            <p>您可以通过QQ，MSN等IM工具或者微博与邮件把上面的链接告诉您的好友，邀请他们加入进来。邀请好友成功投标，立即送您的奖金，赶快行动吧。</p>
            <div class="input-big">
                <label class="leftfont">推荐地址</label>
                <input type="text" class="text w400" id="clipboard"  value="<% =SiteUrl %>User/Register<% =PageExt %>?r=<% =CurrentUser.GetRecommendNo() %>"/>               
                <input type="button" value="复 制" class="btn-nobordbig c-normal w80"  onclick="copyLink('#clipboard')" />
            </div>
            <div class="bdsharebuttonbox ml99">
                <a href="#" class="bds_more" data-cmd="more"></a>
                <a href="#" class="bds_qzone" data-cmd="qzone"></a>
                <a href="#" class="bds_tsina" data-cmd="tsina"></a>
                <a href="#" class="bds_tqq" data-cmd="tqq"></a>
                <a href="#" class="bds_renren" data-cmd="renren"></a>
                <a href="#" class="bds_weixin" data-cmd="weixin"></a>
            </div>            
        </div>
        <form action="?action=search" method="get" class="search"></form>
        <table class="table-normal g-mt30 js-ajaxlist">
            <tr>
                <th style="width:70%;" class="g-fleft pl40">用户昵称</th>
                <th style="width:30%;">注册时间</th>
            </tr>
        </table>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="server">
    <script>window._bd_share_config = { "common": { "bdSnsKey": {}, "bdUrl": "<% =GlobalSetting.Get(GlobalSetting.Keys.Site.SiteUrl) %>User/Register<% =PageExt %>?r=<% =CurrentUser.GetRecommendNo() %>", "bdText": "<% =WAP2P.Sys.GlobalSetting.Get(WAP2P.Sys.GlobalSetting.Keys.Site.HomeTitle).HtmlEncode() %>", "bdDesc": "<% =WAP2P.Sys.GlobalSetting.Get(WAP2P.Sys.GlobalSetting.Keys.Site.HomeDescription).HtmlEncode() %>", "bdMini": "2", "bdPic": "", "bdStyle": "0", "bdSize": "24" }, "share": {} }; with (document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];</script>
    <script>
        function copyLink(txtID) {
            var txt = $(txtID);
            try {
                window.clipboardData.setData("Text", txt.val());
                alert("邀请链接地址已复制成功，您可以直接粘帖了。");
            } catch (e) {
                txt.select();
                alert('您使用的是非IE浏览器，请使用Ctrl+C进行复制。');
            }
            return false;
        }
    </script>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="list" runat="server">
    <ruson:Repater runat="server" ID="rptList" ItemType="WAP2P.Member.User">
        <ItemTemplate>
            <tr>
                <td class="g-fleft pl50"><%# Item.Name  %></td>
                <td><%# Item.CreateAt.ToDateTimeString()  %></td>
            </tr>
        </ItemTemplate>
        <EmptyTemplate>
            <tr>
                <td colspan="2" class="g-fleft">暂无数据。</td>
            </tr>
        </EmptyTemplate>
    </ruson:Repater>
    <tr class="pager">
        <td colspan="2">
            <div class="ui-pages g-fright">
                <ruson:Pager runat="server" ID="pages" CssClass="pages" />
                <a href="<% =Request.RawUrl.UrlEncodeParam() %>" class="g-hide"></a>
            </div>
        </td>
    </tr>
</asp:Content>
