📄 piclinks.asp
字号:
<!--#include file="../Session.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/site.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="0">
<tr align="center">
<td height="50" colspan="6" class="tdstyle"><font color="#000000" size="3"><strong>精品链接</strong></font></td>
</tr>
<tr align="center">
<td width="8%" height="25" class="tdstyle">编号</td>
<td width="30%" class="tdstyle">图片名称</td>
<td width="30%" class="tdstyle">连接地址</td>
<td width="10%" class="tdstyle">修改</td>
<td width="10%" class="tdstyle">删除</td>
</tr>
<%
Set rs = Server.CreateObject("ADODB.Recordset")
sql = "select * from ThirdPic where PicId=1"
rs.open sql,conn,1,1
For i=1to rs.recordcount%>
<form name="form1" method="post" action="?x=a">
<tr>
<td height="20" align="center" class="tdstyle"><%=i%> <input name="id" type="hidden" id="id" value="<%=rs("id")%>"></td>
<td class="tdstyle">
<input name="PicName" type="text" class="input1" id="PicName" value="<%=rs("PicName")%>" size="25"></td>
<td class="tdstyle"> <strong>
<input name="url" type="text" class="input1" id="url" value="<%=rs("url")%>" size="25">
</strong></td>
<td align="center" class="tdstyle">
<input name="Submit" type="submit" class="button2" value="修改"></td>
<td align="center" class="tdstyle">
<input name="Submit2" type="button" class="button2" value="删除" onclick="if(confirm('您确定要删除吗?')) location.href='PicLinks.asp?x=c&id=<%=rs("id")%>'"></td>
</tr>
</form>
<%
rs.movenext
next
rs.close
%>
</table>
<form action="?x=b" method="post" name="form" id="form">
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="0">
<tr align="center">
<td height="50" colspan="2" class="tdstyle"><font color="#000000" size="3"><strong>添加</strong></font></td>
</tr>
<tr>
<td width="20%" align="right" class="tdstyle">图片地址:</td>
<td width="80%" class="tdstyle"> <input name="PicName" type="text" class="input1" id="PicName" size="25">
图片尺寸:88*31像素</td>
</tr>
<tr>
<td align="right" class="tdstyle">上传图片:</td>
<td class="tdstyle"> <iframe name="ad2" frameborder=0 width=100% height=25 scrolling=no src=Up2.asp></iframe></td>
</tr>
<tr>
<td align="right" class="tdstyle">图片连接:</td>
<td class="tdstyle"> <input name="url" type="text" class="input1" id="url" size="25">
</td>
</tr>
<tr>
<td height="30" colspan="2" align="center" class="tdstyle">
<input name="Submit3" type="submit" class="button" value="提 交">
</td>
</tr>
</table>
</form>
<bt><br>
<% Select case request("x")
case "a"
conn.execute("Update ThirdPic set PicName = '"&request("PicName")&"',Url = '"&request("Url")&"' where id="&request("id")&"")
Response.redirect "PicLinks.asp"
case "b"
conn.execute("Insert into ThirdPic(PicName,Url,PicId)values('"&request("PicName")&"','"&request("Url")&"',1)")
Response.redirect "PicLinks.asp"
case "c"
conn.execute("Delete From ThirdPic where id="&request("id")&"")
Response.redirect "PicLinks.asp"
End Select
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -