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

📄 index.jsp

📁 运用jdk
💻 JSP
字号:
<%@page language="java" contentType="text/html;charset=GBK"%>
<%@page import="oa.main.DealString"%>
<%@include file="../../inc.jsp"%>
<%
	DealString ds = new DealString();
	//取得菜单类别
	String strType = ds.toString((String)request.getParameter("txt_type"));
	if(strType.equals(""))strType = "1";

	//错误码
	String errcode = ds.toString((String)request.getParameter("errcode"));
	if(errcode.equals(""))errcode = "0";
	if(!errcode.equals("0"))response.sendRedirect("../err.jsp?ip=sysman/index.jsp&txt_type="+strType+"&errcode="+errcode);

	//编号
	String strID = ds.toString((String)request.getParameter("txt_id"));

	//字典名称
	String strDict = ds.toString((String)request.getParameter("txt_dict"));

	//增删改类型
	String strEdit = ds.toString((String)request.getParameter("txt_edit"));

	String childfile = "";
	String txt = "";
	String addr = "?txt_id="+strID+"&txt_type="+strType+"&txt_dict="+strDict+"&txt_edit="+strEdit;
	if(strType.equals("1"))
	{
		childfile = "dict.jsp"+addr;
		txt = "字典维护";
		if(strEdit.equals("1")||strEdit.equals("2"))childfile = "dict_edit.jsp"+addr;
	}
%>

<HTML>
  <HEAD>
    <TITLE>极限空间 - 系统管理</TITLE>
    <META http-equiv=Content-Type content="text/html; charset=GBK">
    <LINK href="../css/sysman.css" rel=stylesheet>
    <META content="MSHTML 6.00.2800.1226" name=GENERATOR>
	<!--
	<META http-equiv="refresh" content="1">
	//-->
  </HEAD>

<BODY leftMargin=0 topMargin=0>

<form name=form1 action="index.jsp" method=post>
<input type=hidden name="txt_type" value="<%=strType%>">
<input type=hidden name="txt_id" value="<%=strID%>">
<input type=hidden name="txt_dict" value="<%=strDict%>">
<input type=hidden name="txt_edit" value="<%=strEdit%>">

<br>

<jsp:include page="<%=childfile%>"/>
<br><br>
<script>
	function changepage(type)
	{
		document.all.txt_type.value = type;
		document.all.txt_id.value = "";
		document.all.txt_dict.value = "";
		document.all.txt_edit.value = "";
		document.all.form1.action = "index.jsp";
		document.all.form1.submit();
	}
</script>
</form>
</BODY></HTML>

⌨️ 快捷键说明

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