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

📄 yinyun.asp

📁 20041230162250801409: 浙江省丽水市公铁联运有限公司OA系统(物流) 开发语言:PHP/ASP/PERL 本系统包括各个部门的管理
💻 ASP
字号:
<!--#include file="conn.asp" -->
<%
if session("pwd")<>"pass" then 
 response.Redirect "../hcy/login.asp"
  response.end 
 end if 
  %>

<%
exec="select * from yinyun order by 编号 asc"
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,3,3 
if not isnumeric(request("page")) or isempty(request("page")) then 
   page=1
   else
   page=int(abs(request("page")))
   end if 
   rs.pagesize=25
   total=rs.recordcount
   mypagesize=rs.pagesize
  if rs.bof and rs.eof then 
   response.write "<center>当前还没有任何情况登记</center>" '先不使用这种方式
   response.end 
  end if 
rs.absolutepage=page
 if total mod rs.pagesize=0 then 
    num=total\rs.pagesize
	else
	num=total\rs.pagesize+1
	end if 
 %> 

<html>
<head>
<link href="../appmain.css" rel="stylesheet" type="text/css">
<link href="../main.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>营运车辆基本简况</title>
<style type="text/css">
<!--
body {
	background-color: #e1f4ee;
}
.style2 {color: #FF0000}
-->
</style>

</head>

<body>
<table width="500" align="center" class="TOOLBARTABLE">
  <tr>
    <td><div align="center" class="3dfont"><font color="#000000" size="6" face="隶书">营运车辆基本简况</font></div></td>
  </tr>
</table>
<table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolordark="#FFFFFF" bordercolorlight="#000000">
  <tr class="tabback"> 
    <td width="45" height="15"> <div align="center"><font color="#FF0000">编号</font></div></td>
    <td width="59"> <div align="center"><font color="#FF0000">经营者</font></div></td>
    <td width="51"> <div align="center"><font color="#FF0000">车牌号</font></div></td>
    <td width="83"> <div align="center"><font color="#FF0000">车型</font></div></td>
    <td width="44"> <div align="center"><font color="#FF0000">吨位</font></div></td>
    <td width="86"> <div align="center"><font color="#FF0000">联系号码</font></div></td>
    <td width="130"> <div align="center"><font color="#FF0000">合同期限</font></div></td>
    <td width="110"> <div align="center"><font color="#FF0000">保险期限</font></div></td>
    <td width="64"> <div align="center"><font color="#FF0000">登记时间</font></div></td>
    <td width="30"> <div align="center">修改</div></td>
    <td width="43"><div align="center">删除</div></td>
  </tr>
  <% dim i 
i=1
  do while not rs.eof and mypagesize>0  %>
  <tr> 
    <td height="20"> <div align="center"><font color="#6600FF"><a href=javascript:winopen('../yinyun/yinyun1.asp?id=<%=rs("id")%>')><%=rs("编号") %></a></font></div></td>
    <td> <div align="center"><font color="#6600FF"><a href=javascript:winopen('yinyun1.asp?id=<%=rs("id")%>')><%=rs("经营者")%></a></font></div></td>
    <td> <div align="center"><font color="#6600FF"><%=rs("车牌号") %></font></div></td>
    <td> <div align="center"><font color="#6600FF"><%= rs("车型") %></font></div></td>
    <td> <div align="center"><font color="#6600FF"><%=rs("吨位")%></font></div></td>
    <td> <div align="center"><font color="#6600FF"><%=rs("联系号码") %></font></div></td>
    <td> <div align="center"><font color="#6600FF"><%=rs("合同期限") %>--<%=rs("合同期限1") %></font></div></td>
    <td> <div align="center"><font color="#6600FF"><%=rs("保险期限") %></font></div></td>
    <td> <div align="center"><font color="#6600FF"><%=rs("添加时间") %></font></div></td>
    <td> <div align="center"><a href="../modify/yinyunmodfiy.asp?ID=<%=rs("ID")%>">修改</a></div></td>
    <td><div align="center"><a href="../del/yinyundel.asp?ID=<%=rs("ID")%>" onClick="return confirm('你真的要删除此信息吗!')">删除</a></div></td>
  </tr>
  <% mypagesize=mypagesize-1
i=i+1
rs.movenext
loop
		  %>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#e1f4ee">
  <tr> 
    <td height="20" bgcolor="#e1f4ee"> 
      <div align="center"> 
        <p align="center" class="3dfont">共<%=num%>页 每页<%=rs.pagesize%>条信息 页数:&nbsp; 
          <%
if page>1 then%>
          <a href='yinyun.asp?page=<%=page-1%>'>上一页</a> 
          <%
end if
%>
          <%
if rs.pagecount <= 8 then
for j=1 to rs.pagecount
response.write "[<a href='yinyun.asp?page="&j&"'>"&j&"</a>]"
next
else
for j=1 to 8
response.write "[<a href='yinyun.asp?page="&j&"'>"&j&"</a>]&nbsp;"
next
response.write  "[<a href='yinyun.asp?page="&rs.pagecount&"' title='最后一页'>&gt;&gt;</a>]"
end if

%>
          <%
if page<rs.pagecount then%>
          <a href='yinyun.asp?page=<%=page+1%>'>下一页</a> 
          <%
end if
%>
          总记录数:<%=total%>条 </div></td>
    <td> <div align="right" class="style2"> 
      
        <%
		response.write"<form>"
response.write "<input type='text' name='page' size=4 maxlength=4  value="&page&">&nbsp;"
response.write "<input class=buttonface type='submit'  value='转到'  name='cndok' style='background-color: #e1f0ff'></span>&nbsp;&nbsp;"   
response.write"</form>"
%>
      </div></td>
  </tr>
</table>
</body>
</html>
 <script language="javascript">
function winopen(url)                    
     {                    
        window.open(url,"search","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=790,height=530,top=0,left=0");                    
      }       
</script>

<% rs.close
  set rs=nothing
  conn.close
  set conn=nothing
  %>

⌨️ 快捷键说明

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