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

📄 module_editor.jsp

📁 Jbuilder2006开发的严格按MVC设计模式组织开发过程
💻 JSP
字号:
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@page contentType="text/html; charset=GBK"%>
<html:html>
  <head>
  <link href="<%=request.getContextPath()%>/_normal/css/style.css" rel="stylesheet" type="text/css">
  <title>Action编辑</title>
<script language="javascript" src="<%=request.getContextPath()%>/_normal/script/common.js" type="text/javascript"></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/engine.js'></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/util.js'></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/interface/AjaxTopsJ2eeAction.js'></script>
<script  language="javascript"  type="text/javascript">
function doSave() {
  if(document.all.moduleCode.value==''){
    document.all.moduleCode.focus();
    alert('请输入系统编号!');
    return false;
  }
  if(document.all.moduleName.value==''){
    document.all.moduleName.focus();
    alert('请输入模块名称!');
    return false;
  }
  if (confirm("确定保存该信息吗?")) {
    actfrmTopsSystemModule.submit();
  }
  else {
    return false;
  }
}

function doEdit(obj){
  var td=obj.parentElement;
  if(td.children[0].style.display==''){
    td.children[0].style.display='none';
    td.children[1].style.display='';
  }else{
    td.children[0].style.display='';
    td.children[1].style.display='none';
  }
}

function imageFileChange(obj){
  var td=obj.parentElement;
  var fileName=obj.value;
  var path=fileName.substring(0,fileName.lastIndexOf("\\"));
  fileName=fileName.substring(fileName.lastIndexOf("\\")+1,fileName.length);
  path=path.substring(path.lastIndexOf("\\")+1,path.length);
  td.children[0].value=path+"/"+fileName;
  td.children[0].style.display='';
  td.children[1].style.display='none';
}
</script>
  </head>
  <body>
  <p>
  <table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr>
      <td width="70%" nowrap class="location">您的位置:系统编辑</td>
    </tr>
  </table>
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="7%" id="save" align="center" valign="middle" nowrap class="toolbar" onMouseOver="OMO()" onMouseOut="OMOU()" onClick="doSave()">
        <img src="<%=request.getContextPath()%>/_normal/toolbar_pic/page_save.gif" alt="保存">
        保存
      </td>
      <td width="1%" align="center" valign="middle" nowrap class="toolbar">|</td>
      <td width="7%" align="center" valign="middle" nowrap class="toolbar" onMouseOver="OMO()" onMouseOut="OMOU()" onClick="javascript:history.go(-1)">
        <img src="<%=request.getContextPath()%>/_normal/toolbar_pic/arrow_undo.gif" alt="返回">
        返回
      </td>
      <td width="74%" align="center" valign="middle" nowrap class="toolbar">      </td>
    </tr>
  </table>
  <html:form action="/actTopsSystemModule" method="POST">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr>
        <td width="100%" align="center">
          <table border="0" cellpadding="0" cellspacing="1" width="70%">
            <html:hidden property="id"/>
            <tr align="center">
              <td width="20%" height="20">系统编号</td>
              <td width="30%">
                <html:text property="moduleCode" readonly="false" style="width:100%" styleClass="inputBackGround"/>
              </td>
              <td width="20%">模块名称</td>
              <td width="30%">
                <html:text property="moduleName" readonly="false" style="width:100%" styleClass="inputBackGround"/>
              </td>
            </tr>
            <tr align="center">
              <td height="20">图片</td>
              <td colspan="3" align="left">
              <html:text property="moduleImage" readonly="false" style="width:90%" styleClass="inputBackGround"/>
              <input type="file" style="display:none;width:90%" onchange="imageFileChange(this)" class="inputBackGround"/>
              <img alt="切换" src="<%=request.getContextPath()%>/_normal/toolbar_pic/application_form_edit.gif" onclick="doEdit(this)" style="cursor:hand"/>
              </td>
            </tr>
            <tr>
            <td align="center" height="20">主页链接</td>
            <td colspan="3">
              <html:text property="indexUrl" readonly="false" style="width:100%" styleClass="inputBackGround"/>
            </td>
            </tr>
            <tr align="center">
              <td height="20">说明</td>
              <td colspan="3">
                <html:textarea property="remark" rows="3" styleClass="inputBackGround" style="width:100%">
                </html:textarea>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
    <html:hidden property="method"/>
    <html:hidden property="zzCreateUser"/>
    <html:hidden property="fd_ZzCreateDate"/>
    <html:hidden property="zzCurState"/>
    <html:hidden property="fd_ZzCurStateSetDate"/>
    <html:hidden property="zzRemoveUser"/>
    <html:hidden property="fd_ZzRemoveDate"/>
  </html:form>
  </body>
</html:html>

⌨️ 快捷键说明

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