WebOffice 개발 문서

4075 단어 PHPF#
제품 사이트:http://www.dianju.cn/p/weboffice/
제품 포럼:http://www.dianju.cn/forum/viewforum.php?f=2
자료 다운로드:http://www.dianju.cn/forum/viewtopic.php?f=2&t=2

<%@ page language="java"contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/app.tld" prefix="app"%>
<html>
<head>
<title>WebOffice</title>
<link href="<app:ResPath/>/css/inner_vi.css" rel="stylesheet" type="text/css">
<link href="<app:ResRoot/>/res/ws/css/controls.css" rel="stylesheet" type="text/css">
<link href="<%=request.getContextPath()%>/css/content.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<app:ResRoot/>/res/ws/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/weboffice/main.js"></script>	
<!--     -->
<script language="javascript" for="WebOffice1" event="NotifyCtrlReady">
	WebOffice1_NotifyCtrlReady();
</script>
<script type="text/javascript">
	function WebOffice1_NotifyCtrlReady() {
		var webObj = document.all.WebOffice1;
	    webObj.OptionFlag |= 128;
	 	webObj.HideMenuItem(0x01 + 0x02 + 0x04 + 0x10 + 0x20 + 0x1000 + 0x4000);
	 	
	    //   ID
	    var docId = $("#docId").val();
	    //   ID
	    var aid = $("#aid").val();
	    //     
	    var attachmentType = $("#attachmentType").val();
	    
	    var openfile = document.all.WebOffice1.LoadOriginalFile("/webOffice.do?flag=1&docId="+docId+"&aid="+aid,attachmentType);
	    if(openfile == 0){
	    	alert("File open failed!");
	    }
	}

	function saveFile(){
		//   ID
	    var docId = $("#docId").val();
	    //   ID
	    var aid = $("#aid").val();
	    //    
	    var fileName = $("#attachmentName").val();
		//         
		if(confirm("Are you sure save?")){
			SaveDoc("/webOffice.do?flag=2&docId="+docId+"&aid="+aid,fileName);
			//window.close();
		}
	}
</script>	
</head>
<body style="overflow: hidden">
<form name="myForm">
<input type="hidden" id="docId" value="${docId }"/>
<input type="hidden" id="aid" value="${aid }"/>
<input type="hidden" id="attachmentName" value="${attachmentName }"/>
<input type="hidden" id="attachmentType" value="${attachmentType }"/>
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
<div class="gap10px"></div>
<tr>
	<td align="right">
    	<input type="button" class="button" value="Save&nbsp;&nbsp;File" onclick="saveFile();"/>
	  	<!-- -----------------------------==   weboffice   ==----------------------------------->
		<script src="<%=request.getContextPath()%>/js/weboffice/LoadWebOffice.js"></script>
		<!-- --------------------------------==        ==------------------------------------->
	</td>
</tr>
</table>
</form>
</body>
</html>


좋은 웹페이지 즐겨찾기