create_link.asp

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

ASP
92
字号
<%
'###########################################################################################
'*  程序名称: 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.CreateLink")
if objCMS.ChkAdminPower then
	SystemI_Init
	objCMS.OpenDB()
	
	If Not objCMS.CheckAdminField("CreateLink") Then
        objCMS.OutInfo "对不起,你不具备此项权限。", ""
        Response.End
    End If
	
	If Request.ServerVariables("REQUEST_METHOD")="POST" Then
		objCMS.CreateLinkShtml
	else

	
	%>	
		<form name="form1" method="post" action="create_link.asp">
  <table width="100%" border="1" bordercolor="#999999" cellspacing="0" cellpadding="2" align="center">
    <tr> 
      <td colspan="2" background="../Images/default_nav.gif"><font color="#FFFFFF">更新链接页</font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td align="right">使用模板:</td>
      <td> <%
		dbSQL = "SELECT tFileName,tName FROM db_Template Where tType='link' 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 align="right" width="28%">分几列显示:</td>
      <td width="72%"> <input type="text" name="CreateCol" size="3" maxlength="2" value="4"> 
      </td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td align="center" colspan="2"> <input type="submit" name="B1" value=" 更新 "> 
        <input type="button" name="B2" 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 + -
显示快捷键?