?? links.asp
字號:
<!--#include file="conn.asp"-->
<!--#include file="session1.asp"-->
<html>
<head>
<title>合作站點設置</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="style.css" rel="stylesheet" type="text/css">
<body>
<%set rs=server.CreateObject("adodb.recordset")
rs.open "select * from sh_links order by linkidorder",conn,1,1
dim i
i=rs.recordcount
%>
<table cellpadding="3" cellspacing="1" border="0" width="100%" class="tableBorder" align=center>
<tr align="center">
<th class="tableHeaderText" colspan=4 height=25>管理合作伙伴</th>
</tr>
<tr>
<td width="26%" class="forumRowHighlight" align="center"> 網站名稱</td>
<td width="42%" class="forumRowHighlight" align="center"> 網站地址</td>
<td width="9%" class="forumRowHighlight" align="center"> 排 序</td>
<td width="23%" class="forumRowHighlight" align="center"> 操 作</td>
</tr>
<%if rs.eof and rs.bof then
response.write "還沒有數據,請添加!"
else
do while not rs.eof%>
<tr>
<form name="form1" method="post" action="savelinks.asp?action=edit&id=<%=rs("linkid")%>">
<td align="center" class="forumRowHighlight"> <input name="linkname" type="text" id="linkname" value="<%=trim(rs("linkname"))%>" size="16">
</td>
<td align="center" class="forumRowHighlight"> <input name="linkurl" type="text" id="linkurl" value="<%=trim(rs("linkurl"))%>" size="26">
</td>
<td align="center" class="forumRowHighlight"> <input name="linkidorder" type="text" id="linkidorder" value=<%=rs("linkidorder")%> size="3">
</td>
<td align="center" class="forumRowHighlight"> <input class="button" type="submit" name="Submit" value="修 改"> <a href=savelinks.asp?action=del&id=<%=rs("linkid")%>>刪除</a>
</td>
</form>
</tr>
<%rs.movenext
loop
end if
rs.close
set rs=nothing%>
</table>
<br>
<table cellpadding="3" cellspacing="1" border="0" width="100%" class="tableBorder" align=center>
<tr>
<th class="tableHeaderText" colspan=4 height=25>添加合作伙伴</th>
</tr>
<form name="form2" method="post" action="savelinks.asp?action=add">
<tr>
<td class="forumRowHighlight">
<div align="center">網站名稱</div></td>
<td class="forumRowHighlight">
<div align="center">網站地址</div></td>
<td class="forumRowHighlight">
<div align="center">排 序</div></td>
<td class="forumRowHighlight">
<div align="center">操 作</div></td>
</tr>
<tr>
<td class="forumRowHighlight"> <div align="center">
<input name="linkname1" type="text" id="linkname1" size="16">
</div></td>
<td class="forumRowHighlight"> <div align="center">
<input name="linkurl1" type="text" id="linkurl1" size="26">
</div></td>
<td class="forumRowHighlight"> <div align="center">
<input name="linkidorder1" type="text" id="linkidorder1" value=<%=i+1%> size="3">
</div></td>
<td class="forumRowHighlight"> <div align="center">
<input class="button" type="submit" name="Submit2" value="添 加">
</div></td>
</tr>
</form>
</table>
<br>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -