📄 linkview.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%Option Explicit%>
<!--#include file="../../Conn.asp"-->
<!--#include file="../../SysCls/KS_CommonCls.asp"-->
<!--#include file="../Inc/Session.asp"-->
<%
'===================================================================================================================
'软件名称:科汛网站管理系统
'当前版本:科汛网站管理系统 V2.2 SP2 Free
'Copyright (C) 2006-2008 Kesion.Com All rights reserved.
'产品咨询QQ:9537636,41904294
'技术支持QQ:111394,54004407
'程序版权:科汛网络
'程序开发:科汛网络开发组(总策划:林文仲)
'E-Mail :kesioncms@hotmail.com webmaster@kesion.com
'官方网站:http://www.kesion.com
'演示站点:http://test.kesion.com
'郑重声明:
' ①、免费版本请在程序首页保留版权信息,并做上本站LOGO友情连接,商业版本无此要求;
' ②、任何个人或组织不得在授权允许的情况下删除、修改、拷贝本软件及其他副本上一切关于版权的信息;
' ③、科汛网络保留此软件的法律追究权利
'===================================================================================================================
Dim KSCls
Set KSCls = New LinkView
KSCls.Execute()
Set KSCls = Nothing
Class LinkView
Private KSCMS
Private Sub Class_Initialize()
Set KSCMS=New CommonCls
End Sub
Private Sub Class_Terminate()
Call KSCMS.CloseConn()
Set KSCMS=Nothing
End Sub
Public Sub Execute()
If Not KSCMS.ReturnPowerResult(0, "KMCT10001") Then '检查友情链接类别操作(增和改)的权限检查
Call KSCMS.ReturnErr(0, "")
End If
Response.Write "<html>"
Response.Write "<head>"
Response.Write "<meta http-equiv=""Content-Type"" content=""text/html; charset=gb2312"">"
Response.Write "<link href=""../Inc/ModeWindow.css"" rel=""stylesheet"">"
Response.Write "<script language=""JavaScript"" src=""../JS/Common.js""></script>"
Response.Write "<title>查看友情链接站点信息</title>"
Response.Write "</head>"
Dim LinkID
LinkID = KSCMS.G("LinkID")
Dim RSObj
Set RSObj=Server.CreateObject("ADODB.Recordset")
RSObj.Open "Select * From KS_Link Where LinkID=" & LinkID, Conn, 1, 1
If RSObj.EOF And RSObj.BOF Then
Response.Write ("参数传递出错!")
Exit Sub
End If
Response.Write "<body leftmargin=""0"" topmargin=""0"" marginwidth=""0"" marginheight=""0"">"
Response.Write " <br>"
Response.Write " <table width=""99%"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0"">"
Response.Write " <tr>"
Response.Write " <td>"
Response.Write " <FIELDSET align=center>"
Response.Write " <LEGEND align=left>"
Response.Write ("查看友情链接站点")
Response.Write "</LEGEND>"
Response.Write " <table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"">"
Response.Write " <tr>"
Response.Write " <td width=""179"" height=""28""> <div align=""center"">站点名称</div></td>"
Response.Write " <td width=""542""> <a href=""" & RSObj("URL") & """ target=""_blank"">" & RSObj("SiteName") & "</a></td>"
Response.Write " </tr>"
Response.Write " <tr>"
Response.Write " <td width=""179"" height=""28""> <div align=""center"">网站站长</div></td>"
Response.Write " <td width=""542""> " & RSObj("WebMaster") & "</td>"
Response.Write " </tr>"
Response.Write " <tr>"
Response.Write " <td width=""179"" height=""28""> <div align=""center"">站长信箱</div></td>"
Response.Write " <td width=""542""> <a href=""MailTo:" & RSObj("Email") & """ target=""_blank"">" & RSObj("Email") & "</a></td>"
Response.Write " </tr>"
Response.Write " <tr>"
Response.Write " <td height=""28""> <div align=""center"">链接类型 </div></td>"
If RSObj("LinkType") = 0 Then
Response.Write " <td>文字链接</td>"
Response.Write " </tr>"
Else
Response.Write " <td>LOGO链接</td>"
Response.Write " </tr>"
Response.Write " <tr>"
Response.Write " <td width=""179"" height=""28""> <div align=""center"">网站LOGO</div></td>"
Response.Write " <td width=""542""> <a href=""" & RSObj("URL") & """ target=""_blank""><img src=""" & RSObj("Logo") & """ width=""88"" height=""31"" border=""0""></a></td>"
Response.Write " </tr>"
End If
Response.Write " <tr>"
Response.Write " <td width=""179"" height=""28""> <div align=""center"">点 击 数</div></td>"
Response.Write " <td width=""542"">" & RSObj("Hits") & "</td>"
Response.Write " </tr>"
Response.Write " <tr>"
Response.Write " <td width=""179"" height=""28""> <div align=""center"">更新时间</div></td>"
Response.Write " <td width=""542"">" & RSObj("AddDate") & "</td>"
Response.Write " </tr>"
Response.Write " <tr>"
Response.Write " <td width=""179"" height=""28""> <div align=""center"">站点状态</div></td>"
If RSObj("Locked") = 1 Then
Response.Write " <td width=""542""><font color=red>已锁定</font></td>"
Else
Response.Write " <td width=""542""><font color=green>正常</font></td>"
End If
Response.Write " </tr>"
Response.Write " <tr>"
Response.Write " <td width=""179"" height=""28""> <div align=""center"">站点描述</div></td>"
Response.Write " <td width=""542""><div style=""border: double #E7E7E7;height:80; overflow: auto; width:360;"">" & Trim(RSObj("Description")) & "</div></td>"
Response.Write " </tr>"
Response.Write " </table>"
Response.Write " </FIELDSET>"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " </table>"
Response.Write " <table width=""100%"" height=""30"" border=""0"" cellpadding=""0"" cellspacing=""0"">"
Response.Write " <tr>"
Response.Write " <td height=""40"" align=""center"">"
Response.Write " <input type=""button"" name=""Submit1"" onclick=""javascript:window.open('" & RSObj("URL") & "','new','');"" value=""访问站点"">"
Response.Write " <input type=""button"" name=""Submit2"" onclick=""javascript:window.close()"" value=""关闭窗口"">"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " </table>"
Response.Write " <br>"
Response.Write "</body>"
Response.Write "</html>"
End Sub
End Class
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -