Default_Left.js
上传用户:cctv0805
上传日期:2010-01-03
资源大小:345k
文件大小:6k
源码类别:

OA系统

开发平台:

ASP/ASPX

  1. MenuList1=new Array(
  2. "../img/menu_img_1.gif","公共信息查询",
  3. "../img/img_1.gif", "动态信息", "../commonmessage/news/default.asp",
  4. "../img/img_1.gif", "政策文件", "../commonmessage/policy/default.asp",
  5. "../img/img_1.gif","计划信息","../commonmessage/arrangement/default.asp",
  6. "../img/img_1.gif","公共通讯录","../commonmessage/associate/default.asp",
  7. "../img/img_1.gif","公共客户","../commonmessage/customer/default.asp");
  8. MenuList2=new Array(
  9. "../img/menu_img_2.gif","个人办公室",
  10. "../img/img_2.gif","个人工作计划","../personal/event/default.asp?T=A",
  11. "../img/img_2.gif","个人工作日志","../personal/event/default.asp?T=B",
  12. "../img/img_2.gif","个人日程安排","../personal/event/default.asp?T=C",
  13. "../img/img_2.gif","个人基本资料","../personal/userinfo/default.asp",
  14. "../img/img_2.gif","个人详细档案","../personal/archives/default.asp",
  15. "../img/img_2.gif","个人通讯录","../personal/associate/default.asp",
  16. "../img/img_2.gif","个人客户","../personal/customer/default.asp");
  17. MenuList3=new Array(
  18. "../img/menu_img_3.gif","公文传阅",
  19. "../img/img_3.gif","新建公文","../document/write_document.asp",
  20. "../img/img_3.gif","公文查阅","../document/default.asp",
  21. "../img/img_3.gif","已发公文","../document/sended_document.asp",
  22. "../img/img_3.gif","公文草稿","../document/draft_document.asp");
  23. MenuList4=new Array(
  24. "../img/menu_img_4.gif","公文流转",
  25. "../img/img_4.gif","新建工作流","../flow_document/write_flow_document.asp",
  26. "../img/img_4.gif","已收工作流","../flow_document/default.asp",
  27. "../img/img_4.gif","已发工作流","../flow_document/sended_flow_document.asp",
  28. "../img/img_4.gif","待批工作流","../flow_document/wait_flow_document.asp",
  29. "../img/img_4.gif","已批工作流","../flow_document/over_flow_document.asp",
  30. "../img/img_4.gif","返回工作流","../flow_document/back_flow_document.asp",
  31. "../img/img_4.gif","工作流草稿","../flow_document/draft_flow_document.asp");
  32. MenuList5=new Array(
  33. "../img/menu_img_5.gif","部门邮件",
  34. "../img/img_5.gif","写新邮件","../email/write_email.asp",
  35. "../img/img_5.gif","收件箱","../email/default.asp",
  36. "../img/img_5.gif","发件箱","../email/sended_email.asp",
  37. "../img/img_5.gif","草稿箱","../email/draft_email.asp");
  38. MenuList6=new Array(
  39. "../img/menu_img_6.gif","交流园地",
  40. "../img/img_6.gif","员工论坛","../communicate/bbs/default.asp",
  41. "../img/img_6.gif","网上会议","../communicate/meeting/default.asp");
  42. MenuList7=new Array(
  43. "../img/menu_img_7.gif","部门人事",
  44. "../img/img_7.gif","部门列表","../personnel/branch/default.asp",
  45. "../img/img_7.gif","用户组","../personnel/group/default.asp");
  46. MenuList8=new Array(
  47. "../img/menu_img_8.gif","资源管理",
  48. "../img/img_8.gif","资源列表","../asset/default.asp");
  49. MenuList9=new Array(
  50. "../img/menu_img_9.gif","印鉴管理",
  51. "../img/img_9.gif","单位印鉴","../signature/default.asp",
  52. "../img/img_9.gif","个人印鉴","../signature/personal.asp"
  53. );
  54. MenuList10=new Array(
  55. "../img/menu_img_10.gif","系统设置",
  56. "../img/img_10.gif","<font color=#0000FF>管理权限验证</font>","../system/login.asp",
  57. "../img/img_10.gif","用户权限管理","../system/module.asp",
  58. "../img/img_10.gif","信息清理","../system/reset.asp",
  59. "../img/img_10.gif","管理员管理","../system/administrator.asp",
  60. "../img/img_10.gif","版本及注册信息","../system/register.asp");
  61. var w=160;
  62. function NavStatus() {
  63. if (w==160){w=0;}else{w=160;}
  64. window.parent.testframeset.cols = ''+w+',*';
  65. }
  66. var n;
  67. //显示与隐藏二级菜单
  68. function SelectMenu(m){
  69. menu=eval("menu"+m);
  70. img=eval("img"+m);
  71. if (menu.className=="hidden"){
  72. menu.className="";
  73. img.src="../img/menuopen.gif";
  74. }else{
  75. if (n!=m) {
  76. menu.className="hidden";
  77. img.src="../img/menuclose.gif";
  78. }
  79. }
  80. }
  81. //读出菜单列表
  82. function LiseMenu(){
  83. document.write("<table width="100%" border="0" cellspacing="0" cellpadding="0">");
  84. document.write("<tr height="20"><td onClick="DesktopInfo();" >");
  85. document.write("<img src="../img/desktop.gif" align="bottom" hspace="2" vspace="2" alt="办公桌面" style="cursor:hand;">"); 
  86. document.write("</td></tr>");
  87. for (i=1;i<11;i++)
  88. {
  89. Folder=eval("MenuList"+i);
  90. document.write("<tr height="22"><td onClick="SelectMenu("+i+")">");
  91. document.write("<img id="img"+i+"" src="../img/menuclose.gif" align="absmiddle" hspace="2">"); 
  92. document.write("<img src=""+Folder[0]+"" align="absmiddle" hspace="2">"); 
  93. document.write("<font color="#FF0000" class="menuleft">"+Folder[1]+"</font>");
  94. document.write("</td></tr>");
  95. document.write("<tr id="menu"+i+"" class="hidden"><td>");
  96. MakeItems(Folder,i);
  97. document.write("</td></tr>");
  98. }
  99. document.write("<tr height="22"><td>");
  100. document.write("<img src="../img/menuopenend.gif" align="absmiddle" hspace="2">"); 
  101. document.write("<img src="../img/menu_img_13.gif" align="absmiddle" hspace="2">"); 
  102. document.write("<font color="#FF0000" class="menuleft" onClick="if (confirm('你确定要退出系统吗?')){top.o=1;top.out();}" style="cursor:hand;">退出系统</font>");
  103. document.write("</td></tr>");
  104. document.write("</table>");
  105. }
  106. //读出二级菜单
  107. function MakeItems(Folder,zorder)
  108. {
  109. var items=0;
  110. var img_line;
  111. while(Folder[items+2])
  112. items+=3;
  113. items/=3;
  114. for(var i=1;i<items*3;i+=3)
  115. {
  116. if (i==items*3-2){
  117. img_line="../img/menu_line_end.gif";
  118. }else{
  119. img_line="../img/menu_line.gif";
  120. document.write("<img src=""+img_line+"" align="absmiddle" hspace="2">");
  121. document.write("<img src='"+Folder[i+1]+"' align="absmiddle" hspace="2" vspace="2">");
  122. document.write("<span link=""+Folder[i+3]+"" onClick="ItemSelected(this,"+zorder+")" class="unselect">");
  123.  
  124. document.write(Folder[i+2]);
  125. document.write("</span><br>");
  126. }
  127. }
  128. //链接及是否选择样式改变
  129. function ItemSelected(item,menuitem)
  130. {
  131. change();
  132. item.className="select";
  133. n=menuitem;
  134. if(item.link.indexOf("javascript")!=-1) {
  135. eval(item.link);
  136. }else{ 
  137. eval("parent.mainFrame.iframemain.location=""+item.link+""");
  138. }
  139. }
  140. //显示桌面提示信息
  141. function DesktopInfo(){
  142. n=0;
  143. change();
  144. //parent.mainFrame.oaiframe.style.visibility="visible";
  145. eval("parent.mainFrame.iframemain.location="../desktop/default.asp?c=T"");
  146. }
  147. //清除span标签中所有样式为unselect
  148. function change(){
  149.  if(!document.all) return;
  150.   var td = document.all.tags("span");
  151.   for (i=0 ; i < td.length ; i++){
  152.    td[i].className="unselect";
  153.   }
  154. }