invite.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:45k
- <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Web.invite" %>
- <%@ Import namespace="System.Data" %>
- <%@ Import namespace="Discuz.Common" %>
- <%@ Import namespace="Discuz.Forum" %>
- <%@ Import namespace="Discuz.Entity" %>
- <script runat="server">
- override protected void OnInit(EventArgs e)
- {
- /*
- This page was created by Discuz!NT Template Engine at 2010/2/8 15:43:52.
- 本页面代码由Discuz!NT模板引擎生成于 2010/2/8 15:43:52.
- */
- base.OnInit(e);
- templateBuilder.Capacity = 220000;
- if (infloat!=1)
- {
- templateBuilder.Append("<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">rn");
- templateBuilder.Append("<html xmlns="http://www.w3.org/1999/xhtml">rn");
- templateBuilder.Append("<head>rn");
- templateBuilder.Append("<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />rn");
- if (pagetitle=="首页")
- {
- templateBuilder.Append("<title>");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append(" ");
- templateBuilder.Append(config.Seotitle.ToString().Trim());
- templateBuilder.Append(" - Powered by Discuz!NT</title>rn");
- }
- else
- {
- templateBuilder.Append("<title>");
- templateBuilder.Append(pagetitle.ToString());
- templateBuilder.Append(" - ");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append(" ");
- templateBuilder.Append(config.Seotitle.ToString().Trim());
- templateBuilder.Append(" - Powered by Discuz!NT</title>rn");
- } //end if
- templateBuilder.Append(meta.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append("<meta name="generator" content="Discuz!NT 3.1.0" />rn");
- templateBuilder.Append("<meta name="author" content="Discuz!NT Team and Comsenz UI Team" />rn");
- templateBuilder.Append("<meta name="copyright" content="2001-2010 Comsenz Inc." />rn");
- templateBuilder.Append("<meta http-equiv="x-ua-compatible" content="ie=7" />rn");
- templateBuilder.Append("<link rel="icon" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("favicon.ico" type="image/x-icon" />rn");
- templateBuilder.Append("<link rel="shortcut icon" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("favicon.ico" type="image/x-icon" />rn");
- templateBuilder.Append("<link rel="stylesheet" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/dnt.css" type="text/css" media="all" />rn");
- templateBuilder.Append("<link rel="stylesheet" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/float.css" type="text/css" />rn");
- templateBuilder.Append(link.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append("var creditnotice='");
- templateBuilder.Append(Scoresets.GetValidScoreNameAndId().ToString().Trim());
- templateBuilder.Append("'; rn");
- templateBuilder.Append("var forumpath = "");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("";rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/common.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/template_report.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/template_utils.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/ajax.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append(" var aspxrewrite = ");
- templateBuilder.Append(config.Aspxrewrite.ToString().Trim());
- templateBuilder.Append(";rn");
- templateBuilder.Append(" var IMGDIR = '");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images'rn");
- templateBuilder.Append(" var allowfloatwin = ");
- templateBuilder.Append(config.Allowfloatwin.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" var rooturl="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("";rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(script.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append("</head>rn");
- templateBuilder.Append("<body onkeydown="if(event.keyCode==27) return false;">rn");
- templateBuilder.Append("<div id="append_parent"></div><div id="ajaxwaitid"></div>rn");
- templateBuilder.Append("<div id="submenu">rn");
- templateBuilder.Append(" <div class="wrap s_clear">rn");
- if (usergroupinfo.Allowsearch>0)
- {
- templateBuilder.Append(" <form method="post" action="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("search.aspx" target="_blank" onsubmit="bind_keyword(this);;" class="right">rn");
- templateBuilder.Append(" <input type="hidden" name="poster" />rn");
- templateBuilder.Append(" <input type="hidden" name="keyword" />rn");
- templateBuilder.Append(" <input type="hidden" name="type" value="" />rn");
- templateBuilder.Append(" <input id="keywordtype" type="hidden" name="keywordtype" value="0" />rn");
- templateBuilder.Append(" <a href="javascript:void(0);" class="drop" id="quicksearch" onclick="showMenu(this.id, false);" onmouseover="MouseCursor(this);">快速搜索</a>rn");
- templateBuilder.Append(" <input type="text" name="keywordf" value="输入搜索关键字" onblur="if(this.value=='')this.value=defaultValue" onclick="if(this.value==this.defaultValue)this.value = ''" onkeydown="if(this.value==this.defaultValue)this.value = ''" class="txt"/>rn");
- templateBuilder.Append(" <input name="searchsubmit" type="submit" value="" class="btnsearch"/>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" function bind_keyword(form) {rn");
- templateBuilder.Append(" if (form.keywordtype.value == '9') {rn");
- templateBuilder.Append(" form.action = '");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("forumsearch.aspx?q=' + escape(form.keywordf.value);rn");
- templateBuilder.Append(" } else if (form.keywordtype.value == '8') {rn");
- templateBuilder.Append(" form.keyword.value = '';rn");
- templateBuilder.Append(" form.poster.value = form.keywordf.value;rn");
- templateBuilder.Append(" } else {rn");
- templateBuilder.Append(" form.poster.value = '';rn");
- templateBuilder.Append(" form.keyword.value = form.keywordf.value;rn");
- templateBuilder.Append(" if (form.keywordtype.value == '2')rn");
- templateBuilder.Append(" form.type.value = 'spacepost';rn");
- templateBuilder.Append(" if (form.keywordtype.value == '3')rn");
- templateBuilder.Append(" form.type.value = 'album';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- } //end if
- templateBuilder.Append(" <span class="avataonline right">rn");
- if (userid==-1)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("login.aspx" onClick="floatwin('open_login', '");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("login.aspx', 600, 410);return false;">[登录]</a>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("register.aspx" onClick="floatwin('open_register', '");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("register.aspx', 600, 410);return false;">[注册]</arn");
- templateBuilder.Append(" >rn");
- }
- else
- {
- templateBuilder.Append(" 欢迎<a class="drop" id="viewpro" onMouseOver="showMenu(this.id)">");
- templateBuilder.Append(username.ToString());
- templateBuilder.Append("</a>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("logout.aspx?userkey=");
- templateBuilder.Append(userkey.ToString());
- templateBuilder.Append("">退出</a>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- } //end if
- templateBuilder.Append(" </span>rn");
- if (userid!=-1)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercpinbox.aspx" class="inbox" title="");
- templateBuilder.Append(oluserinfo.Newpms.ToString().Trim());
- templateBuilder.Append("条新短消息">收件箱</a>rn");
- if (oluserinfo.Newpms>0)
- {
- templateBuilder.Append("<cite>");
- templateBuilder.Append(oluserinfo.Newpms.ToString().Trim());
- templateBuilder.Append("</cite>rn");
- } //end if
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercpnotice.aspx?filter=all" class="notice">通知</a>rn");
- if (oluserinfo.Newnotices>0)
- {
- templateBuilder.Append("<cite>");
- templateBuilder.Append(oluserinfo.Newnotices.ToString().Trim());
- templateBuilder.Append("</cite>rn");
- } //end if
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercp.aspx" class="usercp">用户中心</a>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- if (useradminid==1)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("admin/index.aspx" target="_blank" class="systemmanage">系统设置</a>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- } //end if
- templateBuilder.Append(" <a href="javascript:void(0);" class="drop" id="mymenu" onMouseOver="showMenu(this.id, false);" >我的</a>rn");
- templateBuilder.Append(" <ul class="popupmenu_popup headermenu_popup" id="mymenu_menu" style="display: none">rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("mytopics.aspx">我的主题</a></li>rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("myposts.aspx">我的帖子</a></li>rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("search.aspx?posterid=current&type=digest">我的精华</a></li>rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("myattachment.aspx">我的附件</a></li>rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercpsubscribe.aspx">我的收藏</a></li>rn");
- if (config.Enablespace==1)
- {
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("space/">我的空间</a></li>rn");
- } //end if
- if (config.Enablealbum==1)
- {
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("showalbumlist.aspx?uid=");
- templateBuilder.Append(userid.ToString());
- templateBuilder.Append("">我的相册</a></li>rn");
- } //end if
- if (config.Enablemall==1)
- {
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercpmygoods.aspx">我的商品</a></li>rn");
- } //end if
- templateBuilder.Append(" </ul>rn");
- } //end if
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<div id="header">rn");
- templateBuilder.Append(" <div class="wrap s_clear">rn");
- templateBuilder.Append(" <h2><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("index.aspx" title="Discuz!NT|BBS|论坛"><img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/logo.gif" alt="Discuz!NT|BBS|论坛"/></a></h2>rn");
- if (headerad!="")
- {
- templateBuilder.Append(" <div id="ad_headerbanner"></div>rn");
- } //end if
- templateBuilder.Append(" <ul id="menu">rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(mainnavigation.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- }
- else
- {
- Response.Clear();
- Response.ContentType = "Text/XML";
- Response.Expires = 0;
- Response.Cache.SetNoStore();
-
- templateBuilder.Append("<?xml version="1.0" encoding="utf-8"?><root><![CDATA[rn");
- } //end if
- if (infloat==1)
- {
- templateBuilder.Append(" <!--弹窗start-->rn");
- if (ispost)
- {
- if (page_err==0)
- {
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" $('returnmessage').className = '';rn");
- templateBuilder.Append(" setTimeout('location.reload()', 2000);rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script> rn");
- } //end if
- templateBuilder.Append(" <p>");
- templateBuilder.Append(msgbox_text.ToString());
- templateBuilder.Append("</p>rn");
- }
- else
- {
- templateBuilder.Append(" <h3 class="float_ctrl">rn");
- templateBuilder.Append(" <em id="returnmessage">发送邀请码</em>rn");
- templateBuilder.Append(" <span><a href="javascript:;" class="float_close" onclick="floatwin('close_emailtoinvite')" title="关闭">关闭</a></span>rn");
- templateBuilder.Append(" </h3>rn");
- templateBuilder.Append(" <div id="floatwinemailbox" style=" text-align:left; margin:20px">rn");
- templateBuilder.Append(" <form id="sendcodeonfloat" method="post" onsubmit="javascript:$('sendcodeonfloat').action='invite.aspx?action=floatwinemailsend&invitecode=");
- templateBuilder.Append(invitecode.ToString());
- templateBuilder.Append("&usersaid=");
- templateBuilder.Append(usersaid.ToString());
- templateBuilder.Append("&infloat=1&';ajaxpost('sendcodeonfloat', 'returnmessage', 'returnmessage', 'onerror');return false;" action="">rn");
- templateBuilder.Append(" <ul>rn");
- if (config.Regstatus==3)
- {
- templateBuilder.Append(" <li style="padding-bottom:8px">邀请码:<a href="#" onclick="copycodeinfloat('");
- templateBuilder.Append(invitecode.ToString());
- templateBuilder.Append("');">");
- templateBuilder.Append(invitecode.ToString());
- templateBuilder.Append("</a> 点击复制</li>rn");
- } //end if
- templateBuilder.Append(" <li style="padding-bottom:8px">Email: <input id="floatwinemail" name="email" type="text" style="width:300px;margin-right:10px;" class="txt"/><br/>(多个地址用","分割)</li>rn");
- templateBuilder.Append(" <li><button name="emailtoinvite" title="通过Email将邀请链接发送给好友" type="submit" id="floatwinemailtoinvite" onclick="return checkStrNullOrEmptyInFloat('floatwinemail','Email地址不能为空')">发送给好友</button></li>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <script type="text/javascript" reload="1">rn");
- templateBuilder.Append(" function checkStrNullOrEmptyInFloat(str, message) {rn");
- templateBuilder.Append(" var s = $(str).value;rn");
- templateBuilder.Append(" if (s == '') {rn");
- templateBuilder.Append(" $('returnmessage').innerHTML = '<p>' + message + '</p>';rn");
- templateBuilder.Append(" return false;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" return true;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function copycodeinfloat(obj) {rn");
- templateBuilder.Append(" obj = '");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("invite.aspx?invitecode=' + obj;rn");
- templateBuilder.Append(" if(is_moz)rn");
- templateBuilder.Append(" floatwin('close_emailtoinvite');rn");
- templateBuilder.Append(" setcopy(is_ie ? obj.replace(/\r\n\r\n/g, '\r\n') : obj, '复制完成');rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- } //end if
- templateBuilder.Append(" <!--弹窗over-->rn");
- }
- else
- {
- templateBuilder.Append(" <!--非弹窗start-->rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append(" function copycode(obj) {rn");
- templateBuilder.Append(" setcopy(is_ie ? obj.value.replace(/\r\n\r\n/g, '\r\n') : obj.value, '复制完成');rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function checkStrNullOrEmpty(str, message) {rn");
- templateBuilder.Append(" var s = $(str).value;rn");
- templateBuilder.Append(" if (s == '') {rn");
- templateBuilder.Append(" alert(message);rn");
- templateBuilder.Append(" return false;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" return true;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function usersaidPriview() {rn");
- templateBuilder.Append(" $('usersaidinemail').innerHTML = $('usersaid').value;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<div id="nav">rn");
- templateBuilder.Append(" <div class="wrap s_clear"><a href="");
- templateBuilder.Append(config.Forumurl.ToString().Trim());
- templateBuilder.Append("">");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append("</a> » <strong>邀请注册</strong></div>rn");
- templateBuilder.Append("</div>rn");
- if (page_err!=0)
- {
- templateBuilder.Append("<div class="wrap s_clear" id="wrap">rn");
- templateBuilder.Append("<div class="main">rn");
- templateBuilder.Append(" <div class="msgbox">rn");
- templateBuilder.Append(" <h1>出现了");
- templateBuilder.Append(page_err.ToString());
- templateBuilder.Append("个错误</h1>rn");
- templateBuilder.Append(" <hr class="solidline"/>rn");
- templateBuilder.Append(" <div class="msg_inner error_msg">rn");
- templateBuilder.Append(" <p>");
- templateBuilder.Append(msgbox_text.ToString());
- templateBuilder.Append("</p>rn");
- templateBuilder.Append(" <p class="errorback">rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" if(");
- templateBuilder.Append(msgbox_showbacklink.ToString());
- templateBuilder.Append(")rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" document.write("<a href=\"");
- templateBuilder.Append(msgbox_backlink.ToString());
- templateBuilder.Append("\">返回上一步</a> |   ");rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <a href="forumindex.aspx">论坛首页</a>rn");
- if (usergroupid==7)
- {
- templateBuilder.Append(" | <a href="login.aspx">登录</a> | <a href="register.aspx">注册</a>rn");
- } //end if
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</div>rn");
- }
- else
- {
- if (ispost)
- {
- templateBuilder.Append("<div class="wrap s_clear" id="wrap">rn");
- templateBuilder.Append("<div class="main">rn");
- templateBuilder.Append(" <div class="msgbox">rn");
- templateBuilder.Append(" <h1>");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append(" 提示信息</h1>rn");
- templateBuilder.Append(" <hr class="solidline"/>rn");
- templateBuilder.Append(" <div class="msg_inner">rn");
- templateBuilder.Append(" <p>");
- templateBuilder.Append(msgbox_text.ToString());
- templateBuilder.Append("</p>rn");
- if (msgbox_url!="")
- {
- templateBuilder.Append(" <p><a href="");
- templateBuilder.Append(msgbox_url.ToString());
- templateBuilder.Append("">如果浏览器没有转向, 请点击这里.</a></p>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</div>rn");
- }
- else
- {
- templateBuilder.Append(" <div class="wrap s_clear" id="wrap">rn");
- templateBuilder.Append(" <div class="main" style="padding:18px 28px">rn");
- templateBuilder.Append(" <h1>邀请注册</h1>rn");
- if (userid>0)
- {
- if (config.Regstatus==2)
- {
- if (invitecodeinfo==null)
- {
- templateBuilder.Append(" <form id="createinvitecode" method="post" action="invite.aspx?action=createcode">rn");
- templateBuilder.Append(" <table summary="邀请注册" cellspacing="0" cellpadding="0" class="formtable" id="invitecodemsg">rn");
- templateBuilder.Append(" <tr id="promotiondescription">rn");
- templateBuilder.Append(" <td>");
- templateBuilder.Append(invitationconfiginfo.InvitationLoginUserDescription.ToString().Trim());
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td><button name="createcode" type="submit" id="createcode">我要加入</button></td></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- }
- else
- {
- templateBuilder.Append(" <div style="margin-top:20px">rn");
- templateBuilder.Append(" 您可以通过QQ、MSN等IM工具,或者发送邮件,把下面的链接告诉你的好友,邀请他们加入进来。<br />rn");
- if (invitationconfiginfo.InviteCodePayCount>0)
- {
- templateBuilder.Append("当成功邀请");
- templateBuilder.Append(invitationconfiginfo.InviteCodePayCount.ToString().Trim());
- templateBuilder.Append("个用户后可以兑换到积分。<br />rn");
- } //end if
- if (invitationconfiginfo.InviteCodeMaxCount>0)
- {
- templateBuilder.Append("您的邀请链接最多可以被成功使用");
- templateBuilder.Append(invitationconfiginfo.InviteCodeMaxCount.ToString().Trim());
- templateBuilder.Append("次。<br />rn");
- } //end if
- if (invitecodeinfo.CreateTime!=invitecodeinfo.ExpireTime)
- {
- templateBuilder.Append(InviteCodeExpireTip(invitecodeinfo.ExpireTime).ToString().Trim());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <hr class="solidline"/>rn");
- templateBuilder.Append(" <form id="convertinvitecode" method="post" action="invite.aspx?action=convertcode">rn");
- templateBuilder.Append(" <table summary="邀请注册" cellspacing="0" cellpadding="0" class="formtable" id="invitecodemsg">rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="invitecode">推广链接:</label></th>rn");
- templateBuilder.Append(" <td><input id="invitecode" title="双击文本框复制推广链接" type="text" value="");
- templateBuilder.Append(inviteurl.ToString());
- templateBuilder.Append("" style="width:350px;margin-right:10px;" readonly="readonly" ondblclick="copycode($('invitecode'))" /> <button id="copylink" type="button" onclick="copycode($('invitecode'))">复制链接</button>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="successcount">成功邀请用户:</label></th>rn");
- templateBuilder.Append(" <td>");
- templateBuilder.Append(invitecodeinfo.SuccessCount.ToString().Trim());
- templateBuilder.Append("人 </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="userscore">可兑换到的积分:</label></th>rn");
- templateBuilder.Append(" <td>");
- templateBuilder.Append(userscore.ToString());
- templateBuilder.Append("rn");
- if (invitecodeinfo.SuccessCount-invitationconfiginfo.InviteCodePayCount>0)
- {
- templateBuilder.Append("<button name="convertcode" type="submit" id="convertcode" style="margin-left:10px;" onclick="return confirm('是否要将邀请码兑换成积分')">我要兑换</button>rn");
- } //end if
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" <hr class="solidline"/>rn");
- templateBuilder.Append(" <h1>邮件邀请朋友</h1>rn");
- templateBuilder.Append(" <div style="padding-top:20px">rn");
- templateBuilder.Append(" <table summary="用户自定义邮件内容" cellspacing="0" cellpadding="0" class="formtable" id="userscript">rn");
- if (isuseusersaid)
- {
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="usersaid">想对好友说的话:</label></th>rn");
- templateBuilder.Append(" <td><input id="usersaid" name="usersaid" type="text" style="width:350px;margin-right:10px;" onkeyup="usersaidPriview();" /></td>rn");
- templateBuilder.Append(" </tr>rn");
- } //end if
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th colspan="2"><label for="emailpreview">邮件内容预览:</label></th>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td colspan="2">rn");
- templateBuilder.Append(" <div style="overflow:hidden;zoom:1;border:1px dashed #CCC;margin-top:10px;background:#FBFBFB; padding:20px">");
- templateBuilder.Append(emailpreview.ToString());
- templateBuilder.Append("</div>rn");
- templateBuilder.Append(" </td> rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td colspan="2"><button onclick="floatwin('open_emailtoinvite', '");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("invite.aspx?action=floatwinemail&invitecode=");
- templateBuilder.Append(invitecodeinfo.Code.ToString().Trim());
- templateBuilder.Append("&usersaid='rn");
- if (isuseusersaid)
- {
- templateBuilder.Append("+escape($('usersaid').value)rn");
- } //end if
- templateBuilder.Append(",420,145);return false;">通过Email邀请好友</button></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- }
- else
- {
- templateBuilder.Append(" <div id="userinvitecodelist" class="datalist" style=" margin-top:20px">rn");
- templateBuilder.Append(" <div class="hintinfo" style="margin-top:0">您拥有的扩展积分:");
- templateBuilder.Append(CreateUserExtCreditsStr().ToString());
- templateBuilder.Append("</div>rn");
- templateBuilder.Append(" <div class="hintinfo" style="margin-top:0">您购买的邀请码会在失效之后由系统定时清理,不会长期驻留在列表中</div>rn");
- if (invitecodecount>0)
- {
- templateBuilder.Append(" <table summary="邀请码" cellspacing="0" cellpadding="0" class="datatable" id="invitecodelist">rn");
- templateBuilder.Append(" <thead class="colplural">rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>邀请码</th>rn");
- templateBuilder.Append(" <th>购买时间</th>rn");
- templateBuilder.Append(" <th>过期时间</th>rn");
- templateBuilder.Append(" <th>可使用次数</th>rn");
- templateBuilder.Append(" <th>已使用次数</th>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </thead>rn");
- templateBuilder.Append(" <tbody>rn");
- int code__loop__id=0;
- foreach(InviteCodeInfo code in invitecodelist)
- {
- code__loop__id++;
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td><a href="#" onclick="floatwin('open_emailtoinvite', '");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("invite.aspx?action=floatwinemail&invitecode=");
- templateBuilder.Append(code.Code.ToString().Trim());
- templateBuilder.Append("',420,170);return false;">");
- templateBuilder.Append(code.Code.ToString().Trim());
- templateBuilder.Append("</a></td><td>");
- templateBuilder.Append(code.CreateTime.ToString().Trim());
- templateBuilder.Append("</td><td>rn");
- if (code.CreateTime!=code.ExpireTime)
- {
- templateBuilder.Append(code.ExpireTime.ToString().Trim());
- templateBuilder.Append("rn");
- }
- else
- {
- templateBuilder.Append("永不过期rn");
- } //end if
- templateBuilder.Append("</td><td>");
- templateBuilder.Append(code.MaxCount.ToString().Trim());
- templateBuilder.Append("</td><td>");
- templateBuilder.Append(code.SuccessCount.ToString().Trim());
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" </tr>rn");
- } //end loop
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- }
- else
- {
- templateBuilder.Append(" <div class="zerothreads">您还没有购买邀请码</div>rn");
- } //end if
- templateBuilder.Append(" <div class="pages_btns">rn");
- templateBuilder.Append(" <div class="pages">rn");
- if (invitecodecount>0)
- {
- templateBuilder.Append("<kbd>现有");
- templateBuilder.Append(invitecodecount.ToString());
- templateBuilder.Append("个邀请码</kbd>");
- templateBuilder.Append(pagenumber.ToString());
- templateBuilder.Append("<kbd>共");
- templateBuilder.Append(pagecount.ToString());
- templateBuilder.Append("页</kbd>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div style="overflow:hidden; zoom:1; margin-bottom:10px;float:left;">rn");
- templateBuilder.Append(" <form id="buyinvitecode" method="post" action="invite.aspx?action=buycode" style="float:left; margin-right:10px">rn");
- templateBuilder.Append(" <div id="buycode">rn");
- templateBuilder.Append(" 邀请码售价: ");
- templateBuilder.Append(invitecodeprice.ToString());
- templateBuilder.Append("rn");
- if (invitecodecount<invitationconfiginfo.InviteCodeMaxCountToBuy)
- {
- int couldbuy = invitationconfiginfo.InviteCodeMaxCountToBuy-invitecodecount;
-
- templateBuilder.Append("您还能购买");
- templateBuilder.Append(couldbuy.ToString());
- templateBuilder.Append("个 <button id="buycode" type="submit" onclick="return confirm('确定购买?')">我要购买</button>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- }
- else
- {
- templateBuilder.Append(" <table summary="邀请注册" cellspacing="0" cellpadding="0" class="formtable" id="invitecodemsg">rn");
- templateBuilder.Append(" <tr id="visitordescription">rn");
- templateBuilder.Append(" <td>");
- templateBuilder.Append(invitationconfiginfo.InvitationVisitorDescription.ToString().Trim());
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <div style="overflow:hidden;zoom:1;border:1px dashed #CCC;margin-top:20px;background:#FBFBFB; padding:20px">rn");
- if (invitecodeinfo!=null)
- {
- string avatarurl = Avatars.GetAvatarUrl(invitecodeinfo.CreatorId);
-
- templateBuilder.Append(" <img src="");
- templateBuilder.Append(avatarurl.ToString());
- templateBuilder.Append("" onerror="this.onerror=null;this.src='");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/noavatar_medium.gif';" alt="头像" id="memberinfo" style="float:left; margin-right:40px; height:80px"/>rn");
- templateBuilder.Append(" <div id="creatormessage" style="vertical-align:top">您好:<br/>您的朋友 ");
- templateBuilder.Append(invitecodeinfo.Creator.ToString().Trim());
- templateBuilder.Append(" 邀请您加入到我们的行列当中<br />rn");
- } //end if
- templateBuilder.Append(" <a href="register.aspxrn");
- if (invitecodeinfo!=null)
- {
- templateBuilder.Append("?invitecode=");
- templateBuilder.Append(invitecode.ToString());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append(""><img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/add_invite.gif" style="margin-top:14px" /></a></div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </table>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" <!--非弹窗over-->rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- } //end if
- if (infloat!=1)
- {
- if (pagename=="website.aspx")
- {
- templateBuilder.Append(" <div id="websitebottomad"></div>rn");
- }
- else if (footerad!="")
- {
- templateBuilder.Append(" <div id="ad_footerbanner">");
- templateBuilder.Append(footerad.ToString());
- templateBuilder.Append("</div> rn");
- } //end if
- if (headerad!="")
- {
- templateBuilder.Append("<div id="ad_headerbanner_nodisplay" style="display:none">");
- templateBuilder.Append(headerad.ToString());
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append("$('ad_headerbanner').innerHTML = $('ad_headerbanner_nodisplay').innerHTML;rn");
- templateBuilder.Append("$('ad_headerbanner_nodisplay').parentNode.removeChild($('ad_headerbanner_nodisplay'));rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- } //end if
- templateBuilder.Append("<div id="footer">rn");
- templateBuilder.Append(" <div class="wrap">rn");
- templateBuilder.Append(" <div id="footlinks">rn");
- templateBuilder.Append(" <p><a href="");
- templateBuilder.Append(config.Weburl.ToString().Trim());
- templateBuilder.Append("" target="_blank">");
- templateBuilder.Append(config.Webtitle.ToString().Trim());
- templateBuilder.Append("</a> - ");
- templateBuilder.Append(config.Linktext.ToString().Trim());
- templateBuilder.Append(" - <a target="_blank" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("stats.aspx">统计</a> - rn");
- if (config.Sitemapstatus==1)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("tools/sitemap.aspx" target="_blank" title="百度论坛收录协议">Sitemap</a>rn");
- } //end if
- templateBuilder.Append(" ");
- templateBuilder.Append(config.Statcode.ToString().Trim());
- templateBuilder.Append(config.Icp.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" <div>rn");
- templateBuilder.Append(" <a href="http://www.comsenz.com/" target="_blank">Comsenz Technology Ltd</a>rn");
- templateBuilder.Append(" - <a href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("archiver/index.aspx" target="_blank">简洁版本</a>rn");
- if (config.Stylejump==1)
- {
- if (userid!=-1 || config.Guestcachepagetimeout<=0)
- {
- templateBuilder.Append(" - <span id="styleswitcher" class="drop" onmouseover="showMenu(this.id)" onclick="window.location.href='");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("showtemplate.aspx'">界面风格</span>rn");
- templateBuilder.Append(" <ul id="styleswitcher_menu" class="popupmenu_popup s_clear" style="display: none;">rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(templatelistboxoptions.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </ul>rn");
- } //end if
- } //end if
- templateBuilder.Append(" - <span class="scrolltop" onclick="window.scrollTo(0,0);">TOP</span>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <a title="Powered by Discuz!NT" target="_blank" href="http://nt.discuz.net"><img border="0" alt="Discuz!NT" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/discuznt_logo.gif"/></a>rn");
- templateBuilder.Append(" <p id="copyright">rn");
- templateBuilder.Append(" Powered by <strong><a href="http://nt.discuz.net" target="_blank" title="Discuz!NT 3.1.0 (.NET Framework 2.0/3.x)">Discuz!NT</a></strong> <em class="f_bold">3.1.0</em>rn");
- if (config.Licensed==1)
- {
- templateBuilder.Append(" (<a href="" onclick="this.href='http://nt.discuz.net/certificate/?host='+location.href.substring(0, location.href.lastIndexOf('/'))" target="_blank">Licensed</a>)rn");
- } //end if
- templateBuilder.Append(" ");
- templateBuilder.Append(config.Forumcopyright.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" <p id="debuginfo" class="grayfont">rn");
- if (config.Debug!=0)
- {
- templateBuilder.Append(" Processed in ");
- templateBuilder.Append(this.Processtime.ToString().Trim());
- templateBuilder.Append(" second(s)rn");
- if (isguestcachepage==1)
- {
- templateBuilder.Append(" (Cached).rn");
- }
- else if (querycount>1)
- {
- templateBuilder.Append(" , ");
- templateBuilder.Append(querycount.ToString());
- templateBuilder.Append(" queries.rn");
- }
- else
- {
- templateBuilder.Append(" , ");
- templateBuilder.Append(querycount.ToString());
- templateBuilder.Append(" query.rn");
- } //end if
- } //end if
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<ul id="quicksearch_menu" class="popupmenu_popup" style="display: none;">rn");
- templateBuilder.Append(" <li onclick="$('keywordtype').value='0';$('quicksearch').innerHTML='帖子标题';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">帖子标题</li>rn");
- if (config.Enablespace==1)
- {
- templateBuilder.Append(" <li onclick="$('keywordtype').value='2';$('quicksearch').innerHTML='空间日志';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">空间日志</li>rn");
- } //end if
- if (config.Enablealbum==1)
- {
- templateBuilder.Append(" <li onclick="$('keywordtype').value='3';$('quicksearch').innerHTML='相册标题';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">相册标题</li>rn");
- } //end if
- templateBuilder.Append(" <li onclick="$('keywordtype').value='8';$('quicksearch').innerHTML='作者';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">作者</li>rn");
- templateBuilder.Append(" <li onclick="$('keywordtype').value='9';$('quicksearch').innerHTML='版块';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">版块</li>rn");
- templateBuilder.Append("</ul>rn");
- templateBuilder.Append("<ul class="popupmenu_popup" id="viewpro_menu" style="display: none">rn");
- templateBuilder.Append(" <li style="text-align:center;"><img src="");
- templateBuilder.Append(useravatar.ToString());
- templateBuilder.Append("" onerror="this.onerror=null;this.src='templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/noavatar_small.gif';" /></li>rn");
- aspxrewriteurl = this.UserInfoAspxRewrite(userid);
-
- templateBuilder.Append(" <li class="popuser"><a href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("">我的资料</a></li>rn");
- if (config.Enablespace==1)
- {
- templateBuilder.Append(" <li class="poplink"><a href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append(spaceurl.ToString());
- templateBuilder.Append("space/">我的空间</a></li>rn");
- } //end if
- templateBuilder.Append("</ul>rn");
- int prentid__loop__id=0;
- foreach(string prentid in mainnavigationhassub)
- {
- prentid__loop__id++;
- templateBuilder.Append("<ul class="popupmenu_popup headermenu_popup" id="menu_");
- templateBuilder.Append(prentid.ToString());
- templateBuilder.Append("_menu" style="display: none">rn");
- int subnav__loop__id=0;
- foreach(DataRow subnav in subnavigation.Rows)
- {
- subnav__loop__id++;
- bool isoutput = false;
-
- if (subnav["parentid"].ToString().Trim()==prentid)
- {
- if (subnav["level"].ToString().Trim()=="0")
- {
- isoutput = true;
-
- }
- else
- {
- if (subnav["level"].ToString().Trim()=="1" && userid!=-1)
- {
- isoutput = true;
-
- }
- else
- {
- bool leveluseradmindi = true;
-
- leveluseradmindi = (useradminid==3 || useradminid==1 || useradminid==2);
-
- if (subnav["level"].ToString().Trim()=="2" && leveluseradmindi)
- {
- isoutput = true;
-
- } //end if
- if (subnav["level"].ToString().Trim()=="3" && useradminid==1)
- {
- isoutput = true;
-
- } //end if
- } //end if
- } //end if
- } //end if
- if (isoutput)
- {
- if (subnav["id"].ToString().Trim()=="11" || subnav["id"].ToString().Trim()=="12")
- {
- if (config.Statstatus==1)
- {
- templateBuilder.Append(" " + subnav["nav"].ToString().Trim() + "rn");
- continue;
- }
- else
- {
- continue;
- } //end if
- } //end if
- if (subnav["id"].ToString().Trim()=="18")
- {
- if (config.Oltimespan>0)
- {
- templateBuilder.Append(" " + subnav["nav"].ToString().Trim() + "rn");
- continue;
- }
- else
- {
- continue;
- } //end if
- } //end if
- if (subnav["id"].ToString().Trim()=="24")
- {
- if (config.Enablespace==1)
- {
- templateBuilder.Append(" " + subnav["nav"].ToString().Trim() + "rn");
- continue;
- }
- else
- {
- continue;
- } //end if
- } //end if
- if (subnav["id"].ToString().Trim()=="25")
- {
- if (config.Enablealbum==1)
- {
- templateBuilder.Append(" " + subnav["nav"].ToString().Trim() + "rn");
- continue;
- }
- else
- {
- continue;
- } //end if
- } //end if
- if (subnav["id"].ToString().Trim()=="26")
- {
- if (config.Enablemall>=1)
- {
- templateBuilder.Append(" " + subnav["nav"].ToString().Trim() + "rn");
- continue;
- }
- else
- {
- continue;
- } //end if
- } //end if
- templateBuilder.Append(" " + subnav["nav"].ToString().Trim() + "rn");
- } //end if
- } //end loop
- templateBuilder.Append("</ul>rn");
- } //end loop
- templateBuilder.Append("</body>rn");
- templateBuilder.Append("</html>rn");
- }
- else
- {
- templateBuilder.Append("]]></root>rn");
- } //end if
- Response.Write(templateBuilder.ToString());
- }
- </script>