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/index.jsp

162 lines
5.9 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"%>
<%@ page language="java" %>
<%@ page language="java" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<jsp:include page="header.jsp"></jsp:include>
<div class="container1">
<div class="hero-section section">
<div class="hero-slider hero-slider-one">
<c:forEach items="${ads}" var="item">
<div class="hero-slide-item" style="height:450px; background-image: url(<%=basePath%>${item.thumb })">
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-9 ml-auto mr-auto">
<div class="hero-content text-center">
<h1>${item.title }</h1>
<h3 class="text-white mt-25">
Public rental housing rental </h3>
</div>
</div>
</div>
</div>
</div>
</c:forEach>
</div>
</div><!-- Hero Section End -->
</div>
<!-- Featured Properites Start -->
<!-- Featured Properites Start -->
<div class="featured-properites-section section" style="margin-top:50px;">
<div class="container">
<div class="row">
<div class="col-12">
<div class="tabs-categorys-list mb-30 mb-md-20 mb-xs-20 mb-sm-20">
<ul class="nav" role="tablist">
<li class="active"><a class="active"
href="#tab_item_01" role="tab" data-toggle="tab">
Newest house</a></li>
<li><a href="#tab_item_01" role="tab" data-toggle="tab">
最新房源</a></li>
</ul>
</div>
</div>
</div>
<!-- tab-contnt start -->
<div class="tab-content">
<div class="tab-pane active" id="tab_item_01">
<div class="row ">
<c:forEach items="${hs}" var="item" varStatus="x">
<c:if test="${x.index<4 }">
<div class="col-lg-3 col-md-6 col-12">
<!-- single-property Start -->
<div class="single-property mt-30">
<div class="property-img">
<a href="<%=basePath %>app/detail.do?id=${item.id}">
<img src="<%=basePath %>${item.thunb}" alt="">
</a>
<span class="level-stryker">
<c:if test="${item.state==1 }">闲置</c:if>
<c:if test="${item.state==2 }">使用中</c:if></span>
</div>
<div class="property-desc">
<h4>
<a href="<%=basePath %>app/detail.do?id=${item.id}">${item.rooname} </a></h4>
<p>
<span class="location">
${item.address}</span>
<span class="property-info"> 发布 ${item.created}
<em>
${item.cate }
</em>
</span>
</p>
<div class="price-box">
<p>${item.price}元/月</p>
</div>
</div>
</div><!-- single-property End -->
</div>
</c:if>
</c:forEach>
</div>
</div>
</div>
</div>
</div><!-- Featured Properites End -->
<!-- Latest Blog Section Start -->
<div class="latest-blog-section section pt-160 pt-md-140 pt-sm-120 pt-xs-110 pb-110 pb-md-90 pb-sm-70 pb-xs-60">
<div class="container">
<div class="row">
<div class="section-title text-center col mb-30 mb-md-20 mb-xs-20 mb-sm-20">
<h2>资料下载</h2>
<p> DOWNLOADS </p>
</div>
</div>
<div class="row">
<c:forEach items="${news}" var="item" varStatus="x">
<c:if test="${x.index<3 }">
<div class="col-lg-4 col-md-6 mt-30">
<!-- Single latest blog Start -->
<div class="single-latest-blog">
<div class="latest-blog-image">
<a href="<%=basePath %>app/view.do?id=${item.id}">
<img src="<%=basePath %>${item.thumb}" alt="">
</a>
</div>
<div class="latest-blog-contents">
<h4><a href="<%=basePath %>app/view.do?id=${item.id}">
${item.title }</a></h4>
<p><span>${item.created }</span> / <span>POSTED</span></p>
<p>
${item.description}
</p>
<a class="read-more" href="<%=basePath %>app/view.do?id=${item.id}">Read More</a>
</div>
</div><!-- Single latest blog End -->
</div>
</c:if>
</c:forEach>
</div>
</div>
</div><!-- Latest Blog Section End -->
<jsp:include page="footer.jsp"></jsp:include>