123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- {extend name="common/common2" /}
- {block name="main"}
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <div class="ibox-title">
- <h5>按月删除计划</h5>
- <div class="ibox-tools">
- <a class="toback" href="javascript:history.go(-1);">
- 返回上一页
- </a>
- </div>
- </div>
- <div class="ibox-content">
- <form method="post" action="{:url('batch',['mode'=>$mode])}?type={$type}" class="form-horizontal">
- <input type="hidden" name="mode" value="{$mode}">
- <div class="form-group">
- <label class="col-sm-2 control-label">选择要删除的月份<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- <select name="from" class="form-control">
- {foreach $from as $k=>$v}
- <option value="{$v}">{$v}</option>
- {/foreach}
- </select>
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <div class="col-sm-6 col-sm-offset-2">
- <button class="btn btn-primary ajax-post" target-form="form-horizontal"type="submit">确 定</button>
- <a href="javascript:history.go(-1);" class="btn btn-default">取 消</a>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script type="text/javascript" src="/static/layDate-v5.0.9/laydate.js"></script>
- <script>
- var time =new Date();
- //日期时间选择器
- laydate.render({
- elem: '#date',
- type: 'datetime',
- format:'yyyy-MM-dd HH:mm',
- trigger: 'click' ,
- theme:'#284a94'
- // value:dateFormat(),
- });
- laydate.render({
- elem: '#date-one',
- type: 'datetime',
- trigger: 'click' ,
- format:'yyyy-MM-dd HH:mm',
- theme:'#284a94'
- // value:dateFormatH(),
- });
- //当前日期格式化
- function dateFormat() {
- var year=time.getFullYear();
- var mouth=time.getMonth()+ 1;
- if(mouth < 10){
- var mouths='0'+mouth;
- }else {
- var mouths=mouth;
- }
- var day=time.getDate();
- if(day < 10){
- var days='0'+day;
- }else {
- var days=day;
- }
- var hour=time.getHours();
- if(hour < 10){
- var hours='0'+hour;
- }else {
- var hours=hour;
- }
- var minute=time.getMinutes();
- if(minute < 10){
- var minutes='0'+minute;
- }else {
- var minutes=minute;
- }
- var dateStr=year+'-'+mouths+'-'+days+' '+hours+':'+minutes;
- return dateStr;
- }
- function dateFormatH() {
- var year=time.getFullYear();
- var mouth=time.getMonth()+ 1;
- if(mouth < 10){
- var mouths='0'+mouth;
- }else {
- var mouths=mouth;
- }
- var day=time.getDate();
- if(day < 10){
- var days='0'+day;
- }else {
- var days=day;
- }
- var hour=time.getHours();
- if(hour < 10){
- var hours='0'+hour;
- }else {
- var hours=hour;
- }
- var minute=time.getMinutes()+20;
- var dateStr=year+'-'+mouths+'-'+days+' '+hours+':'+minute;
- return dateStr;
- }
- </script>
- {/block}
|