previewimg.asp

来自「这是一套基于WEB的网站管理系统」· ASP 代码 · 共 56 行

ASP
56
字号
<!--#include file="config.asp" -->
<%
Dim Rs,SQL,SoftID,PreviewImg,SoftImageUrl
If Not IsNumeric(Request("SoftID")) And Request("SoftID") <> "" then
	Response.Write"错误的系统参数!ID必须是数字"
	Response.End
Else
	SoftID = CLng(Request.querystring("SoftID"))
End If
If Not IsObject(Conn) Then ConnectionDatabase
Newasp.ReadChannel(ChannelID)
If SoftID <> "" Then
	SQL="select SoftName,SoftImage from NC_SoftList where SoftID="&SoftID   
	Set Rs = Newasp.Execute(SQL)  
	If Not(Rs.EOF And Rs.BOF) Then 
		If Not IsNull(Trim(Rs("SoftImage"))) And Trim(Rs("SoftImage")) <> "" Then
			SoftImageUrl = Newasp.GetImageUrl(Rs("SoftImage"), Newasp.ChannelDir)
			PreviewImg = Newasp.GetFlashAndPic(SoftImageUrl, 0, 0)
			'PreviewImg = "<img src='"& SoftImageUrl &"' border=0>"
		Else
			PreviewImg = "<BR><li>对不起!没有图片预览。"
		End If
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; chaRset=gb2312">
<title><%= trim(Rs("SoftName"))%></title>
<style type="text/css">
<!--
.unnamed1 {
	font-size: 18px;
	line-height: 180%;
	font-weight: bold;
	color: #003399;
}
-->
</style>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height=30 align="center"><b><%= trim(Rs("SoftName"))%> 的软件界面</b></td>
  </tr>
  <tr>
    <td align="center"><%= PreviewImg %></td>
  </tr>
</table>
</body>
</html>
<% 
End If
Rs.Close
Set Rs=Nothing
End If
CloseConn
 %>

⌨️ 快捷键说明

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