personalworktodo.jsp

来自「java jsp教程」· JSP 代码 · 共 516 行 · 第 1/2 页

JSP
516
字号
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="java.util.List" %>
<%@ page import="com.icss.cnpc.project.vo.ProjectInfo" %>

<%@ page import="com.icss.cnpc.plan.vo.PerformTaskVO" %>
<%@ page import="com.icss.cnpc.plan.vo.PlanInfo" %>
<%@ page import="com.icss.cnpc.util.Config" %>
<%@ page import="com.icss.cnpc.plan.vo.TrainingPlanInfo"%>
<%@ page import="java.sql.Date"%>
<%@ page import="com.icss.cnpc.msgnote.vo.*"%>
<%@ page import="com.icss.cnpc.msgnote.util.StringUtility" %>

<%
    response.setHeader("Pragma", "No-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);
%>

<%
	List Planlist=(List)request.getAttribute("Planlist");
	List projplanlist=(List)request.getAttribute("projplanlist");
	List trainingPlanList = (List)request.getAttribute("trainingPlanList");
	List projList = (List)request.getAttribute("projList");
	List notelist = (List)request.getAttribute("notelist");
	List msgList = (List)request.getAttribute("msgList");
	Iterator itor = trainingPlanList.iterator();
%>


<script language="javascript">
function approvePlan(planno,state,taskno)
{
	url="<%=request.getContextPath()%>/servlet/ApprovePlanServlet1?planno="+planno+"&state="+state+"&taskno="+taskno;
	window.location.href=url;
}
function showTrainningPlanList(){
	wx=640;
	wy=400;
	urlstr="<%=request.getContextPath()%>/servlet/TrainingPlan_CommonSearchServlet";
	x=(window.screen.width-wx)/2;
	y=(window.screen.height-wy)/2;
	wposition=",left="+x+",top="+y;
	window.open(urlstr,"","width="+wx+",height="+wy+",scrollbars=yes,status=no"+wposition);
}

function openPlanBasicInfo(trainingno){
	wx=600;
	wy=400;
	urlstr="<%=request.getContextPath()%>/servlet/TrainingPlan_ViewPlanInfoServlet?trainingno=" + trainingno;
	x=(window.screen.width-wx)/2;
	y=(window.screen.height-wy)/2;
	wposition=",left="+x+",top="+y;
	window.open(urlstr,"","width="+wx+",height="+wy+",scrollbars=yes,status=no"+wposition);
}


var phaseArray = new Array();
function phaseObj(){
	var phaseNo;
	var phaseName;
}
var i = 0;


function _viewProj(projno,state){
	if(state == "6")
	{
		url = "<%=request.getContextPath()%>/servlet/ShowProjectViewInfoServlet?projNo=" + projno;
		window.open(url,"_blank","width=750,height=450,menu=no,scrollbars=yes");
	}
	else
	{
		url="<%=request.getContextPath()%>/servlet/ProjectEntryServlet?projno="+ projno+ "&phaseNo="+ state;
		//url = "<%=request.getContextPath()%>/jsp/project/project_frame_shishi.jsp?prjno="+projno+"&phaseNo="+state;
		//alert(url);
		window.location.href = url;
	}
}
//模块跳转
function _jump(leftURL,mainURL){
	window.top._funNav('1')
	window.top.leftFrame.location=leftURL;
	window.top.mainFrame.location = mainURL;
}
</script>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #E1ECFF;
}
-->
</style>
<link href="<%=request.getContextPath()%>/css/css1.css" rel="stylesheet" type="text/css">
<link href="<%=request.getContextPath()%>/css/personal.css" rel="stylesheet" type="text/css">
<SCRIPT language="JavaScript" src="<%=request.getContextPath()%>/common/common.js"></SCRIPT>
</head>

<body>
<table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#6C9EF0">
  <tr>
    <td width="18%" rowspan="2" bgcolor="#FFFFFF">
	<table width="100%" height="80%" border="0" align="center" cellpadding="0" cellspacing="4">
      <tr bgcolor="#CBE4FE">
        <td height="18" colspan="2"><div align="center" class="unnamed3">快捷功能入口</div></td>
      </tr>
      <tr>
        <td height="28"><div align="right"><img src="<%=request.getContextPath()%>/images/icon-02.gif" width="16" height="16" hspace="10"></div></td>
        <td class="unnamed3Copy"><a href="<%=request.getContextPath()%>/servlet/SearchPlanServlet?search=search" target="_self">计划列表</a></td>
      </tr>
      <tr>
        <td colspan="2"><img src="<%=request.getContextPath()%>/images/bg.gif" width="160" height="1"></td>
      </tr>
      <tr>
        <td height="28" align="center" width="35%"><div align="right"><img src="<%=request.getContextPath()%>/images/icon-01.gif" width="16" height="16" hspace="10"></div></td>
        <td class="unnamed3Copy"><a href="<%=request.getContextPath()%>/servlet/SearchProjectServlet?searchtype=state" target="_self">项目列表</a></td>
      </tr>
      <tr>
        <td colspan="2"><img src="<%=request.getContextPath()%>/images/bg.gif" width="160" height="1"></td>
      </tr>
      <tr>
        <td height="28"><div align="right"><img src="<%=request.getContextPath()%>/images/icon-03.gif" width="16" height="16" hspace="10"></div></td>
        <td class="unnamed3Copy"><a href="<%=request.getContextPath()%>/servlet/ShowCardManageListServlet?type=list" target="_self">资料卡列表</a></td>
      </tr>
      <tr>
        <td colspan="2"><img src="<%=request.getContextPath()%>/images/bg.gif" width="160" height="1"></td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
      </tr>
      <tr bgcolor="#CBE4FE">
        <td height="18" colspan="2"><div align="center" class="unnamed3">个人事务</div></td>
      </tr>
      <tr>
        <td height="28"><div align="right"><img src="<%=request.getContextPath()%>/images/icon-04.gif" width="16" height="16" hspace="10"></div></td>
        <td class="unnamed3Copy"><a href="ShowMemoServlet" target="_self">备忘录</a></td>
      </tr>
      <tr>
        <td colspan="2"><img src="<%=request.getContextPath()%>/images/bg.gif" width="160" height="1"></td>
      </tr>
      <tr>
        <td height="28"><div align="right"><img src="<%=request.getContextPath()%>/images/icon-05.gif" width="16" height="16" hspace="10"></div></td>
        <td class="unnamed3Copy"><a href="CalendarChoiceServlet2" target="_self">日记</a></td>
      </tr>
      <tr>
        <td colspan="2"><img src="<%=request.getContextPath()%>/images/bg.gif" width="160" height="1"></td>
      </tr>
      <tr>
        <td height="28"><div align="right"><img src="<%=request.getContextPath()%>/images/icon-06.gif" width="16" height="16" hspace="10"></div></td>
        <td class="unnamed3Copy"><a href="<%=request.getContextPath()%>/jsp/msgnote/msgFrame.jsp" target="_self">通知</a></td>
      </tr>
      <tr>
        <td colspan="2"><img src="<%=request.getContextPath()%>/images/bg.gif" width="160" height="1"></td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
      </tr>
      <tr bgcolor="#CBE4FE">
        <td height="18" colspan="2"><div align="center" class="unnamed3">通讯录</div></td>
      </tr>
      <tr>
        <td height="24" valign="middle"><div align="right"><img src="<%=request.getContextPath()%>/images/icon-07.gif" width="16" height="16" hspace="10"></div></td>
        <td class="unnamed3Copy"><div style="CURSOR: hand" onClick="JavaScript:_jump('/cnpc/servlet/PublicShowGroupListServlet','/cnpc/servlet/GroupPersonRightServlet?flag=_public')"><FONT COLOR="#0000FF"><U>公共地址薄</U></FONT></div></td>
      </tr>
      <tr>
        <td colspan="2" valign="middle"><img src="<%=request.getContextPath()%>/images/bg.gif" width="160" height="1"></td>
      </tr>
      <tr>
        <td height="24" valign="middle"><div align="right"><img src="<%=request.getContextPath()%>/images/icon-08.gif" width="16" height="16" hspace="10"></div></td>
        <td class="unnamed3Copy"><div style="CURSOR: hand" onClick="JavaScript:_jump('/cnpc/servlet/PrivateShowGroupListServlet','/cnpc/servlet/GroupPersonRightServlet?flag=_private')"><FONT COLOR="#0000FF"><U>个人地址薄</U></FONT></div></td>
      </tr>
      <tr>
        <td colspan="2"><img src="<%=request.getContextPath()%>/images/bg.gif" width="160" height="1"></td>
      </tr>
    </table></td>
    <td width="50%" bgcolor="#E1ECFF">
		<table width="95%"  border="0" align="center" cellpadding="0" cellspacing="1"  bgcolor="#6C9EF0">
      <tr>
        <td>
	<table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0" >
      <tr>
        <td bgcolor="#E1ECFF"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="113" height="22" background="<%=request.getContextPath()%>/images/bg-01.jpg"><div align="center" class="unnamed1">[通知信息]</div></td>
            <td background="<%=request.getContextPath()%>/images/bg-02.jpg"><div align="right" class="unnamed2"><a href="#" class="unnamed2"><a href="<%=request.getContextPath()%>/jsp/msgnote/msgFrame.jsp">更多</a>&gt;&gt;&gt;&nbsp;</div></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="20%"><img src="<%=request.getContextPath()%>/images/pics-01.jpg" width="113" height="133"></td>
            <td width="80%" align="left" valilgn="top" class="text">
            <table width="100%" height="100%" height="100%" valign="top" border="0" cellspacing="0" cellpadding="0">
				<%
					Iterator iter = msgList.iterator();
					int recnum=msgList.size();
					if(recnum==0)
					{
				%>
						<span class="text"><span class="title04">&nbsp;&nbsp;暂无信息</span></span>
					<%}
							for(int i = 0; i < 5; i++)
							{
								if(iter.hasNext()){
								TmsgSearchVO msg2VO = (TmsgSearchVO)iter.next();
								String id = msg2VO.getId()+"";
								String msgtitle = msg2VO.getMsgTitle()+"";
								String date1=msg2VO.getMsgSendtime().toString();
								if(date1!=null && !date1.equals(""))
									date1=date1.substring(0,10);
						%>
				<tr valign=top>
            	<td width="80%" align="left" valilgn="top" class="text">  
						<span class="text">·<span class="title04">
      				<a href="<%=request.getContextPath()%>/jsp/msgnote/msgShowFrame.jsp?showmsgid=<%=msg2VO.getMsgId()%>&showid=<%=msg2VO.getId()%>" >
      				<%=msgtitle%>
      				</a>
      				
	      		</span></span></br>
	      		</td>
	      		<td width="20%" align="left" valilgn="top" class="text">
	      			<span class="text"><span class="title04">
	      				<%=date1%>
	      			</span></span>
	      		</td>
	      		</tr>
   	   		<%}}%>
   	   		</table>
          </tr>
        </table></td>
      </tr>
    </table>
	</td></tr>
</table>
	    <br>
	<table width="95%"  border="0" align="center" cellpadding="0" cellspacing="1"  bgcolor="#6C9EF0">
      <tr>
        <td>
	<table width="100%"  align="center" border="0" cellspacing="0" cellpadding="0" bgcolor="#E1ECFF">
          <tr>
            <td width="113" height="22" background="<%=request.getContextPath()%>/images/bg-01.jpg"><div align="center" class="unnamed1">[公告信息]</div></td>
            <td background="<%=request.getContextPath()%>/images/bg-02.jpg"><div align="right" class="unnamed2"><a href="<%=request.getContextPath()%>/servlet/NoteInfoListServlet">更多</a>&gt;&gt;&gt;&nbsp;</div></td>
          </tr>
        </table>
		<table width="100%"  align="center" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
          <tr>

⌨️ 快捷键说明

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