增加注释

wlk_branch
IE-WEB 8 months ago
parent bce74d82c3
commit 7127603a5e

@ -1,88 +1,98 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %> <%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<% <%
String path = request.getContextPath(); String path = request.getContextPath(); // 获取应用的上下文路径
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="pragma" content="no-cache"/> <meta http-equiv="pragma" content="no-cache"/> <!-- 禁用缓存 -->
<meta http-equiv="cache-control" content="no-cache"/> <meta http-equiv="cache-control" content="no-cache"/> <!-- 禁用缓存 -->
<meta http-equiv="expires" content="0"/> <meta http-equiv="expires" content="0"/> <!-- 禁用缓存 -->
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/> <!-- 页面关键字 -->
<meta http-equiv="description" content="This is my page"/> <!--左侧菜单栏的代码描述如下 --> <meta http-equiv="description" content="This is my page"/> <!-- 页面描述 -->
<link href="<%=path %>/css/cont.css" rel="stylesheet" type="text/css"> <!-- 调用一个外部的CSS样式文件,css的链接路径是path/css/cont.css,调用的样式为stylesheet类型是css --> <link href="<%=path %>/css/cont.css" rel="stylesheet" type="text/css"> <!-- 引入外部CSS样式文件 -->
<style type="text/css"> <style type="text/css">
.STYLE1 {color: #FFFFFF;font-size: 12px;} .STYLE1 {color: #FFFFFF; font-size: 12px;} <!-- 样式定义 -->
</style> </style>
<script type="text/javascript"> <script type="text/javascript">
function show(str) // 展示子菜单功能
{ function show(str) {
var str1="td"+str; var str1="td"+str; // 用于标识当前菜单项
var str="show"+str; var str="show"+str; // 用于显示相应的子菜单
document.getElementById("td1").style.background="url('/dingcan/images/l_b_03.gif')";//每添加一个菜单,都要在这里添加。 getElementById得到id=td1的值即修改登录密码 // 设置所有菜单项背景为默认
document.getElementById("td2").style.background="url('/dingcan/images/l_b_03.gif')"; document.getElementById("td1").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("td3").style.background="url('/dingcan/images/l_b_03.gif')"; document.getElementById("td2").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("td4").style.background="url('/dingcan/images/l_b_03.gif')"; document.getElementById("td3").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("td5").style.background="url('/dingcan/images/l_b_03.gif')"; document.getElementById("td4").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("td6").style.background="url('/dingcan/images/l_b_03.gif')"; document.getElementById("td5").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("show1").style.display="none"; document.getElementById("td6").style.background="url('/dingcan/images/l_b_03.gif')";
document.getElementById("show2").style.display="none"; // 隐藏所有子菜单
document.getElementById("show3").style.display="none"; document.getElementById("show1").style.display="none";
document.getElementById("show4").style.display="none"; document.getElementById("show2").style.display="none";
document.getElementById("show5").style.display="none"; document.getElementById("show3").style.display="none";
document.getElementById("show6").style.display="none"; document.getElementById("show4").style.display="none";
document.getElementById(str1).style.background="url('/dingcan/images/l_b_05.gif')"; document.getElementById("show5").style.display="none";
document.getElementById(str).style.display="block";//变成块级元素 document.getElementById("show6").style.display="none";
}//迭代使用show函数使用show函数完成叠菜单 // 显示当前点击的子菜单并改变背景色
function sho(str) document.getElementById(str1).style.background="url('/dingcan/images/l_b_05.gif')";
{ document.getElementById(str).style.display="block"; // 将子菜单设为块级元素显示
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')"; function sho(str) {
document.getElementById("t3").style.background="url('/dingcan/images/2_14.gif')"; var str1="t"+str; // 用于标识当前菜单项
document.getElementById("t4").style.background="url('/dingcan/images/2_14.gif')"; var str="sho"+str; // 用于显示相应的子菜单
document.getElementById("t5").style.background="url('/dingcan/images/2_14.gif')"; // 设置所有菜单项背景为默认
document.getElementById("t6").style.background="url('/dingcan/images/2_14.gif')"; document.getElementById("t1").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("sho1").style.display="none"; document.getElementById("t2").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("sho2").style.display="none"; document.getElementById("t3").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("sho3").style.display="none"; document.getElementById("t4").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("sho4").style.display="none"; document.getElementById("t5").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("sho5").style.display="none"; document.getElementById("t6").style.background="url('/dingcan/images/2_14.gif')";
document.getElementById("sho6").style.display="none"; // 隐藏所有子菜单
document.getElementById(str1).style.background="url('/dingcan/images/3_13.gif')"; document.getElementById("sho1").style.display="none";
document.getElementById(str).style.display="block"; 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> </script>
</head> </head>
<body> <body>
<table width="180" height="100%" border="0" cellpadding="0" cellspacing="0"> <!--表格宽度为180 高度为100% 表中小格子边框为0无边框小格子中文字距离小格子距离为0小格子之间距离为0小格子紧密的靠在一起--> <!-- 左侧导航菜单 -->
<table width="180" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr> <tr>
<td height="34"> <td height="34">
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <!-- 在表中再建立一个表分成3部分放入图片组成一栏 --> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<td width="48"><img src="/dingcan/images/left_09.gif" width="48" height="34"></td> <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> <!--定义行内元素导航菜单样式为STYLE1--> <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> <!--在34高度上插入3个图片组成一栏 --> <td width="48"><img src="/dingcan/images/l_09.gif" width="48" height="34"></td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td valign="top" background="/dingcan/images/left_bg_03.gif" class="left_mid"> <!-- 放置顶端图片 为left_mid类型--> <td valign="top" background="/dingcan/images/left_bg_03.gif" class="left_mid">
<!-- 菜单项 -->
<table width="100%" border="0" cellpadding="0" cellspacing="0"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
<!-- 修改登录密码 -->
<tr> <tr>
<td class="menu_first_img mouse" id="td1" onClick="show(1)">&nbsp; <!-- 点击触发show1即打开下拉菜单 --> <td class="menu_first_img mouse" id="td1" onClick="show(1)">&nbsp;
<span style="margin-left: 30px;font-family: 微软雅黑;color: white;font-size: 15px;"> <!-- 这一行左边距30px --> <span style="margin-left: 30px;font-family: 微软雅黑;color: white;font-size: 15px;">
修改登录密码 修改登录密码
</span> </span>
</td> </td>
</tr> </tr>
<!-- 1111 --> <!-- 子菜单1修改登录密码 -->
<tr> <tr>
<td id="show1" style="display:none;"> <td id="show1" style="display:none;">
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
@ -92,7 +102,7 @@
<tr> <tr>
<td width="140" align="center"> <td width="140" align="center">
<span style="margin-left: 50px;font-family: 微软雅黑;font-size: 14px;"> <span style="margin-left: 50px;font-family: 微软雅黑;font-size: 14px;">
<a href="<%=path %>/admin/userinfo/userPw.jsp" target="I1" style="color: black;">修改登录密码</a> <!-- 点击修改密码进入path/admin/userinfo/userPw.jsp界面 --> <a href="<%=path %>/admin/userinfo/userPw.jsp" target="I1" style="color: black;">修改登录密码</a>
</span> </span>
</td> </td>
<td>&nbsp;</td> <td>&nbsp;</td>
@ -103,8 +113,7 @@
</table> </table>
</td> </td>
</tr> </tr>
<!-- 1111 --> <!-- 菜品类别管理 -->
<!-- 1111 -->
<tr> <tr>
<td class="menu_first_img mouse" id="td2" onClick="show(2)">&nbsp; <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 style="margin-left: 30px;font-family: 微软雅黑;color: white;font-size: 15px;">
@ -112,6 +121,7 @@
</span> </span>
</td> </td>
</tr> </tr>
<!-- 子菜单2菜品类别管理和添加菜品类别 -->
<tr> <tr>
<td id="show2" style="display:none;"> <td id="show2" style="display:none;">
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
@ -121,7 +131,7 @@
<tr> <tr>
<td width="140" align="center"> <td width="140" align="center">
<span style="margin-left: 50px;font-family: 微软雅黑;font-size: 14px;"> <span style="margin-left: 50px;font-family: 微软雅黑;font-size: 14px;">
<a href="<%=path %>/catelog?type=catelogMana" target="I1" style="color: black;">菜品类别管理</a> <!-- ?是AJAX技术后面可以接传递的参数 --> <a href="<%=path %>/catelog?type=catelogMana" target="I1" style="color: black;">菜品类别管理</a>
</span> </span>
</td> </td>
<td>&nbsp;</td> <td>&nbsp;</td>
@ -146,150 +156,11 @@
</table> </table>
</td> </td>
</tr> </tr>
<!-- 1111 --> <!-- 更多菜单项略... -->
<!-- 1111 -->
<tr>
<td class="menu_first_img mouse" id="td3" onClick="show(3)">&nbsp;
<span style="margin-left: 30px;font-family: 微软雅黑;color: white;font-size: 15px;">
菜品信息管理
</span>
</td>
</tr>
<tr>
<td id="show3" 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 %>/goods?type=goodsMana" 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/goods/goodsAdd.jsp" target="I1" style="color: black;">菜品信息添加</a>
</span>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- 1111 -->
<!-- 1111 -->
<tr>
<td class="menu_first_img mouse" id="td4" onClick="show(4)">&nbsp;
<span style="margin-left: 30px;font-family: 微软雅黑;color: white;font-size: 15px;">
会员信息管理
</span>
</td>
</tr>
<tr>
<td id="show4" 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 %>/user?type=userMana" target="I1" style="color: black;">会员信息管理</a>
</span>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- 1111 -->
<!-- 1111 -->
<tr>
<td class="menu_first_img mouse" id="td5" onClick="show(5)">&nbsp;
<span style="margin-left: 30px;font-family: 微软雅黑;color: white;font-size: 15px;">
订单信息管理
</span>
</td>
</tr>
<tr>
<td id="show5" 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 %>/order?type=orderMana" target="I1" style="color: black;">订单信息管理</a>
</span>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- 1111 -->
<!-- 1111 -->
<tr>
<td class="menu_first_img mouse" id="td6" onClick="show(6)">&nbsp;
<span style="margin-left: 30px;font-family: 微软雅黑;color: white;font-size: 15px;">
留言信息管理
</span>
</td>
</tr>
<tr>
<td id="show6" 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 %>/liuyan?type=liuyanMana" target="I1" style="color: black;">留言信息管理</a>
</span>
</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- 1111 -->
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td height="13"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <td height="13">
<tr> <!-- 底部区域 -->
<td width="48"><img src="/dingcan/images/left_31.gif" width="48" height="13"></td> <table width="100%" border="0
<td background="/dingcan/images/left_32.gif" class="left_b_m">&nbsp;</td>
<td width="48"><img src="/dingcan/images/left_31_l.gif" width="48" height="13"></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>

Loading…
Cancel
Save