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.
104 lines
5.2 KiB
104 lines
5.2 KiB
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
|
<jsp:include page="check_logstate.jsp"></jsp:include>
|
|
<%
|
|
String path = request.getContextPath();
|
|
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
|
|
+ path + "/";
|
|
%>
|
|
<!doctype html>
|
|
<html lang="zh_CN">
|
|
<head>
|
|
<base href="<%=basePath%>" />
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<title>欢迎使用后台管理系统</title>
|
|
<link rel="stylesheet" type="text/css" href="h-ui/h-ui/css/H-ui.min.css" />
|
|
<link rel="stylesheet" type="text/css" href="h-ui/h-ui.admin/css/H-ui.admin.css" />
|
|
<link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css" />
|
|
<link rel="stylesheet" type="text/css" href="h-ui/h-ui.admin/skin/default/skin.css" id="skin" />
|
|
<link rel="stylesheet" type="text/css" href="h-ui/h-ui.admin/css/style.css" />
|
|
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
|
|
<script type="text/javascript" src="h-ui/h-ui/js/H-ui.min.js"></script>
|
|
<script type="text/javascript" src="h-ui/h-ui.admin/js/H-ui.admin.js"></script>
|
|
<script type="text/javascript" src="js/article.js" charset="utf-8"></script>
|
|
<script type="text/javascript" src="js/selimage.js" charset="utf-8"></script>
|
|
<script type="text/javascript" src="<%=basePath%>My97DatePicker/WdatePicker.js" charset="utf-8"></script>
|
|
</head>
|
|
<body>
|
|
<nav class="breadcrumb">
|
|
<i class="Hui-iconfont"></i> 首页 <span class="c-gray en">></span>新闻内容管理 <span class="c-gray en">></span> 编辑新闻内容<a
|
|
class="btn btn-success radius r" style="line-height: 1.6em; margin-top: 3px"
|
|
href="article/getArticleById.action?id=${article.articleid }" title="刷新"> <i class="Hui-iconfont"></i></a> <a
|
|
class="btn btn-success radius r" style="line-height: 1.6em; margin-top: 3px" href="article/getAllArticle.action" title="返回"> <i
|
|
class="Hui-iconfont"></i></a>
|
|
</nav>
|
|
<article class="page-container">
|
|
<form class="form form-horizontal" id="form-article-add" action="article/updateArticle.action" name="myform" method="post">
|
|
<div class="row cl">
|
|
<label class="form-label col-xs-4 col-sm-2">标题</label>
|
|
<div class="formControls col-xs-8 col-sm-9">
|
|
<input type="text" name="title" class="input-text" id="title" value="${article.title}" />
|
|
</div>
|
|
</div>
|
|
<div class="row cl">
|
|
<label class="form-label col-xs-4 col-sm-2">分类</label>
|
|
<div class="formControls col-xs-8 col-sm-9">
|
|
<span class="select-box"><select name="bannerid" class="select" id="bannerid"><c:forEach items="${bannerList}"
|
|
var="banner">
|
|
<option value="${banner.bannerid}" ${banner.bannerid == article.bannerid?"selected":"" }>${banner.bannername }</option>
|
|
</c:forEach></select></span>
|
|
</div>
|
|
</div>
|
|
<div class="row cl">
|
|
<label class="form-label col-xs-4 col-sm-2">图片</label>
|
|
<div class="formControls col-xs-8 col-sm-9">
|
|
<script type="text/javascript" src="js/selimage.js"></script>
|
|
<input class="input-text" type="text" name="image" value="${article.image}" id="image" onclick="selimage();" readonly="readonly" />
|
|
</div>
|
|
</div>
|
|
<div class="row cl">
|
|
<label class="form-label col-xs-4 col-sm-2">是否置顶</label>
|
|
<div class="formControls col-xs-8 col-sm-9">
|
|
<input type="radio" name="istop" value="是" title="是" ${article.istop == "是"?"checked":""}>是 <input
|
|
type="radio" name="istop" value="否" title="否" ${article.istop == "否"?"checked":""}>否
|
|
</div>
|
|
</div>
|
|
<div class="row cl">
|
|
<label class="form-label col-xs-4 col-sm-2">是否轮播</label>
|
|
<div class="formControls col-xs-8 col-sm-9">
|
|
<input type="radio" name="isflv" value="是" title="是" ${article.isflv == "是"?"checked":""}>是 <input
|
|
type="radio" name="isflv" value="否" title="否" ${article.isflv == "否"?"checked":""}>否
|
|
</div>
|
|
</div>
|
|
<div class="row cl">
|
|
<label class="form-label col-xs-4 col-sm-2">内容</label>
|
|
<div class="formControls col-xs-8 col-sm-9">
|
|
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
|
|
<textarea class="textarea" name="contents" id="contents">${article.contents} </textarea>
|
|
<script type="text/javascript">
|
|
CKEDITOR.replace('contents', {
|
|
language : 'zh-cn'
|
|
});
|
|
</script>
|
|
</div>
|
|
</div>
|
|
<div class="row cl">
|
|
<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
|
|
<input type="hidden" name="articleid" id="articleid" value="${article.articleid}" /><input type="hidden" name="addtime" id="addtime"
|
|
value="${article.addtime}" readonly="readonly" /> <input type="hidden" name="hits" id="hits" value="${article.hits}"
|
|
readonly="readonly" /> <input type="hidden" id="basepath" value="<%=basePath%>" />
|
|
<button id="sub" class="btn btn-secondary radius" type="submit">
|
|
<i class="Hui-iconfont"></i>提交保存
|
|
</button>
|
|
<button id="res" class="btn btn-default radius" type="reset">
|
|
<i class="Hui-iconfont"></i>取消重置
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</article>
|
|
</body>
|
|
</html>
|
|
|
|
|