Default_Left.js
资源名称:OA300.rar [点击查看]
上传用户:cctv0805
上传日期:2010-01-03
资源大小:345k
文件大小:6k
源码类别:
OA系统
开发平台:
ASP/ASPX
- MenuList1=new Array(
- "../img/menu_img_1.gif","公共信息查询",
- "../img/img_1.gif", "动态信息", "../commonmessage/news/default.asp",
- "../img/img_1.gif", "政策文件", "../commonmessage/policy/default.asp",
- "../img/img_1.gif","计划信息","../commonmessage/arrangement/default.asp",
- "../img/img_1.gif","公共通讯录","../commonmessage/associate/default.asp",
- "../img/img_1.gif","公共客户","../commonmessage/customer/default.asp");
- MenuList2=new Array(
- "../img/menu_img_2.gif","个人办公室",
- "../img/img_2.gif","个人工作计划","../personal/event/default.asp?T=A",
- "../img/img_2.gif","个人工作日志","../personal/event/default.asp?T=B",
- "../img/img_2.gif","个人日程安排","../personal/event/default.asp?T=C",
- "../img/img_2.gif","个人基本资料","../personal/userinfo/default.asp",
- "../img/img_2.gif","个人详细档案","../personal/archives/default.asp",
- "../img/img_2.gif","个人通讯录","../personal/associate/default.asp",
- "../img/img_2.gif","个人客户","../personal/customer/default.asp");
- MenuList3=new Array(
- "../img/menu_img_3.gif","公文传阅",
- "../img/img_3.gif","新建公文","../document/write_document.asp",
- "../img/img_3.gif","公文查阅","../document/default.asp",
- "../img/img_3.gif","已发公文","../document/sended_document.asp",
- "../img/img_3.gif","公文草稿","../document/draft_document.asp");
- MenuList4=new Array(
- "../img/menu_img_4.gif","公文流转",
- "../img/img_4.gif","新建工作流","../flow_document/write_flow_document.asp",
- "../img/img_4.gif","已收工作流","../flow_document/default.asp",
- "../img/img_4.gif","已发工作流","../flow_document/sended_flow_document.asp",
- "../img/img_4.gif","待批工作流","../flow_document/wait_flow_document.asp",
- "../img/img_4.gif","已批工作流","../flow_document/over_flow_document.asp",
- "../img/img_4.gif","返回工作流","../flow_document/back_flow_document.asp",
- "../img/img_4.gif","工作流草稿","../flow_document/draft_flow_document.asp");
- MenuList5=new Array(
- "../img/menu_img_5.gif","部门邮件",
- "../img/img_5.gif","写新邮件","../email/write_email.asp",
- "../img/img_5.gif","收件箱","../email/default.asp",
- "../img/img_5.gif","发件箱","../email/sended_email.asp",
- "../img/img_5.gif","草稿箱","../email/draft_email.asp");
- MenuList6=new Array(
- "../img/menu_img_6.gif","交流园地",
- "../img/img_6.gif","员工论坛","../communicate/bbs/default.asp",
- "../img/img_6.gif","网上会议","../communicate/meeting/default.asp");
- MenuList7=new Array(
- "../img/menu_img_7.gif","部门人事",
- "../img/img_7.gif","部门列表","../personnel/branch/default.asp",
- "../img/img_7.gif","用户组","../personnel/group/default.asp");
- MenuList8=new Array(
- "../img/menu_img_8.gif","资源管理",
- "../img/img_8.gif","资源列表","../asset/default.asp");
- MenuList9=new Array(
- "../img/menu_img_9.gif","印鉴管理",
- "../img/img_9.gif","单位印鉴","../signature/default.asp",
- "../img/img_9.gif","个人印鉴","../signature/personal.asp"
- );
- MenuList10=new Array(
- "../img/menu_img_10.gif","系统设置",
- "../img/img_10.gif","<font color=#0000FF>管理权限验证</font>","../system/login.asp",
- "../img/img_10.gif","用户权限管理","../system/module.asp",
- "../img/img_10.gif","信息清理","../system/reset.asp",
- "../img/img_10.gif","管理员管理","../system/administrator.asp",
- "../img/img_10.gif","版本及注册信息","../system/register.asp");
- var w=160;
- function NavStatus() {
- if (w==160){w=0;}else{w=160;}
- window.parent.testframeset.cols = ''+w+',*';
- }
- var n;
- //显示与隐藏二级菜单
- function SelectMenu(m){
- menu=eval("menu"+m);
- img=eval("img"+m);
- if (menu.className=="hidden"){
- menu.className="";
- img.src="../img/menuopen.gif";
- }else{
- if (n!=m) {
- menu.className="hidden";
- img.src="../img/menuclose.gif";
- }
- }
- }
- //读出菜单列表
- function LiseMenu(){
- document.write("<table width="100%" border="0" cellspacing="0" cellpadding="0">");
- document.write("<tr height="20"><td onClick="DesktopInfo();" >");
- document.write("<img src="../img/desktop.gif" align="bottom" hspace="2" vspace="2" alt="办公桌面" style="cursor:hand;">");
- document.write("</td></tr>");
- for (i=1;i<11;i++)
- {
- Folder=eval("MenuList"+i);
- document.write("<tr height="22"><td onClick="SelectMenu("+i+")">");
- document.write("<img id="img"+i+"" src="../img/menuclose.gif" align="absmiddle" hspace="2">");
- document.write("<img src=""+Folder[0]+"" align="absmiddle" hspace="2">");
- document.write("<font color="#FF0000" class="menuleft">"+Folder[1]+"</font>");
- document.write("</td></tr>");
- document.write("<tr id="menu"+i+"" class="hidden"><td>");
- MakeItems(Folder,i);
- document.write("</td></tr>");
- }
- document.write("<tr height="22"><td>");
- document.write("<img src="../img/menuopenend.gif" align="absmiddle" hspace="2">");
- document.write("<img src="../img/menu_img_13.gif" align="absmiddle" hspace="2">");
- document.write("<font color="#FF0000" class="menuleft" onClick="if (confirm('你确定要退出系统吗?')){top.o=1;top.out();}" style="cursor:hand;">退出系统</font>");
- document.write("</td></tr>");
- document.write("</table>");
- }
- //读出二级菜单
- function MakeItems(Folder,zorder)
- {
- var items=0;
- var img_line;
- while(Folder[items+2])
- items+=3;
- items/=3;
- for(var i=1;i<items*3;i+=3)
- {
- if (i==items*3-2){
- img_line="../img/menu_line_end.gif";
- }else{
- img_line="../img/menu_line.gif";
- }
- document.write("<img src=""+img_line+"" align="absmiddle" hspace="2">");
- document.write("<img src='"+Folder[i+1]+"' align="absmiddle" hspace="2" vspace="2">");
- document.write("<span link=""+Folder[i+3]+"" onClick="ItemSelected(this,"+zorder+")" class="unselect">");
- document.write(Folder[i+2]);
- document.write("</span><br>");
- }
- }
- //链接及是否选择样式改变
- function ItemSelected(item,menuitem)
- {
- change();
- item.className="select";
- n=menuitem;
- if(item.link.indexOf("javascript")!=-1) {
- eval(item.link);
- }else{
- eval("parent.mainFrame.iframemain.location=""+item.link+""");
- }
- }
- //显示桌面提示信息
- function DesktopInfo(){
- n=0;
- change();
- //parent.mainFrame.oaiframe.style.visibility="visible";
- eval("parent.mainFrame.iframemain.location="../desktop/default.asp?c=T"");
- }
- //清除span标签中所有样式为unselect
- function change(){
- if(!document.all) return;
- var td = document.all.tags("span");
- for (i=0 ; i < td.length ; i++){
- td[i].className="unselect";
- }
- }