personalworktodo.jsp

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

JSP
516
字号
            <td width="20%"><img src="<%=request.getContextPath()%>/images/pics-02.jpg" width="113" height="133"></td>
            <td width="80%" align="left" valilgn="top" class="text">
            <table width="100%"  border="0" height="100%" valign="top" cellspacing="0" cellpadding="0">
				  <%
			            Iterator iter10 = notelist.iterator();
			         	int recnum1=notelist.size();
							if(recnum1==0)
							{
					%>
						<span class="text"><span class="title04">&nbsp;&nbsp;暂无信息</span></span>
					<%}
							for(int i = 0; i < 5; i++)
							{
							if(iter10.hasNext()){
							NoteInfo1VO vo = (NoteInfo1VO)iter10.next();
							String noteId = StringUtility.filterNullObject(vo.getNoteId());
							String noteTitle = StringUtility.filterNullObject(vo.getNoteTitle());
								String date1=vo.getSendTime().toString();
								if(date1!=null && !date1.equals(""))
									date1=date1.substring(0,10);
					%>
				<tr>
            	<td width="80%" align="left" valilgn="top" class="text">  
						<span class="text">·<span class="title04">
      				<a href="<%=request.getContextPath()%>/servlet/NoteOperServlet?ID=<%=noteId%>&operate=view" title="<%=noteTitle%>" ><%=noteTitle%></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>
		<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/TrainingPlan_CommonSearchServlet">更多</a>&gt;&gt;&gt;&nbsp;</div></td>
          </tr>
        </table>
		<table width="100%" align="center"  border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
          <tr>
            <td width="20%"><img src="<%=request.getContextPath()%>/images/pics-03.jpg" width="113" height="133"></td>
                        <td width="80%" align="left" valilgn="top" class="text">
            <table width="100%" height="100%" valign="top" border="0" cellspacing="0" cellpadding="0">
					<%
						  	int recnum2=trainingPlanList.size();
							if(recnum2==0)
							{
					%>
						<span class="text"><span class="title04">&nbsp;&nbsp;暂无信息</span></span>
					<%}
			            for(int i=0;i<5;i++){
							if(itor.hasNext()){
							TrainingPlanInfo trainingPlanInfo = (TrainingPlanInfo)itor.next();
							String tPlanName = trainingPlanInfo.getTrainingname();
								String date1=trainingPlanInfo.getBegindate().toString();
								if(date1!=null && !date1.equals(""))
									date1=date1.substring(0,10);
					%>
				<tr >
            	<td width="80%" align="left" valilgn="top" class="text">  
						<span class="text">·<span class="title04">
      				<a href="javascript:openPlanBasicInfo('<%=trainingPlanInfo.getTrainingno()%>')" ><%=tPlanName%></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>
    <td width="20%" height="100%" rowspan="2" valign="top">
	<table width="100%" height="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
      <tr>
        <td bgcolor="#E1ECFF">
		<table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td width="4%" height="22" background="<%=request.getContextPath()%>/images/bg-03.jpg"><img src="<%=request.getContextPath()%>/images/pics-04.jpg" width="31" height="22"></td>
              <td width="48%" background="<%=request.getContextPath()%>/images/bg-03.jpg" class="unnamed1"><div align="left">进行中项目</div></td>
              <td width="48%" background="<%=request.getContextPath()%>/images/bg-03.jpg" class="unnamed1Copy"><div align="right"><a href="<%=request.getContextPath()%>/servlet/ProjectManageListServlet" target="_self">更多</a>&gt;&gt;&nbsp;</div></td>
            </tr>
            <tr height="29%">
              <td colspan="3" valign="top"><br>
              <%
			            Iterator iter1 = projList.iterator();
			            Iterator iter11 = projplanlist.iterator();
			            int allcount=0;
			            int allcount1=0;
							for(int i = 0; i < 5; i++)
							{
							if(iter1.hasNext()){
							allcount++;
							allcount1++;
							ProjectInfo vo = (ProjectInfo)iter1.next();
							String projectno = StringUtility.filterNullObject(vo.getProjectno());
							String state = StringUtility.filterNullObject(vo.getProjectstate());
							String projectname = StringUtility.filterNullObject(vo.getProjectname());
							String tempProjName=projectname;
							if (projectname != null && projectname.length() > 15) {
								tempProjName = projectname.substring(0,13) + "..";
					}
					%>
				<span class="text">&nbsp;&nbsp;&nbsp;·<span class="title04">
      			<a href="#" title="<%=projectname%>" onclick="_viewProj('<%=projectno%>','<%=state%>')"><%=tempProjName%></a>
      		</span></span></br>
      		<%}}
      			if(allcount<5)
      			{
      			for(int m=allcount;m<5;m++)
      			{
      				if(iter11.hasNext()){
      					allcount1++;
							PlanInfo vo = (PlanInfo)iter11.next();
							String planno = StringUtility.filterNullObject(vo.getPlanno());
							String planname = StringUtility.filterNullObject(vo.getPlanname());
							String tempPlanName=planname;
							if (planname!= null && planname.length() > 13) {
								tempPlanName = planname.substring(0,12) + "..";
					}
				%>
				<span class="text">&nbsp;&nbsp;&nbsp;·<span class="title04">
      			<a title="<%=planname%>" href="/cnpc/servlet/ShowProjectActiveServlet?planNo=<%=planno%>"><%=tempPlanName%></a>
      		</span></span></br>
				<%}}}
					if(allcount1==0){
				%><span class="text"><span class="title04">&nbsp;&nbsp;没有进行中的项目</span></span>
				<%}%>
              </td>
            </tr>
            <tr>
              <td height="22" background="<%=request.getContextPath()%>/images/bg-03.jpg"><img src="<%=request.getContextPath()%>/images/pics-05.jpg" width="31" height="22"></td>
              <td height="22" background="<%=request.getContextPath()%>/images/bg-03.jpg" class="unnamed1"><div align="left">待审批计划</div></td>
              <td height="22" background="<%=request.getContextPath()%>/images/bg-03.jpg" class="unnamed1Copy"><div align="right" ><a href="<%=request.getContextPath()%>/servlet/ApprovePlanListServlet">更多</a>&gt;&gt;&nbsp;</div></td>
            </tr>
            <tr height="29%">
              <td colspan="3"  valign="top"><br>
              		<%
            	if(Planlist!=null && Planlist.size()!=0)
            	{
            		int realrecord=0;
            		int recordnum=0;
						for(Iterator iter2 = Planlist.iterator();iter2.hasNext();)
						{
							if(realrecord>=5)
								break;
            			recordnum++;
        					PerformTaskVO planinfo = (PerformTaskVO)iter2.next();
        					String tasktype=planinfo.getTasktype();
        					if(tasktype!=null && tasktype.equals("0"))
        						continue;
        					realrecord++;
        					String planNo=planinfo.getPlanno();
        					String state=planinfo.getState();
        					String planName=planinfo.getPlanname();
        					String tempplanname="";
        					if(planName !=null && planName.length()>10)
        					{
        						tempplanname=planName.substring(0,9);
        						tempplanname+="..";
        					}
        					else if(planName !=null)
        						tempplanname=planName;
        			%>
			  		<span class="text">&nbsp;&nbsp;&nbsp;·<span class="title04">
			  				<A href="#" onClick="approvePlan('<%=planNo%>','<%=state%>','<%=planinfo.getTaskno()%>')" title="<%=planName%>">
			  					<%=tempplanname%>
			  				</A></span></span><br><%}
		         if(realrecord==0){%>
		         <span class="text"><span class="title04">&nbsp;&nbsp;没有待审批的计划</span></span>
		         <%}}
		         else
		         {
		         %>
		         <span class="text"><span class="title04">&nbsp;&nbsp;没有待审批的计划</span></span>
		         <%}%>
              	<br>
              </td>
            </tr>
            <tr>
              <td height="22" background="<%=request.getContextPath()%>/images/bg-03.jpg"><img src="<%=request.getContextPath()%>/images/pics-06.jpg" width="31" height="22"></td>
              <td height="22" background="<%=request.getContextPath()%>/images/bg-03.jpg" class="unnamed1"><div align="left">待审核计划</div></td>
              <td height="22" background="<%=request.getContextPath()%>/images/bg-03.jpg" class="unnamed1Copy"><div align="right"><a href="<%=request.getContextPath()%>/servlet/ApprovePlanListServlet">更多</a>&gt;&gt;&nbsp;</div></td>
            </tr>
            <tr height="29%">
              <td colspan="3"  valign="top">
              <br>
              		<%
            	if(Planlist!=null && Planlist.size()!=0)
            	{
            		int realrecord=0;
            		int recordnum=0;
						for(Iterator iter2 = Planlist.iterator();iter2.hasNext();)
						{
							if(realrecord>=5)
								break;
            			recordnum++;
        					PerformTaskVO planinfo = (PerformTaskVO)iter2.next();
        					String tasktype=planinfo.getTasktype();
        					if(tasktype!=null && tasktype.equals("1"))
        						continue;
        					realrecord++;
        					String planNo=planinfo.getPlanno();
        					String state=planinfo.getState();
        					String planName=planinfo.getPlanname();
        					String tempplanname="";
        					if(planName !=null && planName.length()>10)
        					{
        						tempplanname=planName.substring(0,9);
        						tempplanname+="..";
        					}
        					else if(planName !=null)
        						tempplanname=planName;
        			%>
			  		<span class="text">&nbsp;&nbsp;&nbsp;·<span class="title04">
			  				<A href="#" onClick="approvePlan('<%=planNo%>','<%=state%>','<%=planinfo.getTaskno()%>')" title="<%=planName%>">
			  					<%=tempplanname%>
			  				</A></span></span><br><%}
		         if(realrecord==0){%>
		         <span class="text"><span class="title04">&nbsp;&nbsp;没有待审核的计划</span></span>
		         <%}}
		         else{
		         %>
		         <span class="text"><span class="title04">&nbsp;&nbsp;没有待审核的计划</span></span>
		         <%}%>
              	<br>
              
              </td>
            </tr>
          </table>
	    </td>
      </tr>
      </table>
            <div align="right"></div>
          <div align="right"></div>
    <div align="right"></div></td>
  </tr>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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