qiye_del.asp
来自「房地产管理系统 vb写的,很不错!!!!!!!!!!!」· ASP 代码 · 共 202 行
ASP
202 行
<!--#include file="../inc/conn.asp"--><%'┌─ 风云ASP在线 ────────────────────────┐'│ │'│ 作者:赵振波. http://www.fyasp.com │'│ │'│ Q Q:176189168 │'│ │'│ Email:fy96@163.com │'│ │'│ 程序定做,系统开发,网站制作,提供高质量的网络产品、技术和服务!│'│ │'│ │'└─────────────────── http://www.fyasp.com ──┘%>
<%
if instr(session("manager"),"manager")=0 then
response.redirect "manage.asp"
response.end
end if
%>
<html>
<!-- DW6 -->
<head>
<title>后台管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../ht.css" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>
<body bgcolor="#666666" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (index.psd) -->
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="../images/ht_01.gif" width=778 height=62 usemap="#Map" border="0"></td>
</tr>
</table>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" background="../images/htbj.gif">
<tr>
<td valign="top" align="left" width="145" height="395">
<!--#include file="List.asp" -->
</td>
<td height="395" align="center" valign="top"> <br> <table width="621" border="0" cellspacing="0" cellpadding="0" height="527">
<tr>
<td height="527" align="center" valign="top"> <table width="606" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><img src="../images/httable_01.gif" width=632 height=17></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td background="../images/httable_02.gif" height="15" align="center" valign="top">
<table width="315" border="0" cellspacing="0" cellpadding="0" height="26">
<tr>
<td width="30%"> <div align="center"><a href="qiye_add.asp">[企业添加]</a></div></td>
<td width="30%"> <div align="center"><a href="qiye_del.asp">[企业删除、修改]</a></div></td>
</tr>
</table>
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <hr noshade size="1"> </td>
</tr>
</table></td>
<td background="../images/httable_02.gif" align="center" valign="top"> </td>
<td background="../images/httable_02.gif" align="center" valign="top"> </td>
</tr>
<tr>
<td background="../images/httable_02.gif" height="17" align="center" valign="top"><form method="post" action="qiye_del_ok.asp" name="form1">
<div align="center">
<center>
<table border="0" width="85%" cellspacing="1" cellpadding="0">
<tr>
<td width="6%" height="29" align="center" bgcolor="#666666"> </td>
<td width="17%" align="center" bgcolor="#666666"><font color="#FFCC00">企业类别</font></td>
<td width="66%" align="center" bgcolor="#666666"><font color="#FFCC00">公司名称</font></td>
<td width="11%" align="center" bgcolor="#666666"><font color="#FFCC00">修改</font></td>
</tr>
<%
dim curpage
if request.querystring("curpage")="" then
curpage=1
else
curpage=request.querystring("curpage")
end if
const numperpage=15
opendataconn
set rs=server.createobject("adodb.recordset")
sql="select * from qiyeinfo order by place"
rs.open sql,conn,1,1
if rs.eof then
response.write "<table><tr><td><br></br><center>现在还没有记录!</center><br></br></td></tr></table>"
response.end
end if
if not rs.eof then
rs.pagesize=numperpage
dim totalpages
totalpages=rs.pagecount
rs.absolutepage=curpage
end if
dim count
count=0
do while not rs.eof and count<numperpage
%>
<tr>
<td width="6%" align="center" bgcolor="#868686"> <input type="checkbox" name="id" value="<%=rs("id")%>" class="mul"></td>
<td width="17%" align="center" bgcolor="#868686"><%=rs("my_type")%></td>
<td width="66%" align="center" bgcolor="#868686"><%if trim(rs("yesno"))=1 then%> <font color="#FFCC00">★</font>
<%end if%> <%=rs("company")%> </td>
<td width="11%" align="center" bgcolor="#868686"><a href="qiye_modi.asp?id=<%=trim(rs("id"))%>">[修改]</a> </td>
</tr>
<%
rs.movenext
count=count+1
loop
rs.close
set rs=nothing
closedataconn
%>
<tr>
<td colspan="4" bgcolor="#868686"> <input type="checkbox" name="chkall" value="on" onclick="CheckAll()" class="mul">
选取以上全部记录</td>
</tr>
<tr>
<td align="right" colspan="4"> <p align="left">
<% if cint(curpage)<>1 then %>
<a href="qiye_del.asp?curpage=1">首页 </a>
<% else %>
首页
<% end if %>
<% if cint(curpage)>1 then %>
<a href="qiye_del.asp?curpage=<%=curpage-1%>">上一页 </a>
<% else %>
上一页
<% end if %>
<% if cint(curpage)<>cint(totalpages) then %>
<a href="qiye_del.asp?curpage=<%=curpage+1%>"> 下一页
<% else %>
下一页
<% end if %>
<% if cint(curpage)<>cint(totalpages) then %>
</a><a href="qiye_del.asp?curpage=<%=totalpages%>"> 末页
<% else %>
末页
<% end if %>
</a> </td>
</tr>
<tr>
<td colspan="4" align="center" height="50"> <input type="submit" value="删除企业" name="B1">
<input type="reset" value="全部重写" name="B2">
</td>
</tr>
</table>
</center>
</div>
</form>
<td background="../images/httable_02.gif" align="center" valign="top"> </td>
<td background="../images/httable_02.gif" align="center" valign="top"> </td>
</tr>
<tr>
<td background="../images/httable_02.gif" height="250" align="center" valign="top">
<div align="center">
<center>
</center>
</div></td>
<td background="../images/httable_02.gif" align="center" valign="top"> </td>
<td background="../images/httable_02.gif" align="center" valign="top"> </td>
</tr>
<tr>
<td><img src="../images/httable_04.gif" width=606 height=19></td>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="778" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../images/ht_04.gif" width="778" height="4"></td>
</tr>
</table>
<!-- End ImageReady Slices -->
<map name="Map">
<area shape="rect" coords="630,36,775,56" href="http://www.fyasp.com" target="_blank">
</map>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?