📄 borrow_archive_list.jsp
字号:
<%@ page errorPage="/vnex/ErrorPage.jsp" %>
<%@ taglib uri="/vnex.tld" prefix="vnex" %>
<%@ taglib uri="/vnex_archive.tld" prefix="archive" %>
<%
String queryStr = " where borrow_flag=0 ";
String pageName = "/mainctrl/archive/borrowArchiveList?a";
String historyLink = "no";
if(request.getParameter("search") == null)
{
session.removeAttribute("conditionBean");
session.removeAttribute("condition");
}
else
pageName += "&search";
if(request.getParameter("history") != null)
{
queryStr = " where borrow_flag=1 ";
pageName += "&history";
historyLink = "yes";
}
if(session.getAttribute("condition") != null)
{
queryStr += (String)session.getAttribute("condition");
}
%>
<script language="JavaScript" src="/vnex/util/strUtil.js"></script>
<script language=JavaScript>
function deleteThem(form)
{
if(form.borrowIds == null)
{
alert("目前尚未有数据可供删除");
return;
}
if(!isChecked(form.borrowIds))
{
alert("请至少选择一条记录再进行删除");
return;
}
if(confirm("是否删除所选记录?"))
{
form.action="/mainctrl/archive/deleteBorrowArchives";
form.submit();
}
}
function SelectAll(form)
{
for (var i=0;i<form.elements.length;i++)
{
var e = form.elements[i];
if (e.name != 'C1')
e.checked = form.C1.checked;
}
}
function showHistory(form)
{
form.action="/mainctrl/archive/borrowArchiveList?history";
form.submit();
}
</script>
<HTML>
<jsp:include page="/vnex/page/FORM_HEAD.jsp" />
<BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
<script language="JavaScript1.2" src="/vnex/menu/dockmenu_archives.js"></script>
<script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
<DIV align=center>
<form name="form1" method="post">
<TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
<TBODY>
<jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
<TR>
<TD colSpan=3 align="center"><br>
<table width="600" border="1" cellspacing="1" bordercolor="#666666">
<tr>
<td align="center" colspan="2" bgcolor="#FFFFFF">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#666666">
<td><font class="strongw"><a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>>><a href="/mainctrl/archives/main"><font color="#ffffff">档案管理</font></a>>>借阅记录</font>
</td>
</tr>
</table>
<table class=title border="0" cellpadding="2" cellspacing="1" width="600">
<tr>
<td colspan="6" height="30" bgcolor="#fafafa">
<%
if(request.getParameter("history") == null)
{
%>
<input type="button" class="text" name="B1" value="查询" onclick="location='/mainctrl/archive/queryBorrowArchive'">
<input type="button" value="借阅历史记录" name="B253" class="text" onclick="showHistory(this.form)" style="width:85px">
<% }
else
{
%>
<input type="button" value="删除" name="B252" class="text" onclick="deleteThem(this.form)">
<input type="button" value="返回" name="B254" class="text" onclick="location='/mainctrl/archive/borrowArchiveList'">
<% }%>
</td>
</tr>
<tr align="center">
<% if(request.getParameter("history") != null)
{%>
<td width="7%"><strong>选择</strong></td>
<% }%>
<td width="8%"><strong>编号</strong></td>
<td width="14%"><strong>借阅日期</strong></td>
<td width="46%" align="center"><strong>档案标题</strong></td>
<td width="10%"><strong>借阅人</strong></td>
<td width="14%"><strong>归还期限</strong></td>
</tr>
<archive:borrowList queryStr="<%=queryStr%>">
<vnex:items paging="true">
<tr bgcolor="<vnex:itemsColor />" align="center">
<% if(request.getParameter("history") != null)
{%>
<td align="center" width="7%">
<input type="checkbox" name="borrowIds" value="<archive:borrowAttribute attribute="borrow_id" />"></td>
<% }%>
<td width="8%"><a href="/mainctrl/archive/borrowArchiveDetail?borrowId=<archive:borrowAttribute attribute="borrow_id" />&history=<%=historyLink%>"><archive:borrowAttribute attribute="borrow_id" /></a></td>
<td width="14%"><archive:borrowAttribute attribute="borrow_date" /></td>
<td width="46%"><archive:borrowAttribute attribute="archive_title" />
</td>
<td width="10%"><archive:borrowAttribute attribute="borrower" /></td>
<td width="14%"><archive:borrowAttribute attribute="return_date" /></td>
</tr>
</vnex:items>
<% if(request.getParameter("history") != null)
{%>
<tr bgcolor="#e0e0e0">
<td width="7%" align="center">
<input type="checkbox" name="C1" onclick="SelectAll(this.form)">
</td>
<td colspan="5"> 全选</td>
</tr>
<% }%>
<tr>
<td colspan="6" align="left" bgcolor="#fafafa"> <vnex:pagingTag pageName="<%=pageName%>" />
</td>
</tr>
</archive:borrowList>
</table>
</td>
</tr>
</table>
<jsp:include page="/vnex/page/TTOA_HELP.jsp" />
</TD>
</TR>
<jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
</TBODY>
</TABLE>
<BR>
<jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
</form>
</DIV>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -