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

📄 diaryamend.jsp

📁 tomcat最新安装程序
💻 JSP
📖 第 1 页 / 共 2 页
字号:
		   if(strTemp=="A")
		     t_workTime=t_workTime+myArray[<%=i%>];
                   else if(strTemp=="B")		     
		     t_studyTime=t_studyTime+myArray[<%=i%>];
                   else if(strTemp=="C")
                      t_sportTime=t_sportTime+myArray[<%=i%>];
                   else if(strTemp=="D")
		     t_restTime=t_restTime+myArray[<%=i%>];
	   
		<%
		}
		%>
                   document.form1.work.value=t_workTime;
		   document.form1.study.value=t_studyTime;
		   document.form1.sport.value=t_sportTime;
		   document.form1.rest.value=t_restTime;		   	   
	
	return true;
	}
	
-->
</script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<form name="form1" method="post" action="/krm/servlet/DiaryWriteServlet"  onSubmit="return numTest();">
<input type="hidden" name="tag" value="1">
<table width="100%" align="center" border="0" cellpadding="0" cellspacing="0" >
  <tr height="8">
      <td class="trA"> &nbsp;您的位置:工作日记 >>  <font class="fontcolor">工作日记修改</font></td>
 </tr>
  <tr height="8">
    <td></td>
  </tr>  
  <tr>
    <td align="center"  >

		<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width="98%" >
            <!--<TBODY>-->
            <!--  <TR> 
                <TD align=center class="common"colSpan=2>&nbsp;&nbsp;&nbsp;姓名:<%=userName%>&nbsp;&nbsp;&nbsp;&nbsp;时间:<%=writeDate%>&nbsp;&nbsp;&nbsp;&nbsp;星期<%=week%></TD>
              </TR>
            -->  
			  <%
				if(num!=0&&calendar.getTimeInMillis()< Calendar.getInstance().getTimeInMillis()){
			  %>
              <TR> 
                <TD> 
				  <input type="hidden" name="status" value="<%=status%>">
  				  <input type="hidden" name="timeNO" value="<%=DPD_ID[0]%>">
				  <input type="hidden" name="dateStr" value="<%=writeDate%>">
				  <input type="hidden" name="diaryDate_ID" value="<%=diaryDate_ID%>">
                <table width="100%" border="0" align="center"  class="collapse">
		  <tr > 
                     <td class="tdA" colspan="7">工作日记修改</td>
                  </tr>
                  <TR>
                     <TD align=center class="common1" colSpan=3 >&nbsp;&nbsp;&nbsp;姓名:<%=userName%>&nbsp;&nbsp;&nbsp;&nbsp;时间:<%=writeDate%>&nbsp;&nbsp;&nbsp;&nbsp;星期<%=week%></TD>                  
                  </TR>   
                  <TR align="center" > 
                    <TD width="20%" align="center" class="tdB" nowrap>时段</TD>
                    <TD width="20%" align="center" class="tdB" nowrap>任务</TD>
                    <TD width="60%" align="center" class="tdB">详 细 内 容</TD>                    
                  </TR>
                  <%
                                        	int size=0;
                                        	
                                        	int k=0;

			            List list=diaryManage.getDiaryItemList();
					        
                                    List listA=(List)list.get(0);
                                    List listB=(List)list.get(1);
                                    List listC=(List)list.get(2);
                                    List listD=(List)list.get(3);

                                    int pos1=0;
                                    int pos2=0;

                     	            String strTemp1=null;
                     	            String strTemp2=null;
                     	            String str=null;
                     	                               	            
                  
					  	for(int i=0;i<num;i++){
							int rowsNum=2;
							if(num<5){
								rowsNum=7-num;
							}
						
					  %>
                  <TR <%if((i+1)%2==0){%> class="bgcolor"<%}%> > 
                    <TD width="20%" id=time09_10 class="common" nowrap><%=content[i]%>
			    <select name="status_13<%=i%>" size=1 onChange="return count()">
                      	    <option value='' ></option>  
                      	    <option value='A'>- 工作 -</option>
                      	    <%
                         	    for(int j=0;j<listA.size();j++){      
                         	      str=(String)listA.get(j);
                         	      pos1=str.indexOf("-");                         	      
                         	      strTemp1=str.substring(0,pos1);
                         	      strTemp2=str.substring(pos1+1);  
                      	    %>
                      	    <option 
                      	         <% 
                      	               if(infoItem[k].trim().equals(strTemp1)){
                      	         %>
                      	         selected 
                      	         <%}%>
                      	         value=<%=strTemp1%>><%=strTemp2%>
                      	    </option>
                      	    <%
                      	    ;}
                      	    %>                      	    
                      	    <option value='B'>- 学习 -</option>
                      	    <%
                         	
                                    for(int j=0;j<listB.size();j++){ 
                         	      str=(String)listB.get(j);
                         	      pos1=str.indexOf("-");                         	      
                         	      strTemp1=str.substring(0,pos1);
                         	      strTemp2=str.substring(pos1+1);                        	   
                     	                                    	           
                      	    %>
                      	    <option 
                      	         <% 
                      	               if(infoItem[k].trim().equals(strTemp1)){
                      	         %>
                      	         selected 
                      	         <%}%>
                      	         value="<%=strTemp1%>"><%=strTemp2%>
                      	    </option>                      	    
                      	    <%
                      	    ;}
                      	    %>                      	    
                      	    
                      	    <option value='C'>- 运动 -</option>
                      	    <%
                                   for(int j=0;j<listC.size();j++){                                                              	    
                         	      str=(String)listC.get(j);
                         	      pos1=str.indexOf("-");                         	      
                         	      strTemp1=str.substring(0,pos1);
                         	      strTemp2=str.substring(pos1+1);                          	                        	                                    	           
                         	      
                      	    %>
                      	    <option 
                      	         <% 
                      	               if(infoItem[k].trim().equals(strTemp1)){
                      	         %>
                      	         selected  
                      	         <%}%>
                      	         value=<%=strTemp1%> > <%=strTemp2%>
                      	    </option>
                      	    <%
                      	    ;}
                      	    %>                      	    
                      	    
                      	    <option value='D'>- 休息 -</option>                      	    
                      	    <%
                                   for(int j=0;j<listD.size();j++){    
                         	      str=(String)listD.get(j);
                         	      pos1=str.indexOf("-");                         	      
                         	      strTemp1=str.substring(0,pos1);
                         	      strTemp2=str.substring(pos1+1);                        	                        	                                    	           
                         	      
                      	    %>
                      	    <option 
                      	         <% 
                      	               if(infoItem[k].trim().equals(strTemp1)){
                      	         %>
                      	         selected 
                      	         <%}%>
                      	         value=<%=strTemp1%> > <%=strTemp2%>
                      	    </option>                      	    
                      	    <%
                      	    ;}
                      	    %>                      	    
                      	                 
                          </select>			
                    </TD>

				 <TD width="20%" class="common" nowrap>
                      	          <select name="TaskItem<%=i%>" size=1 >
                      	          <option value="0" selected > ---无--- </option>
                      	          <%
                      	            String strSelect="";
                      	            boolean a=false;

                      	            if(null!=detailRs){ 
                      	            Loop:
                      	               while(detailRs.next()){                      	              
                      	          %>
                      	          <option
                      	          value="<%=detailRs.getD_Serial()%>" > <%=detailRs.getD_Topic()%>
                      	          </option>
                      	          <%
                      	            if(null!=diaryForTaskRs){                      	                                       	                
                      	                 while(diaryForTaskRs.next()){   
                      	                   if((diaryForTaskRs.getDFT_DiaryPeriod().trim().equals(PD_ID[i]))
                      	                      &&(diaryForTaskRs.getDFT_TaskID().equals(detailRs.getD_Serial()))){
                      	                      strSelect="selected";
                      	                      a=true;
                                  %> 
                                  <%
                                    if(a){
                                  %>
                                  <option
                                  selected value="<%=detailRs.getD_Serial()%>" > <%=detailRs.getD_Topic()%>                                 
                                  </option>
                                  <%
                                    }
                                  %>

                                  <% 
                                      
                                           continue Loop;}                                           
                                         ;}
                                         diaryForTaskRs.beforefirst();
                                   }        
                                  %>                                                                    
                      	          
                      	          <%
                      	            }
                      	            detailRs.beforefirst();
                      	            }
                      	            
                      	          %>
                      	          
                      	          <option value="10" 
                      	          <%                      	            
                      	            while(diaryForTaskRs.next()){                      	            
                      	            if((diaryForTaskRs.getDFT_DiaryPeriod().trim().equals(PD_ID[i]))
                      	                      &&(diaryForTaskRs.getDFT_TaskID().equals("10"))){                      	                      
                      	          %>
                      	          selected
                      	          <%
                      	            }
                      	            }
                      	            diaryForTaskRs.beforefirst();
                      	          %>  
                      	          >其他任务                    	          
                      	          </option>                      	                                	                                	                                                                                                                                                                                                         	          
                      	          </select>                      	          				 
                    
                    </TD>  
                    
                    <TD width="60%"> <textarea  cols="54" name="t<%=PD_ID[i]%>" style="overflow:auto" rows="1"   class="diary_textarea"><%=valueInfo[k]%></textarea></TD>

                    <%
                      //}
                    %>
                  </TR>
                  <%
                     k=k+timePeriodInfo[i];
                     }
                  %>
                </TABLE> </TD>
              </TR>
              <TR> 
                
              <TD  class="tdC" align="center"> <p>
                  <%
				  		if(error.equals("1")){
				  %>
                  <font color="#FF0000">您当天时间安排填写的不是数字!请重新填写</font> 
                  <%
				  		}else if(error.equals("2")){
				  %>
                  <font color="#FF0000">您的时间安排超过24小时,请重新填写!</font> 
                  <%
				  		}else{
				  %>
                  <font color="#006633">当天时间安排</font> 
                  <%
				  		}
				  %>
         <table width="100%" border="0" align="center"  class="collapse">
         <tr>
           <td width="10%" align="center"  class="tdB">办公</td>
           <td width="15%" align="left"  class="tdB"><INPUT name="work" class="short" size=10 value=<%=workTime%> id="work" readOnly ></td>
           <td  align="center"  class="tdB">学习</td>
           <td  align="left"  class="tdB"><INPUT name="study" class="short"  size=10 value=<%=learnTime%> id="study" readOnly ></td>
           <td  align="center"  class="tdB">运动</td>
           <td  align="left"  class="tdB"><INPUT name="sport" class="short"  size=10 value=<%=sportTime%> id="sport" readOnly ></td>
           <td  align="center"  class="tdB">休息</td>
           <td  align="left"  class="tdB"><INPUT name="rest" size=10 class="short"  value=<%=restTime%> id="rest" readOnly ></td>
         </tr>
         </table>				  
                  
              <textarea cols="80" name="memoInfo" style="overflow:auto" rows="7" ><%
				  String otherMemo = StringFormat.changeHTMLTags(memoInfo);				  
        			      out.println(otherMemo);				  
				  %> </textarea>
              <BR>
                  备忘: <font color="#FF0000">(请把文字限制在120个汉字以内) </font> <BR>
              <BR>
                  <BR>
                  <input name="imageField" type="submit" value="修 改" onmouseover="this.className='button2'" onmouseout="this.className='button1'"  class="button1">
              &nbsp;&nbsp;
              <input name="button" type="button" onmouseover="this.className='button2'" onmouseout="this.className='button1'"  class="button1" onClick="history.back(1);" value="返 回" > </p> 
            </TD>
				</TR>
				<%
                                  }else{
				%>
				<table width="100%" border="1" align="center" bordercolor="A1B7DB" class="collapse">
				  <tr>
				    <td class="common"><font color="#003300">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#FF0000">工作日记填写时段未设置!请到管理员处询问</font></font></td>
				  </tr>
				</table>
				<%
				  	}
				%>
          </TABLE>
	  </td>
	</tr>
</table>
</form>
</body>
</html>

⌨️ 快捷键说明

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