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

📄 d_index.asp

📁 第一次开发医院管理
💻 ASP
字号:
<!--#include file="conn.asp"-->
<html>
<head>
<title>:::宜兴市人民医院:::</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../image/main.css" type="text/css">
</head>

<body text="#000000" leftmargin="0" topmargin="0" background="bg.gif">
<div align="center"> 
  <table border="0" cellpadding="0" cellspacing="0" width="770">
    <!-- fwtable fwsrc="未命名-1.png" fwbase="head.jpg" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
    <tr> 
      <td><img src="image/spacer.gif" width="770" height="1" border="0" alt=""></td>
      <td><img src="image/spacer.gif" width="1" height="1" border="0" alt=""></td>
    </tr>
    <tr> 
      <td rowspan="2"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="770" height="148">
          <param name=movie value="../image/head-3.swf">
          <param name=quality value=high>
          <embed src="../image/head-3.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="770" height="148">
          </embed> 
        </object></td>
      <td><img src="image/spacer.gif" width="1" height="99" border="0" alt=""></td>
    </tr>
    <tr> 
      <td><img src="image/spacer.gif" width="1" height="49" border="0" alt=""></td>
    </tr>
  </table>
  <table width="770" border="0" cellspacing="0" cellpadding="0" height="184" bgcolor="#cccccc">
    <tr> 
      <td width="152" valign="top" align="center"> 
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
          <!-- fwtable fwsrc="keshi.png" fwbase="keshi.jpg" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
          <tr> 
            <td width="99%"><img src="../image/spacer.gif" width="159" height="1" border="0" alt=""></td>
            <td width="1%"><img src="../image/spacer.gif" width="1" height="1" border="0" alt=""></td>
          </tr>
          <tr> 
            <td width="99%"><img name="keshi_r1_c1" src="../image/keshi_r1_c1-2.jpg" width="159" height="30" border="0" alt=""></td>
            <td width="1%"><img src="../image/spacer.gif" width="1" height="30" border="0" alt=""></td>
          </tr>
          <tr> 
            <td background="../image/keshi_bg.jpg" align="center" width="99%" height="420"> 
              <iframe width="90%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" align="top" height="95%" src="depart_index.asp"></iframe> 
            </td>
            <td width="1%" height="420"><img src="../image/spacer.gif" width="1" height="406" border="0" alt=""></td>
          </tr>
          <tr> 
            <td width="99%"><img name="keshi_r3_c1" src="../image/keshi_r3_c1.jpg" width="159" height="21" border="0" alt=""></td>
            <td width="1%"><img src="../image/spacer.gif" width="1" height="21" border="0" alt=""></td>
          </tr>
        </table>
      </td>
      <td width="618" align="center" valign="top">
        <table border="0" cellpadding="0" cellspacing="0" width="600">
          <tr> 
            <td><img src="images/spacer.gif" width="19" height="1" border="0"></td>
            <td><img src="images/spacer.gif" width="105" height="1" border="0"></td>
            <td><img src="images/spacer.gif" width="302" height="1" border="0"></td>
            <td><img src="images/spacer.gif" width="151" height="1" border="0"></td>
            <td><img src="images/spacer.gif" width="23" height="1" border="0"></td>
            <td><img src="images/spacer.gif" width="1" height="1" border="0"></td>
          </tr>
          <tr> 
            <td colspan="2"><img name="n1111111111_r1_c1" src="images/1111111111_r1_c1.gif" width="124" height="34" border="0"></td>
            <td><img name="n1111111111_r1_c3" src="images/1111111111_r1_c3.gif" width="302" height="34" border="0"></td>
            <td colspan="2"><img name="n1111111111_r1_c4" src="images/1111111111_r1_c4.gif" width="174" height="34" border="0"></td>
            <td><img src="images/spacer.gif" width="1" height="34" border="0"></td>
          </tr>
          <tr> 
            <td background="images/1111111111_r2_c1.gif">&nbsp;</td>
            <td colspan="3" bgcolor="#FFFFFF" align="center" valign="top"> <br>
              <table width="450" border="0" align="center" cellpadding="2" cellspacing="0" >
                <%
dim pgsz,total,pageno,ScrollAction
dim pagebegin,pagend,position,rowcount
dim times,topic
PgSz=15
dim totalPut   
dim CurrentPage, TotalPages
	if not isempty(request("page")) then
      		currentPage=cint(request("page"))
   	else
      		currentPage=1
   	end if	
	set rs= server.createobject ("adodb.recordset")
	sql = " select * from doctor order by id desc"
	rs.open sql,conn,1,3
	RS.PageSize = Cint(PgSz)
Total=INT(RS.recordcount / PgSz * -1)*-1 ''计算可显示页面的总数
PageNo=Request("pageno")
if PageNo="" Then
PageNo=1
else
PageNo=PageNo+1
PageNo=PageNo-1
end if
ScrollAction=Request("ScrollAction")
if ScrollAction="上一页" Then
PageNo=PageNo-1
end if 
if ScrollAction="下一页" Then
PageNo=PageNo+1
end if
if PageNo<1 Then 
PageNo=1
end if
RS.AbsolutePage=PageNo
position=RS.PageSize*PageNo
pagebegin=position-RS.PageSize+1
if position < RS.RecordCount then
pagend=position
else 
pagend= RS.RecordCount
end if 
RowCount = RS.PageSize
if rs.eof and rs.bof then
Response.Write("暂时无数据记录")
Response.end()
end if
dim i
 i=0
Do While Not RS.EOF and rowcount > 0   

if i=0 then
		%>
                <tr > 
                  <td width="150" height="50"  align="center"> 
                    <% call grid() %>
                  </td>
                  <% 
		  i=i+1
		  elseif i=2 then%>
                  <td width="150" height="50" align="center"> 
                    <% call grid() %>
                  </td>
                </tr>
                <% i=0
		else %>
                <td width="150" height="50" align="center"> 
                  <% call grid() %>
                </td>
                <%
		 i=i+1
		 end if
RowCount =RowCount -1
rs.movenext
loop %>
                <tr> 
                  <td height="25" align="center" valign="middle" colspan="3"> 
                    <form method="post" action="D_index.asp">
                      <input type="HIDDEN" name="pageno" value="<%=PageNo %>">
                      <% if PageNo > 1 Then 
response.write "<input type=submit name=ScrollAction value=上一页 style=background-color:ffffff;color:6382de;border: 1 double>"
end if 
if RowCount = 0 and PageNo <>Total then 
response.write "<input type=submit name=ScrollAction value=下一页 style=background-color:ffffff;color:6382de;border: 1 double>"
end if %>
                    </form>
                  </td>
                </tr>
              </table>
              <% rs.close
set rs=nothing
closedatabase %>
            </td>
            <td background="images/1111111111_r2_c5.gif">&nbsp;</td>
            <td><img src="images/spacer.gif" width="1" height="354" border="0"></td>
          </tr>
          <tr> 
            <td colspan="4"><img name="n1111111111_r3_c1" src="images/1111111111_r3_c1.gif" width="577" height="30" border="0"></td>
            <td><img name="n1111111111_r3_c5" src="images/1111111111_r3_c5.gif" width="23" height="30" border="0"></td>
            <td><img src="images/spacer.gif" width="1" height="30" border="0"></td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  <table width="770" border="0" cellspacing="0" cellpadding="0" height="69">
    <tr>
      <td background="../image/bottom_bg.gif">&nbsp;</td>
    </tr>
  </table>
</div>
</body>
</html>
<%sub grid()%>
<table width="100" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td align="center"><a href="detaild.asp?id=<%= rs("id") %>"><img src="<%= rs("pic") %>" border="0" width="90"></a></td>
  </tr>
  <tr>
    <td align="center"><%= rs("name") %></td>
  </tr>
</table>
<%end sub%>

⌨️ 快捷键说明

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