📄 add.asp
字号:
<!--#include file="const.inc"-->
<%
urlname=trim(request("urlname"))
if urlname<>"" then
urllink=trim(request("urllink"))
remark=trim(request("remark"))
Set conn=Server.CreateObject("ADODB.Connection")
DBPath1=server.mappath("../access.mdb")
conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath1
conn.Execute "insert into puburl (urlname,urllink,remark) values ('" & urlname & "','" & urllink & "','" & remark & "')"
set conn=nothing
%>
<script language=javascript>
window.close();
window.opener.parent.frames("main").document.location ="index.asp?add=judge";
</script>
<% else %>
<html>
<head>
<title>添加常用网址</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css/eintrdemo.css">
</head>
<body bgcolor="#efefef" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
onLoad="javaScript:document.form.urlname.focus()">
<form method="post" action="add.asp" name="form">
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tr bgcolor="#4E5960">
<td class="heading"> <font color="#FFFFFF"><b>添加常用网址</b></font></td>
</tr>
</table>
<table width="100%" border="1" cellspacing="0" cellpadding="1" bordercolordark="#FFFFFF" bordercolor="#000000">
<tr>
<td width="12%" bgcolor="bfbfbf" valign="top">网站名称</td>
<td width="88%">
<input type="text" name="urlname" class="form" size="30">
</td>
</tr>
<tr>
<td width="12%" bgcolor="bfbfbf" valign="top">网址</td>
<td width="88%">
<input type="text" name="urllink" class="form" size="30" value="http://">
</td>
</tr>
<tr>
<td width="12%" bgcolor="bfbfbf" valign="top">网站说明</td>
<td width="88%">
<input type="text" name="remark" class="form" size="30">
</td>
</tr>
</table>
<div align="center" ><br>
<input type=image src="images/sendarticle_off.gif" >
<a href="javascript:document.form.reset();" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','images/rewrite_on.gif',1)"><img name="Image2" border="0" src="images/rewrite_off.gif" width="60" height="19" hspace="5"></a><a href="Javascript:window.close();" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','images/close_2.gif',1)"><img name="Image3" border="0" src="images/close_1.gif" width="85" height="19" hspace="5"></a>
</div>
</form>
</body>
</html>
<% end if %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -