project_draft_accessory_view.jsp
来自「java jsp教程」· JSP 代码 · 共 130 行
JSP
130 行
<%
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
%>
<%@ page contentType="text/html;charset=GBK" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<html>
<head>
<title>证据查看</title>
<meta http-equiv="Content-Type" content="text/html;charset=GBK">
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/style.css">
<script language="JavaScript" src="<%=request.getContextPath()%>/common/common.js"></script>
<style type="text/css">
<!--
body {
background-image: url("<%=request.getContextPath()%>/images/grid.gif");
}
.inp1 {
border-left-style:none;border-right-style:none;border-top-style:none; background-color:#EEF4FF;
}
.tag1 {
width:73px; position:absolute;
left:33px;
top: 14px;
font-weight:300;
height:15px;
border-bottom-color:#FFFFFF;
font-size:13px;
text-align:center;
cursor:hand;
}
.tag2 {
width:73px; position:absolute;
left:103px;
top: 14px;
font-weight:300;
height:15px;
border-bottom-color:#FFFFFF;
font-size:13px;
text-align:center;
cursor:hand;
}
.tag3 {
width:73px; position:absolute;
left:172px;
top: 14px;
font-weight:300;
height:15px;
border-bottom-color:#FFFFFF;
font-size:13px;
text-align:center;
cursor:hand;
border-color:#6699CC;
border:1
}
-->
</style>
<script language="javascript">
function _viewScript(){
var belongNo='<c:out value="${belongNo}"/>';
window.location = "/cnpc/servlet/ShowScriptInfoServlet?scriptNo="+belongNo + "&isView=true";
}
function _viewItem()
{
var sno = '<c:out value="${belongNo}"/>';
var stype = '<c:out value="${scriptType}"/>';
var url = "<%=request.getContextPath()%>/servlet/ShowScriptItemListServlet?scriptNo=" + sno;
url += "&toJsp=/jsp/project/project_draft_view_detail.jsp&scriptType="+stype;
window.location = url;
}
function download(attachNo){
window.location = "/cnpc/servlet/DownloadAttachServlet?attachNo=" + attachNo;
}
</script>
</head>
<body>
<br>
<c:if test="${scriptType == '1' || scriptType == '2'}" >
<div class="tag1" onclick="_viewScript()" style="background-color:#EEF4FF">审计底稿</div>
<div class="tag2" style="background-color:#EEF4FF" onclick="_viewItem()">审计明细</div>
<div class="tag3" style="background-color:#a6d0f2" >审计证据</div>
</c:if>
<c:if test="${scriptType != '1' && scriptType != '2'}" >
<div class="tag1" onclick="_viewScript()" style="background-color:#EEF4FF ">审计底稿</div>
<div class="tag2" style="background-color: #a6d0f2" onclick="_viewAttach()">审计证据</div>
</c:if>
<table width="90%" border="0" cellspacing="1" cellpadding="2" align="center" bordercolordark="#DFDFFF" bordercolorlight="#003366" bgcolor="#6699CC">
<tr bgcolor="#a6d0f2">
<td align="center"> </td>
<td align="center"><strong>审计证据</strong></td>
</tr>
<tr bgcolor="#EEF4FF">
<td width="17%" bgcolor="#EEF4FF"><div align="center">序号</div></td>
<td width="83%" bgcolor="#EEF4FF"><div align="center"><strong>名称</strong></div></td>
</tr>
<c:forEach var="attach" items="${attachList}" varStatus="status">
<tr bgcolor="#EEF4FF">
<td width="17%" bgcolor="#EEF4FF"><div align="center"><c:out value="${status.count}"/></div></td>
<td width="83%" bgcolor="#EEF4FF"><div align="center">
<a href="#" onClick="download('<c:out value="${attach.attachmentno}"/>')">
<c:out value="${attach.attachmentname}"/>
</a></div></td>
</tr>
</c:forEach>
</table>
<table width="95%" border="0" align="center">
<tr>
<td width="11%"> </td>
<td> </td>
<td width="11%"> </td>
</tr>
<tr>
<td> </td>
<td align="center"><img src="<%=request.getContextPath()%>/images/close.gif" style="cursor:hand "
onClick="window.close()"></td>
<td> </td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?