📄 lookfor.asp
字号:
<!--#include file="conn.asp"-->
<% var rs=Server.CreateObject("ADODB.Recordset");
var a=Request("lookfor");
if(a=="")
Response.Redirect("index.asp");
var sql="select * from news where title like '%"+Server.HTMLEncode(a)+"%'";
rs.Open(sql,conn);
%>
<html>
<STYLE>
BODY {BODY
SCROLLBAR-FACE-COLOR:
rgb(176,220,13);
SCROLLBAR-3DLIGHT-COLOR:
rgb(176,220,13);
SCROLLBAR-DARKSHADOW-COLOR:
rgb(176,220,13);
SCROLLBAR-BASE-COLOR:
rgb(176,220,13);}
</STYLE>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新闻发布</title>
<link rel="stylesheet" href="css/1.css" type="text/css">
</head>
<body bgcolor="#E9E9E9">
<table width="747" border="0" cellspacing="0" cellpadding="0" align="center" height="573">
<tr>
<td background="images/look.jpg">
<table width="747" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="43" width="47"> </td>
<td height="43" width="700" valign="bottom"><img src="images/im.gif" width="100" height="20" usemap="#Map" border="0"></td>
</tr>
<tr>
<td height="530" colspan="2">
<table width="70%" border="0" cellspacing="0" cellpadding="0" align="center" height="392">
<tr>
<td height="371" valign="top">
<table width="100%" bordercolor="#030303">
<tr>
<td width="16%" class="a">序号</td>
<td width="51%" class="a">新闻内容</td>
<td width="17%" class="a">发表时间</td>
<td width="16%" class="a">作者</td>
</tr>
<% var i=0;while(!rs.EOF&&i<rs.PageSize){%>
<tr class="a">
<td width="16%"><%=(++i)%></td>
<td width="51%"><a href="detail.asp?id=<%=rs("id")%>"><%=rs("title")%></a></td>
<td width="17%"><%=rs("time")%></td>
<td width="16%"><%=rs("anthor")%> </td>
</tr>
<% rs.MoveNext()}%>
</table>
</td>
</tr>
<tr>
<td height="69"> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p align="center"> </p>
<map name="Map">
<area shape="rect" coords="6,2,35,17" href="index.asp">
<area shape="rect" coords="52,5,93,15" href="admin.asp">
</map>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -