?? undeal.vm
字號:
<html>
<head>
#parse("/menu/constant.vm")
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>待辦事宜</title>
<link href="$request.getContextPath()/csslib/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
.title_maintxt{filter:DropShadow(Color=#ffffff, OffX=1, OffY=1, Positive=1)}
.title_main{background:url($request.getContextPath()/image/title_main.gif);height: 18;}
.tdbg_left{background:url($request.getContextPath()/image/tdbg_left2.gif);height: 13;}
</style>
<script language="javascript">
function init(){
parent.parent.topMenu.location = "$request.getContextPath()/root/topmenu.vm";
startclock();
}
function pageStatus(val){
if(val == "03"){
return "1";
}else{
return "0";
}
}
function mnlshowclose(){
if(Layer1.style.visibility=='visible') {
Layer1.style.visibility='hidden';
}
else
{
Layer1.style.visibility='visible';
}
}
function goUrl(hrefstr){
location = hrefstr;
}
</script>
</head>
<body onload="init(); timerONE=window.setTimeout" background="">
<br><br><br><br><br><br>
<table width="500" border="0" cellpadding="0" cellspacing="0" class="title_main" align="center">
<tr>
<td width="40"> </td>
<td valign="bottom" class="title_maintxt">待辦事項</td>
<td valign="bottom" align=right> <img src="$request.getContextPath()/image/clock.gif" onclick="mnlshowclose()" title="點擊打開或關閉日歷"></td>
</tr>
</table>
<table width="500" border="0" cellspacing="0" cellpadding="4" align=center style='border: 1px solid #6687BA;'>
<tr height=12><td colspan=2> </td></tr>
<tr height=22><td colspan=2> 所屬單位:$!userinfo.getUnit().getUnitName()</td></tr>
#if ($userinfo.hasPermission($SYSMANAGE) || $!userinfo.isAdmin())
#else
<tr height=22><td colspan=2> 所屬部門:$!userinfo.getDeptName()</td></tr>
#end
<tr height=22><td colspan=2> 用戶姓名:$!userinfo.getUserName()</td></tr>
<tr height=12><td colspan=2> </td></tr>
#if ($userinfo.isAdmin())
#else
<tr height=28><td colspan=2> 系統提示:<%if(pdstr.equals("1")){out.print("<!--marquee border='0' behavior='alternate' ><font color='red'>請注意,您單位有文件待處理!</font></marquee-->");}%></td></tr>
#if ($userinfo.hasPermission($RECVDOC_LIST) || $userinfo.hasPermission($RECVDOC_SIGN) || $userinfo.hasPermission($RECVDOC_TUIHUI) || $userinfo.hasPermission($RECVDOC_READ) || $userinfo.hasPermission($RECVDOC_LOOKFOR))
<tr height=22><td colspan=2> 本單位有<a href="#" onclick="goUrl('$request.getContextPath()/recvDocAction.do?method=unsignList&unitId=$!userinfo.getUnit().getUnitId()')"><font color=red><b>$!unsignnum</b></font></a>個收文待簽收,<a href="#" onclick="goUrl('$request.getContextPath()/recvDocAction.do?method=unsignList&unitId=$!userinfo.getUnit().getUnitId()')">現在處理。</a></td></tr>
#end
#if ($userinfo.hasPermission($UNSIGN_SENDDOC_LIST) || $userinfo.hasPermission($UNSIGN_SENDDOC_SIGN) || $userinfo.hasPermission($UNSIGN_SENDDOC_READ) || $userinfo.hasPermission($UNSIGN_SENDDOC_LOOKFOR))
<tr height=22><td colspan=2 style="LETTER_SPACING:21"> 本單位有<a href="#" onclick="goUrl('$request.getContextPath()/sendDocAction.do?method=unsealList')"><font color=red><b>$!unsealnum</b></font></a><a href="#" onclick="goUrl('$request.getContextPath()/sendDocAction.do?method=unsealList')">現在處理。</a></td></tr>
#end
#if ($userinfo.hasPermission($UNSEND_SENDDOC_LIST) || $userinfo.hasPermission($UNSEND_SENDDOC_SEND) || $userinfo.hasPermission($UNSEND_SENDDOC_READ) || $userinfo.hasPermission($UNSEND_SENDDOC_LOOKFOR))
<tr height=22><td colspan=2> 本單位有<a href="#" onclick="goUrl('$request.getContextPath()/sendDocAction.do?method=unsendList')"><font color=red><b>$!unsendnum</b></font></a>個發文待發送,<a href="#" onclick="goUrl('$request.getContextPath()/sendDocAction.do?method=unsendList')">現在處理。</a></td></tr>
#end
#end
<tr height=12><td colspan=2> </td></tr>
</table>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="15" align="center" valign="top">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="14" Class="tdbg_left"></td>
</tr>
</table>
</td>
</tr>
</table>
<SCRIPT language=JavaScript>
<!--
var bsYear;
var bsDate;
var bsWeek;
var arrLen=8; //數組長度
var sValue=0; //當年的秒數
var dayiy=0; //當年第幾天
var miy=0; //月份的下標
var iyear=0; //年份標記
var dayim=0; //當月第幾天
var spd=86400; //每天的秒數
var year1999="30;29;29;30;29;29;30;29;30;30;30;29"; //354
var year2000="30;30;29;29;30;29;29;30;29;30;30;29"; //354
var year2001="30;30;29;30;29;30;29;29;30;29;30;29;30"; //384
var year2002="30;30;29;30;29;30;29;29;30;29;30;29"; //354
var year2003="30;30;29;30;30;29;30;29;29;30;29;30"; //355
var year2004="29;30;29;30;30;29;30;29;30;29;30;29;30"; //384
var year2005="29;30;29;30;29;30;30;29;30;29;30;29"; //354
var year2006="30;29;30;29;30;30;29;29;30;30;29;29;30";
var month1999="正月;二月;三月;四月;五月;六月;七月;八月;九月;十月;十一月;十二月"
var month2001="正月;二月;三月;四月;閏四月;五月;六月;七月;八月;九月;十月;十一月;十二月"
var month2004="正月;二月;閏二月;三月;四月;五月;六月;七月;八月;九月;十月;十一月;十二月"
var month2006="正月;二月;三月;四月;五月;六月;七月;閏七月;八月;九月;十月;十一月;十二月"
var Dn="初一;初二;初三;初四;初五;初六;初七;初八;初九;初十;十一;十二;十三;十四;十五;十六;十七;十八;十九;二十;廿一;廿二;廿三;廿四;廿五;廿六;廿七;廿八;廿九;三十";
var Ys=new Array(arrLen);
Ys[0]=919094400;Ys[1]=949680000;Ys[2]=980265600;
Ys[3]=1013443200;Ys[4]=1044028800;Ys[5]=1074700800;
Ys[6]=1107878400;Ys[7]=1138464000;
var Yn=new Array(arrLen); //農歷年的名稱
Yn[0]="己卯年";Yn[1]="庚辰年";Yn[2]="辛巳年";
Yn[3]="壬午年";Yn[4]="癸未年";Yn[5]="甲申年";
Yn[6]="乙酉年";Yn[7]="丙戌年";
var D=new Date();
var yy=D.getYear();
var mm=D.getMonth()+1;
var dd=D.getDate();
var ww=D.getDay();
if (ww==0) ww="<font color=RED>星期日";
if (ww==1) ww="星期一";
if (ww==2) ww="星期二";
if (ww==3) ww="星期三";
if (ww==4) ww="星期四";
if (ww==5) ww="星期五";
if (ww==6) ww="<font color=RED>星期六";
ww=ww;
var ss=parseInt(D.getTime() / 1000);
if (yy<100) yy="19"+yy;
for (i=0;i<arrLen;i++)
if (ss>=Ys[i]){
iyear=i;
sValue=ss-Ys[i]; //當年的秒數
}
dayiy=parseInt(sValue/spd)+1; //當年的天數
var dpm=year1999;
if (iyear==1) dpm=year2000;
if (iyear==2) dpm=year2001;
if (iyear==3) dpm=year2002;
if (iyear==4) dpm=year2003;
if (iyear==5) dpm=year2004;
if (iyear==6) dpm=year2005;
if (iyear==7) dpm=year2006;
dpm=dpm.split(";");
var Mn=month1999;
if (iyear==2) Mn=month2001;
if (iyear==5) Mn=month2004;
if (iyear==7) Mn=month2006;
Mn=Mn.split(";");
var Dn="初一;初二;初三;初四;初五;初六;初七;初八;初九;初十;十一;十二;十三;十四;十五;十六;十七;十八;十九;二十;廿一;廿二;廿三;廿四;廿五;廿六;廿七;廿八;廿九;三十";
Dn=Dn.split(";");
dayim=dayiy;
var total=new Array(13);
total[0]=parseInt(dpm[0]);
for (i=1;i<dpm.length-1;i++) total[i]=parseInt(dpm[i])+total[i-1];
for (i=dpm.length-1;i>0;i--)
if (dayim>total[i-1]){
dayim=dayim-total[i-1];
miy=i;
}
bsWeek=ww;
bsDate=yy+"年"+mm+"月";
bsDate2=dd;
bsYear="農歷"+Yn[iyear];
bsYear2=Mn[miy]+Dn[dayim-1];
if (ss>=Ys[7]||ss<Ys[0]) bsYear=Yn[7];
//-->
</SCRIPT>
<SCRIPT language=JavaScript type=text/javascript>
var vn="Microsoft Internet Explorer";
var some;
if(navigator.appName!=vn)
some=1900;
else
some=0;
function montharr(m0, m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11)
{
this[0] = m0;
this[1] = m1;
this[2] = m2;
this[3] = m3;
this[4] = m4;
this[5] = m5;
this[6] = m6;
this[7] = m7;
this[8] = m8;
this[9] = m9;
this[10] = m10;
this[11] = m11;
}
function calendar()
{
var monthNames = "JanFebMarAprMayJunJulAugSepOctNovDec";
var today = new Date();
var thisDay;
var monthDays = new montharr(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
year = today.getYear();
thisDay = today.getDate();
if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) monthDays[1] = 29;
nDays = monthDays[today.getMonth()];
firstDay = today;
firstDay.setDate(1); // works fine for most systems
testMe = firstDay.getDate();
if (testMe == 2) firstDay.setDate(0);
startDay = firstDay.getDay();
document.write('<DIV id=Layer1 style="HEIGHT: 134px; LEFT: 12px; POSITION: absolute; TOP: 12px; VISIBILITY: hidden; WIDTH: 295px; Z-INDEX: 1" >');
document.write('<table border="0" cellspacing="0" cellpadding="2" align="CENTER" bgcolor="#006000"><TR><TD><table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="Silver">');
document.write('<TR><th colspan="7" bgcolor="#99CC00">');
var dayNames = new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
var monthNames = new Array("1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月");
var now = new Date();
document.write("<font style=font-size:9pt;Color:#006000>"," ",now.getYear() + some , "年" , monthNames[now.getMonth()] ,now.getDate() , "日",dayNames[now.getDay()]," ","(",bsYear,bsYear2,")"," ","</FONT>");
document.writeln('</TH></TR><TR><TH BGCOLOR="#006000"><font style="font-size:9pt;Color:White">日</FONT></TH>');
document.writeln('<th bgcolor="#006000"><font style="font-size:9pt;Color:White">一</FONT></TH>');
document.writeln('<TH BGCOLOR="#006000"><font style="font-size:9pt;Color:White">二</FONT></TH>');
document.writeln('<TH BGCOLOR="#006000"><font style="font-size:9pt;Color:White">三</FONT></TH>');
document.writeln('<TH BGCOLOR="#006000"><font style="font-size:9pt;Color:White">四</FONT></TH>');
document.writeln('<TH BGCOLOR="#006000"><font style="font-size:9pt;Color:White">五</FONT></TH>');
document.writeln('<TH BGCOLOR="#006000"><font style="font-size:9pt;Color:White">六</FONT></TH>');
document.writeln("</TR><TR>");
column = 0;
for (i=0; i<startDay; i++)
{
document.writeln("\n<TD><FONT style=font-size:9pt> </FONT></TD>");
column++;
}
for (i=1; i<=nDays; i++)
{
if (i == thisDay)
{
document.writeln('</TD><td align="CENTER" bgcolor="#FF9900"><FONT style=font-size:9pt;Color:#ffffff><B>')
}
else
{
document.writeln('</TD><TD BGCOLOR="#FFFFFF" ALIGN="CENTER"><FONT style=font-size:9pt;font-family:Arial;font-weight:bold;Color:#006000>');
}
document.writeln(i);
if (i == thisDay) document.writeln("</FONT></TD>")
column++;
if (column == 7)
{
document.writeln("<TR>");
column = 0;
}
}
document.writeln('<TR><td colspan="7" align="CENTER" valign="TOP" bgcolor="#006000"><form name="clock" onSubmit="0"><FONT style=font-size:9pt;Color:#ffffff>現在時間:</FONT><INPUT TYPE="Text" NAME="face" ALIGN="TOP" size=20></TD></TR></TABLE></TD></TR></TABLE></FORM>');
}
document.write('</DIV>');
var timerID = null;
var timerRunning = false;
function stopclock ()
{
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function showtime()
{
var now = new Date()
var hours = now.getHours()
var minutes = now.getMinutes()
var seconds = now.getSeconds()
var timeValue = ""
if(hours>=1 && hours <4)
{timeValue += ("凌晨")}
if(hours>=4 && hours<6)
{timeValue += ("清晨")}
if(hours>=6 && hours<9)
{timeValue += ("早上")}
if(hours>=9 && hours<12)
{timeValue += ("上午")}
if(hours>=12 && hours<13)
{timeValue += ("中午")}
if(hours>=13 && hours<18)
{timeValue += ("下午")}
if(hours>=18 && hours <19)
{timeValue += ("傍晚")}
if(hours>=19 && hours <24)
{timeValue += ("晚上")}
if(hours<1)
{timeValue += ("午夜")}
timeValue +=" "+ ((hours > 12) ? hours - 12 : hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
document.clock.face.value = timeValue
timerID = setTimeout("showtime()",1000)
timerRunning = true
}
function startclock ()
{
//parent.parent.topMenu.location="topmenu.vm";
stopclock();
showtime();
}
</SCRIPT>
<SCRIPT language=JavaScript type=text/javascript>
<!--
calendar();
//-->
</SCRIPT>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -