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

📄 accsident1.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 
  %>
  <%
  set rs=server.CreateObject("adodb.recordset")
   sql="select * from accsident1 order by 编号 asc"
   rs.open sql,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=20
   total=rs.recordcount
   mypagesize=rs.pagesize
   if rs.bof or rs.eof then 
   response.write"no inofrmation"
   response.end
   end if
    If total mod rs.pagesize=0 then 
   num=total\rs.pagesize 
   Else 
   num=total\rs.pagesize+1 
   end if 
   rs.absolutepage=page 
   %>
<html>
<head>
<link href="../appmain.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>受伤人员信息</title>
</head>

<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="FORMTABLE">
  <tr bgcolor="#339999"> 
    <td colspan="11"> <div align="center">受伤人员信息</div></td>
  </tr>
  <tr> 
    <td width="6%"><div align="center">编号</div></td>
    <td width="10%"><div align="center">姓名</div></td>
    <td width="4%"><div align="center">性别</div></td>
    <td width="6%"><div align="center">年龄</div></td>
    <td width="7%"><div align="center">职业</div></td>
    <td width="21%"><div align="center">住址</div></td>
    <td width="6%"><div align="center">伤势</div></td>
    <td width="11%"><div align="center">家属姓名</div></td>
    <td width="18%"><div align="center">结案时间</div></td>
    <td colspan="2"><div align="center">操作</div></td>
  </tr>
  <% dim i 
  i=1
  do while not rs.eof and mypagesize>0 %>
  <tr> 
    <td height="23">
<div align="center"><%=rs("编号")  %></div></td>
    <td><div align="center"><%=rs("姓名")  %></div></td>
    <td><div align="center"><%=rs("性别")  %></div></td>
    <td><div align="center"><%=rs("年龄")  %></div></td>
    <td><div align="center"><%=rs("职业")  %></div></td>
    <td><div align="center"><%=rs("住址")  %></div></td>
    <td><div align="center"><%=rs("伤势")  %></div></td>
    <td><div align="center"><%=rs("家属姓名")  %></div></td>
    <td><div align="center"><%=rs("结案时间")  %></div></td>
    <td width="5%"><div align="center"><a href="#" onClick="window.open('../modify/accsident_modify.asp?Id=<%=rs("id")%>','','scrollbars=no,resizable=no,width=290,height=300,menubar=no,top=3,left=200')">修改</a></div></td>
    <td width="6%"><div align="center"><a href="../del/del_accsident1.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" >
  <tr> 
    <td height="20"><div align="center"> 
        <p align="left" >页数:&nbsp; 
          <%
if page>1 then%>
          <a href='accsident1.asp?page=<%=page-1%>'>上一页</a> 
          <%
end if
%>
          <%
 if rs.pagecount <= 8 then
for j=1 to rs.pagecount
response.write "[<a href='accsident1.asp?page="&j&"'>"&j&"</a>]"'--------------暂时先用这吧
next
else
for j=1 to 8
response.write "[<a href='accsident1.asp?page="&j&"'>"&j&"</a>]&nbsp;"
next
response.write  "[<a href='accsident1.asp?page="&rs.pagecount&"' title='最后一页'>末页</a>]"
end if

%>
          <%
if page<rs.pagecount then%>
          <a href='accsident1.asp?page=<%=page+1%>'>下一页</a> 
          <%
end if
%>
          总记录数:<%=total%>条 <%=rs.pagesize%>条/每页 共<%=num%>页</div></td>
    <td><div align="right"> 
        <%
		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>"
%>
        <% rs.close
   set rs=nothing
   conn.close
   set conn=nothing
   %>
      </div></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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