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

📄 lendlist.asp

📁 财务管理系统 报账等基本功能实现 有完整的实现
💻 ASP
字号:
<!--#include file="../../Conndb.asp"-->
<!--#include file="../isAdmin.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>资料借阅管理</title>
<link href="../../style.css" rel="stylesheet">
<script language="javascript">
function newView(url) {
  var oth="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left=200,top=200";
  oth = oth+",width=550,height=250";
  var newView=window.open(url,"newView",oth);
  newView.focus();
  return false;
}
function newView1(url) {
  var oth="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left=200,top=200";
  oth = oth+",width=200,height=100";
  var newView1=window.open(url,"newView1",oth);
  newView1.focus();
  return false;
}
</script>
</head>
<body link="#000080" vlink="#080080">
<form id="form1" name="form1" method="POST">

<p align="center"><font color="#000080"><b><font style="font-size: 12pt">资料借阅管理</font></b></font></p> 
<table align=center border="1" cellspacing="0" width="100%" bordercolorlight="#000080" bordercolordark="#FFFFFF">
  <tr>
   <td align="center" bgcolor="#C1E0FF"><strong>资料编号</strong></td>
   <td align="center" bgcolor="#C1E0FF"><strong>资料名称</strong></td>
   <td align="center" bgcolor="#C1E0FF"><strong>分类名称</strong></td>
   <td align="center" bgcolor="#C1E0FF"><strong>借阅数量</strong></td>
   <td align="center" bgcolor="#C1E0FF"><strong>借阅日期</strong></td>
   <td align="center" bgcolor="#C1E0FF"><strong>借阅人</strong></td>
   <td align="center" bgcolor="#C1E0FF"><strong>状态</strong></td>
   <td align="center" bgcolor="#C1E0FF"><strong>操作</strong></td>
  </tr>
<%
  Dim rs
  Set rs = Server.CreateObject("ADODB.RecordSet")
  '读取数据到记录集rs中
  sql = "SELECT l.*,i.*,t.TypeName,e.EmpName," _
     + "(CASE l.Flag WHEN 0 THEN '借阅' WHEN 1 THEN '借阅确认' WHEN 2 THEN '归还' WHEN 3 THEN '归还确认' END) AS st" _
     + " FROM InfoLend l,Information i,Types t,Employees e" _
     + " WHERE l.InfoNo=i.InfoNo AND i.TypeId=t.TypeId AND l.EmpId=e.EmpId"
  rs.Open sql,conn,1,1
  '在表格中显示记录
  If rs.Eof Then
    Response.Write "<tr><td colspan=8 align=center>目前还没有记录。</td></tr></table>"
  Else
    Do While Not rs.EOF
 %>
  <tr>
    <td align="center"><%=rs("InfoNo")%></td>
	<td align="left"><%=rs("InfoName")%>&nbsp;</td>
	<td align="center"><%=rs("TypeName")%>&nbsp;</td>
	<td align="right"><%=rs("LendCount")%>&nbsp;</td>
    <td align="center"><%=rs("LendDate")%>&nbsp;</td>
    <td align="center"><%=rs("EmpName")%>&nbsp;</td>
    <td align="center"><%=rs("st")%>&nbsp;</td>
    <td align="center">
<%If isAdmin=1 Then
    If rs("Flag")=0 Then%>
      <a href="LendEdit.asp?action=edit&lid=<%=rs("LendId")%>" onClick="return newView(this.href)">修改</a>
      <a href="LendDelt.asp?lid=<%=rs("LendId")%>" onClick="if(confirm('确定要删除记录吗?')){return newView1(this.href);}return false;">删除</a>
      <a href="LendCheck.asp?lid=<%=rs("LendId")%>&flag=1" onClick="if(confirm('确定要借阅资料吗?')){return newView1(this.href);}return false;">确认</a>
  <%ElseIf rs("Flag")=1 Then%>
      <a href="LendCheck.asp?lid=<%=rs("LendId")%>&flag=2" onClick="if(confirm('确定要归还资料吗?')){return newView1(this.href);}return false;">归还</a>
  <%Else%>
      <a href="LendDelt.asp?lid=<%=rs("LendId")%>" onClick="if(confirm('确定要删除记录吗?')){return newView1(this.href);}return false;">删除</a>
  <%End If
  End If
%>&nbsp;</td>
  </tr>
  <%
      rs.MoveNext()
    Loop
    rs.Close()
  %>
</table>
<%End If%>
		
		<p align="center">
		<input type="button" value="新建借阅信息" onclick="newView('LendEdit.asp?action=add')" name=add></p>
</form>
</body>
</html>

⌨️ 快捷键说明

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