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

📄 dlsq.asp

📁 北京商务网
💻 ASP
字号:
<%@ codepage ="936" %>
<%
if instr(session("flag"),"52")=0 then
response.redirect "../login.asp"
response.end
end if
%>
<!--#include file="../../conn/dbconn2.asp" -->
<!--#include file="../Config.asp"-->
<link rel="stylesheet" type="text/css" href="../style.css">
<body bgcolor="#FFFFFF" marginheight=0 marginwidth=0 leftmargin=0>
<SCRIPT>
function view(url){ 
var url; window.open(url,'_blank','status=no,scrollbars=yes,top=20,left=110,width=600,height=460'); 
}
</SCRIPT>
<%
dim totalPut 
dim CurrentPage
dim TotalPages
if not isempty(request("selAnnounce")) then
idlist=request("selAnnounce")
if instr(idlist,",")>0 then
dim idarr
idArr=split(idlist)
dim id
for i = 0 to ubound(idarr)
id=clng(idarr(i))
call deleteannounce(id)
next
else
call deleteannounce(clng(idlist))
end if
end if 
if not isempty(request("page")) then
currentPage=cint(request("page"))
else
currentPage=1
end if
set rs=server.createobject("adodb.recordset") 
sql="select * from dlsq  order by id desc"
rs.open sql,conn,1,1 
if rs.recordcount=0  then 
response.write "<p align='center'>对不起,没有您要查询的信息</p>" 
else 
totalPut=rs.recordcount 
if currentpage<1 then 
currentpage=1 
end if 
if (currentpage-1)*MaxPerPage>totalput then 
if (totalPut mod MaxPerPage)=0 then 
currentpage= totalPut \ MaxPerPage 
else 
currentpage= totalPut \ MaxPerPage + 1 
end if 
end if 
if currentPage=1 then 
showContent totalput,MaxPerPage
showpage totalput,MaxPerPage,"dlsq.asp"
else 
if (currentPage-1)*MaxPerPage<totalPut then 
rs.move (currentPage-1)*MaxPerPage 
dim bookmark 
bookmark=rs.bookmark 
showContent totalput,MaxPerPage
showpage totalput,MaxPerPage,"dlsq.asp"
else 
currentPage=1 
showContent totalput,MaxPerPage
showpage totalput,MaxPerPage,"dlsq.asp"
end if 
end if 
rs.close 
end if 
set rs=nothing
sub showContent (totalput,MaxPerPage)
%>
<Form name="Form1" method="POST" action="dlsq.asp"><CENTER> 
  <TABLE width="650" border="1" cellpadding="4" cellspacing="0" bordercolor="#111111" bordercolorlight="#CAE6FF" bordercolordark="#CAE6FF" bgcolor="efefef" style="border-collapse: collapse">
    <TR height=25 bgcolor="#cccccc"> 
      <TD width="38" align="center" bgcolor="#E6F3FF"><font color="#Ff6600"><b>ID号</b></font></td>
      <TD width="138" align="center" bgcolor="#E6F3FF"><b><font color="#Ff6600">公司(自然人)名称</font></b></TD>
      <TD width="95" align="center" bgcolor="#E6F3FF"><b><font color="#Ff6600">合作地区</font></b></TD>
      <TD width="96" align="center" bgcolor="#E6F3FF"><b><font color="#Ff6600">所属行业</font></b></TD>
      <TD width="86" align="center" bgcolor="#E6F3FF"><b><font color="#Ff6600">公司类型</font></b></TD>
      <TD width="63" align="center" bgcolor="#E6F3FF"><font color="#Ff6600"><b>发布日期</b></font></TD>
      <TD width="44" align="center" bgcolor="#E6F3FF"> <input type='submit' value='删除'></td>
    </TR>
    <%do while not rs.eof%>
    <TR height="20" bgcolor="#ffffff"> 
      <TD align="center"><font face="Arial"><b><%=rs("id")%></b></font></td>
      <TD align="center"><a href=javascript:view('view_dlsq.asp?id=<%=rs("id")%>')><%=rs("cpyname")%></a></td>
      <%
										 select case rs("sf")
										 		case "01" 
													sf1="安徽省"
												case "02"
													sf1="北京市"
												case "03" 
													sf1="重庆市"
												case "04" 
													sf1="福建省"
												case "05" 
													sf1="甘肃省"
												case "06" 
													sf1="广东省"
												case "07" 
													sf1="广西壮族自治区"
												case "08" 
													sf1="贵州省"
												case "09" 
													sf1="海南省"
												case "10" 
													sf1="河北省"
												case "11" 
													sf1="河南省"
												case "12" 
													sf1="黑龙江省"
												case "13" 
													sf1="浙江省"
												case "14" 
													sf1="湖北省"
												case "15" 
													sf1="湖南省"
												case "16" 
													sf1="内蒙古自治区"
												case "17" 
													sf1="江苏省"
												case "18" 
													sf1="江西省"											
												case "19" 
													sf1="吉林省"
												case "20" 
													sf1="辽宁省"
												case "21" 
													sf1="宁夏自治区"
													case "22" 
													sf1="青海省"
												case "23" 
													sf1="山西省"
												case "24" 
													sf1="陕西省"
												case "25" 
													sf1="山东省"
												case "26" 
													sf1="上海市"
												case "27"
													sf1="四川省"
												case "28"
													sf1="天津市"
												case "29"
												 	sf1="西藏自治区"
												case "30" 
													sf1="新疆自治区"
												case "31" 
													sf1="云南省"
												case "32" 
													sf1="香港特别行政区"
												case "33" 
													sf1="澳门特别行政区"
												case "34" 
													sf1="台湾省"
												case "35" 
													sf1="其它国家"
											end select
									%>
      <TD align="center"><%=sf1%><%=rs("city")%></td>
      <%
										 select case rs("cpyart")
                                                case "1"
													cpyart1="农林牧渔"
                                                case "2"
													cpyart1="服装、服饰"
                                                case "3"
													cpyart1="安全、防护"
                                                case "4"
													cpyart1="食品、饮料"
                                                case "5"
													cpyart1="电子电工"
                                                case "6"
													cpyart1="印刷、出版"
                                                case "7"
													cpyart1="纺织"
                                                case "8"
													cpyart1="环保"
                                                case "9"
													cpyart1="玩具"
                                                case "10"
													cpyart1="能源"
                                                case "11"
													cpyart1="建材、房地产"
                                               	case "12"
													cpyart1="通讯"
                                               	case "13"
													cpyart1="交通运输"
                                                case "14"
													cpyart1="工业用品"
                                                case "15"
													cpyart1="商业服务"
                                                case "16"
													cpyart1="家居用品"
                                                case "17"
													cpyart1="化工"
                                                case "18"
													cpyart1="包装、纸"
                                                case "19"
													cpyart1="家用电器"
                                                case "20"
													cpyart1="医药、保养"
                                                case "21"
													cpyart1="汽车摩托及配件"
                                                case "22"
													cpyart1="电脑、软件"
                                                case "23"
													cpyart1="礼品、工艺品"
                                                case "24"
													cpyart1="库存积压产品"
                                                case "25"
													cpyart1="运动、休闲"
                                                case "26"
													cpyart1="冶金矿产"
                                                case "27"
													cpyart1="办公、文教"
											end select
									%>
      <TD align="center"><%=cpyart1%></td>
      <%
			 select case rs("cpytype")
					case "0" 
							cpytype1="上市公司"
					case "1"
							cpytype1="大型企业"
					case "2" 
							cpytype1="中小企业"
					case "3"
							cpytype1="非企业机构"
					case "4" 
							cpytype1="自然人"
					case "5" 
							cpytype1="其它"
			end select
	  %>
      <TD align="center"><%=cpytype1%></td>
      <TD align="center"><font face="Arial"><%=rs("dateandtime")%></font></TD>
      <TD align="center"> <input type='checkbox' name='selAnnounce' value='<%=cstr(rs("id"))%>'></td>
    </TR>
    <% i=i+1
if i>=MaxPerPage then exit do
rs.movenext
loop
%>
  </TABLE>
</CENTER>
<div align="center">
  <%
end sub
function showpage(totalnumber,maxperpage,filename) 
dim n 
if totalnumber mod maxperpage=0 then 
n= totalnumber \ maxperpage 
else 
n= totalnumber \ maxperpage+1 
end if 
if CurrentPage<2 then 
response.write "<table border=0 width=600 cellspacing=0 cellpadding=0>" 
response.write "<tr height=40>"
response.write "<td align=left>"
response.write "共<font color=#ff6600><b>"&n&"</b></font>页&nbsp;第<font color=#ff6600><b>"&CurrentPage&"</b></font>页&nbsp;共检索到<font color=#ff6600><b>"&totalnumber&"</b></font>条相关信息</td>" 
response.write "<td align=right>"
response.write "【最前页】【上一页】" 
else 
response.write "<table border=0 width=600 cellspacing=0 cellpadding=0>"
response.write "<tr height=40>"
response.write "<td align=left>"
response.write "共<font color=#ff6600><b>"&n&"</b></font>页&nbsp;第<font color=#ff6600><b>"&CurrentPage&"</b></font>页&nbsp;共检索到<font color=#ff6600><b>"&totalnumber&"</b></font>条相关信息</td>" 
response.write "<td align=right>"
response.write "【<a href="&filename&"?page=1&search="&search&"&txtitle="&request("txtitle")&">最前页</a>】" 
response.write "【<a href="&filename&"?page="&CurrentPage-1&"&search="&search&"&txtitle="&request("txtitle")&">上一页</a>】&nbsp;" 
end if 
if n-currentpage<1 then 
response.write "【下一页】【最后页】" 
else 
response.write "【<a href="&filename&"?page="&(CurrentPage+1)&"&search="&search&"&txtitle="&request("txtitle")&">" 
response.write "下一页</a>】【<a href="&filename&"?page="&n&"&search="&search&"&txtitle="&request("txtitle")&">最后页</a>】" 
end if 
response.write "</td>"
response.write "</tr>"
response.write "</table>"
response.write "</form>" 
end function
sub deleteannounce(id)
dim rs,sql
set rs=server.createobject("adodb.recordset")
sql="delete from dlsq where id="&cstr(id)
conn.execute sql
if err.Number<>0 then
err.clear
response.write "删 除 失 败 !<br>"
end if
End sub
%>
</div>

⌨️ 快捷键说明

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