OCR-上传,校核
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Title</title>
|
||||
<!-- office插件js begin 必须引入-->
|
||||
<script type="text/javascript" src="./jquery.min.js"></script>
|
||||
<script type="text/javascript" src="./pageoffice.js" id="po_js_main"></script>
|
||||
</head>
|
||||
<body>
|
||||
<a href="javascript:POBrowser.openWindowModeless('/api/lawss/pageOffice/word','width=1200px;height=800px;');">打开文件</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,70 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Title</title>
|
||||
</head>
|
||||
<body>
|
||||
<input id="Button1" type="button" value="隐藏/显示 标题栏" οnclick="return Button1_onclick()" />
|
||||
<input id="Button2" type="button" value="隐藏/显示 菜单栏" οnclick="return Button2_onclick()" />
|
||||
<input id="Button3" type="button" value="隐藏/显示 自定义工具栏" οnclick="return Button3_onclick()" />
|
||||
<input id="Button4" type="button" value="隐藏/显示 Office工具栏" οnclick="return Button4_onclick()" />
|
||||
|
||||
<div style="width:1000px;height:700px;" th:utext="${pageoffice}"> </div>
|
||||
<script type="text/javascript">
|
||||
|
||||
function Save() {
|
||||
document.getElementById("PageOfficeCtrl1").WebSave();
|
||||
}
|
||||
function PrintFile(){
|
||||
document.getElementById("PageOfficeCtrl1").ShowDialog(4);
|
||||
|
||||
}
|
||||
function IsFullScreen(){
|
||||
document.getElementById("PageOfficeCtrl1").FullScreen = !document.getElementById("PageOfficeCtrl1").FullScreen;
|
||||
|
||||
}
|
||||
function CloseFile(){
|
||||
window.external.close();
|
||||
}
|
||||
|
||||
function BeforeBrowserClosed(){
|
||||
if (document.getElementById("PageOfficeCtrl1").IsDirty){
|
||||
if(confirm("提示:文档已被修改,是否继续关闭放弃保存 ?"))
|
||||
{
|
||||
return true;
|
||||
|
||||
}else{
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// 隐藏/显示 标题栏
|
||||
function Button1_onclick() {
|
||||
var bVisible = document.getElementById("PageOfficeCtrl1").Titlebar;
|
||||
document.getElementById("PageOfficeCtrl1").Titlebar = !bVisible;
|
||||
}
|
||||
|
||||
// 隐藏/显示 菜单栏
|
||||
function Button2_onclick() {
|
||||
var bVisible = document.getElementById("PageOfficeCtrl1").Menubar;
|
||||
document.getElementById("PageOfficeCtrl1").Menubar = !bVisible;
|
||||
}
|
||||
|
||||
|
||||
// 隐藏/显示 自定义工具栏
|
||||
function Button3_onclick() {
|
||||
var bVisible = document.getElementById("PageOfficeCtrl1").CustomToolbar;
|
||||
document.getElementById("PageOfficeCtrl1").CustomToolbar = !bVisible;
|
||||
}
|
||||
// 隐藏/显示 Office工具栏
|
||||
function Button4_onclick() {
|
||||
var bVisible = document.getElementById("PageOfficeCtrl1").OfficeToolbars;
|
||||
document.getElementById("PageOfficeCtrl1").OfficeToolbars = !bVisible;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user