2018-06-03 22:26:41 +08:00

26 lines
1.0 KiB
Plaintext

<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/IncludeBegin.jsp"%><%
String sSerialNo = CurPage.getParameter("SerialNo");
String sFullPath = Sqlca.getString("select FullPath from EDOC_PRINT where SerialNo='"+sSerialNo+"'");
String sContentType = Sqlca.getString("select ContentType from EDOC_PRINT where SerialNo='"+sSerialNo+"'");
String sViewType="view"; //"view" or "save"
if(sViewType.equals("view")){
%>
<body>
<iframe name="MyAtt" src="<%=sWebRootPath%>/Blank.jsp?TextToShow=ÕýÔÚÏÂÔØ¸½¼þ£¬ÇëÉÔºò..." width=100% height=100% frameborder=0 hspace=0 vspace=0 marginwidth=0 marginheight=0 scrolling="no"> </iframe>
</body>
<form name=form1 method=post action="<%=sWebRootPath%>/servlet/view/file?CompClientID=<%=sCompClientID%>">
<div style="display:none">
<input name=filename value="<%=sFullPath%>">
<input name=contenttype value="<%=sContentType%>">
<input name=viewtype value="view">
</div>
</form>
<script type="text/javascript">
form1.submit();
</script>
<%
}
%>
<%@ include file="/IncludeEnd.jsp"%>