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

📄 mywork.jsp

📁 jsp人事管理系统jsp+servlet
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK"%>
<%@ taglib uri="/cms4j" prefix="cms4j" %>
<%@ page import="cn.com.dekn.cms.article.admin.busi.ArticleAuditBean"%>
<html>
<head>
<title>我的工作台</title>
<link href="../skin/blue/css/menu_tab.css" rel="stylesheet" type="text/css">
<script src="js/fw.js"></script>
<script language="javascript">
//alert("running...");

function page_init(){
 
   var obj1=eval("parent.contextobox");
   var obj2=eval("parent.contextoboxHref");
   if((null!=document.all.wait_audit&&document.all.wait_audit.innerHTML!="")||(null!=document.all.share&&document.all.share.innerHTML!="")||(null!=document.all.returned&&document.all.returned.innerHTML!="")){
     obj1.style.display="";
	 if(null!=document.all.returned&&document.all.returned.innerHTML!=""){
	 	obj2.href="../mywork/article_list_return.jsp";     
	 }
	 if(null!=document.all.wait_audit&&document.all.wait_audit.innerHTML!=""){
	 	obj2.href="../mywork/wait_article_auditing.jsp";
	 }
	 if(null!=document.all.share&&document.all.share.innerHTML!=""){
	 	obj2.href="../article/article_list_share.jsp";
	 }
  }else{
   	 obj1.style.display="none";
  }
  
}

</script>
</head>
<body onLoad="page_init()">
<DIV ID="oContext2" STYLE="display" class="mywork">

<div id="myworkDiv" onMouseOver="parent.oPopup.show(-45,22, 163, parent.oPopupHeigth,parent.MyWorkButton);clearTimeout(parent.popt)" onMouseOut="parent.popt=setTimeout('parent.oPopup.hide()',10)"  class="mywork">
  <table  width="162" height="" border="0" cellpadding="0" cellspacing="0"  id="myWorkTable" name="myWorkTable" class="mywork">
    <tr>
      <td width="6" height="5"><img src="../skin/blue/images/mywork_box_1.gif" width="6" height="5"></td>
      <td valign="top" background="../skin/blue/images/mywork_box_2.gif"></td>
      <td width="6" height="5" align="right"><img src="../skin/blue/images/mywork_box_3.gif" width="6" height="5"></td>
    </tr>
    <tr>
      <td width="6" height="" background="../skin/blue/images/mywork_box_4.gif"></td>
      <td width="100%" valign="top" background="../skin/blue/images/mywork_box_5.gif" height="" id="myworkCel">
	  
	  <%int m=0;%>
	  <cms4j:module module_id="article_add" scope="user">
	  
	  <table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
        <%m++;%>  
		  <tr>
            <td width="22"><p><img src="tree_images/myarticle.gif" width="16" height="16"></p></td>
            <td width="165" style="font-size: 9pt;color: #000000;">我的稿件</td>
          </tr>
        </table>
        <table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
          <%m++;%>
		  <tr>
            <td width="19"><p><img src="tree_images/T.png" width="19" height="16"></p></td>
            <td width="22"><img src="tree_images/article_wait.gif" width="16" height="16"></td>
            <td width="141"  style="font-size: 9pt;color: #000000;"><span style="cursor:pointer"  onClick="parent.top.mainFrame.location.href='../mywork/article_list_wait.jsp'">草稿<%=ArticleAuditBean.getReleaseStateCount(cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeID(request),cn.com.dekn.cms.security.login.CMS4JUser.getUserInfo(request).getUID(),"wait") %></span></td>
          </tr>
        </table>
        <table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
          <%m++;%>
		  <tr>
            <td width="18"><p><img src="tree_images/T.png" width="19" height="16"></p></td>
            <td width="22"><img src="tree_images/article_immediately.gif" width="16" height="16"></td>
            <td  style="font-size: 9pt;color: #000000;"><span style="cursor:pointer"  onClick="parent.top.mainFrame.location.href='../mywork/article_list_immediately.jsp'">已发布<%=ArticleAuditBean.getReleaseStateCount(cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeID(request),cn.com.dekn.cms.security.login.CMS4JUser.getUserInfo(request).getUID(),"immediately") %></span></td>
          </tr>
        </table>
        <table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
         <%m++;%>
		  <tr>
            <td width="18"><p><img src="tree_images/T.png" width="19" height="16"></p></td>
            <td width="22"><img src="tree_images/article_audit.gif" width="16" height="16"></td>
            <td  style="font-size: 9pt;color: #000000;"><span style="cursor:pointer"  onClick="parent.top.mainFrame.location.href='../mywork/article_list_auditing.jsp'">审核中<span  id="auditing"><%=ArticleAuditBean.getReleaseStateCount(cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeID(request),cn.com.dekn.cms.security.login.CMS4JUser.getUserInfo(request).getUID(),"auditing") %></span></span></td>
          </tr>
        </table>
        <table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
         <%m++;%>
		  <tr>
            <td width="18"><p><img src="tree_images/L.png" width="19" height="16"></p></td>
            <td width="22"><img src="tree_images/article_return.gif" width="16" height="16"></td>
            <td  style="font-size: 9pt;color: #000000;"><span style="cursor:pointer"  onClick="parent.top.mainFrame.location.href='../mywork/article_list_return.jsp'">被退回<span id="returned"><%=ArticleAuditBean.getReleaseStateCount(cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeID(request),cn.com.dekn.cms.security.login.CMS4JUser.getUserInfo(request).getUID(),"return") %></span></span></td>
          </tr>
        </table>
		
		
		</cms4j:module>
		
		
		
        <table width="150" border="0" align="center" cellpadding="0" cellspacing="0" style="display:none" id="myWaitTable">
          <tr>
            <td width="22"><p><img src="tree_images/mywait.gif" width="16" height="16"></p></td>
            <td width="165"  style="font-size: 9pt;color: #000000;">我的待办</td>
          </tr>
        </table>
		<!--用来帮助判断“我的待办是不是被重复的加上了”-->
		<%int n=0;%>
		<cms4j:module module_id="article_audit" scope="user">
		<script>
		document.getElementById("myWaitTable").style.display="";
		</script>
        <table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
      	<% 
		      if(n==0){
			    n++;
			    m=m+2;
			  }else{
			   	m++;
			  }
		%>
		  <tr>
            <td width="18"><p><img src="tree_images/T.png" width="19" height="16"></p></td>
            <td width="22"><img src="tree_images/article_audit.gif" width="16" height="16"></td>
            <td  style="font-size: 9pt;color: #000000;"><span style="cursor:pointer"  onClick="parent.top.mainFrame.location.href='../mywork/wait_article_auditing.jsp'">待审核稿件<span id="wait_audit"><%=ArticleAuditBean.getWaitArticleAuditCount(request)%></span></span></td>
          </tr>
        </table>
		</cms4j:module>

		<%
		//只有网站群版才有共享功能
		if(cn.com.dekn.cms.syscfg.SysConfigHelper.getInstance().getValue("version").equals("cluster")){
		%>
	
		<cms4j:module module_id="article_share" scope="user">
		  
		<script>
		document.getElementById("myWaitTable").style.display="";
		</script>
        <table width="150" border="0" align="center" cellpadding="0" cellspacing="0">
           <%
			   if(n==0){
			    n++;
			    m=m+2;
			   }else{
			   	m++;
			   }
			%>
		  <tr>
            <td width="18"><p><img src="tree_images/L.png" width="19" height="16"></p></td>
            <td width="22"><img src="tree_images/cluster.gif" width="16" height="16"></td>
            <td  style="font-size: 9pt;color: #000000;"><span style="cursor:pointer"  onClick="parent.top.mainFrame.location.href='../article/article_list_share.jsp'">共享来的文章<span  id="share"><%=ArticleAuditBean.getShareArticleCount(cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeID(request),"share")%></span></span>
			</td>
          </tr>
        </table>
		</cms4j:module>
		<%
		}
		%>
		
		</td>
      <td width="6" background="../skin/blue/images/mywork_box_6.gif"></td>
    </tr>
	 <script>
     var count=<%=m%>;
	 if(count==0){
	 	parent.MyWorkButton.style.display="none";
	 }else{
	 	myworkCel.height=count*16;
		parent.oPopupHeigth=count*16+10;
		//alert(count+"\n"+myworkCel.height);
	 }
  	</script>
	
    <tr>
      <td height="5"><img src="../skin/blue/images/mywork_box_7.gif" width="6" height="5"></td>
      <td background="../skin/blue/images/mywork_box_8.gif"></td>
      <td><img src="../skin/blue/images/mywork_box_9.gif" width="6" height="5"></td>
    </tr>
  </table>

</div>
</div>
</body>
</html>

⌨️ 快捷键说明

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