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

📄 controlwritediary.jsp

📁 tomcat最新安装程序
💻 JSP
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ page import="cn.com.aheadsoft.util.StringFormat" %>
<%@ page import="cn.com.aheadsoft.util.UserInfo"%>
<%@ page import="cn.com.aheadsoft.recordset.ControlWriteDiaryRecordSet"%>
<%@ page import="cn.com.aheadsoft.manage.UserPurviewManage"%>
<jsp:useBean id="userinfo" scope="session" class="cn.com.aheadsoft.util.UserInfo"/>
<jsp:useBean id="upm" scope="session" class="cn.com.aheadsoft.manage.UserPurviewManage"/>
<%
      ControlWriteDiaryRecordSet m_RecordSet=(ControlWriteDiaryRecordSet)request.getAttribute("m_RecordSet");
      UserPurviewManage priority = new UserPurviewManage();	  
      int incumbencyinsert = priority.getUserPopInt(userinfo, "4", "2", "i");

%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link rel="stylesheet" type="text/css" href="/krm/jsp/css/css.css">
<title>控制工作日记填写</title>
<script>
<!--
    function atSubmit(obj){
        isOK=false;
        lab="";
	    for(i=0;i<obj.length;i++){
		    if(obj.elements[i].value!=null && obj.elements[i].value!=""){
			    isOK=true;
		    }else{
			    isOK=false;
			    lab=obj.elements[i].alt;
			    obj.elements[i].focus();
			    break;
		    }
	    }
        if(!isOK){
            alert("您没有填写"+lab+"!请填写后提交。");
            return false;
        }else{
	       // obj.submit(); 
        }
    }
	
	function atDelete() {
		return confirm("您确定要删除吗?");
	}
   function openWindow(theURL,winName,features) {
  		window.open(theURL,winName,features);
	}

-->
</script>

</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
  <tr height="8" class="trA">
    <td>&nbsp;您的位置:人事管理 >>  人事信息 >> <font class="fontcolor">控制工作日记填写</font></td>
  </tr>
  <tr height="8">   
	<td>
	</td>
  </tr> 
  <tr>
    <td align="center" >      
      <table border="0" width="98%" align="center" class="collapse">   
          <tr><td class="tdA" colspan="9" align="left">控制工作日记填写人员</td></tr>		  
	  <form action="/krm/servlet/ControlWriteDiaryServlet" method="post" name="form1" onsubmit="return atSubmit(this)">		
		<tr>
			<td width="10%" class="common bgcolor" align="center">姓名:</td>
	  		<td class="common" colspan="3">
              <input name="userName" type="text" class="middle" readonly  alt="姓名">
              <input name="userID" type="hidden" size="47" readonly > 
              <a href="javascript:openWindow('/krm/servlet/UserSelectServlet?link1=form1.userID&link2=form1.userName','selectuser','width=500,height=300')"><image src="/krm/jsp/image/selectperson.gif" border="0"></a>
      </td>        

        </tr>		
		<input type="Hidden" name="status" value="i">
		<tr>
		<td colspan="4" align="center" height="20" class="tdC" >
		<%if(incumbencyinsert>0){%>
		<input type="submit" value="提交" onmouseover="this.className='button2'" onmouseout="this.className='button1'" class="button1">
		<%}%>
		&nbsp;&nbsp;&nbsp;<input type="button" value="返 回" onmouseover="this.className='button2'" onmouseout="this.className='button1'" class="button1"  onClick="document.location.href='/krm/servlet/PersonServlet?module=stuff&&status=q&&queryterm=all&&del=n'">
		</td></tr>
		</form>
      </table>
<br>
 <table border="0" width="98%" align="center" height="30%" class="collapse">
      
  <tr>
        <td width="20%" class="tdB" align="center" height="20" >序号</td>
		<td width="60%" class="tdB" align="center" >姓名</td>
		<td width="20%" class="tdB" align="center" >删除</td>
	</tr>
	<%
	     
	     if((null!=m_RecordSet)&&(m_RecordSet.size()>0)){
	        int num=1;
	        while(m_RecordSet.next()){			 		   
	%>
    <tr<%if(num%2==0){%> class="bgcolor"<%}%>>
	<td width="20%" class="common" align="center" ><%=num%></td>
    <td width="60%" class="common" align="center" ><%=m_RecordSet.getUserName()%></td>
	<td width="20%" class="common" align="center" >
	<a href="/krm/servlet/ControlWriteDiaryServlet?status=d&userid=<%=m_RecordSet.getUserID()%>" onclick="return atDelete()">删除</a>	
	</td>
    </tr>
	<%
	         num++;
		   }
		}   
	%>		
    <tr><td colspan="3" class="tdC">&nbsp;</td>
    </tr>		
    </table>
   </td>
</tr>	
</table>
 
</body>
</html>

⌨️ 快捷键说明

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