SGGL_SHJ/SGGL/FineUIPro.Web/AttachFile/IndexOffice.aspx

86 lines
3.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="IndexOffice.aspx.cs" Inherits="WordEdit.IndexOffice" %>
<!DOCTYPE html>
<html>
<head>
<meta content="IE=10" http-equiv="X-UA-Compatible" />
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>首页 - OFFICE文档控件演示示例</title>
<link href="officecontrol/ntkoStyle.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
var CLOSEVENT = false;
var datatochildcmd = "";
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
}
function custom_close() {
window.opener = null;
window.open('', '_self');
window.close();(strHello);
}
function openhtml(cmd) {
//判断插件是否安装
datatochildcmd = cmd;
var ntkoed = ntkoBrowser.ExtensionInstalled();
var ntkoversion = ntkoBrowser.NtkoExtensionVersion();
var ntkotext = '欢迎使用NTKO OFFICE文档控件平台版PLUS2019'
if (ntkoed) {
ntkoBrowser.openWindow("EditOffice.aspx?cmd=" + cmd, false);
CLOSEVENT = true;
/* if (cmd == 5) {
ntkoBrowser.openWindow("EditOffice.aspx?cmd=" + cmd, false, "", "", "", "", ntkotext, 800, 800, true);
} else {
ntkoBrowser.openWindow("EditOffice.aspx?cmd=" + cmd, false);
if (cmd == 3) {
CLOSEVENT = true;
} else {
CLOSEVENT = false;
}
}*/
} else {
var iTop = ntkoBrowser.NtkoiTop(); //获得窗口的垂直位置;
var iLeft = ntkoBrowser.NtkoiLeft(); //获得窗口的水平位置;
window.open("exeindex.html", "", "height=200px,width=500px,top=" + iTop + "px,left=" + iLeft +
"px,titlebar=no,toolbar=no,menubar=no,scrollbars=auto,resizeable=no,location=no,status=no");
}
}
//在父页面定义的跨浏览器插件应用程序关闭事件响应方法且方法名不能自定义必须是ntkoCloseEvent
function ntkoCloseEvent() {
if (CLOSEVENT) { custom_close(); }
}
//在父页面固定OnDataParentText方法名来获取子页面传过来的数据
function OnData(argv1, argv2) {
alert("请注意示例右侧单元格两个信息的变化。");
document.getElementById("spDocSize").innerHTML = argv1 + " byte";
document.getElementById("spUpdateTime").innerHTML = argv2;
}
</script>
</head>
<body onload="cmd=getQueryString('cmd');openhtml(cmd);">
<script type="text/javascript" src="officecontrol/ntkobackground.min.js"></script>
<div class="divTop">
<div class="divTopInner">
<div class="divTopInnerCaption">重庆软航科技有限公司</div>
<div class="divTopInnerNtko"><a href="http://www.ntko.com" title="点击访问NTKO官网">官网</a></div>
</div>
</div>
</body>
</html>