📄 copy of content.jsp
字号:
<%@ page contentType="text/html; charset=GBK"%>
<%@page buffer="50kb"%>
<%@ page import="com.cyberway.component.wordfield.web.WordFieldForm"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%
String contextPath = request.getContextPath();
%>
<html:html>
<head>
<title>{*[Edit information]*} </title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="<%= contextPath %>/css/info.css" type="text/css">
<script src="<%= contextPath %>/js/billlist.js"></script>
<script src="<%= contextPath %>/js/billitem.js"></script>
<script src="<%= contextPath %>/js/check.js"></script>
<script src="<%= contextPath %>/js/util.js"></script>
<script src="<%= contextPath %>/js/ntkoocx.js"></script>
<script src="<%= contextPath %>/js/word.js"></script>
<script language="JavaScript">
alert("<%= contextPath %>/js/ntkoocx.js");
<!--
var contextPath = '<%= contextPath %>';
cmdNew = '/component/wordfield/new.do';
cmdSave = '/component/wordfield/save.do';
cmdEdit = '/component/wordfield/edit.do';
function ev_checkval() {
return checkval(window);
}
function ev_onLoad() {
//{*[Initial word document]*}
// TANGER_OCX_OpenDoc('<c:out value="${InfoForm.content}" />');
alert(1);
TANGER_OCX_OpenDoc('/webroot/upload/abc.doc');
TANGER_OCX_OBJ.IsNoCopy=false;
TANGER_OCX_OBJ.Menubar=false;
TANGER_OCX_OBJ.Titlebar=false;
TANGER_OCX_SetReadOnly(false);
TANGER_OCX_SetMarkModify(true);
TANGER_OCX_ShowRevisions(false);
}
//-->
</script>
</head>
<body onload="on_Load();">
<html:form action="/component/wordfield/edit.do" styleId="formItem" method="post">
<table width="100%" border="0" cellspacing="4" cellpadding="4">
<tr>
<td height="38" class="list-toolbar">
<c:choose>
<c:when test="${!empty param.ISEDIT and param.ISEDIT eq 'TRUE'}" >
<input type="button" name="btnSave" value="{*[Save]*}" class="bt" onclick="doSave();">
</c:when>
<c:otherwise>
<input type="button" name="btnEdit" value="{*[Modify]*}" class="bt" onClick="doEdit()">
</c:otherwise>
</c:choose>
<input type="button" name="btnReturn" value="{*[Exit]*}" class="bt" onclick="doReturn()" >
</td>
</tr>
<tr class="row-hd">
<td height="2"> </td>
</tr>
<html:errors/>
<tr>
<td class="list-datas"> <table width="100%" cellpadding="1" border="0">
<tr>
<td width="20%" class="content-label">文件{*[Name]*}:</td>
<td width="75%">
<html:text styleClass="input-text" property="filename" disabled="true"/>
</td>
<td width="5%"></td>
</tr>
<tr>
<td width="75%" height="400px" valign="top" colspan='2'>
<c:choose>
<c:when test="${!empty param.ISEDIT and param.ISEDIT eq 'TRUE'}" >
<table width="100%" border="0" cellspacing="4" cellpadding="4" align="top">
<tr>
<td class="list-datas" valign="top">
<table width="100%" cellpadding="1" border="0">
<tr>
<td colspan="3" height="400">
<object id="TANGER_OCX" classid="clsid:C9BC4DFF-4248-4a3c-8A49-63A7D317F404" codebase="OfficeControl.cab#version=2,3,0,1" width="100%" height="100%">
<param name="ProductCaption" value="广宁县政府">
<param name="ProductKey" value="76881B445C0B32D6C01DF9494B74F261">
<param name="BorderStyle" value="1">
<param name="BorderColor" value="14402205">
<param name="TitlebarColor" value="14402205">
<param name="TitlebarTextColor" value="0">
<param name="Caption" value="{*[Form]*}">
<param name="IsShowToolMenu" value="-1">
<param name="IsNoCopy" value="-1">
<SPAN STYLE="color:red">{*[Can't load document, please check security set up of your browser]*}。</SPAN>
</object>
<!-- {*[Two events of the function]*}:OnDocumentClosed,和OnDocumentOpened -->
<script language="JScript" for=TANGER_OCX event="OnDocumentClosed()">
alert('as');
TANGER_OCX_OnDocumentClosed();
</script>
<script language="JScript" for=TANGER_OCX event="OnDocumentOpened(TANGER_OCX_str, TANGER_OCX_obj)">
alert('');
TANGER_OCX_OnDocumentOpened(TANGER_OCX_str,TANGER_OCX_obj);
</script>
</td>
</tr>
</table>
</td>
</tr>
</table>
</c:when>
</c:choose>
</tr>
</table>
</html:form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -