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

📄 indexcreate.jsp

📁 考试系统 软件功能涉及网上考试、作业、练习、在线监考、在线批卷、成绩排行、调查问卷、发布公告等管理的各方面。
💻 JSP
字号:
<%@ page buffer="none" contentType="text/html;charset=GB2312" import="java.lang.*,net.xerllent.campus.database.*,net.xerllent.campus.util.*,java.sql.*,java.util.*,net.xerllent.campus.file.*,net.xerllent.campus.sysadmin.*" %>
<%
//静态权限认证
security.checkAuth(session,"",response,request);
%>
<%
int MsgType=0;
String MsgStr="";
String MsgUrl;
int IndexParentID;
String IndexName;
String IndexCode;
int SystemMark;
IndexCode myIndexCode=new IndexCode();
IndexParentID = ParamUtils.getIntParameter(request,"IndexParentID",0); //IndexParentID
if(IndexParentID==0){response.sendRedirect("IndexList.jsp");}
MsgUrl="IndexList.jsp?IndexParentID="+IndexParentID;
IndexCode myPIndexCode=new IndexCode(IndexParentID,0);

if(request.getMethod().compareTo("POST")==0){  //如果是提交
    IndexParentID = ParamUtils.getIntParameter(request,"IndexParentID",0); //IndexParentID
    IndexName = ParamUtils.getParameter(request,"IndexName",""); //IndexName
    IndexCode = ParamUtils.getParameter(request,"IndexCode",""); //IndexCode
    SystemMark = ParamUtils.getIntParameter(request,"SystemMark",0); //SystemMark

    if(myIndexCode.IndexCreate(IndexParentID,IndexName,IndexCode,SystemMark)){
        MsgType=4;
        MsgStr="创建成功,是否继续创建?";
    }else{
        MsgType=1;
        MsgStr="数据重复或其他原因,创建失败!!";
    }
}
%>
<html>
<head>
<title>系统管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Expires"  content="Mon,04 Dec 1980 11:11:11 GMT">
<link rel="stylesheet" href="../../images/campus.css" type="text/css">
<script src="../../jscript/floatPanel.js"></script>
<script src="../../jscript/DoneMSG.js"></script>
<script src="../../jscript/string.js"></script>
<script language="javascript">
<!--
function checkcreate(){
	if(Trim(document.createform.IndexName.value)==""){
		alert("代码名不能为空!");
		return false;
	}
	if(Trim(document.createform.IndexCode.value)==""){
		alert("识别码不能为空!");
		return false;
	}
	return true;
}
-->
</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" onload="popDlg();" >
<%net.xerllent.campus.util.dialogMsg.getDlgValue(MsgType,MsgStr,MsgUrl,out);%>
<table width="100%" height="22" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td ></td>
    </tr>
</table>

<DIV id=floater style="LEFT: 0px; TOP: 0px">
  <table width="100%" class="gl_mainBar" height="22" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td nowrap>【系统管理-系统设置-代码维护】</td>
      <td align="right" nowrap>
        <input type="button" name="Submit22" value="确 定" class="button1" onclick="if(checkcreate()) createform.submit();">
        <input type="button" name="Submit2" value="取 消" class="button1" onclick="window.location='<%=MsgUrl%>';">
      </td>
      <td width="10">&nbsp;</td>
    </tr>
  </table>
</DIV>
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center" class="f90">
  <tr>
    <td align="right" nowrap>&nbsp;</td>
  </tr>
</table>
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center" class="f90">
  <tr>
    <td class="lbcolor" nowrap width="80" height="20">添加<%=myPIndexCode._IndexName%>代码</td>
    <td class="lbimage" nowrap width="7"></td>
    <td nowrap>&nbsp;</td>
  </tr>
</table>
<table width="90%" border="0" cellspacing="0" cellpadding="5" align="center" class="gl_tdbox">
  <tr>
    <td nowrap align="center">
      <form name="createform" method="post" action="IndexCreate.jsp"  onsubmit="return checkcreate();">
        <br>
        <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center" class="f90">
          <tr>
            <td width="18%" height="20">
              <p><b>所属代码集</b></p>
            </td>
            <td width="82%">
              <%=myPIndexCode._IndexName%>
            </td>
          </tr>
          <tr>
            <td width="18%" height="20">
              <p><b>代码名称 </b></p>
            </td>
            <td width="82%">
              <input type="text" name="IndexName" class="input1">
              IndexName</td>
          </tr>
          <tr>
            <td width="18%" height="20"><b>识别代码</b></td>
            <td width="82%">
              <input type="text" name="IndexCode" class="input1">
              IndexCode</td>
          </tr>
          <tr>
            <td width="18%" height="20"><b>系统属性</b> </td>
            <td width="82%">
              <input type="radio" name="SystemMark" value="0" checked>
              可删除
              <input type="radio" name="SystemMark" value="1" >
              不可删除 SystemMark</td>
          </tr>
          <tr>
            <td colspan="2"> <br>
              <fieldset class="ln130"><legend>使用说明</legend>&nbsp;&nbsp;&nbsp;&nbsp;系统运行中,很多信息需要引用相同的类别代码,如:民族、性别、政治面貌等,设立代码库有助于节约空间、利于统计分析。在这里我们称之为<font color="#FF0000">代码集</font>,每一个<font color="#FF0000">代码集</font>对应一种引用。建立时,代码集名称如“民族”,识别代码如“nation”,系统属性设定为不可删除时,则表明属性一旦创建,将不能修改和删除。</fieldset></td>
          </tr>
        </table>
        <input type="hidden" name="IndexParentID" value="<%=IndexParentID%>">
      </form>
    </td>
  </tr>
</table>

<%
net.xerllent.campus.campus CampusTemplet= new net.xerllent.campus.campus();
CampusTemplet.getTradeMark(out);
%>
</body>
</html>

⌨️ 快捷键说明

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