⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 content.jsp

📁 OBPM是一个开源
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK"%>
<%@page buffer="50kb"%>
<%@ page import="com.cyberway.component.htmleditor.web.HTMLEditorForm"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="/smartweb" prefix="s" %>
<%
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/css.jsp" 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/category.js"></script>
<script src="<%= contextPath %>/js/info.js"></script>
<script language="JavaScript">
var contextPath = '<%= contextPath %>';

cmdNew = '/component/htmleditor/new.do';
cmdSave = '/component/htmleditor/save.do';
cmdEdit = '/component/htmleditor/edit.do';

function ev_checkval() {
  return checkval(window);
}
function on_load() {
  if (document.all['richedit']) {
    var data = formItem.templateContextString.value;
    richedit.setHTML(data);
  }
}
function ev_exit(){
    window.close();
}

</script>
</head>
<body onload="on_load();">
<html:form action="/component/htmleditor/edit.do" styleId="formItem" method="post">
<html:hidden property="filename"/>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="38" class="list-toolbar" align="right">
      <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" class="btcss" onclick="doExit()" value="{*[Exit]*}">
		  <input type="button" class="btcss" onclick="doEmpty()" value="{*[Clear]*}">
    </td>
  </tr>
  <html:errors/>
  <tr>
    <td class="list-datas"> <table width="100%" cellpadding="1" border="0">
        <tr>
          <td width="75%" height="410px" valign="top" colspan='2'>
            <c:choose>
              <c:when test="${!empty param.ISEDIT and param.ISEDIT eq 'TRUE'}" >
                <html:textarea style="display: none;" property="content" />
		            <IFRAME ID="eWebEditor1" src="<%=contextPath%>/component/htmleditor/eWebEditor.jsp?id=content&style=standard" frameborder="0" scrolling="no" width="100%" height="100%"></IFRAME>
              </c:when>
              <c:otherwise>
                 <div><c:out value="${FormForm.valueObject.content}" default="" escapeXml="{false}"/></div>
              </c:otherwise>
            </c:choose>
  </tr>
</table>
<s:KeepCondition form="formItem"/>
</html:form>
</body>
</html:html>


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -