123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>在线office测试页面</title>
- <meta name="description" content="">
- <meta name="keywords" content="">
- <!--include header base-->
- <meta name="author" content="Roobo:F2E">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
- <!-- Set render engine for 360 browser -->
- <meta name="renderer" content="webkit">
- <!-- Add to homescreen for Chrome on Android -->
- <meta name="mobile-web-app-capable" content="yes">
- <!--<link rel="icon" type="image/png" sizes="192x192" href="img/favicon/android-icon-192x192.png">-->
- <!-- Add to homescreen for Safari on iOS -->
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <!--<link href="../css/css.css" rel="stylesheet" type="text/css">-->
- <script src="../js/config/base_config.js"></script>
- <script src="/js/lib/jquery-1.9.1/jquery.min.js"></script>
- <SCRIPT language="javascript" src="cssjs/weboffice.js" charset="utf-8"></SCRIPT>
- <script type="text/javascript">
- $(document).ready(function(){
- WebOpen(); //等待控件加载
- testForm.WebOffice.IsNotCopy=0;
- });
- function htmltoWord(){
- $("#testForm").attr("action",baseConfig.URL.htmlToWord);
- $('#testForm').submit();
- }
- //
- // $.ajax( {
- // url: baseConfig.URL.exportFile,
- // dataType: 'json',
- // type: 'post',
- // data:$("#testForm").serialize(),
- // success : function(data,textStatus) {
- // console.log(data);
- // },
- // error : function() {
- // alert("404");
- // }
- // });
- function formSubmit(){
- $("#scontext").val($("#scontext").val());
- alert($("#scontext").val());
- $("#testForm").attr("action",baseConfig.URL.saveXHeditor);
- $('#testForm').submit();
- }
- function callback(objStatus){
- alert(objStatus);
- }
- </script>
- </head>
- <body >
- <iframe name="hidden_frameFile" id="hidden_frameFile" style="display:none"></iframe>
- <form name="testForm" id="testForm" action="/test/save" method="post" target="hidden_frameFile" >
- <a href="#" onclick="WebMenubar(false)">关闭菜单栏</a>
- <a href="#" onclick="WebMenubar(true)">打开菜单栏</a>
- <a href="#" onclick="WebTitlebar(false)">打开菜单栏</a>
- <a href="#" onclick="WebTitlebar(true)">打开菜单栏</a>
- <a href="#" onclick="WebToolbar(false)">打开菜单栏</a>
- <a href="#" onclick="WebToolbar(true)">打开菜单栏</a>
- <a href="#" onclick="testForm.WebOffice.IsNotCopy=0;">开启功能</a>
- <a href="#" onclick="testForm.WebOffice.IsNotCopy=1;">关闭功能</a>
- <br><input type="button" onclick="fileExport()" value="导出"/>
- <OBJECT width="100%" height="400" id="WebOffice" classid="clsid:FF09E4FA-BFAA-486E-ACB4-86EB0AE875D5" codebase="WebOffice.ocx#Version=2017,1,6,2">
- <PARAM name="BorderStyle" value="0">
- <PARAM name="Caption" value="Office文档控件">
- <PARAM name="BorderColor" value="10000">
- <PARAM name="BorderStyle" value="1">
- <PARAM name="TitlebarColor" value="52479">
- <PARAM name="TitlebarTextColor" value="0">
- <PARAM name="Menubar" value="1">
- <PARAM name="ForeColor" value="1">·
- <PARAM name="Titlebar" value="0">
- <PARAM name="Toolbars" value="1">
- </OBJECT>
- </form>
- </body>
- </html>
|