<%@ Control Language="C#"  %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.Publics" %>
<%@ Import Namespace="Kesion.BLL" %>
<%@ Import Namespace="Kesion.Config" %>
<%@ Import Namespace="Kesion.Components" %>
<%@ Import Namespace="Kesion.HtmlTags" %>
<%@ Import Namespace="Kesion.XML" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Xml" %>
<div class="r_tybox nomar">
    	<div class="r_title r_title_color">推广邀约</div>

        <%
            string regUrl = BaseFun.GetRewriteUrl("reg");
            if (regUrl.ToLower().IndexOf("?uid") == -1)
            {
                regUrl = regUrl + "?uid=" + __info.UserID;
            }
            %>
      	<a href="<%=regUrl%>" style="width:240px;display:block;margin:0 auto;margin-top:60px;" target="_blank"><img width="240" src="/plus/chart.ashx?text=<%=regUrl%>"></a>

        <br />
        
      	<a href="<%=regUrl%>" class="link-button" target="_blank" style="display:block;margin:0 auto;width:150px;height:36px; font-size:14px; line-height:36px;margin-top:20px;">
              网站连接马上推广
     	</a>
		<div style="text-align:center; font-size:14px; line-height:24px; padding:25px 0px 35px 0px;color:#999;">
        推荐用户注册，你可以得到以下：资金：<%=MyCache.GetShopCommonConfig(63) %>元
        ，积分<%=MyCache.GetShopCommonConfig(99)%>分，点券<%=MyCache.GetShopCommonConfig(100) %>点
        </div>
        
        <!-- Baidu Button BEGIN -->
        <div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare" data="{'url':'<%=BaseFun.GetRewriteUrl("reg")%>?uid=<%=__info.UserID%>'}">
            <span class="bds_more">更多</span>
            <a class="bds_tsina">新浪</a>
            <a class="bds_tqq">腾讯</a>
            <a class="bds_renren">人人</a>
            <a class="bds_qzone">QQ </a>
        </div>
        <script type="text/javascript" id="bdshare_js" data="type=tools" ></script>
        <script type="text/javascript" id="bdshell_js"></script>
        <script type="text/javascript">
            document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date() / 3600000);
        </script>
        <!-- Baidu Button END -->
        <div style="height:80px;"></div>
        
        <style>
			#bdshare{width:200px;float:none; margin:0 auto;}
			#bdshare a{ -webkit-transition:0s; transition:0s;}
		</style>
        
    </div>
<script runat="server" type="text/C#">
    public UserInfo __info = null;
    protected void Page_Load(object sender, EventArgs e)
    {

        CheckUserLogin.Run();
        __info = UserManage.GetUserInfo();
      
    }
 


 </script>