?? search.asp
字號:
<!--#include file="setup.asp" -->
<%
if len(request("keyword"))=0 then
back("請?zhí)顚戧P鍵字!!")
Response.end
end if
keyword=request("keyword")
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=web_name%>公司簡介</title>
<link href="inc/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #0066CC}
-->
</style>
</head>
<body leftmargin="0" topmargin="0">
<!--#include file="index_top.asp" -->
<table width="762" height="5" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="f5f5f5" class="tablelinenotop">
<tr>
<td></td>
</tr>
<tr>
<td height="1" bgcolor="#CCCCCC"></td>
</tr>
</table>
<table width="762" height="378" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="tablelinenotop">
<tr>
<td valign="top">
<div align="center">
<table width="95%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
<% strsql="select * from news_info where title like '%"&keyword&"%' or content like '&"&keyword&"&'"
set rs = Server.CreateObject("ADODB.Recordset")
rs.Open strsql, conn, 1, 1
total=0
total=rs.recordcount
while not rs.eof %>
<tr class="font">
<td width="12%">
<div align="right"><img src="image/best_zoom.gif" width="19" height="18">
</div></td>
<td width="88%" height="30"><a href="news_view.asp?id=<%= rs("id") %>">
<% =rs("title") %>
</a> [<%= rs("datetime") %>]</td>
</tr>
<%
rs.movenext
wend
rs.close
%>
<% strsql="select * from job_info where title like '%"&keyword&"%' or content like '&"&keyword&"&'"
rs.Open strsql, conn, 1, 1
total=total+rs.recordcount
while not rs.eof
%>
<tr class="font">
<td width="12%" height="25">
<div align="right"><img src="image/bullet_arrow.gif" width="8" height="6">
</div></td>
<td width="88%" height="25">[<font color="#FF3300">招聘</font>] <a href="info_view.asp?id=<%= rs("id") %>&type=1"><font color="#FF3300"><%= rs("title") %></font></a> (<%= rs("datetime") %>)
</td>
</tr>
<%
rs.movenext
wend
rs.close
%>
<% strsql="select * from gqxx_info where title like '%"&keyword&"%' or content like '&"&keyword&"&'"
rs.Open strsql, conn, 1, 1
total=total+rs.recordcount
while not rs.eof
if rs("type") =1 then
info_type="供應"
info_col="333333"
else
info_type="需求"
info_col="003399"
end if
%>
<tr class="font">
<td width="12%" height="25">
<div align="right"><img src="image/bullet_arrow.gif" width="8" height="6">
</div></td>
<td width="88%" height="25"> [<font color="#<%= info_col %>"><%= info_type %></font>] <a href="info_view.asp?id=<%= rs("id") %>&type=2"><font color="<%= info_col %>"><%= rs("title") %></font></a> (<%= rs("datetime") %>)
</td>
</tr>
<%
rs.movenext
wend
rs.close
%>
</table>
<table width="95%" border="0" cellpadding="0" cellspacing="0">
<% if total=0 then %>
<tr>
<td> <font color="#FF0000"><strong>沒有找到任何與條件相符的信息!!</strong></font> [<a href="#" onclick="history.back()">返回上一頁</a>]</td>
</tr>
<% else %>
<tr>
<td>
<div align="center"><font color="#0033CC"><strong>共找到<%= total %>條符合條件的信息!!</strong> [<a href="#" onclick="history.back()">返回上一頁</a>]</font></div></td>
</tr>
<% end if %>
</table>
</div>
</td>
</tr>
</table>
<!--#include file="index_down.asp" -->
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -