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

149 lines
6.0 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>
<!-- Breadcrumb -->
<div class="breadcrumb-area section" style="background: linear-gradient(45deg, rgb(240, 100, 150), rgb(140, 200, 208));">
<div class="container">
<div class="breadcrumb pt-75 pb-75 pt-sm-70 pb-sm-40 pt-xs-70 pb-xs-40">
<div class="row">
<div class="col">
<h2>${model.title }</h2>
<!-- breadcrumb-list start -->
<ul class="breadcrumb-list">
<li class="breadcrumb-item"><a href="<%=basePath%>">Home</a></li>
<li class="breadcrumb-item active">${model.title }</li>
</ul>
<!-- breadcrumb-list end -->
</div>
</div>
</div>
</div>
</div>
<!--// Breadcrumb -->
<!-- Page Conttent -->
<main class="page-content section">
<!-- Blog Grids Area -->
<div class="blog-grids-area pt-80 pt-md-60 pt-sm-40 pt-xs-30 pb-110 pb-md-90 pb-sm-70 pb-xs-60">
<div class="container">
<div class="row">
<div class="col-lg-8 order-lg-1 order-1">
<div class="row">
<div class="col-lg-12">
<div class="blog-details-warpper">
<div class="details-image mt-30">
<img src="<%=basePath %>${model.thumb }" alt="">
</div>
<div class="details-contents-wrap">
<h3>${model.title }</h3>
<p><span>${model.created }</span> / <span>POSTED</span></p>
<blockquote class="blockquote">
${model.description }
</blockquote>
<div>
<h3>附件</h3>
<a target="_blank" href="<%=basePath %>${model.attachfile }">下载</a>
</div>
<div>
${model.contents }
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4 order-lg-2 order-2">
<div class="row widgets right-sidebar">
<div class="col-lg-12">
<div class="single-widget widget-categories mb-25">
<h4 class="widget-title">
<span>栏目</span>
</h4>
<ul>
<c:forEach items="${cates}" var="item">
<li>
<a href="<%=basePath%>app/cates.do?id=${item.id}" class="categories-name">${item.title } <span></span></a></li>
</c:forEach>
</ul>
</div>
</div>
<div class="col-lg-12">
<div class="single-widget widget-related mb-25">
<h4 class="widget-title">
<span>推荐 SUGGEST</span>
</h4>
<ul>
<c:forEach items="${news1}" var="item" varStatus="x">
<li class="single-related">
<div class="single-related-image">
<a href="<%=basePath %>app/view.do?id=${item.id}">
<img src="<%=basePath %>${item.thumb}" alt="">
</a>
</div>
<div class="single-related-contents">
<h4><a href="<%=basePath %>app/view.do?id=${item.id}">
${item.title }</a></h4>
<div class="post_meta">
<ul>
<li>
<p><span>${item.created }</span> / <span>POSTED</span></p></li>
</ul>
</div>
<p>${item.description } </p>
</div>
</li>
</c:forEach>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--// Blog Grids Area -->
</main>
<!--// Page Conttent -->
<jsp:include page="footer.jsp"></jsp:include>