?? mywork.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 + -