📄 person.jsp
字号:
<%@page language="java" contentType="text/html;charset=GBK"%>
<%@page import="java.util.*,java.text.*,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=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 = (String)session.getAttribute("zgbh");
//联系人序号
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 strSrchsel = ds.toString((String)request.getParameter("sel_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;
}
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"))//个人文件柜
{
childfile = "personFile.jsp"+addr;
}
else if(strType.equals("4"))//个人群组
{
childfile = "personGroup.jsp"+addr;
}
else if(strType.equals("5"))//我的短消息
{
if(strEdit.equals(""))strEdit = "1";
if(strEdit.equals("1"))//已接收短消息
{
childfile = "message_receive.jsp"+addr;
}
if(strEdit.equals("2"))//已发送短消息
{
childfile = "message_send.jsp"+addr;
}
else if(strEdit.equals("3"))//增加
{
childfile = "message_edit.jsp"+addr;
}
else if(strEdit.equals("4"))//修改
{
childfile = "message_edit.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=hidden name="txt_type" value="<%=strType%>">
<input type=hidden name="txt_edit" value="<%=strEdit%>">
<input type=hidden name="txt_personno" value="<%=strPersonNo%>">
<input type=hidden name="txt_lxrxh" value="<%=strOrderNo%>">
<input type=hidden name="txt_groupno" value="<%=strGroupNo%>">
<input type=hidden name="txt_rcxh" value="<%=strRCXH%>">
<input type=hidden name="txt_paixu" value="<%=strPaixu%>">
<input type=hidden name="txt_srch" value="<%=strSrchZD%>">
<input type=hidden name="txt_Member_Value" value="">
<!--<input type=text name="sel_srch" value="<%=strSrchsel%>">-->
<!--
<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>
//-->
<jsp:include page="<%=childfile%>"/>
<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>
</form>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -