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.

100 lines
4.6 KiB

2 years ago
<%@ 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">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span>新闻内容管理 <span class="c-gray en">&gt;</span> 新增新闻内容 <a
class="btn btn-success radius r" style="line-height: 1.6em; margin-top: 3px" href="article/createArticle.action" title="刷新"><i
class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<article class="page-container">
<form class="form form-horizontal" id="form-article-add" action="article/addArticle.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" placeholder="请输入标题" />
</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"><option value="">---请选择分类--</option>
<c:forEach items="${bannerList}" var="banner">
<option value="${banner.bannerid}">${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" id="image" onclick="selimage();" placeholder="请选择图片" 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="是" checked>是 &nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="istop"
value="否" 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">
<input type="radio" name="isflv" value="是" title="是" checked>是 &nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="isflv"
value="否" 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">
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
<textarea class="textarea" name="contents" id="contents" placeholder="请输入内容"> </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" id="basepath" value="<%=basePath%>" />
<button id="sub" class="btn btn-secondary radius" type="submit">
<i class="Hui-iconfont">&#xe632;</i>提交保存
</button>
<button id="res" class="btn btn-default radius" type="reset">
<i class="Hui-iconfont">&#xe68f;</i>取消重置
</button>
</div>
</div>
</form>
</article>
</body>
</html>