⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 search.asp

📁 狼道公司源码下载
💻 ASP
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--#include file="Inc/Conn.asp" -->
<!--#include file="Inc/Function.asp" -->
<%
Center_Left="Center_Left2.jpg"
%>
<HTML><HEAD><TITLE>新闻动态 <%=WebTitle%></TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<META content="<%=WebKeyWord%>" name=description>
<META content="<%=WebKeyWord%>" name=keywords>
<META http-equiv=Pragma content=no-cache>
<LINK href="Images/common.css" type=text/css rel=STYLESHEET>
<LINK href="Images/style.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.3790.2759" name=GENERATOR></HEAD>
<BODY leftMargin=0 background=Images/bg0.gif topMargin=0 marginwidth="0" marginheight="0">
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD height="81" background=Images/bg_company.gif><!--#include file="Top.asp" --></TD>
  </TR>
  <TR>
    <TD>
      <TABLE cellSpacing=0 cellPadding=0 width=830 border=0>
        <TBODY>
        <TR>
          <TD width=191 vAlign=top>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD vAlign=top>
                  <DIV align=center><IMG height=62 src="Images/left_menu2.gif" width=191>
                  <TABLE cellSpacing=0 cellPadding=0 width="90%" align=center 
                  border=0>
                    <TBODY>
                    <TR>
                      <TD 
                      height=19 colspan="2" align=left class=GeneralContentSinglePage1_bg></TD>
                      </TR>
                    <TR>
                      <TD width="5%" 
                      height=21 align=left class=GeneralContentSinglePage1_bg>&nbsp;</TD>
                      <TD width="95%" align=left class=GeneralContentSinglePage1_bg><img src="Images/folder.gif" width="9" height="9" border=0>&nbsp;&nbsp;<a 
                        class=GeneralContentSinglePage1_a 
                        href="News.asp">新闻动态</a></TD>
                    </TR>
                    <TR>
                      <TD class=GeneralContentSinglePage1_bg align=left 
                      height=30>&nbsp;</TD>
                      <TD class=GeneralContentSinglePage1_bg align=left><img src="Images/folder.gif" width="9" height="9" 
                        border=0>&nbsp;&nbsp;<a 
                        class=GeneralContentSinglePage1_a 
                        href="Jobs.asp">招聘信息</a></TD>
                    </TR></TBODY></TABLE>
                  <form name="FormNews" method="post" action="Search.asp">
                    <table cellspacing="0" cellpadding="0">
                      <tr>
                        <td align="right" width="53" height="23">关键字: </td>
                        <td width="117"><input size="14" name="KeyWord" /></td>
                      </tr>
                      <tr>
                        <td align="right" width="53" height="23">类别:</td>
                        <td width="117"><select size="1" name="Flag">
                            <option value="" selected="selected">不限类别</option>
                            <option value="1">新闻动态</option>
                            <option value="2">招聘信息</option>
                        </select></td>
                      </tr>
                      <tr>
                        <td align="right" width="53" height="23" size="1">范围:</td>
                        <td><select name="Fid">                            <option value="1" selected="selected">标题 </option>

                            <option value="2">内容 </option>

                            <option value="">标题和内容</option>
                        </select></td>
                      </tr>
                      <tr>
                        <td align="middle" colspan="2"><img onClick="javascript:document.FormNews.submit();" style="cursor:hand" height="23" src="Images/search.gif" width="56" border="0" twffan="done" /></td>
                      </tr>
                    </table>
                                    </form>
                  </DIV></TD></TR>
              <TR>
                <TD vAlign=top><br>
                  <img src="Images/bot2.gif" 
            width=191 height=240 border=0 usemap="#Map">
                  <map name="Map">
                    <area shape="rect" coords="103,6,189,51" href="Contact.asp">
                    <area shape="rect" coords="105,59,189,106" href="FeedBack.asp">
                    <area shape="rect" coords="106,117,188,164" href="News.asp">
                    <area shape="rect" coords="105,181,188,225" href="DownLoad.asp">
                  </map></TD>
              </TR>
              </TBODY></TABLE></TD>
          <TD vAlign=top>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD vAlign=top align=right height=25>
                  <TABLE cellSpacing=0 cellPadding=0 border=0>
                    <TBODY>
                    <TR>
                      <TD>&nbsp;</TD>
                      <TD width=5>&nbsp;</TD>
                      <TD vAlign=bottom>首页 &gt;&gt; 新闻动态&nbsp;&nbsp;</TD>
                      <TD width=5>&nbsp;</TD></TR></TBODY></TABLE></TD></TR>
              <TR>
                <TD>
                  <TABLE cellSpacing=0 cellPadding=0 width=638 border=0>
                    <TBODY>
                    <TR>
                      <TD width=731><IMG height=26 
                        src="Images/compay01_title2.gif" width=450></TD></TR>
                    <TR>
                      <TD><IMG height=3 src="Images/title_line0.gif" 
                        width=670></TD></TR>
                    <TR>
                      <TD vAlign=top><DIV align=center>
                        <TABLE cellSpacing="0" cellPadding="0" width="638" border="0">
                          <TBODY>
                            <TR>
                              <TD vAlign="top"><TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
                                  <TBODY>
                                    <TR>
                                      <TD><DIV align="center" twffan="done">
                                          <TABLE cellSpacing="0" cellPadding="0" width="95%" align="center" border="0">
                                            <TBODY>
                                              <TR>
                                                <TD><TABLE cellSpacing="0" cellPadding="3" width="90%" align="center" border="0">
                                                    <TBODY>
                                                      <TR>
                                                        <TD>当前位置:新闻动态</TD>
                                                      </TR>
                                                    </TBODY>
                                                  </TABLE>
                                                    <TABLE cellSpacing="0" cellPadding="3" width="90%" align="center" border="0">
                                                      <TBODY>
							<%
Page=Request("Page")
if Page="" then Page=1
if Not isnumeric(Page) then Page=1
if CInt(Page)<1 then Page=1
Page=Abs(Cint(Page))
PCount=0
RCount=0
PSize=16

KeyWord=Request("KeyWord")
Flag=Request("Flag")
FID=Request("FID")

SQL1=""
select case Flag
	case "1"
	   SQL1=" and (FLag=1) "
	case "2"
	   SQL1=" and (FLag=2) "	
end select

SQL2=""
select case FID
   case "1"
      SQL2=" and (Title like '%"&KeyWord&"%') "
   case "2"
      SQL2=" and (Content like '%"&KeyWord&"%') "   
   case else
      SQL2=" and (Content like '%"&KeyWord&"%' or Title like '%"&KeyWord&"%') "        
end select


   SQLStr="select ID,Title,FlagHot,UpdateTime,Hits from News where (FlagLan=1) "&SQL1&SQL2&" order by UpdateTime Desc" 
Set rs=server.CreateObject("adodb.recordset")


rs.open SQLStr,Conn,1,1
if not rs.eof then
  rs.pagesize=Psize
  RCount=rs.recordcount
  PCount=rs.PageCount
  if Cint(Page)>CInt(PCount) then Page=PCount
  rs.absolutepage=Page
end if
i=0
do while not rs.eof  and i<CInt(PSize)
i=i+1
							%>													  
													  
                                                        <TR>
                                                          <TD width="65%"><IMG src="Images/event_icon.gif" width="9" height="9" twffan="done">  &nbsp; &nbsp; <a href="NewsInfo.asp?ID=<%=rs("ID")%>" target="_blank"><%=rs("Title")%></a>
														  <%
														  if rs("FlagHot")="1" then
														  %>
														  <IMG src="Images/hot.gif" twffan="done">
														  <%end if%>
														  </TD>
                                                          <TD width="20%">浏览次数:(<%=rs("Hits")%>) </TD>
                                                          <TD width="35%">(<%=rs("UpdateTime")%>) </TD>
                                                        </TR>
                                <%
 rs.movenext
 loop
 rs.close
 set rs=nothing
 %>

                                                        <TR>
                                                          <TD colspan="3"></TD>
                                                        </TR>
                                                      </TBODY>
                                                  </TABLE></TD>
                                              </TR>
                                            </TBODY>
                                          </TABLE>
                                      </DIV></TD>
                                    </TR>
                                  </TBODY>
                              </TABLE></TD>
                            </TR>
                          </TBODY>
                        </TABLE>
                      </DIV></TD></TR>
                    <TR>
                      <TD><div title="<BR>">
                        <table cellspacing=1 width='100%' border=0>
                          
                            <tr>
                              <td height="79" align=center> 共有 <font COLOR=#FF0000><B><%=RCount%></B></font> 条 &nbsp;<a href="?Page=1&KeyWord=<%=KeyWord%>&FID=<%=FID%>&Flag=<%=FLag%>">首 页</a>&nbsp;<a href="?Page=<%=Page-1%>&KeyWord=<%=KeyWord%>&FID=<%=FID%>&Flag=<%=FLag%>">上一页</a>&nbsp;<a href="?Page=<%=Page+1%>&KeyWord=<%=KeyWord%>&FID=<%=FID%>&Flag=<%=FLag%>">下一页</a>&nbsp;<a href="?Page=<%=PCount%>&KeyWord=<%=KeyWord%>&FID=<%=FID%>&Flag=<%=FLag%>">尾 页</a> &nbsp;页次:<strong><font color=red><%=Page%></font>/<%=PCount%></strong>页&nbsp;                              </td>
                            </tr>
                        </table>
                      </div></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
        </TBODY></TABLE></TD></TR>
  <TR>
    <TD><!--#include file="Bottom.htm" --></TD>
  </TR></TBODY></TABLE>

</BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -