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

📄 clsmngoperator.jsp

📁 培训考试系统代码
💻 JSP
字号:
<%@page language="java" import="java.sql.*,java.util.*,javax.naming.*,javax.sql.*,java.net.*" %>
<%@page import = "com.huawei.icd30.common.db.*"%>
<%@page import = "com.huawei.icd30.common.db.SysResultSet"%>
<%@page import = "com.huawei.icd30.agt.util.*" %>
<%@page import = "com.huawei.icd30.agt.util.OperatorFlagCode" %>
<%@page import = "com.huawei.icd30.agt.util.ClassInfo"%>
<%
 String title    = (String)request.getAttribute("title");
 String descripe = (String)request.getAttribute("content");
 String classid  = (String)request.getAttribute("classid");
 String fclassid  = (String)request.getAttribute("fclassid");
 descripe        = descripe==null?"":descripe;
%>
<!-- title>类别添加</title -->
<html>
<head>
<link href="/agt/public/css/gb.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE type=text/css>BODY {
	SCROLLBAR-FACE-COLOR: #d6efff; SCROLLBAR-HIGHLIGHT-COLOR: #9E9E9E; SCROLLBAR-SHADOW-COLOR: #9E9E9E; SCROLLBAR-3DLIGHT-COLOR: #ffffff; SCROLLBAR-ARROW-COLOR: #666666; SCROLLBAR-TRACK-COLOR: #d6efff; SCROLLBAR-DARKSHADOW-COLOR: #ffffff}
</STYLE>
<script language="javascript">
function mySubmit1()
{
    if (document.forms[0].title.value == "")
    {
       alert("类别名称不能为空,请输入!");
       return false;
    }
    else if (document.forms[0].describle.value.length > 50)
    {
        alert("类别描述应不多于50个字符,您的输入超长,请删减!");
        return false;
    }
    else
    {
        document.forms[0].submit();
    }
}

function back()
{
   parent.window.location.replace("/ClsMngOperatorAction.do?operatorFlag=1");
}
function myAdd()
{
  document.forms[0].title.value ="<%=title%>";
  document.forms[0].operatorFlag.value = "<%=OperatorFlagCode.CLSMNG_ADD%>";
  document.forms[0].submit();
}
function myDelete()
{
    var dele = "<%=request.getParameter("deleflag")%>";
    if(dele==0)
    {
        alert("根节点不能删除");
        return false;
    }
    else if(dele==1)
    {
        alert("节点有子节点不可以删除");
        return false;
    }
    else if( !window.confirm("是否删除,请确认"))
    {
         return false ;
    }
    else
    {
        document.forms[0].operatorFlag.value = "<%=OperatorFlagCode.CLSMNG_REMOVE%>";
        document.forms[0].submit();
    }
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="B7D5F9">
  <form action="/ClsMngOperatorAction.do" method="post">
  <table width="400" border="0" align="center" cellpadding="3" cellspacing="1" class="table-cs1">
          <tr> 
            <td width="80" height="25" align="center" class="td-cs1"> 类别名称 </td>
            <td width="300" height="25" class="td-cs2"> 
              <input name ="title" type="text" class="input2" value="<%=title%>" size="35" maxlength=25></td>
          </tr>
          <tr> 
            <td width="100" height="25" align="center" valign="top" class="td-cs1"> 
              类别描述 </td>
            <td height="25" class="td-cs2"> <textarea  name ="describle" cols="43" rows="5" class="remark"  ><%=descripe%></textarea></td>
          </tr>
        </table>
  <table width="66%" height="35" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr align="center"> 
                              <td width="200">
                            <%if(!(request.getParameter("deleflag").equals("0")))
                             {
                             %>
                              <input name="edit" type="image" onclick="mySubmit1();return false;" src="/agt/public/images/edit.gif" width="82" height="22" border="0" onmouseover="this.src='/agt/public/images/'+ this.name + '_2.gif';" onmouseout="this.src='/agt/public/images/'+ this.name + '.gif'">
                            <%}%>
                               </td>
                              <td width="200"><input name="add" type="image" onclick="myAdd();return false;" src="/agt/public/images/add.gif" width="82" height="22" border="0" onmouseover="this.src='/agt/public/images/'+ this.name + '_2.gif';" onmouseout="this.src='/agt/public/images/'+ this.name + '.gif'">
                             </td>
                              <td width="200">
                            <%if(!(request.getParameter("deleflag").equals("0")))
                             {
                             %>
                              <input name="del" type="image" onclick="myDelete();return false;" src="/agt/public/images/del.gif" width="82" height="22" border="0" onmouseover="this.src='/agt/public/images/'+ this.name + '_2.gif';" onmouseout="this.src='/agt/public/images/'+ this.name + '.gif'">
                            <%}%>
                              </td>
                              <td width="200"><input name="reset" type="image" onclick="reset();return false;" src="/agt/public/images/reset.gif" width="82" height="22" border="0" onmouseover="this.src='/agt/public/images/'+ this.name + '_2.gif';" onmouseout="this.src='/agt/public/images/'+ this.name + '.gif'">
                            </td>
                            </tr>
                          </table>
				<input type="hidden" name="operatorFlag" value="<%=OperatorFlagCode.CLSMNG_MOD%>">
				<input type="hidden" name="classid" value="<%=classid%>">
				<input type="hidden" name="fatherid" value="<%=fclassid%>">
  </form>
</body>
</html>

⌨️ 快捷键说明

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