You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
95 lines
4.5 KiB
95 lines
4.5 KiB
<?php
|
|
use \common\libs\MyLib;
|
|
?>
|
|
<?php $this->beginBlock('header_css'); ?>
|
|
<link href="/assets/css/plugins/clockpicker/clockpicker.css" rel="stylesheet">
|
|
<?php $this->endBlock(); ?>
|
|
|
|
<div class="wrapper wrapper-content animated fadeInRight">
|
|
<div class="ibox float-e-margins">
|
|
<div class="ibox-content">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<form role="form" class="form-horizontal data-from" id="theFrm">
|
|
<input type="hidden" name="op" value="add" />
|
|
<div class="form-group">
|
|
<label class="col-md-1 control-label">名称</label>
|
|
<div class="col-md-11">
|
|
<input type="text" name="name" value="" class="form-control">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-md-1 control-label">开始</label>
|
|
<div class="col-md-5">
|
|
<div class="input-group">
|
|
<span class="input-group-addon">日期</span>
|
|
<input type="text" class="input-date form-control" id="begin_date" name="begin_date" autocomplete="off" value="" />
|
|
<span class="input-group-addon">时间</span>
|
|
<input type="text" class="form-control clockpicker" data-autoclose="true" id="begin_time" name="begin_time" autocomplete="off" value="" />
|
|
</div>
|
|
</div>
|
|
<label class="col-md-1 control-label">结束</label>
|
|
<div class="col-md-5">
|
|
<div class="input-group">
|
|
<span class="input-group-addon">日期</span>
|
|
<input type="text" class="input-date form-control" id="end_date" name="end_date" autocomplete="off" value="" />
|
|
<span class="input-group-addon">时间</span>
|
|
<input type="text" class="form-control clockpicker" data-autoclose="true" id="end_time" name="end_time" autocomplete="off" value="" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-md-1 control-label">备注</label>
|
|
<div class="col-md-11">
|
|
<textarea class="form-control" name="remark" id="remark"></textarea>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="row">
|
|
<div class="col-md-5 col-md-offset-5">
|
|
<button class="btn btn-primary btn-save" type="button">
|
|
<strong>添 加</strong>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php $this->beginBlock('footer_js'); ?>
|
|
<script src="/assets/js/plugins/clockpicker/clockpicker.js"></script>
|
|
<script type="text/javascript" language="javascript">
|
|
$(function () {
|
|
$('.input-date').datepicker({
|
|
keyboardNavigation: false,
|
|
forceParse: false,
|
|
autoclose: true
|
|
});
|
|
$('.clockpicker').clockpicker();
|
|
//提交按钮
|
|
$(".btn-save").click(function(){
|
|
parent.layer.confirm('是否确认提交?', {
|
|
btn: ['确认','取消'], //按钮
|
|
shade: false //不显示遮罩
|
|
}, function(){
|
|
var params = $("#theFrm").serialize();
|
|
$.post('/marketing-strategy/save',params,function(obj){
|
|
if(obj.success) {
|
|
parent.layer.msg('保存成功');
|
|
parent.refreshList();
|
|
layer_close();
|
|
} else {
|
|
parent.layer.msg(data.msg);
|
|
}
|
|
},'json');
|
|
}, function(){
|
|
//
|
|
});
|
|
});
|
|
})
|
|
</script>
|
|
<?php $this->endBlock('footer_js'); ?>
|
|
|