You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
test/left.jsp

167 lines
8.4 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%
String path = request.getContextPath(); // 获取应用的上下文路径
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache"/> <!-- 禁用缓存 -->
<meta http-equiv="cache-control" content="no-cache"/> <!-- 禁用缓存 -->
<meta http-equiv="expires" content="0"/> <!-- 禁用缓存 -->
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/> <!-- 页面关键字 -->
<meta http-equiv="description" content="This is my page"/> <!-- 页面描述 -->
<link href="<%=path %>/css/cont.css" rel="stylesheet" type="text/css"> <!-- 引入外部CSS样式文件 -->
<style type="text/css">
.STYLE1 {color: #FFFFFF; font-size: 12px;} <!-- 样式定义 -->
</style>
<script type="text/javascript">
// 展示子菜单功能
function show(str) {
var str1="td"+str; // 用于标识当前菜单项
var str="show"+str; // 用于显示相应的子菜单
// 设置所有菜单项背景为默认
document.getElementById("td1").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("td2").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("td3").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("td4").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("td5").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("td6").style.background="url('/dingcan/images/l_b_03.gif')";
// 隐藏所有子菜单
document.getElementById("show1").style.display="none";
document.getElementById("show2").style.display="none";
document.getElementById("show3").style.display="none";
document.getElementById("show4").style.display="none";
document.getElementById("show5").style.display="none";
document.getElementById("show6").style.display="none";
// 显示当前点击的子菜单并改变背景色
document.getElementById(str1).style.background="url('/dingcan/images/l_b_05.gif')";
document.getElementById(str).style.display="block"; // 将子菜单设为块级元素显示
}
// 展示另一个菜单功能
function sho(str) {
var str1="t"+str; // 用于标识当前菜单项
var str="sho"+str; // 用于显示相应的子菜单
// 设置所有菜单项背景为默认
document.getElementById("t1").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("t2").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("t3").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("t4").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("t5").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("t6").style.background="url('/dingcan/images/2_14.gif')";
// 隐藏所有子菜单
document.getElementById("sho1").style.display="none";
document.getElementById("sho2").style.display="none";
document.getElementById("sho3").style.display="none";
document.getElementById("sho4").style.display="none";
document.getElementById("sho5").style.display="none";
document.getElementById("sho6").style.display="none";
// 显示当前点击的子菜单并改变背景色
document.getElementById(str1).style.background="url('/dingcan/images/3_13.gif')";
document.getElementById(str).style.display="block"; // 将子菜单设为块级元素显示
}
</script>
</head>
<body>
<!-- 左侧导航菜单 -->
<table width="180" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="34">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="48"><img src="/dingcan/images/left_09.gif" width="48" height="34"></td>
<td align="center" background="/dingcan/images/left_10.gif"><span class="STYLE1">导航菜单</span></td> <!-- 导航菜单标题 -->
<td width="48"><img src="/dingcan/images/l_09.gif" width="48" height="34"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" background="/dingcan/images/left_bg_03.gif" class="left_mid">
<!-- 菜单项 -->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<!-- 修改登录密码 -->
<tr>
<td class="menu_first_img mouse" id="td1" onClick="show(1)">&nbsp;
<span style="margin-left: 30px;font-family: 微软雅黑;color: white;font-size: 15px;">
修改登录密码
</span>
</td>
</tr>
<!-- 子菜单1修改登录密码 -->
<tr>
<td id="show1" style="display:none;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="left">
<table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140" align="center">
<span style="margin-left: 50px;font-family: 微软雅黑;font-size: 14px;">
<a href="<%=path %>/admin/userinfo/userPw.jsp" target="I1" style="color: black;">修改登录密码</a>
</span>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- 菜品类别管理 -->
<tr>
<td class="menu_first_img mouse" id="td2" onClick="show(2)">&nbsp;
<span style="margin-left: 30px;font-family: 微软雅黑;color: white;font-size: 15px;">
菜品类别管理
</span>
</td>
</tr>
<!-- 子菜单2菜品类别管理和添加菜品类别 -->
<tr>
<td id="show2" style="display:none;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="left">
<table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140" align="center">
<span style="margin-left: 50px;font-family: 微软雅黑;font-size: 14px;">
<a href="<%=path %>/catelog?type=catelogMana" target="I1" style="color: black;">菜品类别管理</a>
</span>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="left">
<table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140" align="center">
<span style="margin-left: 50px;font-family: 微软雅黑;font-size: 14px;">
<a href="<%=path %>/admin/catelog/catelogAdd.jsp" target="I1" style="color: black;">添加菜品类别</a>
</span>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- 更多菜单项略... -->
</table>
</td>
</tr>
<tr>
<td height="13">
<!-- 底部区域 -->
<table width="100%" border="0