- <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Space.Pages.spaceregister" %>
- <%@ 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 2009-9-22 17:25:03.
- 本页面代码由Discuz!NT模板引擎生成于 2009-9-22 17:25:03.
- */
- base.OnInit(e);
- templateBuilder.Capacity = 220000;
- templateBuilder.Append("<div id="nav">rn");
- templateBuilder.Append(" <div class="wrap s_clear">rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(config.Forumurl.ToString().Trim());
- templateBuilder.Append("" class="title">");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append("</a> » <strong>申请个人空间</strong>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- if (page_err==0)
- {
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append(" function validatefrom()rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" if(document.getElementById("spacetitle").value == "")rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" alert("个人空间名称不能为空!");rn");
- templateBuilder.Append(" document.getElementById("spacetitle").focus();rn");
- templateBuilder.Append(" return false;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" if(document.getElementById('spacedescription').value.length > 200)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" alert('个人空间描述长度最大为200字');rn");
- templateBuilder.Append(" return false;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" if(!(/^\d+$/.test(document.getElementById("bpp").value)))rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" alert("显示日志篇数必须是数值!");rn");
- templateBuilder.Append(" document.getElementById("bpp").focus();rn");
- templateBuilder.Append(" return false;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- if (ispost)
- {
- }
- else
- {
- templateBuilder.Append(" <div class="wrap s_clear">rn");
- templateBuilder.Append(" <div class="main">rn");
- templateBuilder.Append(" <h1>申请个人空间</h1>rn");
- templateBuilder.Append(" <form id="regspace" name="regspace" method="post" action="">rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" width="100%" align="center" class="formtable">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>个人空间名称</th>rn");
- templateBuilder.Append(" <td><input name="spacetitle" type="text" id="spacetitle" size="40" maxlength="100" class="txt"/>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>个人空间描述</th>rn");
- templateBuilder.Append(" <td><textarea name="description" cols="50" rows="6" id="spacedescription" class="txtarea"></textarea>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>日志显示模式</th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <input type="radio" name="blogdispmode" value="0" class="radioinput" checked="checked"/>摘要rn");
- templateBuilder.Append(" <input type="radio" name="blogdispmode" value="1" class="radioinput"/>全文rn");
- templateBuilder.Append(" <input type="radio" name="blogdispmode" value="2" class="radioinput"/>只显示标题rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>显示日志篇数</th>rn");
- templateBuilder.Append(" <td><input name="bpp" type="text" size="30" maxlength="3" class="txt" /></td>rn");
- templateBuilder.Append(" </tr>rn");
- if (spaceactiveconfig.Enablespacerewrite==1)
- {
- templateBuilder.Append(" <tbody> rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>个性域名</th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <input name="rewritename" type="text" id="rewritename" onblur="checkrewritename(this.value);" value="" size="30" class="txt" /><span id="checkresult" style="line-height: 25px;"></span>rn");
- templateBuilder.Append(" <p>设置此项后您将可以用 http://论坛地址/space/个性域名 形式的地址访问您的个人空间, 设置之后将不可更改</p>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" function checkrewritename(rewritename)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" if (rewritename.length > 0)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" ajaxRead("tools/ajax.aspx?t=checkrewritename&rewritename=" + escape(rewritename), "showcheckresult(obj,'" + rewritename + "');");rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" elsern");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" $("checkresult").innerHTML = "";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function showcheckresult(obj, rewritename)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" var res = obj.getElementsByTagName('result');rn");
- templateBuilder.Append(" var resContainer = $("checkresult");rn");
- templateBuilder.Append(" var result = "";rn");
- templateBuilder.Append(" if (res[0] != null && res[0] != undefined)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" if (res[0].childNodes.length > 1) {rn");
- templateBuilder.Append(" result = res[0].childNodes[1].nodeValue;rn");
- templateBuilder.Append(" } else {rn");
- templateBuilder.Append(" result = res[0].firstChild.nodeValue; rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" if (result == "1")rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" resContainer.innerHTML = "<font color='#009900'>对不起,您输入的个性化名称 \"" + rewritename + "\" 中含有非法字符或被禁用,请选择其他名字后再试。</font>";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" else if (result == "2")rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" resContainer.innerHTML = "<font color='#009900'>个性化名称只能为字母、数字、下划线、减号的组合";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" else if (result == "3")rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" resContainer.innerHTML = "<font color='#009900'>对不起,您输入的个性化名称 \"" + rewritename + "\" 已经被其他会员使用,请选择其他名字后再试。";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" elsern");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" resContainer.innerHTML = "可用";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <script type="text/javascript" src="javascript/ajax.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </tr>rn");
- } //end if
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>默认评论权限</th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <input type="radio" name="commentpref" value="0" class="radioinput" checked="checked" />允许所有人rn");
- templateBuilder.Append(" <input type="radio" name="commentpref" value="1" class="radioinput"/>禁止所有人rn");
- templateBuilder.Append(" <input type="radio" name="commentpref" value="2" class="radioinput"/>只有登录用户 rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>留言设置</th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <input type="radio" name="messagepref" value="0" class="radioinput" checked="checked"/>允许所有人rn");
- templateBuilder.Append(" <input type="radio" name="messagepref" value="1" class="radioinput"/>禁止所有人rn");
- templateBuilder.Append(" <input type="radio" name="messagepref" value="2" class="radioinput"/>只有登录用户 rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th> </th>rn");
- templateBuilder.Append(" <td><input type="submit" name="Submit" value="确定" onclick="return validatefrom()" /></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- }
- else
- {
- } //end if
- Response.Write(templateBuilder.ToString());
- }
- </script>