📄 menu.vm
字号:
<HTML>
<HEAD><TITLE>菜单</TITLE>
#parse("/menu/constant.vm")
<META http-equiv=Content-Type content=text/html;CHARSET=gb2312>
<STYLE>DIV {POSITION: absolute}</STYLE>
<SCRIPT language="JavaScript" src="$request.getContextPath()/jslib/crossbrowser.js"></SCRIPT>
<SCRIPT language="JavaScript" src="$request.getContextPath()/jslib/outlook.js"></SCRIPT>
<SCRIPT language="javascript">
function logout(){
parent.parent.window.navigate("$request.getContextPath()/index.jsp");
}
function changePage(call1){
var ret = parent.frmright.pageStatus(call1);
if(ret == "1"){
parent.frmright.thisForm.where.value="";
parent.frmright.createPage(call1);
}else{
if(call1 == "02") parent.frmright.location = "$request.getContextPath()/senddoc/fileselect.vm";
if(call1 == "20") parent.frmright.location = "$request.getContextPath()/sendDocAction.do?method=draftlist";
if(call1 == "21") parent.frmright.location = "$request.getContextPath()/sendDocAction.do?method=unsealList";
if(call1 == "22") parent.frmright.location = "$request.getContextPath()/sendDocAction.do?method=unsendList";
if(call1 == "23") parent.frmright.location = "$request.getContextPath()/sendDocAction.do?method=sendedList";
if(call1 == "210") parent.frmright.location = "$request.getContextPath()/sendDocAction.do?method=deleteList";
if(call1 == "31") parent.frmright.location = "$request.getContextPath()/guiDocAction.do?method=archiveList&status=1";
if(call1 == "10") parent.frmright.location = "$request.getContextPath()/recvDocAction.do?method=unsignList&unitId=$!userinfo.getUnit().getUnitId()";
if(call1 == "12") parent.frmright.location = "$request.getContextPath()/recvDocAction.do?method=signedList&unitId=$!userinfo.getUnit().getUnitId()";
if(call1 == "14") parent.frmright.location = "$request.getContextPath()/recvDocAction.do?method=jushouList&unitId=$!userinfo.getUnit().getUnitId()";
if(call1 == "30") parent.frmright.location = "$request.getContextPath()/guiDocAction.do?method=archiveList&status=0";
}
}
var menuWidth = screenSize.width;
var menuHeight = screenSize.height;
var o = new createOutlookBar('Bar',0,0,menuWidth, menuHeight,'#f0f0f0','#ffffff');
o.background = "$request.getContextPath()/image/list_table_head_02.gif";
var p;
#if($userinfo.hasPermission(1))
p = new createPanel('recvdoc','收文管理');
#if($userinfo.hasPermission($RECVDOC_SIGN_LIST) || $userinfo.hasPermission($RECVDOC_SIGN_PRINT) || $userinfo.hasPermission($RECVDOC_SIGN_READ) || $userinfo.hasPermission($RECVDOC_SIGN_LOOKFOR))
p.addButton('$request.getContextPath()/menu/images/recvdoc.gif','待签收文件','changePage("10");');
#end
#if($userinfo.hasPermission($RECVDOC_SIGN_LIST) || $userinfo.hasPermission($RECVDOC_SIGN_PRINT) || $userinfo.hasPermission($RECVDOC_SIGN_GUIDANG) || $userinfo.hasPermission($RECVDOC_SIGN_READ) || $userinfo.hasPermission($RECVDOC_SIGN_LOOKFOR))
p.addButton('$request.getContextPath()/menu/images/senddoc.gif','己签收文件','changePage("12");');
#end
#if($userinfo.hasPermission($RECVDOC_SIGN_LIST) || $userinfo.hasPermission($RECVDOC_SIGN_PRINT) || $userinfo.hasPermission($RECVDOC_SIGN_GUIDANG) || $userinfo.hasPermission($RECVDOC_SIGN_READ) || $userinfo.hasPermission($RECVDOC_SIGN_LOOKFOR))
p.addButton('$request.getContextPath()/menu/images/meeting.gif','己退回文件','changePage("14");');
#end
o.addPanel(p);
#end
#if($userinfo.hasPermission(2))
p = new createPanel('senddoc','发文管理');
#if($userinfo.hasPermission($SENDDOC_CREATE))
p.addButton('$request.getContextPath()/menu/images/senddoc.gif','新建发文','changePage("02");');
#end
#if($userinfo.hasPermission($UNSIGN_SENDDOC_LIST) || $userinfo.hasPermission($UNSIGN_SENDDOC_SIGN) || $userinfo.hasPermission($UNSIGN_SENDDOC_READ) || $userinfo.hasPermission($UNSIGN_SENDDOC_LOOKFOR) || $userinfo.hasPermission($UNSIGN_SENDDOC_DELETE))
p.addButton('$request.getContextPath()/menu/images/address.gif','待审核文件','changePage("21");');
#end
#if ($userinfo.hasPermission($UNSEND_SENDDOC_LIST) || $userinfo.hasPermission($UNSEND_SENDDOC_SEND) || $userinfo.hasPermission($UNSEND_SENDDOC_READ) || $userinfo.hasPermission($UNSEND_SENDDOC_LOOKFOR))
p.addButton('$request.getContextPath()/menu/images/mail.gif','待发送文件','changePage("22");');
#end
#if ($userinfo.hasPermission($SENDED_SENDDOC_LIST) || $userinfo.hasPermission($SENDED_SENDDOC_READ) || $userinfo.hasPermission($SENDED_SENDDOC_LOOKFOR) || $userinfo.hasPermission($SENDED_SENDDOC_RESEND))
p.addButton('$request.getContextPath()/menu/images/meeting.gif','已发送文件','changePage("23");');
#end
o.addPanel(p);
#end
#if ($userinfo.hasPermission($SYSMANAGE) || $userinfo.isAdmin())
p = new createPanel('sysadmin','系统管理');
p.addButton('$request.getContextPath()/menu/images/self.gif','本单位信息','parent.frmright.location="$request.getContextPath()/orgnization/viewselfunit.vm";parent.parent.topMenu.location="$request.getContextPath()/root/topmenu.vm"');
p.addButton('$request.getContextPath()/menu/images/dept.gif','本单位部门','parent.frmright.location="$request.getContextPath()/deptList.do?method=deptList&unitId=$!userinfo.getUnit().getUnitId()&start=1";parent.parent.topMenu.location="$request.getContextPath()/root/topmenu.vm"');
p.addButton('$request.getContextPath()/menu/images/person.gif','本单位人员','parent.frmright.location="$request.getContextPath()/useradmin.do?method=userlist&start=1";parent.parent.topMenu.location="$request.getContextPath()/root/topmenu.vm"');
p.addButton('$request.getContextPath()/menu/images/regist.gif','本单位角色','parent.frmright.location="$request.getContextPath()/roleList.do?method=roleList&unitId=$!userinfo.getUnit().getUnitId()&start=1";parent.parent.topMenu.location="$request.getContextPath()/root/topmenu.vm"');
p.addButton('$request.getContextPath()/menu/images/lowerunit.gif','直属单位','parent.frmright.location="$request.getContextPath()/unitList.do?method=unitList&unitId=$!userinfo.getUnit().getUnitId()&start=1";parent.parent.topMenu.location="$request.getContextPath()/root/topmenu.vm"');
p.addButton('$request.getContextPath()/menu/images/danweiqunzu.gif','单位群组','parent.frmright.location="$request.getContextPath()/groupList.do?method=groupList&unitId=$!userinfo.getUnit().getUnitId()&start=1";parent.parent.topMenu.location="$request.getContextPath()/root/topmenu.vm"');
#if ($userinfo.getUnit().getFatherId() == "0")
p.addButton('images/book.gif','字典信息设置','parent.frmright.location="$request.getContextPath()/dictionlist.do?method=listState";parent.parent.topMenu.location="$request.getContextPath()/root/topmenu.vm"');
#end
o.addPanel(p);
#end
p = new createPanel('logout','退出系统');
p.addButton('$request.getContextPath()/menu/images/home.gif','退出系统','location="javascript:logout()"');
o.addPanel(p);
o.draw(); //draw the OutlookBar
//-----------------------------------------------------------------------------
//functions to manage window resize
//-----------------------------------------------------------------------------
//resize OP5 (test screenSize every 100ms)
function resize_op5() {
var defaultPanel = 0;//设置初始菜单
o.showPanel(defaultPanel);
if (bt.op5) {
o.showPanel(o.aktPanel);
var s = new createPageSize();
if ((screenSize.width!=s.width) || (screenSize.height!=s.height)) {
screenSize=new createPageSize();
//need setTimeout or resize on window-maximize will not work correct!
setTimeout("o.resize(0,0,screenSize.width,screenSize.height)",100);
}
setTimeout("resize_op5()",100);
}
}
function showp(pan){
o.showPanel(pan);
}
//resize IE & NS (onResize event!)
function myOnResize() {
if (bt.ie4 || bt.ie5 || bt.ns5) {
var s=new createPageSize();
o.resize(0,0,s.width,s.height);
}
else
if (bt.ns4) location.reload();
}
</SCRIPT>
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY onresize=myOnResize(); bgColor=#9B0028 onload=resize_op5(); scroll=no style="MARGIN: 0px" style="background:#527589">
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -