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

📄 azhiye_list.asp

📁 我同学的毕业设计源代码
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="admin_pass.asp"-->
<script Language="vbscript">
sub check()
	c=document.form1.page.value
			if c<>"" then
				if not IsNumeric(c) then
				msgbox " 页数只能输入数字"
				document.form1.page.select()
				exit sub
				else
				
				end if
			else
				msgbox"请输入想要转到页数"
				document.form1.page.select()
				exit sub
			end if			
				document.form1.submit()
end sub
</script>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>后台</title>
<link href="css/css.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="center"> 
  <center>
    <table border="0" cellpadding="4" cellspacing="1" style="border-collapse: collapse" bordercolor="#111111" width="98%">
      <form method="get" name=form2 action="">
        <%keyword=trim(request("keyword"))
    if keyword="" then
    keywords="所有内容"
    else
    keywords=keyword
    end if 
    %>
        <tr> 
          <td align="center" colspan="5">以下是<font color=red> <%=keywords%> </font>&nbsp; 
            <%
	             set rs=server.createobject("adodb.recordset")
				 sql="select * from zhiye_type"
				 rs.open sql,conn,1,1
				 if rs.eof and rs.bof then
				 response.write "请先添加分类!"
				 response.end
				 else
		    %>
            <select name="keyword"  id="keyword">
          <%
			  do while not rs.eof
	        %>
          <option selected value="<%=rs("typename")%>"><%=rs("typename")%></option>
          <% rs.movenext
			loop
			end if
			rs.close
			set rs=nothing
			%>
        </select>
            <input type="submit" value="查看" name="B1"> </td>
        </tr>
      </form>
      <%
		set rs=Server.CreateObject("ADODB.Recordset")
		sql="select * from zhiye where typeid like '%"&keyword&"%'  order by datt desc"
		rs.open sql,conn,1,1
		rs.pagesize=20
		filename="azhiye_list.asp"
	%>
      <tr> 
        <td align="center" bgcolor="#ffcc99">企业类型</td>
        <td align="center" bgcolor="#ffcc99">企业名称</td>
        <td align="center" bgcolor="#ffcc99">联系人</td>
        <td align="center" bgcolor="#ffcc99">推荐</td>
        <td align="center" bgcolor="#ffcc99">删除</td>
      </tr>
      <%if not (rs.eof and rs.bof) then
		Page = cint(Request.querystring("Page"))
   		If Page < 1 Then Page = 1
   		If Page > rs.PageCount Then Page = rs.PageCount
			showpages rs,Page
	%>
      <%else%>
      <tr> 
        <td colspan=5><center>
            <font color=red>没有你所查的信息</font> </center></td>
      </tr>
      <%end if%>
      <%Sub showpages( rs,Page )
   rs.AbsolutePage = Page		
		for i=0 to rs.pagesize-1
			j=j+1
			if j mod 2 =0 then
				bg="#ffcc99"
			else 
				bg="#ffffff"
			end if
			%>
      <tr bgcolor=<%=bg%>> 
        <td align="center" bgcolor="<%=bg%>"><font color="#ff0000"><%=rs("typeid")%></font></td>
        <td align="center" bgcolor="<%=bg%>"><%=rs("ming")%> </td>
        <td align="center"><%=rs("lianxi")%></td>
        <td align="center" bgcolor="<%=bg%>"> 
          <% if rs("okyes")="yes" then %>
          <a href='javascript:if(confirm("确实要取消推荐吗?"))location="azhiye_ok.asp?action=yes&id=<%=rs("id")%>"'>取消推荐</a> 
          <% Else %>
          <a href='javascript:if(confirm("确实要推荐吗?"))location="azhiye_ok.asp?action=yes&id=<%=rs("id")%>"'><font color="#FF0000">推荐</font></a> 
          <% End If %>
        </td>
        <td align="center" bgcolor="<%=bg%>"><a href="azhiye_ok.asp?action=del&id=<%=rs("id")%>" onClick="javascript:return confirm('确实要删除该信息吗?')">删除</a></td>
      </tr>
      <%
		rs.movenext
  		If rs.EOF Then Exit For
	 	Next%>
      <%End Sub%>
      <tr> 
        <td colspan="5" align="center"> <form action=<%=filename%>?keyword=<%=keyword%> method="get" name=form1  >
            <%
		response.write "共<font color=red>"&rs.recordcount&"</font>条信息&nbsp;&nbsp;"
		response.write rs.pagesize&"条一页&nbsp;&nbsp;"
		if Page=1 then 
      		 response.write"[首页]  "
   		end if 
  		 If Page <> 1 Then
  		    Response.Write "<A HREF="&filename&"?keyword="&keyword&"&Page=1>[首页]</A>

⌨️ 快捷键说明

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