workflow_form.jsp

来自「java开发的办公系统 1.系统管理 (地区管理,部门管理,菜单管理,用户管理」· JSP 代码 · 共 105 行

JSP
105
字号
<%@ include file="../../include/configuration.jsp"%>
<%@ include file="../../include/authorizemanager.jsp"%>
<%@ page contentType="text/html; charset=gb2312" %>
<html>
<head><title></title>
<link href="../../css/css.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">

<!-- web page script -->

<script language="javascript">
 var bDocOpen
 function OpenWebDoc(){
 	 temple_file=window.opener.document.all("temple_file");//父窗口表单路径
  	 if(temple_file.value=="")
	 {
		document.all("oframe").CreateNew("Word.Document");//创建一个word 文档
	 }
	 else//如果已经存在打开word 文档
	 {
	 	filepath="<%=Form_Url_Source%>/fileupload/workflow/"+temple_file.value;
	 	document.all("oframe").open(filepath,true);
		
	 }
	 bDocOpen = true;
}


 function WinClose()
 {
  	close();
 }

 function SaveWeb()
 {
	temple_file=window.opener.document.all("temple_file");
	if (!bDocOpen)
	{
		alert("没有打开文档!");
	}
	else
	{
		filename="<%=DateUtils.getRadon_num()%>.doc";
		url="<%=Form_Url_Destination%>/workflow/"+filename;
		if(temple_file.value!="")
		{
			url="<%=Form_Url_Destination%>/workflow/"+temple_file.value;
		}
		document.all("oframe").save(url,true);//保存到服务器
		if(temple_file.value=="")//如果表单文件存在不产生随机数文件
		{
			temple_file.value=filename;
		}
		close();
	}
  }
</script>

<!--titlebar start-->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td style="padding-left:20px; height:25px;"><input name="Button" type="button" class="button" onClick="SaveWeb()" value="保存"> <input name="Button" type="button" class="button" onClick="WinClose()" value="关闭"></td>
  </tr>
</table>
<!--titlebar end-->

<!--main body start-->

<table width="100%" height="95%" cellpadding="0" cellspacing="0" border="0">
<tr>
 <td valign="top" width="10"></td>
 <td valign="top">

<!--right-side start-->

  <table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
    <tr>
     <td valign="top"></td>
     <td valign="top" colspan="2">
       <object classid="clsid:00460182-9E5E-11d5-B7C8-B8269041DD57" id="oframe" width="100%" height="100%">
         <param name="BorderStyle" value="1">
         <param name="TitlebarColor" value="52479">
         <param name="TitlebarTextColor" value="0">
         <param name="Menubar" value="0"> 
		 <param name="Titlebar" value="0"> 
       </object>     </td>
    </tr>
    <tr>
     <td valign="top" height="15"></td>
     <td valign="bottom" class="fontSize1" colspan="2"></td>
    </tr>
  </table>

<!--right-side end--> </td>
 <td valign="top" width="10"></td>
</tr>
</table>
<script language="javascript">
	OpenWebDoc();
</script>
<!--main body end-->

</body>
</html>

⌨️ 快捷键说明

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