<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<%@ include file="../../common/head.jsp"%>
    <link rel="stylesheet" type="text/css" href="../res/js//plugins/webuploader/webuploader.css">
    <link rel="stylesheet" type="text/css" href="../res/css/demo/webuploader-demo.css">
    <script type="text/javascript" src="../res/js/plugins/webuploader/webuploader.js"></script>
    <script type="text/javascript" src="../res/js/plugins/webuploader/uploader.js"></script>
    <cs:initFile/>
<script>
function initUe(){
	$("#newsContent").val(ue.getContent());
}

</script>
</head>
<body>
	<div class="wrapper wrapper-content pull-left">
		<cs:form_validate formId="addNewsForm" />
		<div class="row">
			<div class="col-xs-12 ">
				<form class="form-horizontal" onsubmit="initUe()" action="add.cs"
					id="addNewsForm" method="POST">
					<div class="form-group">
						<label class="col-sm-3 control-label">标题：</label>
						<div class="col-sm-6">
							<input id="newsTitle" name="newsTitle" class="form-control">
						</div>
					</div>
					<%--<div class="form-group">
						<label class="col-sm-3 control-label">摘要：</label>
						<div class="col-sm-6">
							<input id="newsAbstract" name="newsAbstract" class="form-control">
						</div>
					</div>--%>
					<div class="form-group">
						<label class="col-sm-3 control-label">排序：</label>
						<div class="col-sm-6">
							<input id="newsSort" name="newsSort" value="999"
								class="form-control">（数字越小越向前排）
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">公告图标：</label>
						<div class="col-sm-6">
							<cs:file name="newsImage" type="100" num="1"></cs:file>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">是否显示：</label>
						<div class="col-sm-6">
							<select id="newsShow" name="newsShow" class="form-control">
								<option value="1">显示</option>
								<option value="2">隐藏</option>
							</select>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">是否公开：</label>
						<div class="col-sm-6">
							<select id="openFlag" name="openFlag" class="form-control">
								<option value="1" selected>公开</option>
								<option value="0">内部</option>
							</select>
						</div>
					</div>
					

					<div class="form-group ">
						<label class="col-xs-3 control-label">详情：</label> <textarea
							style="display:none;" id="newsContent" name="newsContent" ></textarea>
						<div class="col-xs-9">
							<cs:wordedit name="详情" />
						</div>
					</div>

					<div class="form-group">
						<div class="col-sm-4 col-sm-offset-3 pull-left">
							<button class="btn btn-default btn-dlg-close">取消</button>
							<button class="btn btn-primary" type="submit">提交</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</body>
</html>

