<!DOCTYPE html>
<html>
<head>{template head}
<script src="{JS_PATH}jquery-1.11.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="{JS_PATH}DateTimePicker.css" />
<script type="text/javascript" src="{JS_PATH}DateTimePicker.js"></script>
<style>
.dtpicker-comp input[type="text"]{
	background:none;
	padding:0;
}
</style>
</head>
<body>
	{template header}
		{template here}
		<div class="signin-form">
			{if ($catinfo[catinfo])}
			<blockquote class="layui-elem-quote layui-quote-nm txt-lt f08e">
			{$catinfo[catinfo]}
			</blockquote>
			{/if}
			<div class="login-form post_li">
				<form method="post" action="post.php">				
					<ul>
						<li><h4>券名称</h4><input name="title" type="text" value="" placeholder="优惠券名称"  autocomplete="off"></li>
						<div class="clear"></div>
						<li><h4>领券截止日期</h4><input name="enddate" type="text" required="" data-field="date" readonly></li>
						<div id="dtBox"></div>
						<li class="pad_1"><h4>领券后有效天</h4><input name="userdate" placeholder="领券后几天有效,空则默认{$CFG['myjuan_day']}天" type="number" value="" lay-verify="number" autocomplete="off"></li>
						<li class="pad_1"><h4>数量</h4><input name="nums" type="number" required="" value="" lay-verify="number" autocomplete="off"></li>
						<li class="pad_1"><h4>可领取次数</h4><input name="usernum" type="number" required="" value="" lay-verify="number" autocomplete="off"></li>
						<li class="pad_1"><h4>详细说明</h4><textarea name="jinfo" rows="3" placeholder="选填"></textarea></li>
						<input type="hidden" name="catid" value="{$catid}" />
						<input type="hidden" name="act" value="postok">
						<input type="submit" value="发布" class="layui-btn layui-btn-big layui-btn-normal" name="submit">
					</ul>
					<div class="clear h_1"> </div>
				</form>
			</div>
		</div>
		<!--//signin-form-->

<script type="text/javascript">
$(document).ready(function()
{
	$("#dtBox").DateTimePicker();
});
</script>
<script>
layui.use('form', function(){
	var form = layui.form();
});
</script>
</body>
</html>