93 lines
3.5 KiB
PHP
93 lines
3.5 KiB
PHP
![]() |
{extend name="public/base" /}
|
||
|
{block name='content'}
|
||
|
{include file='public/content_header' /}
|
||
|
<section class="content">
|
||
|
<div class="row">
|
||
|
<div class="col-md-12">
|
||
|
<div class="box box-primary">
|
||
|
<!-- 表单头部 -->
|
||
|
<div class="box-header with-border">
|
||
|
<div class="btn-group">
|
||
|
<a class="btn flat btn-sm btn-default BackButton">
|
||
|
<i class="fa fa-arrow-left"></i>
|
||
|
返回
|
||
|
</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<form id="dataForm" class="form-horizontal dataForm" action="" method="post"
|
||
|
enctype="multipart/form-data">
|
||
|
<div class="box-body">
|
||
|
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="context" class="col-sm-2 control-label">公告内容</label>
|
||
|
<div class="col-sm-10 col-md-4">
|
||
|
<textarea id="context" name="context" style="width: 100%" placeholder="请输入公告内容" rows="6"></textarea>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="starttime" class="col-sm-2 control-label">开始时间</label>
|
||
|
<div class="col-sm-10 col-md-4">
|
||
|
<input type="datetime-local" maxlength="50" id="starttime" autocomplete="off" name="starttime" class="form-control" placeholder="">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="endtime" class="col-sm-2 control-label">结束时间</label>
|
||
|
<div class="col-sm-10 col-md-4">
|
||
|
<input type="datetime-local" maxlength="50" id="endtime" autocomplete="off" name="endtime" class="form-control" placeholder="">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<!--表单底部-->
|
||
|
<div class="box-footer">
|
||
|
{:token()}
|
||
|
<div class="col-sm-2">
|
||
|
</div>
|
||
|
<div class="col-sm-10 col-md-4">
|
||
|
{if !isset($data)}
|
||
|
<div class="btn-group pull-right">
|
||
|
<label class="createContinue">
|
||
|
<input type="checkbox" value="1" id="_create" name="_create"
|
||
|
title="继续添加数据">继续添加</label>
|
||
|
</div>
|
||
|
{/if}
|
||
|
<div class="btn-group">
|
||
|
<button type="submit" class="btn flat btn-info dataFormSubmit">
|
||
|
保存
|
||
|
</button>
|
||
|
</div>
|
||
|
<div class="btn-group">
|
||
|
<button type="reset" class="btn flat btn-default dataFormReset">
|
||
|
重置
|
||
|
</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</section>
|
||
|
<script>
|
||
|
$("#dataForm").validate({
|
||
|
rules: {
|
||
|
|
||
|
|
||
|
},
|
||
|
messages: {
|
||
|
|
||
|
},
|
||
|
|
||
|
});
|
||
|
</script>
|
||
|
|
||
|
{/block}
|
||
|
|