add.html 4.42 KB
<!DOCTYPE html>
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>添加|后台管理系统</title>
<link rel="stylesheet" type="text/css" href="__PUB__style/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="__PUB__style/pp.css">
<link rel="stylesheet" type="text/css" href="__PUB__style/bootstrap-responsive.min.css">
<script type="text/javascript" src="__PUB__js/bootstrap.min.js"></script>
<script type="text/javascript" src="__PUB__js/jquery.min.js"></script>
<script type="text/javascript" src="__PUB__js/common.js"></script>
<script type="text/javascript" src="__PUB__js/My97DatePicker/WdatePicker.js"></script>
<link rel="stylesheet" href="__ROOTPUB__kindeditor/themes/default/default.css" />
<script charset="utf-8" src="__ROOTPUB__kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="__ROOTPUB__kindeditor/lang/zh_CN.js"></script>
<script>
KindEditor.ready(function(K) {
	var editor = K.create('textarea[name="content"]', {
		uploadJson : "<{:U('Kind/upload_json')}>",
		fileManagerJson : "<{:U('Kind/file_manager_json')}>",
		allowFileManager : true
	});
	var editor1 = K.editor({
		uploadJson : "<{:U('Kind/upload_json')}>",
		fileManagerJson : "<{:U('Kind/file_manager_json')}>",
		allowFileManager : true
	});
	K('#uploadid').click(function() {
		editor1.loadPlugin('image', function() {
			editor1.plugin.imageDialog({
				imageUrl : K('#picid').val(),
				clickFn : function(url, title, width, height, border, align) {
					K('#picid').val(url);
					document.getElementById('picida').src=url;
					editor1.hideDialog();
				}
			});
		});
	});
});
</script>
</head>

<body style="margin: 0px 0px;min-height:500px; background:url(__ROOTPUB__img/ybbf.png) center no-repeat;background-size:contain;background-position:200px 150px;height:810px;">
<div  style="margin:0 auto; width:98%;">
<form name="form1" action="" method="post" style="">
<table class="table table-condensed table-bordered table-hover" style="">
<tbody style="">
	<tr>
		<td colspan="4">
			<div style="float:left">
				<b>发布通知公告</b>
			</div>
			<div style="float:right">
				[<a href="<{:U('index',array('tid'=>I('tid'),'p'=>I('p')))}>"><u>返回列表</u></a>]
			</div>
		</td>
	</tr>
	<tr>
		<td class="text_right_wid_90"><font color="red">发布时间:</font></td>
		<td colspan="3">
			<span><input class="Wdate" type="text" onClick="WdatePicker()" name="addtime" value="<{:date('Y-m-d')}>" /></span>
			(<font color="red">注:红色字为必填项</font>)
		</td>
	</tr>
	
	<tr>
		<td class="text_right_wid_90"><font color="red">标题:</font></td>
		<td colspan="3">
			<input name="title" type="text" id="title" class="txt_title" value=""> (<font color="red">注:红色字为必填项</font>)
		</td>
	</tr>
	<!-- <tr>
		<td class="text_right_wid_90">作者:</td>
		<td class="width_430">
			<input name="editor" type="text" id="writer" value="">
		</td>
		<td class="text_right_wid_90">来源:</td>
		<td>
			<input type="text" name="source" id="sourceid" value="">
		</td>
	</tr> -->
	
	<tr>
		<td class="text_right_wid_90">
			置顶:
		</td>
		<td class="width_430">
			<select name="dotop" style="width:80px;">
				<option value="0">默认值</option>
				<for start="1" end="100" name="ii">
				<option value="<{$ii}>"><{$ii}></option>
				</for>
			</select> (<font color="red">注:数安越大排序越靠前</font>)
		</td>
		<td class="text_right_wid_90">置顶天数:</td>
		<td>
			<input name="dotopday" type="text" value="" style="width:100px;">天 (<font color="red">注:0表示置顶时间不受限制</font>)
		</td>
	</tr>
	<tr>
		<td style="text-align:right; vertical-align:middle">内容摘要:</td>
		<td colspan="3"><textarea name="description" rows="2" id="descriptionid" style="width:98%;"></textarea></td>
	</tr>
	<tr style="">
		<td style="text-align:right; vertical-align:middle"><font color="red">内容:</font></td>
		<td colspan="3" style=""><textarea name="content" id="content" style="width: 99%; height:500px; display: none;"></textarea></td>
	</tr>
	<tr>
		<td></td>
		<td colspan="3">
			<button class="btn" type="submit" style="cursor:pointer;">保存</button>
			<button class="btn" type="reset" onclick="location.reload();" style="cursor:pointer;">重置</button>
		</td>
	</tr>
</tbody>
</table>
</form>
</div>
</body>
<include file="Common:js2" />
</html>