|
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
|
|
|
<%
|
|
|
<<<<<<< HEAD
|
|
|
// 获取当前请求的上下文路径,通常用于生成相对路径
|
|
|
=======
|
|
|
>>>>>>> remotes/origin/wyp_branch
|
|
|
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>
|
|
|
<<<<<<< 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="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>
|
|
|
</head>
|
|
|
|
|
|
<body style="background:url(/dingcan/images/top_05.jpg)">
|
|
|
<!-- 页面顶部的标题部分,字体白色,字号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>
|
|
|
=======
|
|
|
<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 -->
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
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>
|
|
|
>>>>>>> remotes/origin/wyp_branch
|
|
|
</body>
|
|
|
</html>
|