<!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">
			<blockquote class="layui-elem-quote layui-quote-nm txt-lt f08e">
			<i class="layui-icon">&#xe60b;</i> 红包口令不为空，则领取时必须输入口令;<br/>
			<i class="layui-icon">&#xe60b;</i> 拼手气红包，金额为随机，可多可少;<br/>
			<i class="layui-icon">&#xe60b;</i> 平均固定红包，金额公式为：红包金额 除以 红包数量;<br/>
			</blockquote>
			<div class="login-form post_li">
				<form method="post" action="post.php">				
					<ul>
						{loop $custom $item}
						<li><h4>{$item[cusname]}</h4>{$item[html]}</li>
						{/loop}
						<div class="clear"></div>
						{if ($catinfo[pay]==1)}
						<li class="pad_1"><h4>红包金额</h4><input name="money" type="number" value="" autocomplete="off"></li>
						{/if}
						<li><h4>红包口令</h4><input name="redpass" type="text" value="" placeholder="凭口令开红包,不需要则为空"></li>
						<li class="pad_1"><h4>红包类型</h4>
						<select name="redtype">
							<option value="0">随机拼手气金额</option>
							<option value="1">平均固定金额</option>
						</select></li>
						<li class="pad_1"><h4>红包数量</h4><input name="nums" type="number" required="" value="" lay-verify="number" autocomplete="off"></li>
						<li><h4>有效期至</h4><input name="enddate" type="text" required="" value="" data-field="date" readonly></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>
						<select name="foruser">
							<option value="0">全部会员可开</option>
							<option value="1">仅本店核销过会员可开</option>
						</select>
						</li>
						<li class="pad_1"><h4>红包说明</h4><textarea name="jinfo" rows="1" placeholder="选填"></textarea></li>
						<div id="dtBox"></div>
						<input type="hidden" name="catid" value="{$catid}" />
						<input type="hidden" name="act" value="postmsg">
						<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>