usercpspacecategoryadd.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:7k
源码类别:
SCSI/ASPI
开发平台:
Others
- <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Space.Pages.usercpspacecategoryadd" %>
- <%@ 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> » <a href="usercp.aspx">用户中心</a> » <strong>添加日志分类</strong>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append("function checkform()rn");
- templateBuilder.Append("{rn");
- templateBuilder.Append(" if(document.getElementById("title").value == "")rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" alert("分类名称为空");rn");
- templateBuilder.Append(" document.getElementById("title").focus();rn");
- templateBuilder.Append(" return false;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" if(document.getElementById("categorydescription").value.length > 1000)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" alert("分类描述长度最大为1000字"); rn");
- templateBuilder.Append(" return false;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" if(!(/^\d+$/.test(document.getElementById("displayorder").value)))rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" alert("分类序号必须是整数");rn");
- templateBuilder.Append(" document.getElementById("displayorder").focus();rn");
- templateBuilder.Append(" return false;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" return true;rn");
- templateBuilder.Append("}rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<div class="wrap with_side s_clear" id="wrap">rn");
- templateBuilder.Append(" <div class="cpmain">rn");
- templateBuilder.Append(" <div class="cpcontent">rn");
- templateBuilder.Append(" <h1>添加日志分类</h1>rn");
- if (config.Enablespace==1)
- {
- templateBuilder.Append("<div class="cm_header itemtitle s_clear">rn");
- if (userid>0 && user.Spaceid>0)
- {
- templateBuilder.Append(" <ul>rn");
- templateBuilder.Append(" <li rn");
- if (pagename=="usercpspacepostblog.aspx"||pagename=="usercpspacemanageblog.aspx"||pagename=="usercpspaceeditblog.aspx")
- {
- templateBuilder.Append("class="current"rn");
- } //end if
- templateBuilder.Append("><a href="usercpspacemanageblog.aspx"><span>管理日志</span></a></li>rn");
- templateBuilder.Append(" <li rn");
- if (pagename=="usercpspacelinklist.aspx"||pagename=="usercpspacelinkadd.aspx"||pagename=="usercpspacelinkedit.aspx")
- {
- templateBuilder.Append("class="current"rn");
- } //end if
- templateBuilder.Append("><a href="usercpspacelinklist.aspx"><span>友情链接</span></a></li>rn");
- templateBuilder.Append(" <li rn");
- if (pagename=="usercpspacecomment.aspx")
- {
- templateBuilder.Append("class="current"rn");
- } //end if
- templateBuilder.Append("><a href="usercpspacecomment.aspx"><span>管理评论</span></a></li>rn");
- templateBuilder.Append(" <li rn");
- if (pagename=="usercpspacemanagecategory.aspx"||pagename=="usercpspacecategoryadd.aspx"||pagename=="usercpspacecategoryedit.aspx")
- {
- templateBuilder.Append("class="current"rn");
- } //end if
- templateBuilder.Append("><a href="usercpspacemanagecategory.aspx"><span>管理分类</span></a></li>rn");
- templateBuilder.Append(" <li rn");
- if (pagename=="usercpspacemanageattachment.aspx")
- {
- templateBuilder.Append("class="current"rn");
- } //end if
- templateBuilder.Append("><a href="usercpspacemanageattachment.aspx"><span>管理附件</span></a></li>rn");
- templateBuilder.Append(" <li rn");
- if (pagename=="usercpspaceset.aspx")
- {
- templateBuilder.Append("class="current"rn");
- } //end if
- templateBuilder.Append("><a href="usercpspaceset.aspx"><span>基本设置</span></a></li>rn");
- templateBuilder.Append(" </ul>rn");
- } //end if
- templateBuilder.Append("</div> rn");
- } //end if
- if (page_err==0)
- {
- if (ispost)
- {
- }
- else
- {
- templateBuilder.Append(" <form id="postpm" name="postpm" method="post" action="">rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" class="formtable" summary="添加日志分类">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="title">分类名称</label></th>rn");
- templateBuilder.Append(" <td><input name="title" type="text" id="title" value="" size="40" maxlength="50" class="txt"/></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="description">分类描述</label></th>rn");
- templateBuilder.Append(" <td><textarea name="description" cols="50" rows="6" id="categorydescription" class="txtarea"></textarea></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="displayorder">分类序号</label></th>rn");
- templateBuilder.Append(" <td><input name="displayorder" type="text" id="displayorder" value="0" size="2" maxlength="2" class="txt"/></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th></th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <input type="submit" name="Submit" value="确定" onclick="return checkform();" ID="Submit1"/>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- } //end if
- }
- else
- {
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- Response.Write(templateBuilder.ToString());
- }
- </script>