create_pic.asp
来自「top-cms内容管理系统」· ASP 代码 · 共 107 行
ASP
107 行
<%
'###########################################################################################
'* 程序名称: 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.CreatePic")
if objCMS.ChkAdminPower then
SystemI_Init
objCMS.OpenDB()
If Not objCMS.CheckAdminField("CreatePic") Then
objCMS.OutInfo "对不起,你不具备此项权限。", ""
Response.End
End If
If Request.ServerVariables("REQUEST_METHOD")="POST" Then
objCMS.CreatePicShtml
else
%>
<form name="form1" method="post" action="create_pic.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" width="30%">目前系统中可用图片信息数:</td>
<td width="70%"><b><%=objCMS.PicInfoCount%></b>条
<input type="hidden" name="InfoCount" value="<%=objCMS.PicInfoCount%>">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="right">使用模板:</td>
<td> <%
dbSQL = "SELECT tFileName,tName FROM db_Template Where tType='pic' 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="#EEEEEE">
<td align="right" width="30%">每页图片信息数:</td>
<td width="70%">
<input type="text" name="CreateNum" size="3" maxlength="4" value="20">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="right" width="30%">生成页数:</td>
<td width="70%">
<input type="text" name="CreatePage" size="3" maxlength="4" value="1">
</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 + -
显示快捷键?