📄 editlink.asp
字号:
<!--#Include file="../Common/Inc_DatConn.asp"-->
<!--#Include file="Common/Inc_Config.asp"-->
<!--#Include file="Common/Inc_Function.asp"-->
<%
'┌─ 风云ASP在线 ────────────────────────┐
'│ │
'│ 作者:赵振波. http://www.fyasp.com │
'│ │
'│ Q Q:176189168 │
'│ │
'│ Email:fy96@163.com │
'│ │
'│ 程序定做,系统开发,网站制作,提供高质量的网络产品、技术和服务!│
'│ │
'│【版权声明】 │
'│ │
'│ 本程序版权归坐看风云所有,未经授权擅自修改、复制或散布本程序│
'│ │
'│的部分或全部,将承受严厉的民事和刑事处罚,对已知的违反者将给予法 │
'│ │
'│律范围内的全面制裁。对非法使用此程序所造成的一切后果本人概不负责!│
'│ │
'└─────────────────── http://www.fyasp.com ──┘
%>
<%if IsTimeOut(Session("strAccount"),Session("strPassWord")) then Response.Redirect "index.asp"%>
<html>
<head>
<title><% = strSiteName%> - 网站后台管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="Common/Site.css" type="text/css">
<script language="javascript">
//检验表单的合法性
function CheckForm() {
if (document.AddForm.LinkClass.value == "#") {
alert("\必须选择链接类型!");
document.AddForm.LinkClass.focus();
}
else if (document.AddForm.Homepage.value == "") {
alert("\请输入链接方网站名称!");
document.AddForm.Homepage.focus();
}
else {
return true;
}
return false;
}
// End of validation form script -->
</script>
<script language="javascript">
function AddPhoto() {
popupWin = window.open('Oper.asp?Oper=AddPhoto','','width=300,height=160,scrollbars=no')
}
</script>
</head>
<body leftMargin="0" topMargin="2">
<!--#Include file="Common/inc_Top.asp"-->
<table width="750" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="105" valign="top" style="border-left: 1px solid rgb(0,0,0); border-right: 1px solid rgb(0,0,0)" class="bottom"><br>
<!--#Include file="Common/Inc_Button.asp"-->
</td>
<td valign="top" style="border-right: 1px solid rgb(0,0,0)" align="center" class="banma2">
<table width="96%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="50">当前位置:<a href="Main.asp">管理首页</a> -> <a href="LinkMgr.asp">链接管理</a> -> 链接更新</td>
</tr>
</table>
<table border="0" width="96%" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="50%" height="25">
<input onclick="parent.location.href='LinkMgr.asp'" type="button" value="管 理" class="button" name="Button">
<%
if Session("intUserLevel") > 2 then
Response.Write " <input onclick=""parent.location.href='LinkEaa.asp'"" type=""button"" value=""审 批"" class=""button"" name=""Button2"">"
end if
%>
</td>
<td width="50%" align="right"></td>
</tr>
</table>
<%
if UCase(Request.Form("Oper")) = "EDITLINK" then
Dim rdsEditLink
Dim sqlEditLink
set rdsEditLink = Server.CreateObject("ADODB.Recordset")
sqlEditLink = "Select * From Dat_Link Where LinkKey = "& Request("Id")
rdsEditLink.Open sqlEditLink,Conn,3,3
rdsEditLink("LinkClass") = Request.Form("LinkClass")
rdsEditLink("Homepage") = Request.Form("Homepage")
rdsEditLink("Url") = Request.Form("Url")
rdsEditLink("Content") = Request.Form("Content")
'rdsEditLink("PhotoName") = Request.Form("PhotoName")
rdsEditLink("UpdateTime") = now()
rdsEditLink.Update
rdsEditLink.Close
set rdsEditLink = nothing
strMsgTitle = "链接信息更新"
strError = False
strMsg = "链接信息更新成功..."
strGoFile = "LinkMgr.asp"
Call ShowMessage()
else
Dim intLinkKey
Dim rdsLink
Dim sqlLink
intLinkKey = Request.QueryString("Id")
set rdsLink = Server.CreateObject("ADODB.Recordset")
sqlLink = "Select * From Dat_Link Where LinkKey = "& intLinkKey
rdsLink.Open sqlLink,Conn,1,1
if not rdsLink.EOF then
%>
<table border="0" width="96%" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="100%" class="booktable">
<table border="0" width="100%" cellspacing="1" cellpadding="2">
<form method="post" action="EditLink.asp" name="AddForm" OnSubmit="return CheckForm()">
<input type="hidden" name="Oper" value="EditLink">
<input type="hidden" name="Id" value="<% = Request.QueryString("Id")%>">
<tr>
<td width="20%" height="25" class="bottom" align="right">链接类别:</td>
<td width="80%" height="25" class="banma1">
<select size="1" name="LinkClass" class="face">
<option value="1" <%if rdsLink("LinkClass") = "1" then Response.Write "selected"%>>合作伙伴</option>
<option value="2" <%if rdsLink("LinkClass") = "2" then Response.Write "selected"%>>友情链接</option>
</select>
</td>
</tr>
<tr>
<td width="20%" height="25" class="bottom" align="right">网站名称:</td>
<td width="80%" height="25" class="banma2"> <input type="text" name="Homepage" size="25" class="face" value="<% = rdsLink("Homepage")%>"> <font color="#FF0000">**</font></td>
</tr>
<tr>
<td width="20%" height="25" class="bottom" align="right">Url:</td>
<td width="80%" height="25" class="banma1"> <input type="text" name="Url" size="25" class="face" value="<% = rdsLink("Url")%>"></td>
</tr>
<tr>
<td width="20%" height="25" class="bottom" align="right">备注:</td>
<td width="80%" height="25" class="banma2"> <textarea rows="3" name="Content" cols="68" class="face"><% = rdsLink("Content")%></textarea></td>
</tr>
<!--
<tr>
<td width="20%" height="25" class="bottom" align="right">相关图片:</td>
<td width="80%" height="25" class="banma2"> <input type="text" name="PhotoName" size="25" class="face" readonly="ture"> <a href="javascript:AddPhoto()"><img border="0" src="<% = strImageUrl%>addpic.gif" align="absmiddle"><font color="#FF0000">添加</font></a> (只允许上传.gif、.jpg格式)</td>
</tr>
-->
<tr>
<td width="20%" height="25" class="bottom" align="right"></td>
<td width="80%" height="25" class="banma2"> <input type="submit" value="更 新" name="Submit" class="button"> <input type="reset" value="取 消" name="Reset" class="button"></td>
</tr>
</form>
</table>
</td>
</tr>
</table>
<%
end if
rdsLink.Close
set rdsLink = nothing
end if
%>
<br>
</td>
</tr>
</table>
<!--#Include file="Common/Inc_Bottom.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -