⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adminlinkadd.asp

📁 一个不错的个人商务网站的源码
💻 ASP
字号:
<%dim nowplace
nowplace="link"
dim dbpath
dbpath="../"
%>
<!--#include file="chk.asp"-->
<!--#include file="../db_conn.asp" -->
<!--#include file="../comm/my_request.asp" -->
<!--#include file="../comm/my_lib.asp" -->
<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>友情链接发布</title>
<link href=AdminStyle.css rel=stylesheet type=text/css>
<script src="edit.js" type="text/javascript"></script>
</head>
<script language=javascript>
function showlist(dd){
if(dd=="a"){
linkimg.style.display="none";
}else{
linkimg.style.display="";
}
}
</script>
<%
action=my_request("action",0)
if action="save" then
call save()
end if
%>
<body>
<table border="0" width="100%" id="table1" cellpadding="4" style="border:1px solid #183789; border-collapse: collapse; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px" cellspacing="1">
<form action=AdminLinkAdd.asp method=post name=form1>
	<tr>
		<td width="100%" colspan="2" background="Image/admin_bg_1.gif" height="25">
		<font color="#FFFFFF"><b>友情链接发布:</b></font></td>
	</tr>
	<tr>
		<td width="103">链接类型:</td>
		<td width="867"><input type="radio" value="0" checked name="flag" onClick='showlist("a");'>文字链接&nbsp; 
		<input type="radio" value="1" name="flag" onClick='showlist("b");'>Logo链接</td>
	</tr>
	<tr>
		<td width="103">链接文字:</td>
		<td width="867">
		<input type="text" name="webname" size="58" maxlength="50"></td>
	</tr>
	<tr>
		<td width="970" colspan="2">
		<table border="0" width="100%" id="linkimg" cellspacing="0" cellpadding="0" style='display:none'>
			<tr>
				<td width="106">Logo地址:</td>
				<td>&nbsp;<input type="text" name="imgpath" size="25" readonly maxlength="50"><font color="#330000" size="2"><a href="javascript:openWin('upload1.asp?Fname=imgpath','upload','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=yes,width=410,height=230')"><img src="image/upload.gif" alt="上传图片" width="60" height="18" border="0" align="middle" style="cursor: hand;" onMouseOver="window.status='使用系统自带的上传程序上传图片';return true;" onMouseOut="window.status='';return true;"></a></font></td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td width="103">链接网址:</td>
		<td width="867"><input type="text" name="url" size="58" maxlength="50"><input type="hidden" name="action" value="save"></td>
	</tr>
	<tr>
		<td width="103"> </td>
		<td width="867"><input type="submit" value="保存数据" name="B1"></td>
	</tr></form>
</table>

</body>

</html>
<%
sub save()
webname=trim(my_request("webname",0))
url=trim(my_request("url",0))
flag=cint(my_request("flag",1))
imgpath=trim(my_request("imgpath",0))
sql="insert into weblink (webname,url,imgpath,flag,addtime) values ('"&webname&"','"&url&"','"&imgpath&"',"&flag&",'"&now()&"')"
conn.execute (sql)
call wurl("添加成功","AdminLinkList.asp")
end sub
%>

⌨️ 快捷键说明

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