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

📄 person.jsp

📁 “JSP数据库项目案例导航”一书从第一章到第十一章各章实例的源程序文件以及数据库文件。 注意: 1. 本书中的案例提供的数据库环境不同
💻 JSP
字号:
<%
/**********************************************************
Copyright (C),2003-10-17, Beijing  USTB.
All rights reserved.
Filename: index.jsp
Author: 
Version 1.0
Date:2003-10-14
Description:框架页面
Other:
Variable List:

Function List:

History:
***********************************************************/
%>
<%@page language="java" contentType="text/html;charset=GBK"%>
<%@page import="java.util.*,java.text.*,oa.main.DealString"%>

<%
	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=person/person.jsp&txt_type="+strType+"&errcode="+errcode);

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

	//职工人员编号
	String strPersonNo = ds.toString((String)request.getParameter("txt_personno"));
	if(strPersonNo.equals(""))strPersonNo = "1";

   //联系人序号
	String strOrderNo = ds.toString((String)request.getParameter("txt_lxrxh"));
	
	//取得当前群组编号(group_NO)
	String strGroupNo = ds.toString((String)request.getParameter("txt_groupno"));
	
	//日程序号
	String strRCXH = ds.toString((String)request.getParameter("txt_rcxh"));

	//按什么字段排序
	String strPaixu = ds.toString((String)request.getParameter("txt_paixu"));
	
	//按什么字段搜索
	String strSrchZD = ds.toString((String)request.getParameter("txt_srch"));

	String childfile = "";
	String addr = "?txt_type="+strType+"&txt_edit="+strEdit+"&txt_personno"+strPersonNo+"&txt_lxrxh"+strOrderNo;
	if(strType.equals("1"))//个人通讯录
	{	
		childfile = "displayTxun.jsp"+addr;
		if(strEdit.equals("1")||strEdit.equals("2"))childfile = "addTxun.jsp"+addr;
		//if(strEdit.equals("2"))childfile = "modTxun.jsp"+addr;
	}
	else if(strType.equals("2"))//日程安排
	{
		childfile = "dailyArragementList.jsp"+addr;
		if(strEdit.equals("1"))childfile = "addDailyArragement.jsp"+addr;
		if(strEdit.equals("2"))childfile = "modDailyArragement.jsp"+addr;
		if(strEdit.equals("4"))childfile = "dailyArragementList.jsp"+addr;//列表查看
		if(strEdit.equals("5"))childfile = "dailyArragement11.jsp"+addr;//日历查看
		
	}
	else if(strType.equals("3"))//个人文件柜
	{
	}
	else if(strType.equals("4"))//个人群组
	{
		childfile = "personGroup.jsp"+addr;
	}


%>
<HTML>
<head><title>个人辅助信息</title>
<link href="../css/person.css" type=text/css rel=stylesheet>
<script language="javascript" src="../scripts/department.js"></script>
<script src="popup.js"></script>
</head>
<BODY leftMargin=0 topMargin=0 >

<form name=form1 action="person.jsp" method=post>
<input type=text name="txt_type" value="<%=strType%>">
<input type=text name="txt_edit" value="<%=strEdit%>">
<input type=text name="txt_personno" value="<%=strPersonNo%>">
<input type=text name="txt_lxrxh" value="<%=strOrderNo%>">
<input type=text name="txt_groupno" value="<%=strGroupNo%>">
<input type=text name="txt_rcxh" value="<%=strRCXH%>">
<input type=text name="txt_paixu" value="<%=strPaixu%>">
<input type=text name="txt_srch" value="<%=strSrchZD%>">


<TABLE border="0" align="center" cellSpacing=10 cellPadding=0 width="100%">
  <TBODY>
  <TR>
    <TD>
	<div align="center" width="50%"><a  onclick="changepage('1');" style="cursor:hand;"  > 
	<img src="../images/1.gif" border=0 name="tongxun" >我的通讯录</div></a>
    </td>
	<td>
		<div align="center" width="50%"><a  onclick="changepage('2');" style="cursor:hand;"  > 
		<img src="../images/1.gif" border=0 name="richeng"> 日程安排</div></a>
    </td>
	<td>
		<div align="center" width="50%"><a  onclick="changepage('3');" style="cursor:hand;"  > 
		<img src="../images/1.gif" border=0 name="wardrobe" >个人文件柜</div></a>
    </td>
	<td>
		<div align="center" width="50%"><a  onclick="changepage('4');" style="cursor:hand;"  > 
		<img src="../images/1.gif" border=0 name="persongroup">个人群组</div></a>
    </td>
  </TR>
  </TBODY>
</TABLE>
<hr>
<div style="margin-left: 10pt;margin-bottom: 5pt;width:750px;">
<center>
	<jsp:include page="<%=childfile%>"/>
</center>
</div>
<script>
	function changepage(type)
	{
		document.all.txt_type.value = type;
		document.all.txt_edit.value = "";
		document.all.txt_lxrxh.value = "";
		document.all.txt_paixu.value = "";
		document.all.txt_srch.value = "";
		document.all.form1.action = "person.jsp";
		document.all.form1.submit();
	}
</script>
<hr>
<div>
<CENTER>
<B><FONT size=2>Copyright &copy;2003 All rights reserved. 北京科技大学 邯郸钢铁公司 联合开发
</B></FONT></CENTER>
</DIV>
</form>
</BODY>
</HTML>

⌨️ 快捷键说明

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