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

89 lines
3.8 KiB
Plaintext
Raw Normal View History

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="IndexOffice.aspx.cs" Inherits="WordEdit.IndexOffice" %>
<!DOCTYPE html>
2026-11-02 11:16:43 +08:00
<html lang="<%= FineUIPro.Web.UiLanguage.Current == "en" ? "en" : "zh-CN" %>">
<head>
2026-11-02 11:16:43 +08:00
<script src="<%= ResolveUrl("~/common/UiResources.ashx?module=AttachFile") %>"></script>
<script src="<%= ResolveUrl("~/res/js/i18n.js") %>"></script>
<link rel="stylesheet" href="<%= ResolveUrl("~/res/css/i18n.css") %>" />
<meta content="IE=10" http-equiv="X-UA-Compatible" />
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
2026-11-02 11:16:43 +08:00
<title><asp:Literal runat="server" Mode="Encode" Text="<%$ Resources:UiText, T_首页_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;
}
2023-03-07 11:24:59 +08:00
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文档控件平台版PLUS(2019)'
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() {
2023-03-07 11:24:59 +08:00
if (CLOSEVENT) { custom_close(); }
}
//在父页面固定OnDataParentText方法名来获取子页面传过来的数据
function OnData(argv1, argv2) {
2026-11-02 11:16:43 +08:00
alert(SGGLI18n.t("T_请注意示例右侧单元格两个信息的变化"));
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">
2026-11-02 11:16:43 +08:00
<div class="divTopInnerCaption"><asp:Literal runat="server" Mode="Encode" Text="<%$ Resources:UiText, T_重庆软航科技有限公司 %>" /></div>
<div class="divTopInnerNtko"><a href="http://www.ntko.com" title="<%= System.Web.HttpUtility.HtmlAttributeEncode(BLL.UiText.Get("T_点击访问NTKO官网")) %>"><asp:Literal runat="server" Mode="Encode" Text="<%$ Resources:UiText, T_官网 %>" /></a></div>
</div>
</div>
</body>
</html>