浏览代码

add datetime

GGican 8 年之前
父节点
当前提交
ffa465ce1e
共有 26 个文件被更改,包括 2020 次插入54 次删除
  1. 1 1
      app/Http/Controllers/Admin/LogController.php
  2. 162 1
      app/Http/Controllers/Admin/TableController.php
  3. 8 0
      public/css/bootstrap-datetimepicker.min.css
  4. 1521 0
      public/js/bootstrap-datetimepicker.min.js
  5. 16 0
      public/js/bootstrap-datetimepicker.zh-CN.js
  6. 13 1
      resources/views/admin/edit_table/table_eight.blade.php
  7. 13 1
      resources/views/admin/edit_table/table_five.blade.php
  8. 13 1
      resources/views/admin/edit_table/table_four.blade.php
  9. 13 1
      resources/views/admin/edit_table/table_nine.blade.php
  10. 13 1
      resources/views/admin/edit_table/table_one.blade.php
  11. 13 1
      resources/views/admin/edit_table/table_seven.blade.php
  12. 13 1
      resources/views/admin/edit_table/table_six.blade.php
  13. 15 2
      resources/views/admin/edit_table/table_three.blade.php
  14. 29 9
      resources/views/admin/edit_table/table_two.blade.php
  15. 17 3
      resources/views/admin/index.blade.php
  16. 6 3
      resources/views/admin/project/index.blade.php
  17. 13 1
      resources/views/admin/table/table_eight.blade.php
  18. 13 1
      resources/views/admin/table/table_five.blade.php
  19. 13 1
      resources/views/admin/table/table_four.blade.php
  20. 13 1
      resources/views/admin/table/table_nine.blade.php
  21. 15 3
      resources/views/admin/table/table_one.blade.php
  22. 13 1
      resources/views/admin/table/table_seven.blade.php
  23. 13 1
      resources/views/admin/table/table_six.blade.php
  24. 16 2
      resources/views/admin/table/table_three.blade.php
  25. 29 9
      resources/views/admin/table/table_two.blade.php
  26. 16 8
      resources/views/layouts/admin.blade.php

+ 1 - 1
app/Http/Controllers/Admin/LogController.php

xqd
@@ -12,7 +12,7 @@ class LogController extends CommonController
     public function index()
     {
 
-        return view('admin.log',['logs'=>Log::where('id','>',0)->paginate(20)]);
+        return view('admin.log',['logs'=>Log::where('id','>',0)->orderby('id','esc')->paginate(20)]);
 
     }
 }

+ 162 - 1
app/Http/Controllers/Admin/TableController.php

xqd xqd xqd xqd xqd xqd xqd xqd xqd xqd xqd
@@ -94,60 +94,113 @@ class TableController extends CommonController
         $data['user_id'] = $user->id;
         $data['table_id'] = $table_type_id;
 
-
         switch($table_type_id){
             case 1:
                 $re_child = Table_one::create($child_table_data);
                 $data['child_table_id'] = $re_child['id'];
                 Tablelist::create($data);
+                $log_data=[
+                    'name'=>$this->user->surname,
+                    'operate'=>'保存表:屋征收与补偿安置单(货币化安置)',
+                    'job'=>$this->user->job_name,
+                ];
+                $this->saveLog($log_data);
                 return redirect('/on_table');
                 break;
             case 2:
                 $re_child = Table_two::create($child_table_data);
                 $data['child_table_id'] = $re_child['id'];
                 Tablelist::create($data);
+                $log_data=[
+                    'name'=>$this->user->surname,
+                    'operate'=>'保存表:违章建筑自行拆除费用申领表',
+                    'job'=>$this->user->job_name,
+                ];
+                $this->saveLog($log_data);
                 return redirect('/on_table');
                 break;
             case 3:
                 $re_child = Table_three::create($child_table_data);
                 $data['child_table_id'] = $re_child['id'];
                 Tablelist::create($data);
+                $log_data=[
+                    'name'=>$this->user->surname,
+                    'operate'=>'保存表:残疾人补贴审批确认单',
+                    'job'=>$this->user->job_name,
+                ];
+                $this->saveLog($log_data);
                 return redirect('/on_table');
                 break;
             case 4:
                 $re_child = Table_four::create($child_table_data);
                 $data['child_table_id'] = $re_child['id'];
                 Tablelist::create($data);
+                $log_data=[
+                    'name'=>$this->user->surname,
+                    'operate'=>'保存表:提前搬迁奖励单',
+                    'job'=>$this->user->job_name,
+                ];
+                $this->saveLog($log_data);
                 return redirect('/on_table');
                 break;
             case 5:
                 $re_child = Table_five::create($child_table_data);
                 $data['child_table_id'] = $re_child['id'];
                 Tablelist::create($data);
+                $log_data=[
+                    'name'=>$this->user->surname,
+                    'operate'=>'保存表:逾期过渡安置补助费发放单',
+                    'job'=>$this->user->job_name,
+                ];
+                $this->saveLog($log_data);
                 return redirect('/on_table');
                 break;
             case 6:
                 $re_child = Table_six::create($child_table_data);
                 $data['child_table_id'] = $re_child['id'];
                 Tablelist::create($data);
+                $log_data=[
+                    'name'=>$this->user->surname,
+                    'operate'=>'保存表:房屋征收安置补贴单',
+                    'job'=>$this->user->job_name,
+                ];
+                $this->saveLog($log_data);
                 return redirect('/on_table');
                 break;
             case 7:
                 $re_child = Table_seven::create($child_table_data);
                 $data['child_table_id'] = $re_child['id'];
                 Tablelist::create($data);
+                $log_data=[
+                    'name'=>$this->user->surname,
+                    'operate'=>'保存表:征收与补偿核算单(货币化安置)',
+                    'job'=>$this->user->job_name,
+                ];
+                $this->saveLog($log_data);
                 return redirect('/on_table');
                 break;
             case 8:
                 $re_child = Table_eight::create($child_table_data);
                 $data['child_table_id'] = $re_child['id'];
                 Tablelist::create($data);
+                $log_data=[
+                    'name'=>$this->user->surname,
+                    'operate'=>'保存表:征收与补偿核算单(产权调换)',
+                    'job'=>$this->user->job_name,
+                ];
+                $this->saveLog($log_data);
                 return redirect('/on_table');
                 break;
             case 9:
                 $re_child = Table_nine::create($child_table_data);
                 $data['child_table_id'] = $re_child['id'];
                 Tablelist::create($data);
+                $log_data=[
+                    'name'=>$this->user->surname,
+                    'operate'=>'保存表:征收与补偿核算单(货币补偿)',
+                    'job'=>$this->user->job_name,
+                ];
+                $this->saveLog($log_data);
                 return redirect('/on_table');
             break;
         }
@@ -172,30 +225,84 @@ class TableController extends CommonController
             switch ($table_type_id) {
                 case 1:
                     $child = Table_one::create($request->except('_token'));
+                    $log_data=[
+                    'name'=>$this->user->surname,
+                    'operate'=>'提交表:屋征收与补偿安置单(货币化安置)',
+                    'job'=>$this->user->job_name,
+                ];
+                    $this->saveLog($log_data);
                     break;
                 case 2:
                     $child = Table_two::create($request->except('_token'));
+                    $log_data=[
+                        'name'=>$this->user->surname,
+                        'operate'=>'提交表:违章建筑自行拆除费用申领表',
+                        'job'=>$this->user->job_name,
+                    ];
+                    $this->saveLog($log_data);
                     break;
                 case 3:
                     $child = Table_three::create($request->except('_token'));
+                    $log_data=[
+                        'name'=>$this->user->surname,
+                        'operate'=>'提交表:残疾人补贴审批确认单',
+                        'job'=>$this->user->job_name,
+                    ];
+                    $this->saveLog($log_data);
                     break;
                 case 4:
                     $child = Table_four::create($request->except('_token'));
+                    $log_data=[
+                        'name'=>$this->user->surname,
+                        'operate'=>'提交表:提前搬迁奖励单',
+                        'job'=>$this->user->job_name,
+                    ];
+                    $this->saveLog($log_data);
                     break;
                 case 5:
                     $child = Table_five::create($request->except('_token'));
+                    $log_data=[
+                        'name'=>$this->user->surname,
+                        'operate'=>'提交表:逾期过渡安置补助费发放单',
+                        'job'=>$this->user->job_name,
+                    ];
+                    $this->saveLog($log_data);
                     break;
                 case 6:
                     $child = Table_six::create($request->except('_token'));
+                    $log_data=[
+                        'name'=>$this->user->surname,
+                        'operate'=>'提交表:房屋征收安置补贴单',
+                        'job'=>$this->user->job_name,
+                    ];
+                    $this->saveLog($log_data);
                     break;
                 case 7:
                     $child = Table_seven::create($request->except('_token'));
+                    $log_data=[
+                        'name'=>$this->user->surname,
+                        'operate'=>'提交表:征收与补偿核算单(货币化安置)',
+                        'job'=>$this->user->job_name,
+                    ];
+                    $this->saveLog($log_data);
                     break;
                 case 8:
                     $child = Table_eight::create($request->except('_token'));
+                    $log_data=[
+                        'name'=>$this->user->surname,
+                        'operate'=>'提交表:征收与补偿核算单(产权调换)',
+                        'job'=>$this->user->job_name,
+                    ];
+                    $this->saveLog($log_data);
                     break;
                 case 9:
                     $child = Table_nine::create($request->except('_token'));
+                    $log_data=[
+                        'name'=>$this->user->surname,
+                        'operate'=>'提交表:征收与补偿核算单(货币补偿)',
+                        'job'=>$this->user->job_name,
+                    ];
+                    $this->saveLog($log_data);
                     break;
             };
             if (isset($child)) {
@@ -279,6 +386,12 @@ class TableController extends CommonController
                 case 1:
                     if($re == 1) {
                         Table_one::where('id',$find->child_table_id)->update($child_data);
+                        $log_data=[
+                            'name'=>$this->user->surname,
+                            'operate'=>'提交表:屋征收与补偿安置单(货币化安置)',
+                            'job'=>$this->user->job_name,
+                        ];
+                        $this->saveLog($log_data);
                         return redirect('/on_table');
                     }else
                     {
@@ -288,6 +401,12 @@ class TableController extends CommonController
                 case 2:
                     if($re == 1) {
                         Table_two::where('id',$find->child_table_id)->update($child_data);
+                        $log_data=[
+                            'name'=>$this->user->surname,
+                            'operate'=>'提交表:违章建筑自行拆除费用申领表',
+                            'job'=>$this->user->job_name,
+                        ];
+                        $this->saveLog($log_data);
                         return redirect('/on_table');
                     }else
                     {
@@ -297,6 +416,12 @@ class TableController extends CommonController
                 case 3:
                     if($re == 1) {
                         Table_three::where('id',$find->child_table_id)->update($child_data);
+                        $log_data=[
+                            'name'=>$this->user->surname,
+                            'operate'=>'提交表:残疾人补贴审批确认单',
+                            'job'=>$this->user->job_name,
+                        ];
+                        $this->saveLog($log_data);
                         return redirect('/on_table');
                     }else
                     {
@@ -306,6 +431,12 @@ class TableController extends CommonController
                 case 4:
                     if($re == 1) {
                         Table_four::where('id',$find->child_table_id)->update($child_data);
+                        $log_data=[
+                            'name'=>$this->user->surname,
+                            'operate'=>'提交表:提前搬迁奖励单',
+                            'job'=>$this->user->job_name,
+                        ];
+                        $this->saveLog($log_data);
                         return redirect('/on_table');
                     }else
                     {
@@ -315,6 +446,12 @@ class TableController extends CommonController
                 case 5:
                     if($re == 1) {
                         Table_five::where('id',$find->child_table_id)->update($child_data);
+                        $log_data=[
+                            'name'=>$this->user->surname,
+                            'operate'=>'提交表:逾期过渡安置补助费发放单',
+                            'job'=>$this->user->job_name,
+                        ];
+                        $this->saveLog($log_data);
                         return redirect('/on_table');
                     }else
                     {
@@ -324,6 +461,12 @@ class TableController extends CommonController
                 case 6:
                     if($re == 1) {
                         Table_six::where('id',$find->child_table_id)->update($child_data);
+                        $log_data=[
+                            'name'=>$this->user->surname,
+                            'operate'=>'提交表:房屋征收安置补贴单',
+                            'job'=>$this->user->job_name,
+                        ];
+                        $this->saveLog($log_data);
                         return redirect('/on_table');
                     }else
                     {
@@ -333,6 +476,12 @@ class TableController extends CommonController
                 case 7:
                     if($re == 1) {
                         Table_seven::where('id',$find->child_table_id)->update($child_data);
+                        $log_data=[
+                            'name'=>$this->user->surname,
+                            'operate'=>'提交表:征收与补偿核算单(货币化安置)',
+                            'job'=>$this->user->job_name,
+                        ];
+                        $this->saveLog($log_data);
                         return redirect('/on_table');
                     }else
                     {
@@ -342,6 +491,12 @@ class TableController extends CommonController
                 case 8:
                     if($re == 1) {
                         Table_eight::where('id',$find->child_table_id)->update($child_data);
+                        $log_data=[
+                            'name'=>$this->user->surname,
+                            'operate'=>'提交表:征收与补偿核算单(产权调换)',
+                            'job'=>$this->user->job_name,
+                        ];
+                        $this->saveLog($log_data);
                         return redirect('/on_table');
                     }else
                     {
@@ -351,6 +506,12 @@ class TableController extends CommonController
                 case 9:
                     if($re == 1) {
                         Table_nine::where('id',$find->child_table_id)->update($child_data);
+                        $log_data=[
+                            'name'=>$this->user->surname,
+                            'operate'=>'提交表:征收与补偿核算单(货币补偿)',
+                            'job'=>$this->user->job_name,
+                        ];
+                        $this->saveLog($log_data);
                         return redirect('/on_table');
                     }else
                     {

文件差异内容过多而无法显示
+ 8 - 0
public/css/bootstrap-datetimepicker.min.css


+ 1521 - 0
public/js/bootstrap-datetimepicker.min.js

xqd
@@ -0,0 +1,1521 @@
+(function (a) {
+    if (typeof define === "function" && define.amd) {
+        define(["jquery"], a)
+    } else {
+        if (typeof exports === "object") {
+            a(require("jquery"))
+        } else {
+            a(jQuery)
+        }
+    }
+}(function (f, c) {
+    if (!("indexOf" in Array.prototype)) {
+        Array.prototype.indexOf = function (k, j) {
+            if (j === c) {
+                j = 0
+            }
+            if (j < 0) {
+                j += this.length
+            }
+            if (j < 0) {
+                j = 0
+            }
+            for (var l = this.length; j < l; j++) {
+                if (j in this && this[j] === k) {
+                    return j
+                }
+            }
+            return -1
+        }
+    }
+    function e(l) {
+        var k = f(l);
+        var j = k.add(k.parents());
+        var m = false;
+        j.each(function () {
+            if (f(this).css("position") === "fixed") {
+                m = true;
+                return false
+            }
+        });
+        return m
+    }
+
+    function h() {
+        return new Date(Date.UTC.apply(Date, arguments))
+    }
+
+    function d() {
+        var j = new Date();
+        return h(j.getUTCFullYear(), j.getUTCMonth(), j.getUTCDate(), j.getUTCHours(), j.getUTCMinutes(), j.getUTCSeconds(), 0)
+    }
+
+    var i = function (l, k) {
+        var n = this;
+        this.element = f(l);
+        this.container = k.container || "body";
+        this.language = k.language || this.element.data("date-language") || "en";
+        this.language = this.language in a ? this.language : this.language.split("-")[0];
+        this.language = this.language in a ? this.language : "en";
+        this.isRTL = a[this.language].rtl || false;
+        this.formatType = k.formatType || this.element.data("format-type") || "standard";
+        this.format = g.parseFormat(k.format || this.element.data("date-format") || a[this.language].format || g.getDefaultFormat(this.formatType, "input"), this.formatType);
+        this.isInline = false;
+        this.isVisible = false;
+        this.isInput = this.element.is("input");
+        this.fontAwesome = k.fontAwesome || this.element.data("font-awesome") || false;
+        this.bootcssVer = k.bootcssVer || (this.isInput ? (this.element.is(".form-control") ? 3 : 2) : (this.bootcssVer = this.element.is(".input-group") ? 3 : 2));
+        this.component = this.element.is(".date") ? (this.bootcssVer == 3 ? this.element.find(".input-group-addon .glyphicon-th, .input-group-addon .glyphicon-time, .input-group-addon .glyphicon-remove, .input-group-addon .glyphicon-calendar, .input-group-addon .fa-calendar, .input-group-addon .fa-clock-o").parent() : this.element.find(".add-on .icon-th, .add-on .icon-time, .add-on .icon-calendar, .add-on .fa-calendar, .add-on .fa-clock-o").parent()) : false;
+        this.componentReset = this.element.is(".date") ? (this.bootcssVer == 3 ? this.element.find(".input-group-addon .glyphicon-remove, .input-group-addon .fa-times").parent() : this.element.find(".add-on .icon-remove, .add-on .fa-times").parent()) : false;
+        this.hasInput = this.component && this.element.find("input").length;
+        if (this.component && this.component.length === 0) {
+            this.component = false
+        }
+        this.linkField = k.linkField || this.element.data("link-field") || false;
+        this.linkFormat = g.parseFormat(k.linkFormat || this.element.data("link-format") || g.getDefaultFormat(this.formatType, "link"), this.formatType);
+        this.minuteStep = k.minuteStep || this.element.data("minute-step") || 5;
+        this.pickerPosition = k.pickerPosition || this.element.data("picker-position") || "bottom-right";
+        this.showMeridian = k.showMeridian || this.element.data("show-meridian") || false;
+        this.initialDate = k.initialDate || new Date();
+        this.zIndex = k.zIndex || this.element.data("z-index") || c;
+        this.title = typeof k.title === "undefined" ? false : k.title;
+        this.defaultTimeZone = (new Date).toString().split("(")[1].slice(0, -1);
+        this.timezone = k.timezone || this.defaultTimeZone;
+        this.icons = {
+            leftArrow: this.fontAwesome ? "fa-arrow-left" : (this.bootcssVer === 3 ? "glyphicon-arrow-left" : "icon-arrow-left"),
+            rightArrow: this.fontAwesome ? "fa-arrow-right" : (this.bootcssVer === 3 ? "glyphicon-arrow-right" : "icon-arrow-right")
+        };
+        this.icontype = this.fontAwesome ? "fa" : "glyphicon";
+        this._attachEvents();
+        this.clickedOutside = function (o) {
+            if (f(o.target).closest(".datetimepicker").length === 0) {
+                n.hide()
+            }
+        };
+        this.formatViewType = "datetime";
+        if ("formatViewType" in k) {
+            this.formatViewType = k.formatViewType
+        } else {
+            if ("formatViewType" in this.element.data()) {
+                this.formatViewType = this.element.data("formatViewType")
+            }
+        }
+        this.minView = 0;
+        if ("minView" in k) {
+            this.minView = k.minView
+        } else {
+            if ("minView" in this.element.data()) {
+                this.minView = this.element.data("min-view")
+            }
+        }
+        this.minView = g.convertViewMode(this.minView);
+        this.maxView = g.modes.length - 1;
+        if ("maxView" in k) {
+            this.maxView = k.maxView
+        } else {
+            if ("maxView" in this.element.data()) {
+                this.maxView = this.element.data("max-view")
+            }
+        }
+        this.maxView = g.convertViewMode(this.maxView);
+        this.wheelViewModeNavigation = false;
+        if ("wheelViewModeNavigation" in k) {
+            this.wheelViewModeNavigation = k.wheelViewModeNavigation
+        } else {
+            if ("wheelViewModeNavigation" in this.element.data()) {
+                this.wheelViewModeNavigation = this.element.data("view-mode-wheel-navigation")
+            }
+        }
+        this.wheelViewModeNavigationInverseDirection = false;
+        if ("wheelViewModeNavigationInverseDirection" in k) {
+            this.wheelViewModeNavigationInverseDirection = k.wheelViewModeNavigationInverseDirection
+        } else {
+            if ("wheelViewModeNavigationInverseDirection" in this.element.data()) {
+                this.wheelViewModeNavigationInverseDirection = this.element.data("view-mode-wheel-navigation-inverse-dir")
+            }
+        }
+        this.wheelViewModeNavigationDelay = 100;
+        if ("wheelViewModeNavigationDelay" in k) {
+            this.wheelViewModeNavigationDelay = k.wheelViewModeNavigationDelay
+        } else {
+            if ("wheelViewModeNavigationDelay" in this.element.data()) {
+                this.wheelViewModeNavigationDelay = this.element.data("view-mode-wheel-navigation-delay")
+            }
+        }
+        this.startViewMode = 2;
+        if ("startView" in k) {
+            this.startViewMode = k.startView
+        } else {
+            if ("startView" in this.element.data()) {
+                this.startViewMode = this.element.data("start-view")
+            }
+        }
+        this.startViewMode = g.convertViewMode(this.startViewMode);
+        this.viewMode = this.startViewMode;
+        this.viewSelect = this.minView;
+        if ("viewSelect" in k) {
+            this.viewSelect = k.viewSelect
+        } else {
+            if ("viewSelect" in this.element.data()) {
+                this.viewSelect = this.element.data("view-select")
+            }
+        }
+        this.viewSelect = g.convertViewMode(this.viewSelect);
+        this.forceParse = true;
+        if ("forceParse" in k) {
+            this.forceParse = k.forceParse
+        } else {
+            if ("dateForceParse" in this.element.data()) {
+                this.forceParse = this.element.data("date-force-parse")
+            }
+        }
+        var m = this.bootcssVer === 3 ? g.templateV3 : g.template;
+        while (m.indexOf("{iconType}") !== -1) {
+            m = m.replace("{iconType}", this.icontype)
+        }
+        while (m.indexOf("{leftArrow}") !== -1) {
+            m = m.replace("{leftArrow}", this.icons.leftArrow)
+        }
+        while (m.indexOf("{rightArrow}") !== -1) {
+            m = m.replace("{rightArrow}", this.icons.rightArrow)
+        }
+        this.picker = f(m).appendTo(this.isInline ? this.element : this.container).on({
+            click: f.proxy(this.click, this),
+            mousedown: f.proxy(this.mousedown, this)
+        });
+        if (this.wheelViewModeNavigation) {
+            if (f.fn.mousewheel) {
+                this.picker.on({mousewheel: f.proxy(this.mousewheel, this)})
+            } else {
+                console.log("Mouse Wheel event is not supported. Please include the jQuery Mouse Wheel plugin before enabling this option")
+            }
+        }
+        if (this.isInline) {
+            this.picker.addClass("datetimepicker-inline")
+        } else {
+            this.picker.addClass("datetimepicker-dropdown-" + this.pickerPosition + " dropdown-menu")
+        }
+        if (this.isRTL) {
+            this.picker.addClass("datetimepicker-rtl");
+            var j = this.bootcssVer === 3 ? ".prev span, .next span" : ".prev i, .next i";
+            this.picker.find(j).toggleClass(this.icons.leftArrow + " " + this.icons.rightArrow)
+        }
+        f(document).on("mousedown", this.clickedOutside);
+        this.autoclose = false;
+        if ("autoclose" in k) {
+            this.autoclose = k.autoclose
+        } else {
+            if ("dateAutoclose" in this.element.data()) {
+                this.autoclose = this.element.data("date-autoclose")
+            }
+        }
+        this.keyboardNavigation = true;
+        if ("keyboardNavigation" in k) {
+            this.keyboardNavigation = k.keyboardNavigation
+        } else {
+            if ("dateKeyboardNavigation" in this.element.data()) {
+                this.keyboardNavigation = this.element.data("date-keyboard-navigation")
+            }
+        }
+        this.todayBtn = (k.todayBtn || this.element.data("date-today-btn") || false);
+        this.clearBtn = (k.clearBtn || this.element.data("date-clear-btn") || false);
+        this.todayHighlight = (k.todayHighlight || this.element.data("date-today-highlight") || false);
+        this.weekStart = ((k.weekStart || this.element.data("date-weekstart") || a[this.language].weekStart || 0) % 7);
+        this.weekEnd = ((this.weekStart + 6) % 7);
+        this.startDate = -Infinity;
+        this.endDate = Infinity;
+        this.datesDisabled = [];
+        this.daysOfWeekDisabled = [];
+        this.setStartDate(k.startDate || this.element.data("date-startdate"));
+        this.setEndDate(k.endDate || this.element.data("date-enddate"));
+        this.setDatesDisabled(k.datesDisabled || this.element.data("date-dates-disabled"));
+        this.setDaysOfWeekDisabled(k.daysOfWeekDisabled || this.element.data("date-days-of-week-disabled"));
+        this.setMinutesDisabled(k.minutesDisabled || this.element.data("date-minute-disabled"));
+        this.setHoursDisabled(k.hoursDisabled || this.element.data("date-hour-disabled"));
+        this.fillDow();
+        this.fillMonths();
+        this.update();
+        this.showMode();
+        if (this.isInline) {
+            this.show()
+        }
+    };
+    i.prototype = {
+        constructor: i, _events: [], _attachEvents: function () {
+            this._detachEvents();
+            if (this.isInput) {
+                this._events = [[this.element, {
+                    focus: f.proxy(this.show, this),
+                    keyup: f.proxy(this.update, this),
+                    keydown: f.proxy(this.keydown, this)
+                }]]
+            } else {
+                if (this.component && this.hasInput) {
+                    this._events = [[this.element.find("input"), {
+                        focus: f.proxy(this.show, this),
+                        keyup: f.proxy(this.update, this),
+                        keydown: f.proxy(this.keydown, this)
+                    }], [this.component, {click: f.proxy(this.show, this)}]];
+                    if (this.componentReset) {
+                        this._events.push([this.componentReset, {click: f.proxy(this.reset, this)}])
+                    }
+                } else {
+                    if (this.element.is("div")) {
+                        this.isInline = true
+                    } else {
+                        this._events = [[this.element, {click: f.proxy(this.show, this)}]]
+                    }
+                }
+            }
+            for (var j = 0, k, l; j < this._events.length; j++) {
+                k = this._events[j][0];
+                l = this._events[j][1];
+                k.on(l)
+            }
+        }, _detachEvents: function () {
+            for (var j = 0, k, l; j < this._events.length; j++) {
+                k = this._events[j][0];
+                l = this._events[j][1];
+                k.off(l)
+            }
+            this._events = []
+        }, show: function (j) {
+            this.picker.show();
+            this.height = this.component ? this.component.outerHeight() : this.element.outerHeight();
+            if (this.forceParse) {
+                this.update()
+            }
+            this.place();
+            f(window).on("resize", f.proxy(this.place, this));
+            if (j) {
+                j.stopPropagation();
+                j.preventDefault()
+            }
+            this.isVisible = true;
+            this.element.trigger({type: "show", date: this.date})
+        }, hide: function (j) {
+            if (!this.isVisible) {
+                return
+            }
+            if (this.isInline) {
+                return
+            }
+            this.picker.hide();
+            f(window).off("resize", this.place);
+            this.viewMode = this.startViewMode;
+            this.showMode();
+            if (!this.isInput) {
+                f(document).off("mousedown", this.hide)
+            }
+            if (this.forceParse && (this.isInput && this.element.val() || this.hasInput && this.element.find("input").val())) {
+                this.setValue()
+            }
+            this.isVisible = false;
+            this.element.trigger({type: "hide", date: this.date})
+        }, remove: function () {
+            this._detachEvents();
+            f(document).off("mousedown", this.clickedOutside);
+            this.picker.remove();
+            delete this.picker;
+            delete this.element.data().datetimepicker
+        }, getDate: function () {
+            var j = this.getUTCDate();
+            return new Date(j.getTime() + (j.getTimezoneOffset() * 60000))
+        }, getUTCDate: function () {
+            return this.date
+        }, getInitialDate: function () {
+            return this.initialDate
+        }, setInitialDate: function (j) {
+            this.initialDate = j
+        }, setDate: function (j) {
+            this.setUTCDate(new Date(j.getTime() - (j.getTimezoneOffset() * 60000)))
+        }, setUTCDate: function (j) {
+            if (j >= this.startDate && j <= this.endDate) {
+                this.date = j;
+                this.setValue();
+                this.viewDate = this.date;
+                this.fill()
+            } else {
+                this.element.trigger({type: "outOfRange", date: j, startDate: this.startDate, endDate: this.endDate})
+            }
+        }, setFormat: function (k) {
+            this.format = g.parseFormat(k, this.formatType);
+            var j;
+            if (this.isInput) {
+                j = this.element
+            } else {
+                if (this.component) {
+                    j = this.element.find("input")
+                }
+            }
+            if (j && j.val()) {
+                this.setValue()
+            }
+        }, setValue: function () {
+            var j = this.getFormattedDate();
+            if (!this.isInput) {
+                if (this.component) {
+                    this.element.find("input").val(j)
+                }
+                this.element.data("date", j)
+            } else {
+                this.element.val(j)
+            }
+            if (this.linkField) {
+                f("#" + this.linkField).val(this.getFormattedDate(this.linkFormat))
+            }
+        }, getFormattedDate: function (j) {
+            if (j == c) {
+                j = this.format
+            }
+            return g.formatDate(this.date, j, this.language, this.formatType, this.timezone)
+        }, setStartDate: function (j) {
+            this.startDate = j || -Infinity;
+            if (this.startDate !== -Infinity) {
+                this.startDate = g.parseDate(this.startDate, this.format, this.language, this.formatType, this.timezone)
+            }
+            this.update();
+            this.updateNavArrows()
+        }, setEndDate: function (j) {
+            this.endDate = j || Infinity;
+            if (this.endDate !== Infinity) {
+                this.endDate = g.parseDate(this.endDate, this.format, this.language, this.formatType, this.timezone)
+            }
+            this.update();
+            this.updateNavArrows()
+        }, setDatesDisabled: function (j) {
+            this.datesDisabled = j || [];
+            if (!f.isArray(this.datesDisabled)) {
+                this.datesDisabled = this.datesDisabled.split(/,\s*/)
+            }
+            this.datesDisabled = f.map(this.datesDisabled, function (k) {
+                return g.parseDate(k, this.format, this.language, this.formatType, this.timezone).toDateString()
+            });
+            this.update();
+            this.updateNavArrows()
+        }, setTitle: function (j, k) {
+            return this.picker.find(j).find("th:eq(1)").text(this.title === false ? k : this.title)
+        }, setDaysOfWeekDisabled: function (j) {
+            this.daysOfWeekDisabled = j || [];
+            if (!f.isArray(this.daysOfWeekDisabled)) {
+                this.daysOfWeekDisabled = this.daysOfWeekDisabled.split(/,\s*/)
+            }
+            this.daysOfWeekDisabled = f.map(this.daysOfWeekDisabled, function (k) {
+                return parseInt(k, 10)
+            });
+            this.update();
+            this.updateNavArrows()
+        }, setMinutesDisabled: function (j) {
+            this.minutesDisabled = j || [];
+            if (!f.isArray(this.minutesDisabled)) {
+                this.minutesDisabled = this.minutesDisabled.split(/,\s*/)
+            }
+            this.minutesDisabled = f.map(this.minutesDisabled, function (k) {
+                return parseInt(k, 10)
+            });
+            this.update();
+            this.updateNavArrows()
+        }, setHoursDisabled: function (j) {
+            this.hoursDisabled = j || [];
+            if (!f.isArray(this.hoursDisabled)) {
+                this.hoursDisabled = this.hoursDisabled.split(/,\s*/)
+            }
+            this.hoursDisabled = f.map(this.hoursDisabled, function (k) {
+                return parseInt(k, 10)
+            });
+            this.update();
+            this.updateNavArrows()
+        }, place: function () {
+            if (this.isInline) {
+                return
+            }
+            if (!this.zIndex) {
+                var k = 0;
+                f("div").each(function () {
+                    var p = parseInt(f(this).css("zIndex"), 10);
+                    if (p > k) {
+                        k = p
+                    }
+                });
+                this.zIndex = k + 10
+            }
+            var o, n, m, l;
+            if (this.container instanceof f) {
+                l = this.container.offset()
+            } else {
+                l = f(this.container).offset()
+            }
+            if (this.component) {
+                o = this.component.offset();
+                m = o.left;
+                if (this.pickerPosition == "bottom-left" || this.pickerPosition == "top-left") {
+                    m += this.component.outerWidth() - this.picker.outerWidth()
+                }
+            } else {
+                o = this.element.offset();
+                m = o.left;
+                if (this.pickerPosition == "bottom-left" || this.pickerPosition == "top-left") {
+                    m += this.element.outerWidth() - this.picker.outerWidth()
+                }
+            }
+            var j = document.body.clientWidth || window.innerWidth;
+            if (m + 220 > j) {
+                m = j - 220
+            }
+            if (this.pickerPosition == "top-left" || this.pickerPosition == "top-right") {
+                n = o.top - this.picker.outerHeight()
+            } else {
+                n = o.top + this.height
+            }
+            n = n - l.top;
+            m = m - l.left;
+            this.picker.css({top: n, left: m, zIndex: this.zIndex})
+        }, update: function () {
+            var j, k = false;
+            if (arguments && arguments.length && (typeof arguments[0] === "string" || arguments[0] instanceof Date)) {
+                j = arguments[0];
+                k = true
+            } else {
+                j = (this.isInput ? this.element.val() : this.element.find("input").val()) || this.element.data("date") || this.initialDate;
+                if (typeof j == "string" || j instanceof String) {
+                    j = j.replace(/^\s+|\s+$/g, "")
+                }
+            }
+            if (!j) {
+                j = new Date();
+                k = false
+            }
+            this.date = g.parseDate(j, this.format, this.language, this.formatType, this.timezone);
+            if (k) {
+                this.setValue()
+            }
+            if (this.date < this.startDate) {
+                this.viewDate = new Date(this.startDate)
+            } else {
+                if (this.date > this.endDate) {
+                    this.viewDate = new Date(this.endDate)
+                } else {
+                    this.viewDate = new Date(this.date)
+                }
+            }
+            this.fill()
+        }, fillDow: function () {
+            var j = this.weekStart, k = "<tr>";
+            while (j < this.weekStart + 7) {
+                k += '<th class="dow">' + a[this.language].daysMin[(j++) % 7] + "</th>"
+            }
+            k += "</tr>";
+            this.picker.find(".datetimepicker-days thead").append(k)
+        }, fillMonths: function () {
+            var k = "", j = 0;
+            while (j < 12) {
+                k += '<span class="month">' + a[this.language].monthsShort[j++] + "</span>"
+            }
+            this.picker.find(".datetimepicker-months td").html(k)
+        }, fill: function () {
+            if (this.date == null || this.viewDate == null) {
+                return
+            }
+            var H = new Date(this.viewDate), u = H.getUTCFullYear(), I = H.getUTCMonth(), n = H.getUTCDate(), D = H.getUTCHours(), y = H.getUTCMinutes(), z = this.startDate !== -Infinity ? this.startDate.getUTCFullYear() : -Infinity, E = this.startDate !== -Infinity ? this.startDate.getUTCMonth() : -Infinity, q = this.endDate !== Infinity ? this.endDate.getUTCFullYear() : Infinity, A = this.endDate !== Infinity ? this.endDate.getUTCMonth() + 1 : Infinity, r = (new h(this.date.getUTCFullYear(), this.date.getUTCMonth(), this.date.getUTCDate())).valueOf(), G = new Date();
+            this.setTitle(".datetimepicker-days", a[this.language].months[I] + " " + u);
+            if (this.formatViewType == "time") {
+                var k = this.getFormattedDate();
+                this.setTitle(".datetimepicker-hours", k);
+                this.setTitle(".datetimepicker-minutes", k)
+            } else {
+                this.setTitle(".datetimepicker-hours", n + " " + a[this.language].months[I] + " " + u);
+                this.setTitle(".datetimepicker-minutes", n + " " + a[this.language].months[I] + " " + u)
+            }
+            this.picker.find("tfoot th.today").text(a[this.language].today || a.en.today).toggle(this.todayBtn !== false);
+            this.picker.find("tfoot th.clear").text(a[this.language].clear || a.en.clear).toggle(this.clearBtn !== false);
+            this.updateNavArrows();
+            this.fillMonths();
+            var K = h(u, I - 1, 28, 0, 0, 0, 0), C = g.getDaysInMonth(K.getUTCFullYear(), K.getUTCMonth());
+            K.setUTCDate(C);
+            K.setUTCDate(C - (K.getUTCDay() - this.weekStart + 7) % 7);
+            var j = new Date(K);
+            j.setUTCDate(j.getUTCDate() + 42);
+            j = j.valueOf();
+            var s = [];
+            var v;
+            while (K.valueOf() < j) {
+                if (K.getUTCDay() == this.weekStart) {
+                    s.push("<tr>")
+                }
+                v = "";
+                if (K.getUTCFullYear() < u || (K.getUTCFullYear() == u && K.getUTCMonth() < I)) {
+                    v += " old"
+                } else {
+                    if (K.getUTCFullYear() > u || (K.getUTCFullYear() == u && K.getUTCMonth() > I)) {
+                        v += " new"
+                    }
+                }
+                if (this.todayHighlight && K.getUTCFullYear() == G.getFullYear() && K.getUTCMonth() == G.getMonth() && K.getUTCDate() == G.getDate()) {
+                    v += " today"
+                }
+                if (K.valueOf() == r) {
+                    v += " active"
+                }
+                if ((K.valueOf() + 86400000) <= this.startDate || K.valueOf() > this.endDate || f.inArray(K.getUTCDay(), this.daysOfWeekDisabled) !== -1 || f.inArray(K.toDateString(), this.datesDisabled) !== -1) {
+                    v += " disabled"
+                }
+                s.push('<td class="day' + v + '">' + K.getUTCDate() + "</td>");
+                if (K.getUTCDay() == this.weekEnd) {
+                    s.push("</tr>")
+                }
+                K.setUTCDate(K.getUTCDate() + 1)
+            }
+            this.picker.find(".datetimepicker-days tbody").empty().append(s.join(""));
+            s = [];
+            var w = "", F = "", t = "";
+            var l = this.hoursDisabled || [];
+            for (var B = 0; B < 24; B++) {
+                if (l.indexOf(B) !== -1) {
+                    continue
+                }
+                var x = h(u, I, n, B);
+                v = "";
+                if ((x.valueOf() + 3600000) <= this.startDate || x.valueOf() > this.endDate) {
+                    v += " disabled"
+                } else {
+                    if (D == B) {
+                        v += " active"
+                    }
+                }
+                if (this.showMeridian && a[this.language].meridiem.length == 2) {
+                    F = (B < 12 ? a[this.language].meridiem[0] : a[this.language].meridiem[1]);
+                    if (F != t) {
+                        if (t != "") {
+                            s.push("</fieldset>")
+                        }
+                        s.push('<fieldset class="hour"><legend>' + F.toUpperCase() + "</legend>")
+                    }
+                    t = F;
+                    w = (B % 12 ? B % 12 : 12);
+                    s.push('<span class="hour' + v + " hour_" + (B < 12 ? "am" : "pm") + '">' + w + "</span>");
+                    if (B == 23) {
+                        s.push("</fieldset>")
+                    }
+                } else {
+                    w = B + ":00";
+                    s.push('<span class="hour' + v + '">' + w + "</span>")
+                }
+            }
+            this.picker.find(".datetimepicker-hours td").html(s.join(""));
+            s = [];
+            w = "", F = "", t = "";
+            var m = this.minutesDisabled || [];
+            for (var B = 0; B < 60; B += this.minuteStep) {
+                if (m.indexOf(B) !== -1) {
+                    continue
+                }
+                var x = h(u, I, n, D, B, 0);
+                v = "";
+                if (x.valueOf() < this.startDate || x.valueOf() > this.endDate) {
+                    v += " disabled"
+                } else {
+                    if (Math.floor(y / this.minuteStep) == Math.floor(B / this.minuteStep)) {
+                        v += " active"
+                    }
+                }
+                if (this.showMeridian && a[this.language].meridiem.length == 2) {
+                    F = (D < 12 ? a[this.language].meridiem[0] : a[this.language].meridiem[1]);
+                    if (F != t) {
+                        if (t != "") {
+                            s.push("</fieldset>")
+                        }
+                        s.push('<fieldset class="minute"><legend>' + F.toUpperCase() + "</legend>")
+                    }
+                    t = F;
+                    w = (D % 12 ? D % 12 : 12);
+                    s.push('<span class="minute' + v + '">' + w + ":" + (B < 10 ? "0" + B : B) + "</span>");
+                    if (B == 59) {
+                        s.push("</fieldset>")
+                    }
+                } else {
+                    w = B + ":00";
+                    s.push('<span class="minute' + v + '">' + D + ":" + (B < 10 ? "0" + B : B) + "</span>")
+                }
+            }
+            this.picker.find(".datetimepicker-minutes td").html(s.join(""));
+            var L = this.date.getUTCFullYear();
+            var p = this.setTitle(".datetimepicker-months", u).end().find("span").removeClass("active");
+            if (L == u) {
+                var o = p.length - 12;
+                p.eq(this.date.getUTCMonth() + o).addClass("active")
+            }
+            if (u < z || u > q) {
+                p.addClass("disabled")
+            }
+            if (u == z) {
+                p.slice(0, E).addClass("disabled")
+            }
+            if (u == q) {
+                p.slice(A).addClass("disabled")
+            }
+            s = "";
+            u = parseInt(u / 10, 10) * 10;
+            var J = this.setTitle(".datetimepicker-years", u + "-" + (u + 9)).end().find("td");
+            u -= 1;
+            for (var B = -1; B < 11; B++) {
+                s += '<span class="year' + (B == -1 || B == 10 ? " old" : "") + (L == u ? " active" : "") + (u < z || u > q ? " disabled" : "") + '">' + u + "</span>";
+                u += 1
+            }
+            J.html(s);
+            this.place()
+        }, updateNavArrows: function () {
+            var n = new Date(this.viewDate), l = n.getUTCFullYear(), m = n.getUTCMonth(), k = n.getUTCDate(), j = n.getUTCHours();
+            switch (this.viewMode) {
+                case 0:
+                    if (this.startDate !== -Infinity && l <= this.startDate.getUTCFullYear() && m <= this.startDate.getUTCMonth() && k <= this.startDate.getUTCDate() && j <= this.startDate.getUTCHours()) {
+                        this.picker.find(".prev").css({visibility: "hidden"})
+                    } else {
+                        this.picker.find(".prev").css({visibility: "visible"})
+                    }
+                    if (this.endDate !== Infinity && l >= this.endDate.getUTCFullYear() && m >= this.endDate.getUTCMonth() && k >= this.endDate.getUTCDate() && j >= this.endDate.getUTCHours()) {
+                        this.picker.find(".next").css({visibility: "hidden"})
+                    } else {
+                        this.picker.find(".next").css({visibility: "visible"})
+                    }
+                    break;
+                case 1:
+                    if (this.startDate !== -Infinity && l <= this.startDate.getUTCFullYear() && m <= this.startDate.getUTCMonth() && k <= this.startDate.getUTCDate()) {
+                        this.picker.find(".prev").css({visibility: "hidden"})
+                    } else {
+                        this.picker.find(".prev").css({visibility: "visible"})
+                    }
+                    if (this.endDate !== Infinity && l >= this.endDate.getUTCFullYear() && m >= this.endDate.getUTCMonth() && k >= this.endDate.getUTCDate()) {
+                        this.picker.find(".next").css({visibility: "hidden"})
+                    } else {
+                        this.picker.find(".next").css({visibility: "visible"})
+                    }
+                    break;
+                case 2:
+                    if (this.startDate !== -Infinity && l <= this.startDate.getUTCFullYear() && m <= this.startDate.getUTCMonth()) {
+                        this.picker.find(".prev").css({visibility: "hidden"})
+                    } else {
+                        this.picker.find(".prev").css({visibility: "visible"})
+                    }
+                    if (this.endDate !== Infinity && l >= this.endDate.getUTCFullYear() && m >= this.endDate.getUTCMonth()) {
+                        this.picker.find(".next").css({visibility: "hidden"})
+                    } else {
+                        this.picker.find(".next").css({visibility: "visible"})
+                    }
+                    break;
+                case 3:
+                case 4:
+                    if (this.startDate !== -Infinity && l <= this.startDate.getUTCFullYear()) {
+                        this.picker.find(".prev").css({visibility: "hidden"})
+                    } else {
+                        this.picker.find(".prev").css({visibility: "visible"})
+                    }
+                    if (this.endDate !== Infinity && l >= this.endDate.getUTCFullYear()) {
+                        this.picker.find(".next").css({visibility: "hidden"})
+                    } else {
+                        this.picker.find(".next").css({visibility: "visible"})
+                    }
+                    break
+            }
+        }, mousewheel: function (k) {
+            k.preventDefault();
+            k.stopPropagation();
+            if (this.wheelPause) {
+                return
+            }
+            this.wheelPause = true;
+            var j = k.originalEvent;
+            var m = j.wheelDelta;
+            var l = m > 0 ? 1 : (m === 0) ? 0 : -1;
+            if (this.wheelViewModeNavigationInverseDirection) {
+                l = -l
+            }
+            this.showMode(l);
+            setTimeout(f.proxy(function () {
+                this.wheelPause = false
+            }, this), this.wheelViewModeNavigationDelay)
+        }, click: function (n) {
+            n.stopPropagation();
+            n.preventDefault();
+            var o = f(n.target).closest("span, td, th, legend");
+            if (o.is("." + this.icontype)) {
+                o = f(o).parent().closest("span, td, th, legend")
+            }
+            if (o.length == 1) {
+                if (o.is(".disabled")) {
+                    this.element.trigger({
+                        type: "outOfRange",
+                        date: this.viewDate,
+                        startDate: this.startDate,
+                        endDate: this.endDate
+                    });
+                    return
+                }
+                switch (o[0].nodeName.toLowerCase()) {
+                    case"th":
+                        switch (o[0].className) {
+                            case"switch":
+                                this.showMode(1);
+                                break;
+                            case"prev":
+                            case"next":
+                                var j = g.modes[this.viewMode].navStep * (o[0].className == "prev" ? -1 : 1);
+                                switch (this.viewMode) {
+                                    case 0:
+                                        this.viewDate = this.moveHour(this.viewDate, j);
+                                        break;
+                                    case 1:
+                                        this.viewDate = this.moveDate(this.viewDate, j);
+                                        break;
+                                    case 2:
+                                        this.viewDate = this.moveMonth(this.viewDate, j);
+                                        break;
+                                    case 3:
+                                    case 4:
+                                        this.viewDate = this.moveYear(this.viewDate, j);
+                                        break
+                                }
+                                this.fill();
+                                this.element.trigger({
+                                    type: o[0].className + ":" + this.convertViewModeText(this.viewMode),
+                                    date: this.viewDate,
+                                    startDate: this.startDate,
+                                    endDate: this.endDate
+                                });
+                                break;
+                            case"clear":
+                                this.reset();
+                                if (this.autoclose) {
+                                    this.hide()
+                                }
+                                break;
+                            case"today":
+                                var k = new Date();
+                                k = h(k.getFullYear(), k.getMonth(), k.getDate(), k.getHours(), k.getMinutes(), k.getSeconds(), 0);
+                                if (k < this.startDate) {
+                                    k = this.startDate
+                                } else {
+                                    if (k > this.endDate) {
+                                        k = this.endDate
+                                    }
+                                }
+                                this.viewMode = this.startViewMode;
+                                this.showMode(0);
+                                this._setDate(k);
+                                this.fill();
+                                if (this.autoclose) {
+                                    this.hide()
+                                }
+                                break
+                        }
+                        break;
+                    case"span":
+                        if (!o.is(".disabled")) {
+                            var q = this.viewDate.getUTCFullYear(), p = this.viewDate.getUTCMonth(), r = this.viewDate.getUTCDate(), s = this.viewDate.getUTCHours(), l = this.viewDate.getUTCMinutes(), t = this.viewDate.getUTCSeconds();
+                            if (o.is(".month")) {
+                                this.viewDate.setUTCDate(1);
+                                p = o.parent().find("span").index(o);
+                                r = this.viewDate.getUTCDate();
+                                this.viewDate.setUTCMonth(p);
+                                this.element.trigger({type: "changeMonth", date: this.viewDate});
+                                if (this.viewSelect >= 3) {
+                                    this._setDate(h(q, p, r, s, l, t, 0))
+                                }
+                            } else {
+                                if (o.is(".year")) {
+                                    this.viewDate.setUTCDate(1);
+                                    q = parseInt(o.text(), 10) || 0;
+                                    this.viewDate.setUTCFullYear(q);
+                                    this.element.trigger({type: "changeYear", date: this.viewDate});
+                                    if (this.viewSelect >= 4) {
+                                        this._setDate(h(q, p, r, s, l, t, 0))
+                                    }
+                                } else {
+                                    if (o.is(".hour")) {
+                                        s = parseInt(o.text(), 10) || 0;
+                                        if (o.hasClass("hour_am") || o.hasClass("hour_pm")) {
+                                            if (s == 12 && o.hasClass("hour_am")) {
+                                                s = 0
+                                            } else {
+                                                if (s != 12 && o.hasClass("hour_pm")) {
+                                                    s += 12
+                                                }
+                                            }
+                                        }
+                                        this.viewDate.setUTCHours(s);
+                                        this.element.trigger({type: "changeHour", date: this.viewDate});
+                                        if (this.viewSelect >= 1) {
+                                            this._setDate(h(q, p, r, s, l, t, 0))
+                                        }
+                                    } else {
+                                        if (o.is(".minute")) {
+                                            l = parseInt(o.text().substr(o.text().indexOf(":") + 1), 10) || 0;
+                                            this.viewDate.setUTCMinutes(l);
+                                            this.element.trigger({type: "changeMinute", date: this.viewDate});
+                                            if (this.viewSelect >= 0) {
+                                                this._setDate(h(q, p, r, s, l, t, 0))
+                                            }
+                                        }
+                                    }
+                                }
+                            }
+                            if (this.viewMode != 0) {
+                                var m = this.viewMode;
+                                this.showMode(-1);
+                                this.fill();
+                                if (m == this.viewMode && this.autoclose) {
+                                    this.hide()
+                                }
+                            } else {
+                                this.fill();
+                                if (this.autoclose) {
+                                    this.hide()
+                                }
+                            }
+                        }
+                        break;
+                    case"td":
+                        if (o.is(".day") && !o.is(".disabled")) {
+                            var r = parseInt(o.text(), 10) || 1;
+                            var q = this.viewDate.getUTCFullYear(), p = this.viewDate.getUTCMonth(), s = this.viewDate.getUTCHours(), l = this.viewDate.getUTCMinutes(), t = this.viewDate.getUTCSeconds();
+                            if (o.is(".old")) {
+                                if (p === 0) {
+                                    p = 11;
+                                    q -= 1
+                                } else {
+                                    p -= 1
+                                }
+                            } else {
+                                if (o.is(".new")) {
+                                    if (p == 11) {
+                                        p = 0;
+                                        q += 1
+                                    } else {
+                                        p += 1
+                                    }
+                                }
+                            }
+                            this.viewDate.setUTCFullYear(q);
+                            this.viewDate.setUTCMonth(p, r);
+                            this.element.trigger({type: "changeDay", date: this.viewDate});
+                            if (this.viewSelect >= 2) {
+                                this._setDate(h(q, p, r, s, l, t, 0))
+                            }
+                        }
+                        var m = this.viewMode;
+                        this.showMode(-1);
+                        this.fill();
+                        if (m == this.viewMode && this.autoclose) {
+                            this.hide()
+                        }
+                        break
+                }
+            }
+        }, _setDate: function (j, l) {
+            if (!l || l == "date") {
+                this.date = j
+            }
+            if (!l || l == "view") {
+                this.viewDate = j
+            }
+            this.fill();
+            this.setValue();
+            var k;
+            if (this.isInput) {
+                k = this.element
+            } else {
+                if (this.component) {
+                    k = this.element.find("input")
+                }
+            }
+            if (k) {
+                k.change();
+                if (this.autoclose && (!l || l == "date")) {
+                }
+            }
+            this.element.trigger({type: "changeDate", date: this.getDate()});
+            if (j == null) {
+                this.date = this.viewDate
+            }
+        }, moveMinute: function (k, j) {
+            if (!j) {
+                return k
+            }
+            var l = new Date(k.valueOf());
+            l.setUTCMinutes(l.getUTCMinutes() + (j * this.minuteStep));
+            return l
+        }, moveHour: function (k, j) {
+            if (!j) {
+                return k
+            }
+            var l = new Date(k.valueOf());
+            l.setUTCHours(l.getUTCHours() + j);
+            return l
+        }, moveDate: function (k, j) {
+            if (!j) {
+                return k
+            }
+            var l = new Date(k.valueOf());
+            l.setUTCDate(l.getUTCDate() + j);
+            return l
+        }, moveMonth: function (j, k) {
+            if (!k) {
+                return j
+            }
+            var n = new Date(j.valueOf()), r = n.getUTCDate(), o = n.getUTCMonth(), m = Math.abs(k), q, p;
+            k = k > 0 ? 1 : -1;
+            if (m == 1) {
+                p = k == -1 ? function () {
+                    return n.getUTCMonth() == o
+                } : function () {
+                    return n.getUTCMonth() != q
+                };
+                q = o + k;
+                n.setUTCMonth(q);
+                if (q < 0 || q > 11) {
+                    q = (q + 12) % 12
+                }
+            } else {
+                for (var l = 0; l < m; l++) {
+                    n = this.moveMonth(n, k)
+                }
+                q = n.getUTCMonth();
+                n.setUTCDate(r);
+                p = function () {
+                    return q != n.getUTCMonth()
+                }
+            }
+            while (p()) {
+                n.setUTCDate(--r);
+                n.setUTCMonth(q)
+            }
+            return n
+        }, moveYear: function (k, j) {
+            return this.moveMonth(k, j * 12)
+        }, dateWithinRange: function (j) {
+            return j >= this.startDate && j <= this.endDate
+        }, keydown: function (n) {
+            if (this.picker.is(":not(:visible)")) {
+                if (n.keyCode == 27) {
+                    this.show()
+                }
+                return
+            }
+            var p = false, k, q, o, r, j;
+            switch (n.keyCode) {
+                case 27:
+                    this.hide();
+                    n.preventDefault();
+                    break;
+                case 37:
+                case 39:
+                    if (!this.keyboardNavigation) {
+                        break
+                    }
+                    k = n.keyCode == 37 ? -1 : 1;
+                    viewMode = this.viewMode;
+                    if (n.ctrlKey) {
+                        viewMode += 2
+                    } else {
+                        if (n.shiftKey) {
+                            viewMode += 1
+                        }
+                    }
+                    if (viewMode == 4) {
+                        r = this.moveYear(this.date, k);
+                        j = this.moveYear(this.viewDate, k)
+                    } else {
+                        if (viewMode == 3) {
+                            r = this.moveMonth(this.date, k);
+                            j = this.moveMonth(this.viewDate, k)
+                        } else {
+                            if (viewMode == 2) {
+                                r = this.moveDate(this.date, k);
+                                j = this.moveDate(this.viewDate, k)
+                            } else {
+                                if (viewMode == 1) {
+                                    r = this.moveHour(this.date, k);
+                                    j = this.moveHour(this.viewDate, k)
+                                } else {
+                                    if (viewMode == 0) {
+                                        r = this.moveMinute(this.date, k);
+                                        j = this.moveMinute(this.viewDate, k)
+                                    }
+                                }
+                            }
+                        }
+                    }
+                    if (this.dateWithinRange(r)) {
+                        this.date = r;
+                        this.viewDate = j;
+                        this.setValue();
+                        this.update();
+                        n.preventDefault();
+                        p = true
+                    }
+                    break;
+                case 38:
+                case 40:
+                    if (!this.keyboardNavigation) {
+                        break
+                    }
+                    k = n.keyCode == 38 ? -1 : 1;
+                    viewMode = this.viewMode;
+                    if (n.ctrlKey) {
+                        viewMode += 2
+                    } else {
+                        if (n.shiftKey) {
+                            viewMode += 1
+                        }
+                    }
+                    if (viewMode == 4) {
+                        r = this.moveYear(this.date, k);
+                        j = this.moveYear(this.viewDate, k)
+                    } else {
+                        if (viewMode == 3) {
+                            r = this.moveMonth(this.date, k);
+                            j = this.moveMonth(this.viewDate, k)
+                        } else {
+                            if (viewMode == 2) {
+                                r = this.moveDate(this.date, k * 7);
+                                j = this.moveDate(this.viewDate, k * 7)
+                            } else {
+                                if (viewMode == 1) {
+                                    if (this.showMeridian) {
+                                        r = this.moveHour(this.date, k * 6);
+                                        j = this.moveHour(this.viewDate, k * 6)
+                                    } else {
+                                        r = this.moveHour(this.date, k * 4);
+                                        j = this.moveHour(this.viewDate, k * 4)
+                                    }
+                                } else {
+                                    if (viewMode == 0) {
+                                        r = this.moveMinute(this.date, k * 4);
+                                        j = this.moveMinute(this.viewDate, k * 4)
+                                    }
+                                }
+                            }
+                        }
+                    }
+                    if (this.dateWithinRange(r)) {
+                        this.date = r;
+                        this.viewDate = j;
+                        this.setValue();
+                        this.update();
+                        n.preventDefault();
+                        p = true
+                    }
+                    break;
+                case 13:
+                    if (this.viewMode != 0) {
+                        var m = this.viewMode;
+                        this.showMode(-1);
+                        this.fill();
+                        if (m == this.viewMode && this.autoclose) {
+                            this.hide()
+                        }
+                    } else {
+                        this.fill();
+                        if (this.autoclose) {
+                            this.hide()
+                        }
+                    }
+                    n.preventDefault();
+                    break;
+                case 9:
+                    this.hide();
+                    break
+            }
+            if (p) {
+                var l;
+                if (this.isInput) {
+                    l = this.element
+                } else {
+                    if (this.component) {
+                        l = this.element.find("input")
+                    }
+                }
+                if (l) {
+                    l.change()
+                }
+                this.element.trigger({type: "changeDate", date: this.getDate()})
+            }
+        }, showMode: function (j) {
+            if (j) {
+                var k = Math.max(0, Math.min(g.modes.length - 1, this.viewMode + j));
+                if (k >= this.minView && k <= this.maxView) {
+                    this.element.trigger({
+                        type: "changeMode",
+                        date: this.viewDate,
+                        oldViewMode: this.viewMode,
+                        newViewMode: k
+                    });
+                    this.viewMode = k
+                }
+            }
+            this.picker.find(">div").hide().filter(".datetimepicker-" + g.modes[this.viewMode].clsName).css("display", "block");
+            this.updateNavArrows()
+        }, reset: function (j) {
+            this._setDate(null, "date")
+        }, convertViewModeText: function (j) {
+            switch (j) {
+                case 4:
+                    return "decade";
+                case 3:
+                    return "year";
+                case 2:
+                    return "month";
+                case 1:
+                    return "day";
+                case 0:
+                    return "hour"
+            }
+        }
+    };
+    var b = f.fn.datetimepicker;
+    f.fn.datetimepicker = function (l) {
+        var j = Array.apply(null, arguments);
+        j.shift();
+        var k;
+        this.each(function () {
+            var o = f(this), n = o.data("datetimepicker"), m = typeof l == "object" && l;
+            if (!n) {
+                o.data("datetimepicker", (n = new i(this, f.extend({}, f.fn.datetimepicker.defaults, m))))
+            }
+            if (typeof l == "string" && typeof n[l] == "function") {
+                k = n[l].apply(n, j);
+                if (k !== c) {
+                    return false
+                }
+            }
+        });
+        if (k !== c) {
+            return k
+        } else {
+            return this
+        }
+    };
+    f.fn.datetimepicker.defaults = {};
+    f.fn.datetimepicker.Constructor = i;
+    var a = f.fn.datetimepicker.dates = {
+        en: {
+            days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
+            daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
+            daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"],
+            months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
+            monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
+            meridiem: ["am", "pm"],
+            suffix: ["st", "nd", "rd", "th"],
+            today: "Today",
+            clear: "Clear"
+        }
+    };
+    var g = {
+        modes: [{clsName: "minutes", navFnc: "Hours", navStep: 1}, {
+            clsName: "hours",
+            navFnc: "Date",
+            navStep: 1
+        }, {clsName: "days", navFnc: "Month", navStep: 1}, {
+            clsName: "months",
+            navFnc: "FullYear",
+            navStep: 1
+        }, {clsName: "years", navFnc: "FullYear", navStep: 10}],
+        isLeapYear: function (j) {
+            return (((j % 4 === 0) && (j % 100 !== 0)) || (j % 400 === 0))
+        },
+        getDaysInMonth: function (j, k) {
+            return [31, (g.isLeapYear(j) ? 29 : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][k]
+        },
+        getDefaultFormat: function (j, k) {
+            if (j == "standard") {
+                if (k == "input") {
+                    return "yyyy-mm-dd hh:ii"
+                } else {
+                    return "yyyy-mm-dd hh:ii:ss"
+                }
+            } else {
+                if (j == "php") {
+                    if (k == "input") {
+                        return "Y-m-d H:i"
+                    } else {
+                        return "Y-m-d H:i:s"
+                    }
+                } else {
+                    throw new Error("Invalid format type.")
+                }
+            }
+        },
+        validParts: function (j) {
+            if (j == "standard") {
+                return /t|hh?|HH?|p|P|z|Z|ii?|ss?|dd?|DD?|mm?|MM?|yy(?:yy)?/g
+            } else {
+                if (j == "php") {
+                    return /[dDjlNwzFmMnStyYaABgGhHis]/g
+                } else {
+                    throw new Error("Invalid format type.")
+                }
+            }
+        },
+        nonpunctuation: /[^ -\/:-@\[-`{-~\t\n\rTZ]+/g,
+        parseFormat: function (m, k) {
+            var j = m.replace(this.validParts(k), "\0").split("\0"), l = m.match(this.validParts(k));
+            if (!j || !j.length || !l || l.length == 0) {
+                throw new Error("Invalid date format.")
+            }
+            return {separators: j, parts: l}
+        },
+        parseDate: function (A, y, v, j, r) {
+            if (A instanceof Date) {
+                var u = new Date(A.valueOf() - A.getTimezoneOffset() * 60000);
+                u.setMilliseconds(0);
+                return u
+            }
+            if (/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(A)) {
+                y = this.parseFormat("yyyy-mm-dd", j)
+            }
+            if (/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}$/.test(A)) {
+                y = this.parseFormat("yyyy-mm-dd hh:ii", j)
+            }
+            if (/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}\:\d{1,2}[Z]{0,1}$/.test(A)) {
+                y = this.parseFormat("yyyy-mm-dd hh:ii:ss", j)
+            }
+            if (/^[-+]\d+[dmwy]([\s,]+[-+]\d+[dmwy])*$/.test(A)) {
+                var l = /([-+]\d+)([dmwy])/, q = A.match(/([-+]\d+)([dmwy])/g), t, p;
+                A = new Date();
+                for (var x = 0; x < q.length; x++) {
+                    t = l.exec(q[x]);
+                    p = parseInt(t[1]);
+                    switch (t[2]) {
+                        case"d":
+                            A.setUTCDate(A.getUTCDate() + p);
+                            break;
+                        case"m":
+                            A = i.prototype.moveMonth.call(i.prototype, A, p);
+                            break;
+                        case"w":
+                            A.setUTCDate(A.getUTCDate() + p * 7);
+                            break;
+                        case"y":
+                            A = i.prototype.moveYear.call(i.prototype, A, p);
+                            break
+                    }
+                }
+                return h(A.getUTCFullYear(), A.getUTCMonth(), A.getUTCDate(), A.getUTCHours(), A.getUTCMinutes(), A.getUTCSeconds(), 0)
+            }
+            var q = A && A.toString().match(this.nonpunctuation) || [], A = new Date(0, 0, 0, 0, 0, 0, 0), m = {}, z = ["hh", "h", "ii", "i", "ss", "s", "yyyy", "yy", "M", "MM", "m", "mm", "D", "DD", "d", "dd", "H", "HH", "p", "P", "z", "Z"], o = {
+                hh: function (C, s) {
+                    return C.setUTCHours(s)
+                }, h: function (C, s) {
+                    return C.setUTCHours(s)
+                }, HH: function (C, s) {
+                    return C.setUTCHours(s == 12 ? 0 : s)
+                }, H: function (C, s) {
+                    return C.setUTCHours(s == 12 ? 0 : s)
+                }, ii: function (C, s) {
+                    return C.setUTCMinutes(s)
+                }, i: function (C, s) {
+                    return C.setUTCMinutes(s)
+                }, ss: function (C, s) {
+                    return C.setUTCSeconds(s)
+                }, s: function (C, s) {
+                    return C.setUTCSeconds(s)
+                }, yyyy: function (C, s) {
+                    return C.setUTCFullYear(s)
+                }, yy: function (C, s) {
+                    return C.setUTCFullYear(2000 + s)
+                }, m: function (C, s) {
+                    s -= 1;
+                    while (s < 0) {
+                        s += 12
+                    }
+                    s %= 12;
+                    C.setUTCMonth(s);
+                    while (C.getUTCMonth() != s) {
+                        if (isNaN(C.getUTCMonth())) {
+                            return C
+                        } else {
+                            C.setUTCDate(C.getUTCDate() - 1)
+                        }
+                    }
+                    return C
+                }, d: function (C, s) {
+                    return C.setUTCDate(s)
+                }, p: function (C, s) {
+                    return C.setUTCHours(s == 1 ? C.getUTCHours() + 12 : C.getUTCHours())
+                }, z: function () {
+                    return r
+                }
+            }, B, k, t;
+            o.M = o.MM = o.mm = o.m;
+            o.dd = o.d;
+            o.P = o.p;
+            o.Z = o.z;
+            A = h(A.getFullYear(), A.getMonth(), A.getDate(), A.getHours(), A.getMinutes(), A.getSeconds());
+            if (q.length == y.parts.length) {
+                for (var x = 0, w = y.parts.length; x < w; x++) {
+                    B = parseInt(q[x], 10);
+                    t = y.parts[x];
+                    if (isNaN(B)) {
+                        switch (t) {
+                            case"MM":
+                                k = f(a[v].months).filter(function () {
+                                    var s = this.slice(0, q[x].length), C = q[x].slice(0, s.length);
+                                    return s == C
+                                });
+                                B = f.inArray(k[0], a[v].months) + 1;
+                                break;
+                            case"M":
+                                k = f(a[v].monthsShort).filter(function () {
+                                    var s = this.slice(0, q[x].length), C = q[x].slice(0, s.length);
+                                    return s.toLowerCase() == C.toLowerCase()
+                                });
+                                B = f.inArray(k[0], a[v].monthsShort) + 1;
+                                break;
+                            case"p":
+                            case"P":
+                                B = f.inArray(q[x].toLowerCase(), a[v].meridiem);
+                                break;
+                            case"z":
+                            case"Z":
+                                r;
+                                break
+                        }
+                    }
+                    m[t] = B
+                }
+                for (var x = 0, n; x < z.length; x++) {
+                    n = z[x];
+                    if (n in m && !isNaN(m[n])) {
+                        o[n](A, m[n])
+                    }
+                }
+            }
+            return A
+        },
+        formatDate: function (l, q, m, p, o) {
+            if (l == null) {
+                return ""
+            }
+            var k;
+            if (p == "standard") {
+                k = {
+                    t: l.getTime(),
+                    yy: l.getUTCFullYear().toString().substring(2),
+                    yyyy: l.getUTCFullYear(),
+                    m: l.getUTCMonth() + 1,
+                    M: a[m].monthsShort[l.getUTCMonth()],
+                    MM: a[m].months[l.getUTCMonth()],
+                    d: l.getUTCDate(),
+                    D: a[m].daysShort[l.getUTCDay()],
+                    DD: a[m].days[l.getUTCDay()],
+                    p: (a[m].meridiem.length == 2 ? a[m].meridiem[l.getUTCHours() < 12 ? 0 : 1] : ""),
+                    h: l.getUTCHours(),
+                    i: l.getUTCMinutes(),
+                    s: l.getUTCSeconds(),
+                    z: o
+                };
+                if (a[m].meridiem.length == 2) {
+                    k.H = (k.h % 12 == 0 ? 12 : k.h % 12)
+                } else {
+                    k.H = k.h
+                }
+                k.HH = (k.H < 10 ? "0" : "") + k.H;
+                k.P = k.p.toUpperCase();
+                k.Z = k.z;
+                k.hh = (k.h < 10 ? "0" : "") + k.h;
+                k.ii = (k.i < 10 ? "0" : "") + k.i;
+                k.ss = (k.s < 10 ? "0" : "") + k.s;
+                k.dd = (k.d < 10 ? "0" : "") + k.d;
+                k.mm = (k.m < 10 ? "0" : "") + k.m
+            } else {
+                if (p == "php") {
+                    k = {
+                        y: l.getUTCFullYear().toString().substring(2),
+                        Y: l.getUTCFullYear(),
+                        F: a[m].months[l.getUTCMonth()],
+                        M: a[m].monthsShort[l.getUTCMonth()],
+                        n: l.getUTCMonth() + 1,
+                        t: g.getDaysInMonth(l.getUTCFullYear(), l.getUTCMonth()),
+                        j: l.getUTCDate(),
+                        l: a[m].days[l.getUTCDay()],
+                        D: a[m].daysShort[l.getUTCDay()],
+                        w: l.getUTCDay(),
+                        N: (l.getUTCDay() == 0 ? 7 : l.getUTCDay()),
+                        S: (l.getUTCDate() % 10 <= a[m].suffix.length ? a[m].suffix[l.getUTCDate() % 10 - 1] : ""),
+                        a: (a[m].meridiem.length == 2 ? a[m].meridiem[l.getUTCHours() < 12 ? 0 : 1] : ""),
+                        g: (l.getUTCHours() % 12 == 0 ? 12 : l.getUTCHours() % 12),
+                        G: l.getUTCHours(),
+                        i: l.getUTCMinutes(),
+                        s: l.getUTCSeconds()
+                    };
+                    k.m = (k.n < 10 ? "0" : "") + k.n;
+                    k.d = (k.j < 10 ? "0" : "") + k.j;
+                    k.A = k.a.toString().toUpperCase();
+                    k.h = (k.g < 10 ? "0" : "") + k.g;
+                    k.H = (k.G < 10 ? "0" : "") + k.G;
+                    k.i = (k.i < 10 ? "0" : "") + k.i;
+                    k.s = (k.s < 10 ? "0" : "") + k.s
+                } else {
+                    throw new Error("Invalid format type.")
+                }
+            }
+            var l = [], r = f.extend([], q.separators);
+            for (var n = 0, j = q.parts.length; n < j; n++) {
+                if (r.length) {
+                    l.push(r.shift())
+                }
+                l.push(k[q.parts[n]])
+            }
+            if (r.length) {
+                l.push(r.shift())
+            }
+            return l.join("")
+        },
+        convertViewMode: function (j) {
+            switch (j) {
+                case 4:
+                case"decade":
+                    j = 4;
+                    break;
+                case 3:
+                case"year":
+                    j = 3;
+                    break;
+                case 2:
+                case"month":
+                    j = 2;
+                    break;
+                case 1:
+                case"day":
+                    j = 1;
+                    break;
+                case 0:
+                case"hour":
+                    j = 0;
+                    break
+            }
+            return j
+        },
+        headTemplate: '<thead><tr><th class="prev"><i class="{iconType} {leftArrow}"/></th><th colspan="5" class="switch"></th><th class="next"><i class="{iconType} {rightArrow}"/></th></tr></thead>',
+        headTemplateV3: '<thead><tr><th class="prev"><span class="{iconType} {leftArrow}"></span> </th><th colspan="5" class="switch"></th><th class="next"><span class="{iconType} {rightArrow}"></span> </th></tr></thead>',
+        contTemplate: '<tbody><tr><td colspan="7"></td></tr></tbody>',
+        footTemplate: '<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'
+    };
+    g.template = '<div class="datetimepicker"><div class="datetimepicker-minutes"><table class=" table-condensed">' + g.headTemplate + g.contTemplate + g.footTemplate + '</table></div><div class="datetimepicker-hours"><table class=" table-condensed">' + g.headTemplate + g.contTemplate + g.footTemplate + '</table></div><div class="datetimepicker-days"><table class=" table-condensed">' + g.headTemplate + "<tbody></tbody>" + g.footTemplate + '</table></div><div class="datetimepicker-months"><table class="table-condensed">' + g.headTemplate + g.contTemplate + g.footTemplate + '</table></div><div class="datetimepicker-years"><table class="table-condensed">' + g.headTemplate + g.contTemplate + g.footTemplate + "</table></div></div>";
+    g.templateV3 = '<div class="datetimepicker"><div class="datetimepicker-minutes"><table class=" table-condensed">' + g.headTemplateV3 + g.contTemplate + g.footTemplate + '</table></div><div class="datetimepicker-hours"><table class=" table-condensed">' + g.headTemplateV3 + g.contTemplate + g.footTemplate + '</table></div><div class="datetimepicker-days"><table class=" table-condensed">' + g.headTemplateV3 + "<tbody></tbody>" + g.footTemplate + '</table></div><div class="datetimepicker-months"><table class="table-condensed">' + g.headTemplateV3 + g.contTemplate + g.footTemplate + '</table></div><div class="datetimepicker-years"><table class="table-condensed">' + g.headTemplateV3 + g.contTemplate + g.footTemplate + "</table></div></div>";
+    f.fn.datetimepicker.DPGlobal = g;
+    f.fn.datetimepicker.noConflict = function () {
+        f.fn.datetimepicker = b;
+        return this
+    };
+    f(document).on("focus.datetimepicker.data-api click.datetimepicker.data-api", '[data-provide="datetimepicker"]', function (k) {
+        var j = f(this);
+        if (j.data("datetimepicker")) {
+            return
+        }
+        k.preventDefault();
+        j.datetimepicker("show")
+    });
+    f(function () {
+        f('[data-provide="datetimepicker-inline"]').datetimepicker()
+    })
+}));

+ 16 - 0
public/js/bootstrap-datetimepicker.zh-CN.js

xqd
@@ -0,0 +1,16 @@
+/**
+ * Simplified Chinese translation for bootstrap-datetimepicker
+ * Yuan Cheung <advanimal@gmail.com>
+ */
+;(function($){
+	$.fn.datetimepicker.dates['zh'] = {
+			days: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期日"],
+			daysShort: ["周日", "周一", "周二", "周三", "周四", "周五", "周六", "周日"],
+			daysMin:  ["日", "一", "二", "三", "四", "五", "六", "日"],
+			months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
+			monthsShort: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
+			today: "今天",
+			suffix: [],
+			meridiem: ["上午", "下午"]
+	};
+}(jQuery));

+ 13 - 1
resources/views/admin/edit_table/table_eight.blade.php

xqd
@@ -257,10 +257,22 @@
                                         <td colspan="2">代理人<input name="daili" value="{{ $table->daili }}" class="form-control" type="text" placeholder=""></td>
                                     </tr>
                                     <tr>
-                                        <td colspan="4">签约时间:<input name="table_time" value="{{ $table->table_time }}" class="form-control" type="text" placeholder=""></td>
+                                        <td colspan="4">签约时间:<input readonly id="table_time" name="table_time" value="{{ $table->table_time }}" class="form-control form_datetime" type="text" placeholder=""></td>
                                     </tr>
                                     </tbody>
                                 </table>
+                                <script type="text/javascript">
+                                    $('#sub').click(function(){
+                                        $('#table_time').val( $('#table_time').val().replace(/-/g,''));
+                                    });
+                                    $(".form_datetime").datetimepicker({
+                                        language: 'zh',
+                                        format: 'yyyy-mm-dd',
+                                        minView:'month'
+                                    }).on('changeDate',function(){
+                                        $(".datetimepicker").hide();
+                                    });
+                                </script>
                                 <div class="row">
                                     <div class="col-sm-4">核算:<input disabled value="{{ $table->hesuan }}" style="display: inline" class="form-control" type="text" placeholder=""></div>
                                     <div class="col-sm-4">初审:<input disabled value="{{ $table->chushen }}" style="display: inline" class="form-control" type="text" placeholder=""></div>

+ 13 - 1
resources/views/admin/edit_table/table_five.blade.php

xqd
@@ -141,10 +141,22 @@
                                         <td>代理人<input name="daili" value="{{ $table->daili }}" class="form-control" type="text" placeholder=""></td>
                                     </tr>
                                     <tr>
-                                        <td colspan="3">签约时间:<input name="table_time" value="{{ $table->table_time }}" class="form-control" type="text" placeholder=""></td>
+                                        <td colspan="3">签约时间:<input readonly id="table_time" name="table_time" value="{{ $table->table_time }}" class="form-control form_datetime" type="text" placeholder=""></td>
                                     </tr>
                                     </tbody>
                                 </table>
+                                <script type="text/javascript">
+                                    $('#sub').click(function(){
+                                        $('#table_time').val( $('#table_time').val().replace(/-/g,''));
+                                    })
+                                    $(".form_datetime").datetimepicker({
+                                        language: 'zh',
+                                        format: 'yyyy-mm-dd',
+                                        minView:'month'
+                                    }).on('changeDate',function(){
+                                        $(".datetimepicker").hide();
+                                    });
+                                </script>
                                 <div class="row">
                                     <div class="col-sm-4">核算:<input disabled value="{{ $table->hesuan }}" style="display: inline" class="form-control" type="text" placeholder=""></div>
                                     <div class="col-sm-4">初审:<input disabled value="{{ $table->chushen }}" style="display: inline" class="form-control" type="text" placeholder=""></div>

+ 13 - 1
resources/views/admin/edit_table/table_four.blade.php

xqd
@@ -121,10 +121,22 @@
                                     </tr>
                                     <tr>
                                         <td>签约时间</td>
-                                        <td colspan="3"><input name="table_time" value="{{ $table->table_time }}" class="form-control" type="text" placeholder=""></td>
+                                        <td colspan="3"><input readonly id="table_time" name="table_time" value="{{ $table->table_time }}" class="form-control datetimepicker" type="text" placeholder=""></td>
                                     </tr>
                                     </tbody>
                                 </table>
+                                <script type="text/javascript">
+                                    $('#sub').click(function(){
+                                        $('#table_time').val( $('#table_time').val().replace(/-/g,''));
+                                    });
+                                    $(".form_datetime").datetimepicker({
+                                        language: 'zh',
+                                        format: 'yyyy-mm-dd',
+                                        minView:'month'
+                                    }).on('changeDate',function(){
+                                        $(".datetimepicker").hide();
+                                    });
+                                </script>
                                 <div class="row">
                                     <div class="col-sm-4">核算:<input disabled value="{{ $table->hesuan }}" style="display: inline" class="form-control" type="text" placeholder=""></div>
                                     <div class="col-sm-4">初审:<input disabled value="{{ $table->chushen }}" style="display: inline" class="form-control" type="text" placeholder=""></div>

+ 13 - 1
resources/views/admin/edit_table/table_nine.blade.php

xqd
@@ -217,10 +217,22 @@
                                         <td colspan="2">代理人<input name="daili" value="{{ $table->daili }}" class="form-control" type="text" placeholder=""></td>
                                     </tr>
                                     <tr>
-                                        <td colspan="4">签约时间:<input name="table_time" value="{{ $table->table_time }}" class="form-control" type="text" placeholder=""></td>
+                                        <td colspan="4">签约时间:<input readonly id="table_time" name="table_time" value="{{ $table->table_time }}" class="form-control form_datetime" type="text" placeholder=""></td>
                                     </tr>
                                     </tbody>
                                 </table>
+                                <script type="text/javascript">
+                                    $('#sub').click(function(){
+                                        $('#table_time').val( $('#table_time').val().replace(/-/g,''));
+                                    })
+                                    $(".form_datetime").datetimepicker({
+                                        language: 'zh',
+                                        format: 'yyyy-mm-dd',
+                                        minView:'month'
+                                    }).on('changeDate',function(){
+                                        $(".datetimepicker").hide();
+                                    });
+                                </script>
                                 <div class="row">
                                     <div class="col-sm-4">核算:<input disabled value="{{ $table->hesuan }}" style="display: inline" class="form-control" type="text" placeholder=""></div>
                                     <div class="col-sm-4">初审:<input disabled value="{{ $table->chushen }}" style="display: inline" class="form-control" type="text" placeholder=""></div>

+ 13 - 1
resources/views/admin/edit_table/table_one.blade.php

xqd
@@ -160,8 +160,20 @@
                                     <td colspan="2">代理人:<input name="data3" value="{{ $table->data3 }}" class="form-control" type="text"></td>
                                 </tr>
                                 <tr>
-                                    <td colspan="6">签约时间:<input name="table_time" class="form-control" type="text" placeholder="" value="{{ $table->table_time }}"></td>
+                                    <td colspan="6">签约时间:<input readonly id="table_time"  name="table_time" class="form-control" type="text" placeholder="" value="{{ $table->table_time }}"></td>
                                 </tr>
+                                <script type="text/javascript">
+                                    $('#sub').click(function(){
+                                        $('#table_time').val( $('#table_time').val().replace(/-/g,''));
+                                    })
+                                    $("#table_time").datetimepicker({
+                                        language: 'zh',
+                                        format: 'yyyy-mm-dd',
+                                        minView:'month'
+                                    }).on('changeDate',function(){
+                                        $(".datetimepicker").hide();
+                                    });
+                                </script>
                                 </tbody>
                             </table>
                             <div class="row">

+ 13 - 1
resources/views/admin/edit_table/table_seven.blade.php

xqd
@@ -212,10 +212,22 @@
                                         <td colspan="2">代理人<input name="daili" value="{{ $table->daili }}" class="form-control" type="text" placeholder=""></td>
                                     </tr>
                                     <tr>
-                                        <td colspan="4">签约时间:<input name="table_time" value="{{ $table->table_time }}" class="form-control" type="text" placeholder=""></td>
+                                        <td colspan="4">签约时间:<input readonly id="table_time" name="table_time" value="{{ $table->table_time }}" class="form-control form_datetime" type="text" placeholder=""></td>
                                     </tr>
                                     </tbody>
                                 </table>
+                                <script type="text/javascript">
+                                    $('#sub').click(function(){
+                                        $('#table_time').val( $('#table_time').val().replace(/-/g,''));
+                                    })
+                                    $(".form_datetime").datetimepicker({
+                                        language: 'zh',
+                                        format: 'yyyy-mm-dd',
+                                        minView:'month'
+                                    }).on('changeDate',function(){
+                                        $(".datetimepicker").hide();
+                                    });
+                                </script>
                                 <div class="row">
                                     <div class="col-sm-4">核算:<input disabled value="{{ $table->hesuan }}" style="display: inline" class="form-control" type="text" placeholder=""></div>
                                     <div class="col-sm-4">初审:<input disabled value="{{ $table->chushen }}" style="display: inline" class="form-control" type="text" placeholder=""></div>

+ 13 - 1
resources/views/admin/edit_table/table_six.blade.php

xqd
@@ -127,10 +127,22 @@
                                         <td>代理人<input name="daili" value="daili" class="form-control" type="text" placeholder=""></td>
                                     </tr>
                                     <tr>
-                                        <td colspan="3">签约时间:<input name="table_time" value="{{ $table->table_time }}" class="form-control" type="text" placeholder=""></td>
+                                        <td colspan="3">签约时间:<input readonly id="table_time" name="table_time" value="{{ $table->table_time }}" class="form-control form_datetime" type="text" placeholder=""></td>
                                     </tr>
                                     </tbody>
                                 </table>
+                                <script type="text/javascript">
+                                    $('#sub').click(function(){
+                                        $('#table_time').val( $('#table_time').val().replace(/-/g,''));
+                                    })
+                                    $(".form_datetime").datetimepicker({
+                                        language: 'zh',
+                                        format: 'yyyy-mm-dd',
+                                        minView:'month'
+                                    }).on('changeDate',function(){
+                                        $(".datetimepicker").hide();
+                                    });
+                                </script>
                                 <div class="row">
                                     <div class="col-sm-4">核算:<input disabled value="{{ $table->hesuan }}" style="display: inline" class="form-control" type="text" placeholder=""></div>
                                     <div class="col-sm-4">初审:<input disabled value="{{ $table->chushen }}" style="display: inline" class="form-control" type="text" placeholder=""></div>

+ 15 - 2
resources/views/admin/edit_table/table_three.blade.php

xqd
@@ -132,13 +132,26 @@
                                     <tr>
                                         <td>发证单位审核意见</td>
                                         <td colspan="2"><textarea name="fazheng"  style="width: 80%;height: 200px;" placeholder="盖章">{{ $table->fazheng }}</textarea>
-                                        <br>时 间:<input name="fazheng_time" value="{{ $table->fazheng_time }}" class="form-control" type="text" placeholder=""></td>
+                                        <br>时 间:<input readonly id="fazheng_time" name="fazheng_time" value="{{ $table->fazheng_time }}" class="form-control timepicker" type="text" placeholder=""></td>
                                         <td>征收实施单位审批意见</td>
                                         <td colspan="2"><textarea name="zc" style="width: 80%;height: 200px;" placeholder="盖章">{{ $table->zc }}</textarea>
-                                        <br>时 间:<input name="zc_time" value="{{ $table->zc_time }}" class="form-control" type="text" placeholder=""></td>
+                                        <br>时 间:<input readonly id="zc_time" name="zc_time" value="{{ $table->zc_time }}" class="form-control timepicker" type="text" placeholder=""></td>
                                     </tr>
                                     </tbody>
                                 </table>
+                                <script type="text/javascript">
+                                    $('#sub').click(function(){
+                                        $('#fazheng_time').val( $('#fazheng_time').val().replace(/-/g,''));
+                                        $('#zc_time').val( $('#zc_time').val().replace(/-/g,''));
+                                    });
+                                    $(".timepicker").datetimepicker({
+                                        language: 'zh',
+                                        format: 'yyyy-mm-dd',
+                                        minView:'month'
+                                    }).on('changeDate',function(){
+                                        $(".datetimepicker").hide();
+                                    });
+                                </script>
                                 <div class="row">
                                     <div class="col-sm-4">核算:<input disabled value="{{ $table->hesuan }}" style="display: inline" class="form-control" type="text" placeholder=""></div>
                                     <div class="col-sm-4">初审:<input disabled value="{{ $table->chushen }}" style="display: inline" class="form-control" type="text" placeholder=""></div>

+ 29 - 9
resources/views/admin/edit_table/table_two.blade.php

xqd
@@ -109,34 +109,54 @@
                                     <tr>
                                         <td colspan="2">违章建筑自拆费用申取人:</td>
                                         <td><input name="zichaiqz" class="form-control" type="text" placeholder="" value="{{ $table->zichaiqz }}"></td>
-                                        <td colspan="3">时 间:<input name="table_time" class="form-control" type="text" placeholder="" value="{{ $table->table_time }}"></td>
+                                        <td colspan="3">时 间:<input readonly id="table_time" name="table_time" class="form-control timepicker" type="text" placeholder="" value="{{ $table->table_time }}"></td>
                                     </tr>
                                     <tr>
                                         <td colspan="3">工作小组执法人员全体:<input name="workmanallqz" class="form-control" type="text" placeholder="" value="{{ $table->workmanallqz }}">
-                                            <br>时 间:<input name="workmanallqz_time" class="form-control" type="text" placeholder="" value="{{ $table->workmanallqz_time }}"></td>
+                                            <br>时 间:<input readonly id="workmanallqz_time" name="workmanallqz_time" class="form-control timepicker" type="text" placeholder="" value="{{ $table->workmanallqz_time }}"></td>
                                         <td colspan="3">区征拆局工作人员:<input name="zcworkmanqz" class="form-control" type="text" placeholder="" value="{{ $table->zcworkmanqz }}">
-                                        <br>时 间:<input name="zcworkmanqz_time" class="form-control" type="text" placeholder="" value="{{ $table->zcworkmanqz_time }}"></td>
+                                        <br>时 间:<input readonly id="zcworkmanqz_time" name="zcworkmanqz_time" class="form-control timepicker" type="text" placeholder="" value="{{ $table->zcworkmanqz_time }}"></td>
                                     </tr>
                                     <tr>
                                         <td colspan="3">工作小组组长:<input name="workcaptainqz" class="form-control" type="text" placeholder="" value="{{ $table->workcaptainqz }}">
-                                            <br>时 间:<input name="workcaptainqz_time" class="form-control" type="text" placeholder="" value="{{ $table->workcaptainqz_time }}"></td>
+                                            <br>时 间:<input readonly id="workcaptainqz_time" name="workcaptainqz_time" class="form-control timepicker" type="text" placeholder="" value="{{ $table->workcaptainqz_time }}"></td>
                                         <td colspan="3">督查专员:<input name="duchaqz" class="form-control" type="text" placeholder="" value="{{ $table->duchaqz }}">
-                                            <br>时 间:<input name="duchaqz_time" class="form-control" type="text" placeholder="" value="{{ $table->duchaqz_time }}"></td>
+                                            <br>时 间:<input readonly id=" duchaqz_time" name="duchaqz_time" class="form-control timepicker" type="text" placeholder="" value="{{ $table->duchaqz_time }}"></td>
                                     </tr>
                                     <tr>
                                         <td colspan="3">工作组负责人:<input name="workfzqz" class="form-control" type="text" placeholder="{{ $table->workfzqz }}">
-                                            <br>时 间:<input name="workfzqz_time" class="form-control" type="text" placeholder="" value="{{ $table->workfzqz_time }}"></td>
+                                            <br>时 间:<input readonly id="workfzqz_time" name="workfzqz_time" class="form-control timepicker" type="text" placeholder="" value="{{ $table->workfzqz_time }}"></td>
                                         <td colspan="3">分管领导:<input name="bossqz" class="form-control" type="text" placeholder="" value="{{ $table->bossqz }}">
-                                            <br>时 间:<input name="bossqz_time" class="form-control" type="text" placeholder="" value="{{ $table->bossqz_time }}"></td>
+                                            <br>时 间:<input readonly id="bossqz_time" name="bossqz_time" class="form-control timepicker" type="text" placeholder="" value="{{ $table->bossqz_time }}"></td>
                                     </tr>
                                     <tr>
                                         <td colspan="3">工作组意见,经我们核实,该违章户已按要求自行完成违章建筑的拆除,同意<input name="ok" class="form-control" type="text" placeholder="" value="{{ $table->ok }}">发放自行拆除费用
-                                            <br>时 间:<input name="ok_time" class="form-control" type="text" placeholder="" value="{{ $table->ok_time }}"></td>
+                                            <br>时 间:<input readonly id="ok_time" name="ok_time" class="form-control timepicker" type="text" placeholder="" value="{{ $table->ok_time }}"></td>
                                         <td colspan="3">财务负责人:<input name="cwqz" class="form-control" type="text" placeholder="" value="{{ $table->cwqz }}">
-                                            <br>时 间:<input name="cw_time" class="form-control" type="text" placeholder="" value="{{ $table->cw_time }}"></td>
+                                            <br>时 间:<input readonly id="cw_time" name="cw_time" class="form-control timepicker" type="text" placeholder="" value="{{ $table->cw_time }}"></td>
                                     </tr>
                                     </tbody>
                                 </table>
+                                <script type="text/javascript">
+                                    $('#sub').click(function(){
+                                        $('#table_time').val( $('#table_time').val().replace(/-/g,''));
+                                        $('#workmanallqz_time').val( $('#workmanallqz_time').val().replace(/-/g,''));
+                                        $('#zcworkmanqz_time').val( $('#zcworkmanqz_time').val().replace(/-/g,''));
+                                        $('#workcaptainqz_time').val( $('#workcaptainqz_time').val().replace(/-/g,''));
+                                        $('#duchaqz_time').val( $('#duchaqz_time').val().replace(/-/g,''));
+                                        $('#workfzqz_time').val( $('#workfzqz_time').val().replace(/-/g,''));
+                                        $('#bossqz_time').val( $('#bossqz_time').val().replace(/-/g,''));
+                                        $('#ok_time').val( $('#ok_time').val().replace(/-/g,''));
+                                        $('#cw_time').val( $('#cw_time').val().replace(/-/g,''));
+                                    })
+                                    $(".timepicker").datetimepicker({
+                                        language: 'zh',
+                                        format: 'yyyy-mm-dd',
+                                        minView:'month'
+                                    }).on('changeDate',function(){
+                                        $(".datetimepicker").hide();
+                                    });
+                                </script>
                                 <div class="row">
                                     <div class="col-sm-4">核算:<input disabled value="{{ $table->hesuan }}" style="display: inline" class="form-control" type="text" placeholder=""></div>
                                     <div class="col-sm-4">初审:<input disabled value="{{ $table->chushen }}" style="display: inline" class="form-control" type="text" placeholder=""></div>

+ 17 - 3
resources/views/admin/index.blade.php

xqd
@@ -36,14 +36,28 @@
                                 </select>
                             </div>
                             <div class="col-sm-3">
-                                <input name="start_time" class="form-control" placeholder="开始日期,不输入则显示全部  输入格式:20160802">
+                                <input id="startTime" type="text" name="start_time"  readonly class="form-control form_datetime" placeholder="开始日期,不输入则显示全部">
                             </div>
                             <div class="col-sm-3" style="margin-bottom: 1%">
-                                <input name="end_time" class="form-control" placeholder="结束日期,不输入则显示全部  输入格式:20160802">
+                                <input id="endTime" type="text" name="end_time" readonly class="form-control form_datetime" placeholder="结束日期,不输入则显示全部">
                             </div>
                             <div style="text-align: center">
-                                <button type="submit" class="btn btn-primary">搜索</button>
+                                <button id="sub" type="submit" class="btn btn-primary">搜索</button>
                             </div>
+
+                            <script type="text/javascript">
+                                $('#sub').click(function(){
+                                    $('#startTime').val( $('#startTime').val().replace(/-/g,''));
+                                    $('#endTime').val( $('#endTime').val().replace(/-/g,''));
+                                })
+                                $(".form_datetime").datetimepicker({
+                                    language: 'zh',
+                                    format: 'yyyy-mm-dd',
+                                    minView:'month'
+                                }).on('changeDate',function(){
+                                    $(".datetimepicker").hide();
+                                });
+                            </script>
                         </form>
                     </div>
                 </div>

+ 6 - 3
resources/views/admin/project/index.blade.php

xqd xqd
@@ -31,8 +31,11 @@
                     <div class="row">
                         <div class="col-sm-11"></div>
                         <div class="col-sm-1">
-                            <a href="{{ url('/project/create') }}" class="btn btn-primary tooltips">
-                                <i class="fa fa-plus"></i>新增</a></div>
+                            @if($user->role > 4)
+                                <a href="{{ url('/project/create') }}" class="btn btn-primary tooltips">
+                                    <i class="fa fa-plus"></i>新增</a>
+                                @endif
+                        </div>
                     </div>
                     <div class="row">
                         <div class="col-sm-12">
@@ -50,7 +53,7 @@
                                         <td>{{ $list -> id }}</td>
                                         <td>{{ $list -> project_name }}</td>
                                         <td>
-                                            @if($user->role = 5)
+                                            @if($user->role > 4)
                                                 <a href="{{ url('/project/'.$list->id.'/edit') }}" class="btn btn-primary btn-sm">
                                                     <i class="fa fa-pencil"></i> 编辑</a>
                                                 @if($list->display == 1)

+ 13 - 1
resources/views/admin/table/table_eight.blade.php

xqd
@@ -255,10 +255,22 @@
                                         <td colspan="2">代理人<input name="daili" class="form-control" type="text" placeholder=""></td>
                                     </tr>
                                     <tr>
-                                        <td colspan="4">签约时间:<input name="table_time" class="form-control" type="text" placeholder=""></td>
+                                        <td colspan="4">签约时间:<input readonly id="table_time" name="table_time" class="form-control form_datetime" type="text" placeholder=""></td>
                                     </tr>
                                     </tbody>
                                 </table>
+                                <script type="text/javascript">
+                                    $('#sub').click(function(){
+                                        $('#table_time').val( $('#table_time').val().replace(/-/g,''));
+                                    });
+                                    $(".form_datetime").datetimepicker({
+                                        language: 'zh',
+                                        format: 'yyyy-mm-dd',
+                                        minView:'month'
+                                    }).on('changeDate',function(){
+                                        $(".datetimepicker").hide();
+                                    });
+                                </script>
                                 <div class="row">
                                     <div class="col-sm-4">核算:<input disabled name="hesuan" style="display: inline" class="form-control" type="text" placeholder=""></div>
                                     <div class="col-sm-4">初审:<input disabled name="chushen" style="display: inline" class="form-control" type="text" placeholder=""></div>

+ 13 - 1
resources/views/admin/table/table_five.blade.php

xqd
@@ -139,10 +139,22 @@
                                         <td>代理人<input name="daili" class="form-control" type="text" placeholder=""></td>
                                     </tr>
                                     <tr>
-                                        <td colspan="3">签约时间:<input name="table_time" class="form-control" type="text" placeholder=""></td>
+                                        <td colspan="3">签约时间:<input readonly id="table_time" name="table_time" class="form-control form_datetime" type="text" placeholder=""></td>
                                     </tr>
                                     </tbody>
                                 </table>
+                                <script type="text/javascript">
+                                    $('#sub').click(function(){
+                                        $('#table_time').val( $('#table_time').val().replace(/-/g,''));
+                                    })
+                                    $(".form_datetime").datetimepicker({
+                                        language: 'zh',
+                                        format: 'yyyy-mm-dd',
+                                        minView:'month'
+                                    }).on('changeDate',function(){
+                                        $(".datetimepicker").hide();
+                                    });
+                                </script>
                                 <div class="row">
                                     <div class="col-sm-4">核算:<input disabled name="hesuan" style="display: inline" class="form-control" type="text" placeholder=""></div>
                                     <div class="col-sm-4">初审:<input disabled name="chushen" style="display: inline" class="form-control" type="text" placeholder=""></div>

+ 13 - 1
resources/views/admin/table/table_four.blade.php

xqd
@@ -120,10 +120,22 @@
                                     </tr>
                                     <tr>
                                         <td>签约时间</td>
-                                        <td colspan="3"><input name="table_time" class="form-control" type="text" placeholder=""></td>
+                                        <td colspan="3"><input readonly id="table_time" name="table_time" class="form-control form_datetime" type="text" placeholder=""></td>
                                     </tr>
                                     </tbody>
                                 </table>
+                                <script type="text/javascript">
+                                    $('#sub').click(function(){
+                                        $('#table_time').val( $('#table_time').val().replace(/-/g,''));
+                                    });
+                                    $(".form_datetime").datetimepicker({
+                                        language: 'zh',
+                                        format: 'yyyy-mm-dd',
+                                        minView:'month'
+                                    }).on('changeDate',function(){
+                                        $(".datetimepicker").hide();
+                                    });
+                                </script>
                                 <div class="row">
                                     <div class="col-sm-4">核算:<input disabled name="hesuan" style="display: inline" class="form-control" type="text" placeholder=""></div>
                                     <div class="col-sm-4">初审:<input disabled name="chushen" style="display: inline" class="form-control" type="text" placeholder=""></div>

+ 13 - 1
resources/views/admin/table/table_nine.blade.php

xqd
@@ -214,10 +214,22 @@
                                         <td colspan="2">代理人<input name="daili" class="form-control" type="text" placeholder=""></td>
                                     </tr>
                                     <tr>
-                                        <td colspan="4">签约时间:<input name="table_time" class="form-control" type="text" placeholder=""></td>
+                                        <td colspan="4">签约时间:<input readonly id="table_time" name="table_time" class="form-control form_datetime" type="text" placeholder=""></td>
                                     </tr>
                                     </tbody>
                                 </table>
+                                <script type="text/javascript">
+                                    $('#sub').click(function(){
+                                        $('#table_time').val( $('#table_time').val().replace(/-/g,''));
+                                    })
+                                    $(".form_datetime").datetimepicker({
+                                        language: 'zh',
+                                        format: 'yyyy-mm-dd',
+                                        minView:'month'
+                                    }).on('changeDate',function(){
+                                        $(".datetimepicker").hide();
+                                    });
+                                </script>
                                 <div class="row">
                                     <div class="col-sm-4">核算:<input disabled name="hesuan" style="display: inline" class="form-control" type="text" placeholder=""></div>
                                     <div class="col-sm-4">初审:<input disabled name="chushen" style="display: inline" class="form-control" type="text" placeholder=""></div>

+ 15 - 3
resources/views/admin/table/table_one.blade.php

xqd xqd
@@ -159,7 +159,7 @@
                                     <td colspan="2">代理人:<input name="data3" class="form-control" type="text"></td>
                                 </tr>
                                 <tr>
-                                    <td colspan="6">签约时间:<input name="table_time" class="form-control" type="text" placeholder=""></td>
+                                    <td colspan="6">签约时间:<input readonly id="table_time" name="table_time" class="form-control" type="text" placeholder=""></td>
                                 </tr>
                                 </tbody>
                             </table>
@@ -178,16 +178,28 @@
                                 </div>
                                 <div class="col-sm-4">
                                     @if($user->role == 0)
-                                        <button type="submit" onclick="javascript:this.form.action='{{ url('/table/save/'.$table_type_id) }}'" class="btn btn-success">
+                                        <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/save/'.$table_type_id) }}'" class="btn btn-success">
                                             保存</button>
                                         <!-- Button trigger modal -->
-                                        <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">提交</button>
+                                        <button id="sub" type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">提交</button>
                                         {{--<button type="submit" onclick="javascript:this.form.action='{{ url('/table/sub/'.$table_type_id.'/create') }}'" class="btn btn-primary">--}}
                                             {{--提交</button>--}}
                                     @endif
                                     <a href="{{ url('/table') }}" class="btn btn-info">返回</a>
                                 </div>
                             </div>
+                                    <script type="text/javascript">
+                                        $('#sub').click(function(){
+                                            $('#table_time').val( $('#table_time').val().replace(/-/g,''));
+                                        });
+                                        $("#table_time").datetimepicker({
+                                            language: 'zh',
+                                            format: 'yyyy-mm-dd',
+                                            minView:'month'
+                                        }).on('changeDate',function(){
+                                            $(".datetimepicker").hide();
+                                        });
+                                    </script>
                         </div>
                     </div>
                 </div>

+ 13 - 1
resources/views/admin/table/table_seven.blade.php

xqd
@@ -210,10 +210,22 @@
                                         <td colspan="2">代理人<input name="daili" class="form-control" type="text" placeholder=""></td>
                                     </tr>
                                     <tr>
-                                        <td colspan="4">签约时间:<input name="table_time" class="form-control" type="text" placeholder=""></td>
+                                        <td colspan="4">签约时间:<input readonly id="table_time" name="table_time" class="form-control form_datetime" type="text" placeholder=""></td>
                                     </tr>
                                     </tbody>
                                 </table>
+                                <script type="text/javascript">
+                                    $('#sub').click(function(){
+                                        $('#table_time').val( $('#table_time').val().replace(/-/g,''));
+                                    })
+                                    $(".form_datetime").datetimepicker({
+                                        language: 'zh',
+                                        format: 'yyyy-mm-dd',
+                                        minView:'month'
+                                    }).on('changeDate',function(){
+                                        $(".datetimepicker").hide();
+                                    });
+                                </script>
                                 <div class="row">
                                     <div class="col-sm-4">核算:<input disabled name="hesuan" style="display: inline" class="form-control" type="text" placeholder=""></div>
                                     <div class="col-sm-4">初审:<input disabled name="chushen" style="display: inline" class="form-control" type="text" placeholder=""></div>

+ 13 - 1
resources/views/admin/table/table_six.blade.php

xqd
@@ -136,10 +136,22 @@
                                         <td>代理人<input name="daili" class="form-control" type="text" placeholder=""></td>
                                     </tr>
                                     <tr>
-                                        <td colspan="3">签约时间:<input name="table_time" class="form-control" type="text" placeholder=""></td>
+                                        <td colspan="3">签约时间:<input readonly id="table_time" name="table_time" class="form-control form_datetime" type="text" placeholder=""></td>
                                     </tr>
                                     </tbody>
                                 </table>
+                                <script type="text/javascript">
+                                    $('#sub').click(function(){
+                                        $('#table_time').val( $('#table_time').val().replace(/-/g,''));
+                                    })
+                                    $(".form_datetime").datetimepicker({
+                                        language: 'zh',
+                                        format: 'yyyy-mm-dd',
+                                        minView:'month'
+                                    }).on('changeDate',function(){
+                                        $(".datetimepicker").hide();
+                                    });
+                                </script>
                                 <div class="row">
                                     <div class="col-sm-4">核算:<input disabled name="hesuan" style="display: inline" class="form-control" type="text" placeholder=""></div>
                                     <div class="col-sm-4">初审:<input disabled name="chushen" style="display: inline" class="form-control" type="text" placeholder=""></div>

+ 16 - 2
resources/views/admin/table/table_three.blade.php

xqd
@@ -135,13 +135,27 @@
                                     <tr>
                                         <td>发证单位审核意见</td>
                                         <td colspan="2"><textarea name="fazheng" style="width: 80%;height: 200px;" placeholder="盖章"></textarea>
-                                        <br>时 间:<input name="fazheng_time" class="form-control" type="text" placeholder=""></td>
+                                        <br>时 间:<input readonly id="fazheng_time" name="fazheng_time" class="form-control timepicker" type="text" placeholder=""></td>
                                         <td>征收实施单位审批意见</td>
                                         <td colspan="2"><textarea name="zc" style="width: 80%;height: 200px;" placeholder="盖章"></textarea>
-                                        <br>时 间:<input name="zc_time" class="form-control" type="text" placeholder=""></td>
+                                        <br>时 间:<input readonly id="zc_time" name="zc_time" class="form-control timepicker" type="text" placeholder=""></td>
                                     </tr>
                                     </tbody>
                                 </table>
+                                <script type="text/javascript">
+                                    $('#sub').click(function(){
+                                        $('#fazheng_time').val( $('#fazheng_time').val().replace(/-/g,''));
+                                        $('#zc_time').val( $('#zc_time').val().replace(/-/g,''));
+                                    });
+                                    $(".timepicker").datetimepicker({
+                                        language: 'zh',
+                                        format: 'yyyy-mm-dd',
+                                        minView:'month'
+                                    }).on('changeDate',function(){
+                                        $(".datetimepicker").hide();
+                                    });
+                                </script>
+
                                 <div class="row">
                                     <div class="col-sm-4">核算:<input disabled name="hesuan" style="display: inline" class="form-control" type="text" placeholder=""></div>
                                     <div class="col-sm-4">初审:<input disabled name="chushen" style="display: inline" class="form-control" type="text" placeholder=""></div>

+ 29 - 9
resources/views/admin/table/table_two.blade.php

xqd
@@ -108,34 +108,54 @@
                                     <tr>
                                         <td colspan="2">违章建筑自拆费用申取人:</td>
                                         <td><input name="zichaiqz" class="form-control" type="text" placeholder=""></td>
-                                        <td colspan="3">时 间:<input name="table_time" class="form-control" type="text" placeholder="" value=""></td>
+                                        <td colspan="3">时 间:<input readonly id="table_time" name="table_time" class="form-control timepicker" type="text" placeholder="" value=""></td>
                                     </tr>
                                     <tr>
                                         <td colspan="3">工作小组执法人员全体:<input name="workmanallqz" class="form-control" type="text" placeholder="">
-                                            <br>时 间:<input name="workmanallqz_time" class="form-control" type="text" placeholder=""></td>
+                                            <br>时 间:<input readonly id="workmanallqz_time" name="workmanallqz_time" class="form-control timepicker" type="text" placeholder=""></td>
                                         <td colspan="3">区征拆局工作人员:<input name="zcworkmanqz" class="form-control" type="text" placeholder="">
-                                        <br>时 间:<input name="zcworkmanqz_time" class="form-control" type="text" placeholder=""></td>
+                                        <br>时 间:<input readonly  id="zcworkmanqz_time" name="zcworkmanqz_time" class="form-control timepicker" type="text" placeholder=""></td>
                                     </tr>
                                     <tr>
                                         <td colspan="3">工作小组组长:<input name="workcaptainqz" class="form-control" type="text" placeholder="">
-                                            <br>时 间:<input name="workcaptainqz_time" class="form-control" type="text" placeholder=""></td>
+                                            <br>时 间:<input readonly id="workcaptainqz_time" name="workcaptainqz_time" class="form-control timepicker" type="text" placeholder=""></td>
                                         <td colspan="3">督查专员:<input name="duchaqz" class="form-control" type="text" placeholder="">
-                                            <br>时 间:<input name="duchaqz_time" class="form-control" type="text" placeholder=""></td>
+                                            <br>时 间:<input readonly id="duchaqz_time" name="duchaqz_time" class="form-control timepicker" type="text" placeholder=""></td>
                                     </tr>
                                     <tr>
                                         <td colspan="3">工作组负责人:<input name="workfzqz" class="form-control" type="text" placeholder="">
-                                            <br>时 间:<input name="workfzqz_time" class="form-control" type="text" placeholder=""></td>
+                                            <br>时 间:<input readonly id="workfzqz_time" name="workfzqz_time" class="form-control timepicker" type="text" placeholder=""></td>
                                         <td colspan="3">分管领导:<input name="bossqz" class="form-control" type="text" placeholder="">
-                                            <br>时 间:<input name="bossqz_time" class="form-control" type="text" placeholder=""></td>
+                                            <br>时 间:<input readonly id="bossqz_time" name="bossqz_time" class="form-control timepicker" type="text" placeholder=""></td>
                                     </tr>
                                     <tr>
                                         <td colspan="3">工作组意见,经我们核实,该违章户已按要求自行完成违章建筑的拆除,同意<input name="ok" class="form-control" type="text" placeholder="">发放自行拆除费用
-                                            <br>时 间:<input name="ok_time" class="form-control" type="text" placeholder=""></td>
+                                            <br>时 间:<input readonly id="ok_time" name="ok_time" class="form-control timepicker" type="text" placeholder=""></td>
                                         <td colspan="3">财务负责人:<input name="cwqz" class="form-control" type="text" placeholder="">
-                                            <br>时 间:<input name="cw_time" class="form-control" type="text" placeholder=""></td>
+                                            <br>时 间:<input readonly id="cw_time" name="cw_time" class="form-control timepicker" type="text" placeholder=""></td>
                                     </tr>
                                     </tbody>
                                 </table>
+                                <script type="text/javascript">
+                                    $('#sub').click(function(){
+                                        $('#table_time').val( $('#table_time').val().replace(/-/g,''));
+                                        $('#workmanallqz_time').val( $('#workmanallqz_time').val().replace(/-/g,''));
+                                        $('#zcworkmanqz_time').val( $('#zcworkmanqz_time').val().replace(/-/g,''));
+                                        $('#workcaptainqz_time').val( $('#workcaptainqz_time').val().replace(/-/g,''));
+                                        $('#duchaqz_time').val( $('#duchaqz_time').val().replace(/-/g,''));
+                                        $('#workfzqz_time').val( $('#workfzqz_time').val().replace(/-/g,''));
+                                        $('#bossqz_time').val( $('#bossqz_time').val().replace(/-/g,''));
+                                        $('#ok_time').val( $('#ok_time').val().replace(/-/g,''));
+                                        $('#cw_time').val( $('#cw_time').val().replace(/-/g,''));
+                                    })
+                                    $(".timepicker").datetimepicker({
+                                        language: 'zh',
+                                        format: 'yyyy-mm-dd',
+                                        minView:'month'
+                                    }).on('changeDate',function(){
+                                        $(".datetimepicker").hide();
+                                    });
+                                </script>
                                 <div class="row">
                                     <div class="col-sm-4">核算:<input disabled name="hesuan" style="display: inline" class="form-control" type="text" placeholder=""></div>
                                     <div class="col-sm-4">初审:<input disabled name="chushen" style="display: inline" class="form-control" type="text" placeholder=""></div>

+ 16 - 8
resources/views/layouts/admin.blade.php

xqd xqd
@@ -18,9 +18,23 @@
          folder instead of downloading all of them to reduce the load. -->
     <link rel="stylesheet" href="{{asset('css/_all-skins.min.css')}}">
 
+    <link rel="stylesheet" href="{{asset('css/bootstrap-datetimepicker.min.css')}}">
+
     <!-- jQuery 2.2.0 -->
     <script src="{{asset('js/jQuery-2.2.0.min.js')}}"></script>
 
+    <!-- Bootstrap 3.3.6 -->
+    <script src="{{asset('js/bootstrap.min.js')}}"></script>
+    <!-- FastClick -->
+    <script src="{{asset('js/fastclick.min.js')}}"></script>
+    <!-- AdminLTE App -->
+    <script src="{{asset('js/app.min.js')}}"></script>
+    {{-- Layer --}}
+    <script src="{{asset('layer/layer.js')}}"></script>
+
+    <script src="{{ asset('js/bootstrap-datetimepicker.min.js') }}"></script>
+    <script src="{{ asset('js/bootstrap-datetimepicker.zh-CN.js') }}"  ></script>
+
     <![endif]-->
 
 </head>
@@ -137,12 +151,6 @@
     <div class="control-sidebar-bg"></div>
 </div>
 </body>
-<!-- Bootstrap 3.3.6 -->
-<script src="{{asset('js/bootstrap.min.js')}}"></script>
-<!-- FastClick -->
-<script src="{{asset('js/fastclick.min.js')}}"></script>
-<!-- AdminLTE App -->
-<script src="{{asset('js/app.min.js')}}"></script>
-{{-- Layer --}}
-<script src="{{asset('layer/layer.js')}}"></script>
+
+
 </html>

部分文件因为文件数量过多而无法显示