增加注释

wlk_branch
IE-WEB 8 months ago
parent 7127603a5e
commit 89ad1dabc5

@ -6,7 +6,116 @@
<!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="pragma" content="no-cache"/><%@ 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"/>
<!-- 引入外部CSS样式文件 -->
<link href="<%=path %>/css/cont.css" rel="stylesheet" type="text/css"/> <!-- CSS样式的路径是path/css/cont.css -->
<!-- JavaScript部分用于处理左侧栏的切换功能 -->
<script type="text/javascript">
function switchSysBar(){
// 获取当前页面的URL地址并去掉"/admin/cont.jsp"部分
var locate=location.href.replace('<%=path %>/admin/cont.jsp','');
// 获取图片路径,去掉域名部分,只保留文件路径
var ssrc=document.all("img1").src.replace(locate,'');
// 如果当前图片是/jiaju/images/cont_19.gif则切换为/jiaju/images/cont_1_19.gif并隐藏左侧栏
if (ssrc=="/jiaju/images/cont_19.gif") {
document.all("img1").src="/jiaju/images/cont_1_19.gif"; // 更新图片路径
document.all("frmTitle").style.display="none"; // 隐藏左侧栏
} else {
// 否则,恢复图片为默认状态,并显示左侧栏
document.all("img1").src="/jiaju/images/cont_19.gif";
document.all("frmTitle").style.display="";
}
}
</script>
</head>
<body>
<!-- 设置页面样式,隐藏滚动条 -->
<body style="overflow:hidden">
<!-- 页面结构,使用表格布局 -->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" class="cont_tab">
<!-- 表格的行 -->
<tr>
<!-- 左侧栏包含iframe加载的内容 -->
<td width="180" id="frmTitle" align="center" valign="top">
<!-- 左侧栏的iframe加载路径为<%=path %>/admin/left.jsp -->
<iframe name="left" height="100%" width="180" src="<%=path %>/admin/left.jsp" frameborder="0" scrolling="no">
浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。
</iframe>
</td>
<!-- 主内容区 -->
<td align="center" valign="top" style="padding-right:8px;">
<!-- 内部表格,用于分割页面内容 -->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;">
<tr>
<td height="13" style="line-height:13px;">
<!-- 边框的分隔行 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout:fixed;">
<tr>
<td class="cont_tab_l">&nbsp;</td>
<td class="cont_tab_m">&nbsp;</td>
<td class="cont_tab_r">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<!-- 主内容区的iframe -->
<td>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;">
<tr>
<td>
<!-- 右侧内容区的iframe加载路径为<%=path %>/admin/right.jsp -->
<iframe name="I1" height="100%" width="100%" src="<%=path %>/admin/right.jsp" border="0" frameborder="0" scrolling="auto">
浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。
</iframe>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="13" style="line-height:13px;">
<!-- 底部分隔行 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout:fixed;">
<tr>
<td class="cont_tab_bl">&nbsp;</td>
<td class="cont_tab_bm">&nbsp;</td>
<td class="cont_tab_br">&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>

@ -1,20 +1,29 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%
// 获取当前请求的上下文路径,用于生成相对路径
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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样式文件,css的链接路径是path/css/cont.css,调用的样式为stylesheet类型是css -->
<!-- 禁止页面缓存 -->
<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"/>
<!-- 引入外部CSS样式文件 -->
<link href="<%=path %>/css/cont.css" rel="stylesheet" type="text/css" /> <!-- CSS文件路径为<%=path %>/css/cont.css -->
</head>
<body>
<div id="foot"></div> <!-- div起到分割作用div的id=food 颜色为蓝色-->
<!-- 页面中的footer部分 -->
<div id="foot"></div> <!-- 这是一个div元素作为页面的footer部分div的id为"foot" -->
<!-- 这个div元素通常用于显示页面底部的信息或分割作用。通过设置其CSS样式可以控制其显示效果如颜色、大小等。 -->
</body>
</html>

@ -1,21 +1,25 @@
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
// 获取当前请求的上下文路径,通常用于生成相对路径
String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!-- 设置页面缓存相关的meta标签 -->
<meta http-equiv="pragma" content="no-cache"> <!-- 禁止浏览器缓存 -->
<meta http-equiv="cache-control" content="no-cache"> <!-- 禁止缓存控制 -->
<meta http-equiv="expires" content="0"> <!-- 设置过期时间为0表示不缓存 -->
<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">
<!-- 设置页面的关键词和描述,用于搜索引擎优化 -->
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<body>
welcome. <br>
<!-- 页面主体内容 -->
welcome. <br> <!-- 输出 "welcome" 文本并换行 -->
</body>
</html>

@ -1,41 +1,56 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%
// 获取当前请求的上下文路径,通常用于生成相对路径
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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样式文件,css的链接路径是path/css/cont.css,调用的样式为stylesheet类型是css -->
<!-- 设置页面缓存相关的meta标签 -->
<meta http-equiv="pragma" content="no-cache"/> <!-- 禁止浏览器缓存 -->
<meta http-equiv="cache-control" content="no-cache"/> <!-- 禁止缓存控制 -->
<meta http-equiv="expires" content="0"/> <!-- 设置过期时间为0表示不缓存 -->
<!-- 设置页面的关键词和描述,用于搜索引擎优化 -->
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
<meta http-equiv="description" content="This is my page"/>
<!-- 引入外部CSS样式文件 -->
<link href="<%=path %>/css/cont.css" rel="stylesheet" type="text/css" />
<!-- JavaScript部分用于处理用户操作 -->
<script type="text/javascript">
function logout()
{
if(confirm("确定要退出本系统吗??"))
{
window.parent.location="<%=path %>/login.jsp";
} //点击确定返回后台登录界面
}
function index()
{
window.parent.location="<%=path %>/site/default.jsp";
}//返回首页
</script>
// 处理注销操作,弹出确认框
function logout() {
// 弹出确认框,确认退出系统
if(confirm("确定要退出本系统吗??")) {
// 如果确认退出,跳转到登录页面
window.parent.location="<%=path %>/login.jsp";
}
}
// 返回首页的操作
function index() {
// 跳转到首页
window.parent.location="<%=path %>/site/default.jsp";
}
</script>
</head>
<body style="background:url(/dingcan/images/top_05.jpg)">
<span style="float:left;margin-left: 20px;color: white;font-size: 30px;margin-top: 30px;">基于JSP的高校快餐店订餐系统</span>
<!-- 标题向左浮动距离左边20像素白色字体30像素距离顶端30像素 -->
<span style="float:right;margin-right: 30px;margin-top: 30px;">
<a href="#" style="color: white;font-size: 16px;font-family: 微软雅黑" onclick="logout()">注销退出</a> <!-- 向右浮动 -->
<a href="#" style="color: white;font-size: 16px;font-family: 微软雅黑" onclick="index()">返回首页</a>
</span>
<!-- 页面顶部的标题部分字体白色字号30px距离左边20px距离顶部30px -->
<span style="float:left;margin-left: 20px;color: white;font-size: 30px;margin-top: 30px;">
基于JSP的高校快餐店订餐系统
</span>
<!-- 页面右侧操作链接部分 -->
<span style="float:right;margin-right: 30px;margin-top: 30px;">
<!-- 注销退出链接 -->
<a href="#" style="color: white;font-size: 16px;font-family: 微软雅黑" onclick="logout()">注销退出</a>
<!-- 返回首页链接 -->
<a href="#" style="color: white;font-size: 16px;font-family: 微软雅黑" onclick="index()">返回首页</a>
</span>
</body>
</html>

Loading…
Cancel
Save