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.
gzf/WebRoot/ui/header.jsp

115 lines
4.6 KiB

5 years ago
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
Object user = session.getAttribute("users");
Object userName = session.getAttribute("userName");
%>
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>公共租赁住房租赁管理系统</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Favicon -->
<link rel="shortcut icon" type="image/x-icon" href="assets/images/favicon.ico">
<!-- CSS
============================================ -->
<!-- Plugins CSS -->
<link rel="stylesheet" href="<%=basePath %>static/ui/assets/css/plugins.css">
<!-- Main Style CSS -->
<link rel="stylesheet" href="<%=basePath %>static/ui/assets/css/style.css">
<link rel="stylesheet" href="<%=basePath %>static/bootstrap-4.4.1/css/bootstrap.min.css">
</head>
<body>
<!-- Header Section Start -->
<header class="header-wrapper section">
<div class="header-top bg-theme-white section">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-6 col-md-6">
<div class="header-top-info">
<p class="text-black">Call us -
<a href="tel:21548987658">587 929 2658</a></p>
</div>
</div>
<div class="col-lg-6 col-md-6">
<div class="header-buttons">
<a class="header-btn btn" href="<%=basePath%>app/house.do">住房房源</a>
<c:if test="${users!=null}">
<a class="header-btn btn-border" href="<%=basePath%>admin/index.do" >欢迎您,${userName }</a>
<a class="header-btn text-black" href="<%=basePath%>logout.jsp?ret=system/login.do">注销</a>
</c:if>
<c:if test="${users==null}">
<a class="header-btn btn-border" href="<%=basePath%>system/signup.do" >注册</a>
<a class="header-btn text-black" href="<%=basePath%>system/login.do">登录</a>
</c:if>
</div>
</div>
</div>
</div>
</div>
<div class="header-section section bg-theme-two">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-2 col-6">
<div class="header-logo">
<a href="<%=basePath%>"><img src="<%=basePath%>static/ui/assets/images/logo-2.png" alt=""></a>
</div>
</div>
<div class="col-lg-10 col-6">
<div class="header-mid_right-bar">
<nav class="main-menu text-white d-lg-block d-none">
<ul>
<li class=""><a href="<%=basePath%>">首页</a></li>
<li><a href="<%=basePath%>app/house.do">房源</a></li>
<c:forEach items="${cates}" var="item">
<li class="has-dropdown"><a href="<%=basePath%>app/cates.do?id=${item.id}">${item.title }</a>
<ul class="sub-menu">
<c:forEach items="${item.subs}" var="item1">
<li><a href="<%=basePath%>app/cates.do?id=${item1.id}">${item1.title }</a></li>
</c:forEach>
</ul>
</li>
</c:forEach>
<li><a href="<%=basePath%>app/pub.do">公示</a></li>
</ul>
</nav>
<div id="search-overlay-trigger" class="search-icon">
<a href="javascript:void(0)"><i class="fa fa-refesh"></i></a>
</div>
</div>
</div>
<!-- Mobile Menu -->
<div class="mobile-menu white-m-bar order-12 d-block d-lg-none col"></div>
</div>
</div>
</div><!-- Header Section End -->
</header>