Main_Left.jsp
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:7k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

JavaScript

  1. <%@ page language="java" contentType="text/html; charset=utf-8"%>
  2. <%@ taglib uri="../WEB-INF/Letter.tld" prefix="l" %>
  3. <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml">
  6. <head>
  7.    <title>无标题页</title>
  8.    <link href="<%=request.getContextPath() %>/Manage/Css/skinv2.0.css" rel="stylesheet" type="text/css" />
  9.    <script type="text/javascript">
  10.     function quit(url)
  11.     {
  12.     ht = parent.document.getElementsByTagName("html");
  13.     ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
  14.     if (!confirm("您确定要退出系统吗?"))
  15.     {
  16.     ht[0].style.filter = "";
  17.     return;
  18.     }
  19.       parent.location=url;
  20.     }
  21.    </script>
  22.    <script type="text/javascript">
  23.     var activeTxtObj = null;
  24.     var selectedSubMenu=null;
  25.     function showBar(para)// 状态栏展开关闭  v2.0 2005-10-31
  26.     {
  27.     var BarObj;
  28.     switch(para)
  29.     {
  30.     case 1:
  31.     document.body.scroll="no";
  32.     BarObj=getObject("leftBar");
  33.     BarObj.style.display="none";
  34.     BarObj=getObject("rightBar");
  35.     BarObj.style.display="";
  36.     parent.mainFrmset.cols="23,*";
  37.     break;
  38.     case 2:
  39.     document.body.scroll="auto";
  40.     BarObj=getObject("leftBar");
  41.     BarObj.style.display="";
  42.     BarObj=getObject("rightBar");
  43.     BarObj.style.display="none";
  44.     parent.mainFrmset.cols="180,*";
  45.     break;
  46.     }
  47.     }
  48.     function getObject(obj){//取得对像 v2.0 2005-10-31
  49.     return document.getElementById(obj);
  50.     }
  51.     function showDiv(obj,count){//显示或隐藏菜单 v2.0 2005-10-31
  52.     var obj = getObject(obj);
  53.     for(k = 1;k<=count;k++){
  54.     var nobj = getObject("mode_"+k);
  55.     if(nobj != obj){
  56.     nobj.style.display = "none";
  57.     }
  58.     }
  59.     if(obj.style.display == "none"){
  60.     obj.style.display="";
  61.     }else{
  62.     obj.style.display="none";
  63.     }
  64.     tdobj=obj.parentNode.rows[obj.rowIndex-1].cells[0];
  65.     if (activeTxtObj!=null)
  66.     {
  67.     activeTxtObj.className='outTD';
  68.     activeTxtObj = null;
  69.     }
  70.     activeTxtObj=tdobj;
  71.     cBG(tdobj,'overTD');
  72.     }
  73.     function cBG(obj,sName) //设置对像的CSS v2.0 2005-10-31
  74.     {
  75.     if (activeTxtObj==obj){
  76.     activeTxtObj.className='overTD';
  77.     return;
  78.     }
  79.     if (selectedSubMenu==obj) {
  80.     selectedSubMenu.className="SelectedSubTD";
  81.     return;
  82.     }
  83.     obj.className = sName
  84.     }
  85.     function menuclick(tdObj,URL,Target) //子菜单设置并改变操作窗 v2.0 2005-10-31
  86.     {
  87.     if (selectedSubMenu!=null) selectedSubMenu.className=  "outSubTD";
  88.     selectedSubMenu = tdObj;
  89.     tdObj.className = "SelectedSubTD";
  90.     if(Target!="rightFrm"){
  91.     window.open(URL,Target)}
  92.     else{
  93.     eval("parent."+Target).document.location = URL; }
  94.     }
  95.     function selectsubmenu(tdid)//子菜单被选择时设置CSS
  96.     {
  97.     var tdObj = getObject(tdid);
  98.     if (tdObj == null) return;
  99.     var strMenu = tdid.substring(0,tdid.length-2);
  100.     showDiv(strMenu);
  101.     if (selectedSubMenu!=null) selectedSubMenu.className=  "outSubTD";
  102.     selectedSubMenu = tdObj;
  103.     tdObj.className = "SelectedSubTD";
  104.     }
  105.    </script>
  106. </head>
  107. <body>
  108.   <form id="form1" action="">
  109.     <table class="MainTable" style="height:100%" cellspacing="0" cellpadding="0" width="180" border="0">
  110.       <tbody>
  111.         <tr>
  112.           <td id="leftbar" valign="top" width="180" bgcolor="#f7f7f7">
  113.             <table cellspacing="0" cellpadding="0" width="100%" border="0">
  114.               <tbody>
  115.                 <tr>
  116.                   <td width="100%" align="right" background="<%=request.getContextPath()%>/Manage/images/Left_Top1.jpg" id="Td1">
  117.                     <table cellspacing="0" cellpadding="0" width="100%" border="0">
  118.                       <tbody>
  119.                         <tr>
  120.                           <td width="153">&nbsp;</td>
  121.                           <td width="27">
  122.                             <a title="隐藏工具栏" onclick="showBar(1)" href="#">
  123.                               <img height="19" src="<%=request.getContextPath()%>/Manage/images/Left_Botton1.jpg" width="23" border="0" align="middle" alt="" />
  124.                             </a>
  125.                           </td>
  126.                         </tr>
  127.                       </tbody>
  128.                     </table>
  129.                   </td>
  130.                 </tr>
  131.               </tbody>
  132.             </table>
  133.             <c:forEach var="fmodel" items="${modelList}" varStatus="status">
  134.             <table cellspacing="2" cellpadding="0" width="99%" align="center" border="0">
  135.               <tbody>
  136.                 <tr style="height:24px">
  137.                   <td height="24" align="left" valign="middle" class="outTD" onclick="showDiv('mode_<c:out value="${status.count}" />',<c:out value="${modelLength}" />)" onmouseover="cBG(this,'overTD')" onmouseout="cBG(this,'outTD')">
  138.                     &nbsp;&nbsp;
  139.                     <img height="18" src="<%=request.getContextPath()%>/Manage/images/ioce/webbaiss.gif" width="18" align="middle" alt="" /><l:out CNLetter="${fmodel.mod_CnName}" ENLetter="${fmodel.mod_EnName}" />
  140.                   </td>
  141.                 </tr>
  142.                 <tr id="mode_<c:out value="${status.count}" />" style="display: none">
  143.                   <td>
  144.                     <!-- begin -->
  145.                     <table cellspacing="1" cellpadding="3" width="99%" align="center" border="0">
  146.                       <tbody>
  147.                         <c:forEach var="cmodel" items="${fmodel.childModel}" varStatus="status1">
  148.                         <tr style="height:18px">
  149.                           <td height="18" class="outSubTD" onclick="menuclick(this,'<%=request.getContextPath()%><l:out CNLetter="${cmodel.mod_Url}" ENLetter="${cmodel.mod_EnUrl}"/>','rightFrm')"
  150.                             onmouseover="cBG(this,'overSubTD')" onmouseout="cBG(this,'outSubTD')">
  151.                             &nbsp;&nbsp;&nbsp;&nbsp;
  152.                             <img height="7" src="<%=request.getContextPath()%>/Manage/images/ioce/arrowLTR.gif" width="4" alt="" />&nbsp;<l:out CNLetter="${cmodel.mod_CnName}" ENLetter="${cmodel.mod_EnName}" />
  153.                           </td>
  154.                         </tr>
  155.                         </c:forEach>
  156.                       </tbody>
  157.                     </table>
  158.                     <!-- end -->
  159.                   </td>
  160.                 </tr>
  161.               </tbody>
  162.             </table>
  163.             </c:forEach>
  164.           </td>
  165.           <td id="rightbar" style="display: none" valign="top" bgcolor="#f7f7f7">
  166.             <a title="显示工具栏" onclick="showBar(2)" href="#">
  167.               <img height="19" src="<%=request.getContextPath()%>/Manage/images/Left_Botton2.jpg" width="23" border="0" alt="" />
  168.             </a>
  169.           </td>
  170.         </tr>
  171.       </tbody>
  172.     </table>
  173.   </form>
  174. </body>
  175. </html>