create_classindex.asp

来自「top-cms内容管理系统」· ASP 代码 · 共 104 行

ASP
104
字号
<%
'###########################################################################################
'*  程序名称: Top-CMS
'*---------------------------------------------------------------------------------------
'*  系统版本: 1.0 0215
'*  版权所有: www.Net-Develop.com
'*  程序设计: 江南行客
'*  联系方式:
'*            OICQ:2503086
'*            EMAIL:net-oa@sohu.com
'*  网站地址: 
'*            http://www.net-develop.com  
'*            http://www.top-cms.com   
'*---------------------------------------------------------------------------------------
'*  Copyright 2004 www.net-develop.com - All Rights Reserved.
'###########################################################################################
%>
<!--#include file="../common/common.asp" -->
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css/style.css">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<%
Set objCMS = Server.CreateObject("TopCMS.CreateClassIndex")
if objCMS.ChkAdminPower then
	SystemI_Init
	objCMS.OpenDB()
	
	If Not objCMS.CheckAdminField("CreateClassIndex") Then
        objCMS.OutInfo "对不起,你不具备此项权限。", ""
        Response.End
    End If
	
	If Request.ServerVariables("REQUEST_METHOD")="POST" Then
		objCMS.CreateClassIndexShtml
	else
		
		
%>

		<form name="form1" method="post" action="create_classindex.asp">
  <table width="100%" border="1" bordercolor="#999999" cellspacing="0" cellpadding="2" align="center">
    <tr> 
      <td colspan="2" height="24" background="../Images/default_nav.gif"><font color="#FFFFFF">专题索引页生成</font></td>
    </tr>
    <tr> 
      <td align="right" width="28%" bgcolor="#EEEEEE">使用模板:</td>
      <td width="72%" bgcolor="#EEEEEE"> <%
		dbSQL = "SELECT tFileName,tName FROM db_Template Where tType='classindex' Order By tID Desc"
        Set dbRs = objCMS.MyRs(dbSQL,1,1,1)
        If Not dbRs.EOF Then
            Response.Write "<select name=""Template"">"
            Do While Not dbRs.EOF
                tName = Trim(dbRs("tName"))
                tFileName = Trim(dbRs("tFileName"))
                Response.Write "<option value=""" & tFileName & """>" & tName & "</option>"
            dbRs.MoveNext
            Loop
            Response.Write "</select>"
        Else
            objCMS.OutInfo "目前没有可用的模板,请先添加模板",""
            response.end
        End If
        dbRs.Close
        Set dbRs = Nothing
		%> </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="12" align="right">索引页最新专题信息数:</td>
      <td height="12"> 
        <input name="cOption0" type="text" size="3" maxlength="3" value="10">
      </td>
    </tr>
   <tr bgcolor="#EEEEEE"> 
      <td height="12" align="right">最新专题信息数标题长:</td>
      <td height="12"> 
        <input name="cOption2" type="text" size="3" maxlength="3" value="12">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="12" align="right">索引页专题显示列数:</td>
      <td height="12"><input name="cOption1" type="text" size="3" maxlength="3" value="1"></td>
    </tr>
    <tr> 
      <td align="center" colspan="2" bgcolor="#EEEEEE"> <input type="submit" name="S1" value=" 提交 "> 
        <input type="button" name="S2" value=" 取消 " onclick="history.back();"> 
      </td>
    </tr>
  </table>
</form>
<%
	end if
	objCMS.CloseDB	
else
	objCMS.OutInfo "对不起,您还没有登录,请先登录","Login"
end if
set objCMS=nothing
%>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?