GGican 8 years ago
parent
commit
4e27f78d51

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

xqd
@@ -348,6 +348,7 @@ class TableController extends CommonController
 //        编辑表单提交
     public function submit(Requests\TableRequest $request, $table_id)
     {
+
         $user = session('user');
         $input = $request->only('project_name', 'bzc_name', 'bzc_cardid', 'bzc_addr', 'bzc_area', 'house_type', 'bzc_tel', 'used', 'num', 'table_time', 'sub_description');
         $child_data = $request->except('_token');

+ 117 - 116
resources/views/admin/edit_table/table_eight.blade.php

xqd xqd
@@ -378,6 +378,29 @@
                                 </div>
                             </div>
                         </div>
+                        <div class="row" id="bottom_button">
+                            <div class="col-sm-8"></div>
+                            <div class="col-sm-4">
+                                @if($table->status == null  || $table->status<2)
+                                    @if($user->role == 0 && $table->status == 0)
+                                        <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/save/'.$table_id.'/update') }}'" class="btn btn-success">
+                                            保存</button>
+                                    @endif
+                                    @if($user->role == $table->status)
+                                        @if($table->status == 0)
+                                            <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">提交</button>
+                                        @else
+                                            <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/sub/'.$table_id) }}'" class="btn btn-primary">
+                                                提交</button>
+                                        @endif
+                                    @endif
+                                    <a href="{{ url('/on_table') }}" class="btn btn-info">返回</a>
+                                @else
+                                    <a href="{{ url('/') }}" class="btn btn-info">返回</a>
+                                    <a onclick="printed('print')" class="btn btn-success">打印</a>
+                                @endif
+                            </div>
+                        </div>
                     </div>
 
                         {{--model--}}
@@ -403,137 +426,115 @@
                         {{--end model--}}
 
                         </form>
+                </div>
+                <!-- /.box-body -->
+            </div>
+            <!-- /.box -->
 
-                    <script type="text/javascript">
-                        $(".form_datetime").datetimepicker({
-                            language: 'zh',
-                            format: 'yyyy年mm月dd日',
-                            minView:'month'
-                        }).on('changeDate',function(){
-                            $(".datetimepicker").hide();
-                        });
+            <script type="text/javascript">
+                $(".form_datetime").datetimepicker({
+                    language: 'zh',
+                    format: 'yyyy年mm月dd日',
+                    minView:'month'
+                }).on('changeDate',function(){
+                    $(".datetimepicker").hide();
+                });
 
-                        function nextPage(){
-                            var json = [];
-                            var chae = $('#data59').val();
-                            //差额不够时隐藏下一页
-                            if(chae == ''||chae == 0 ){
-                                document.getElementById('nextid').style.display = "none";
-                            }
-                            //批量赋值在数组里
-                            $(".next").each(function(){
-                                json[this.name] =this.value;
-                                this.value = ''; //清空当前页数据,伪第二页
-                            });
+                function nextPage(){
+                    var json = [];
+                    var chae = $('#data59').val();
+                    //差额不够时隐藏下一页
+                    if(chae == ''||chae == 0 ){
+                        document.getElementById('nextid').style.display = "none";
+                    }
+                    //批量赋值在数组里
+                    $(".next").each(function(){
+                        json[this.name] =this.value;
+                        this.value = ''; //清空当前页数据,伪第二页
+                    });
 
-                            //赋值下一页的总金额
-                            $('#data432').val(chae);
+                    //赋值下一页的总金额
+                    $('#data432').val(chae);
 
-                            jsons.push(json);
-                            hours += 1;
-                            $('#hours').val(hours);
+                    jsons.push(json);
+                    hours += 1;
+                    $('#hours').val(hours);
 
-                            console.log(jsons);
+                    console.log(jsons);
 
-                            return jsons;
-                        }
+                    return jsons;
+                }
 
-                        var jsons = [];
+                var jsons = [];
 
-                        function getdata(){
-                            for (var j = 0; j <{{ count($table->jsons)}}; j++) {
-                                var json = {};
-                                $(".next" + j).each(function () {
-                                    json[this.name] = this.value;
-                                });
-                                jsons.push(json);
-                            }
-                            console.log(jsons);
-                            return jsons;
-                        }
+                function getdata(){
+                    for (var j = 0; j <{{ count($table->jsons)}}; j++) {
+                        var json = {};
+                        $(".next" + j).each(function () {
+                            json[this.name] = this.value;
+                        });
+                        jsons.push(json);
+                    }
+                    console.log(jsons);
+                    return jsons;
+                }
 
-                        $('form').submit(function(){
-                            jsons = getdata();
-                            var temp = JSON.stringify(jsons);
-                            $('#json').val(temp);
+                $('form').submit(function(){
+                    jsons = getdata();
+                    var temp = JSON.stringify(jsons);
+                    $('#json').val(temp);
 
-                            console.log(temp);
+                    console.log(temp);
 
-                            return true;
-                        });
+                    return true;
+                });
 
-                        $(function(){
-                            add(data252,data251);
-                            add(data262,data261);
-                            add(data272,data271);
-                            add(data42_2,data42_1);
-                            add(data432,data431);
-                        });
-                        function add(one,add){
-                            var num = $(one).val();
+                $(function(){
+                    add(data252,data251);
+                    add(data262,data261);
+                    add(data272,data271);
+                    add(data42_2,data42_1);
+                    add(data432,data431);
+                });
+                function add(one,add){
+                    var num = $(one).val();
 //                            if (!/^\d*(\.\d*)?$/.test(num)) { alert("Number is wrong!"); return "Number is wrong!"; }
-                            var AA = new Array("零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖");
-                            var BB = new Array("", "拾", "佰", "仟", "萬", "億", "点", "");
-                            var a = ("" + num).replace(/(^0*)/g, "").split("."), k = 0, re = "";
-                            for (var i = a[0].length - 1; i >= 0; i--) {
-                                switch (k) {
-                                    case 0: re = BB[7] + re; break;
-                                    case 4: if (!new RegExp("0{4}\\d{" + (a[0].length - i - 1) + "}$").test(a[0]))
-                                        re = BB[4] + re; break;
-                                    case 8: re = BB[5] + re; BB[7] = BB[5]; k = 0; break;
-                                }
-                                if (k % 4 == 2 && a[0].charAt(i + 2) != 0 && a[0].charAt(i + 1) == 0) re = AA[0] + re;
-                                if (a[0].charAt(i) != 0) re = AA[a[0].charAt(i)] + BB[k % 4] + re; k++;
-                            }
-
-                            if (a.length > 1) //加上小数部分(如果有小数部分)
-                            {
-                                re += BB[6];
-                                for (var i = 0; i < a[1].length; i++) re += AA[a[1].charAt(i)];
-                            }
-                            $(add).val(re);
-                        }
-                        function printed(printpage)
-                        {
-                            var headstr = "<html><head><title></title></head><body>";
-                            var footstr = "</body>";
-                            var newstr = document.all.item(printpage).innerHTML;
-                            var oldstr = document.body.innerHTML;
-                            document.body.innerHTML = headstr+newstr+footstr;
-                            window.print();
-                            document.body.innerHTML = oldstr;
-                            return false;
+                    var AA = new Array("零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖");
+                    var BB = new Array("", "拾", "佰", "仟", "萬", "億", "点", "");
+                    var a = ("" + num).replace(/(^0*)/g, "").split("."), k = 0, re = "";
+                    for (var i = a[0].length - 1; i >= 0; i--) {
+                        switch (k) {
+                            case 0: re = BB[7] + re; break;
+                            case 4: if (!new RegExp("0{4}\\d{" + (a[0].length - i - 1) + "}$").test(a[0]))
+                                re = BB[4] + re; break;
+                            case 8: re = BB[5] + re; BB[7] = BB[5]; k = 0; break;
                         }
-                    </script>
-                </div>
-                <!-- /.box-body -->
-            </div>
-            <!-- /.box -->
-            <div class="row">
-                <div class="col-sm-8"></div>
-                <div class="col-sm-4">
-                    @if($table->status == null  || $table->status<3)
-                        @if($user->role == 0 && $table->status == 0)
-                            <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/save/'.$table_id.'/update') }}'" class="btn btn-success">
-                                保存</button>
-                        @endif
-                        @if($user->role == $table->status)
-                            @if($table->status == 0)
-                                <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">提交</button>
-                            @else
-                                <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/sub/'.$table_id) }}'" class="btn btn-primary">
-                                    提交</button>
-                            @endif
-                        @endif
-                        <a href="{{ url('/on_table') }}" class="btn btn-info">返回</a>
-                        <a onclick="printed('print')" class="btn btn-success">打印</a>
-                    @else
-                        <a href="{{ url('/') }}" class="btn btn-info">返回</a>
-                        <a onclick="printed('print')" class="btn btn-success">打印</a>
-                    @endif
-                </div>
-            </div>
+                        if (k % 4 == 2 && a[0].charAt(i + 2) != 0 && a[0].charAt(i + 1) == 0) re = AA[0] + re;
+                        if (a[0].charAt(i) != 0) re = AA[a[0].charAt(i)] + BB[k % 4] + re; k++;
+                    }
+
+                    if (a.length > 1) //加上小数部分(如果有小数部分)
+                    {
+                        re += BB[6];
+                        for (var i = 0; i < a[1].length; i++) re += AA[a[1].charAt(i)];
+                    }
+                    $(add).val(re);
+                }
+                function printed(printpage)
+                {
+                    $('#bottom_button').hide();
+                    var headstr = "<html><head><title></title></head><body>";
+                    var footstr = "</body>";
+                    var newstr = document.all.item(printpage).innerHTML;
+                    var oldstr = document.body.innerHTML;
+                    document.body.innerHTML = headstr+newstr+footstr;
+                    window.print();
+                    document.body.innerHTML = oldstr;
+                    $('#bottom_button').show();
 
+                    return false;
+                }
+            </script>
         </section>
         <!-- /.content -->
     </div>

+ 26 - 24
resources/views/admin/edit_table/table_five.blade.php

xqd xqd xqd xqd
@@ -195,7 +195,29 @@
                             </div>
                         </div>
                         {{--end model--}}
-
+                        <div class="row" id="bottom_button">
+                            <div class="col-sm-8"></div>
+                            <div class="col-sm-4">
+                                @if($table->status == null  || $table->status<3)
+                                    @if($user->role == 0 && $table->status == 0)
+                                        <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/save/'.$table_id.'/update') }}'" class="btn btn-success">
+                                            保存</button>
+                                    @endif
+                                    @if($user->role == $table->status)
+                                        @if($table->status == 0)
+                                            <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">提交</button>
+                                        @else
+                                            <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/sub/'.$table_id) }}'" class="btn btn-primary">
+                                                提交</button>
+                                        @endif
+                                    @endif
+                                    <a href="{{ url('/on_table') }}" class="btn btn-info">返回</a>
+                                @else
+                                    <a href="{{ url('/') }}" class="btn btn-info">返回</a>
+                                    <a onclick="printed('print')" class="btn btn-success">打印</a>
+                                @endif
+                            </div>
+                        </div>
                         </form>
                     <script type="text/javascript">
 
@@ -233,6 +255,7 @@
                         });
                         function printed(printpage)
                         {
+                            $('#bottom_button').hide();
                             var headstr = "<html><head><title></title></head><body>";
                             var footstr = "</body>";
                             var newstr = document.all.item(printpage).innerHTML;
@@ -240,6 +263,8 @@
                             document.body.innerHTML = headstr+newstr+footstr;
                             window.print();
                             document.body.innerHTML = oldstr;
+                            $('#bottom_button').show();
+
                             return false;
                         }
                     </script>
@@ -247,29 +272,6 @@
                 <!-- /.box-body -->
             </div>
             <!-- /.box -->
-            <div class="row">
-                <div class="col-sm-8"></div>
-                <div class="col-sm-4">
-                    @if($table->status == null  || $table->status<3)
-                        @if($user->role == 0 && $table->status == 0)
-                            <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/save/'.$table_id.'/update') }}'" class="btn btn-success">
-                                保存</button>
-                        @endif
-                        @if($user->role == $table->status)
-                            @if($table->status == 0)
-                                <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">提交</button>
-                            @else
-                                <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/sub/'.$table_id) }}'" class="btn btn-primary">
-                                    提交</button>
-                            @endif
-                        @endif
-                        <a href="{{ url('/on_table') }}" class="btn btn-info">返回</a>
-                    @else
-                        <a href="{{ url('/') }}" class="btn btn-info">返回</a>
-                        <a onclick="printed('print')" class="btn btn-success">打印</a>
-                    @endif
-                </div>
-            </div>
         </section>
         <!-- /.content -->
     </div>

+ 26 - 23
resources/views/admin/edit_table/table_four.blade.php

xqd xqd xqd xqd
@@ -169,6 +169,30 @@
                         </div>
                         {{--end model--}}
 
+                        <div class="row" id="bottom_button">
+                            <div class="col-sm-8"></div>
+                            <div class="col-sm-4">
+                                @if($table->status == null  || $table->status<3)
+                                    @if($user->role == 0 && $table->status == 0)
+                                        <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/save/'.$table_id.'/update') }}'" class="btn btn-success">
+                                            保存</button>
+                                    @endif
+                                    @if($user->role == $table->status)
+                                        @if($table->status == 0)
+                                            <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">提交</button>
+                                        @else
+                                            <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/sub/'.$table_id) }}'" class="btn btn-primary">
+                                                提交</button>
+                                        @endif
+                                    @endif
+                                    <a href="{{ url('/on_table') }}" class="btn btn-info">返回</a>
+                                @else
+                                    <a href="{{ url('/') }}" class="btn btn-info">返回</a>
+                                    <a onclick="printed('print')" class="btn btn-success">打印</a>
+                                @endif
+                            </div>
+                        </div>
+
                         </form>
                     <script type="text/javascript">
 
@@ -206,6 +230,7 @@
                         });
                         function printed(printpage)
                         {
+                            $('#bottom_button').hide();
                             var headstr = "<html><head><title></title></head><body>";
                             var footstr = "</body>";
                             var newstr = document.all.item(printpage).innerHTML;
@@ -213,6 +238,7 @@
                             document.body.innerHTML = headstr+newstr+footstr;
                             window.print();
                             document.body.innerHTML = oldstr;
+                            $('#bottom_button').show();
                             return false;
                         }
                     </script>
@@ -220,29 +246,6 @@
                 <!-- /.box-body -->
             </div>
             <!-- /.box -->
-            <div class="row">
-                <div class="col-sm-8"></div>
-                <div class="col-sm-4">
-                    @if($table->status == null  || $table->status<3)
-                        @if($user->role == 0 && $table->status == 0)
-                            <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/save/'.$table_id.'/update') }}'" class="btn btn-success">
-                                保存</button>
-                        @endif
-                        @if($user->role == $table->status)
-                            @if($table->status == 0)
-                                <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">提交</button>
-                            @else
-                                <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/sub/'.$table_id) }}'" class="btn btn-primary">
-                                    提交</button>
-                            @endif
-                        @endif
-                        <a href="{{ url('/on_table') }}" class="btn btn-info">返回</a>
-                    @else
-                        <a href="{{ url('/') }}" class="btn btn-info">返回</a>
-                        <a onclick="printed('print')" class="btn btn-success">打印</a>
-                    @endif
-                </div>
-            </div>
 
         </section>
         <!-- /.content -->

+ 25 - 25
resources/views/admin/edit_table/table_nine.blade.php

xqd xqd xqd xqd
@@ -367,7 +367,29 @@
                             </div>
                         </div>
                         {{--end model--}}
-
+                        <div class="row" id="bottom_button">
+                            <div class="col-sm-8"></div>
+                            <div class="col-sm-4">
+                                @if($table->status == null  || $table->status<3)
+                                    @if($user->role == 0 && $table->status == 0)
+                                        <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/save/'.$table_id.'/update') }}'" class="btn btn-success">
+                                            保存</button>
+                                    @endif
+                                    @if($user->role == $table->status)
+                                        @if($table->status == 0)
+                                            <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">提交</button>
+                                        @else
+                                            <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/sub/'.$table_id) }}'" class="btn btn-primary">
+                                                提交</button>
+                                        @endif
+                                    @endif
+                                    <a href="{{ url('/on_table') }}" class="btn btn-info">返回</a>
+                                @else
+                                    <a href="{{ url('/') }}" class="btn btn-info">返回</a>
+                                    <a onclick="printed('print')" class="btn btn-success">打印</a>
+                                @endif
+                            </div>
+                        </div>
                         </form>
                     <script type="text/javascript">
                         $(".form_datetime").datetimepicker({
@@ -408,6 +430,7 @@
                         }
                         function printed(printpage)
                         {
+                            $('#bottom_button').hide();
                             var headstr = "<html><head><title></title></head><body>";
                             var footstr = "</body>";
                             var newstr = document.all.item(printpage).innerHTML;
@@ -415,6 +438,7 @@
                             document.body.innerHTML = headstr+newstr+footstr;
                             window.print();
                             document.body.innerHTML = oldstr;
+                            $('#bottom_button').show();
                             return false;
                         }
                     </script>
@@ -422,30 +446,6 @@
                 <!-- /.box-body -->
             </div>
             <!-- /.box -->
-            <div class="row">
-                <div class="col-sm-8"></div>
-                <div class="col-sm-4">
-                    @if($table->status == null  || $table->status<3)
-                        @if($user->role == 0 && $table->status == 0)
-                            <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/save/'.$table_id.'/update') }}'" class="btn btn-success">
-                                保存</button>
-                        @endif
-                        @if($user->role == $table->status)
-                            @if($table->status == 0)
-                                <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">提交</button>
-                            @else
-                                <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/sub/'.$table_id) }}'" class="btn btn-primary">
-                                    提交</button>
-                            @endif
-                        @endif
-                        <a href="{{ url('/on_table') }}" class="btn btn-info">返回</a>
-                    @else
-                        <a href="{{ url('/') }}" class="btn btn-info">返回</a>
-                        <a onclick="printed('print')" class="btn btn-success">打印</a>
-                    @endif
-                </div>
-            </div>
-
         </section>
         <!-- /.content -->
     </div>

+ 25 - 24
resources/views/admin/edit_table/table_one.blade.php

xqd xqd
@@ -243,6 +243,7 @@
                         });
                         function printed(printpage)
                         {
+                            $('#bottom_button').hide();
                             var headstr = "<html><head><title></title></head><body>";
                             var footstr = "</body>";
                             var newstr = document.all.item(printpage).innerHTML;
@@ -250,38 +251,38 @@
                             document.body.innerHTML = headstr+newstr+footstr;
                             window.print();
                             document.body.innerHTML = oldstr;
+                            $('#bottom_button').show();
                             return false;
                         }
                     </script>
+                    <div class="row" id="bottom_button">
+                        <div class="col-sm-8"></div>
+                        <div class="col-sm-4">
+                            @if($table->status == null  || $table->status<3)
+                                @if($user->role == 0 && $table->status == 0)
+                                    <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/save/'.$table_id.'/update') }}'" class="btn btn-success">
+                                        保存</button>
+                                @endif
+                                @if($user->role == $table->status)
+                                    @if($table->status == 0)
+                                        <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">提交</button>
+                                    @else
+                                        <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/sub/'.$table_id) }}'" class="btn btn-primary">
+                                            提交</button>
+                                    @endif
+                                @endif
+                                <a href="{{ url('/on_table') }}" class="btn btn-info">返回</a>
+                            @else
+                                <a href="{{ url('/') }}" class="btn btn-info">返回</a>
+                                <a onclick="printed('print')" class="btn btn-success">打印</a>
+                            @endif
+                        </div>
+                    </div>
     </form>
             </div>
             <!-- /.box-body -->
         </div>
         <!-- /.box -->
-        <div class="row">
-            <div class="col-sm-8"></div>
-            <div class="col-sm-4">
-                @if($table->status == null  || $table->status<3)
-                    @if($user->role == 0 && $table->status == 0)
-                        <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/save/'.$table_id.'/update') }}'" class="btn btn-success">
-                            保存</button>
-                    @endif
-                    @if($user->role == $table->status)
-                        @if($table->status == 0)
-                            <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">提交</button>
-                        @else
-                            <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/sub/'.$table_id) }}'" class="btn btn-primary">
-                                提交</button>
-                        @endif
-                    @endif
-                    <a href="{{ url('/on_table') }}" class="btn btn-info">返回</a>
-                @else
-                    <a href="{{ url('/') }}" class="btn btn-info">返回</a>
-                    <a onclick="printed('print')" class="btn btn-success">打印</a>
-                @endif
-            </div>
-        </div>
-
     </section>
     <!-- /.content -->
 </div>

+ 25 - 25
resources/views/admin/edit_table/table_seven.blade.php

xqd xqd xqd xqd
@@ -339,7 +339,29 @@
                             </div>
                         </div>
                         {{--end model--}}
-
+                        <div class="row" id="bottom_button">
+                            <div class="col-sm-8"></div>
+                            <div class="col-sm-4">
+                                @if($table->status == null  || $table->status<3)
+                                    @if($user->role == 0 && $table->status == 0)
+                                        <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/save/'.$table_id.'/update') }}'" class="btn btn-success">
+                                            保存</button>
+                                    @endif
+                                    @if($user->role == $table->status)
+                                        @if($table->status == 0)
+                                            <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">提交</button>
+                                        @else
+                                            <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/sub/'.$table_id) }}'" class="btn btn-primary">
+                                                提交</button>
+                                        @endif
+                                    @endif
+                                    <a href="{{ url('/on_table') }}" class="btn btn-info">返回</a>
+                                @else
+                                    <a href="{{ url('/') }}" class="btn btn-info">返回</a>
+                                    <a onclick="printed('print')" class="btn btn-success">打印</a>
+                                @endif
+                            </div>
+                        </div>
                         </form>
                     <script type="text/javascript">
                         $(".form_datetime").datetimepicker({
@@ -383,6 +405,7 @@
                         }
                         function printed(printpage)
                         {
+                            $('#bottom_button').hide();
                             var headstr = "<html><head><title></title></head><body>";
                             var footstr = "</body>";
                             var newstr = document.all.item(printpage).innerHTML;
@@ -390,6 +413,7 @@
                             document.body.innerHTML = headstr+newstr+footstr;
                             window.print();
                             document.body.innerHTML = oldstr;
+                            $('#bottom_button').show();
                             return false;
                         }
 
@@ -398,30 +422,6 @@
                 <!-- /.box-body -->
             </div>
             <!-- /.box -->
-            <div class="row">
-                <div class="col-sm-8"></div>
-                <div class="col-sm-4">
-                    @if($table->status == null  || $table->status<3)
-                        @if($user->role == 0 && $table->status == 0)
-                            <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/save/'.$table_id.'/update') }}'" class="btn btn-success">
-                                保存</button>
-                        @endif
-                        @if($user->role == $table->status)
-                            @if($table->status == 0)
-                                <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">提交</button>
-                            @else
-                                <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/sub/'.$table_id) }}'" class="btn btn-primary">
-                                    提交</button>
-                            @endif
-                        @endif
-                        <a href="{{ url('/on_table') }}" class="btn btn-info">返回</a>
-                    @else
-                        <a href="{{ url('/') }}" class="btn btn-info">返回</a>
-                        <a onclick="printed('print')" class="btn btn-success">打印</a>
-                    @endif
-                </div>
-            </div>
-
         </section>
         <!-- /.content -->
     </div>

+ 25 - 25
resources/views/admin/edit_table/table_six.blade.php

xqd xqd xqd xqd
@@ -167,7 +167,29 @@
                             </div>
                         </div>
                         {{--end model--}}
-
+                        <div class="row" id="bottom_button">
+                            <div class="col-sm-8"></div>
+                            <div class="col-sm-4">
+                                @if($table->status == null  || $table->status<3)
+                                    @if($user->role == 0 && $table->status == 0)
+                                        <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/save/'.$table_id.'/update') }}'" class="btn btn-success">
+                                            保存</button>
+                                    @endif
+                                    @if($user->role == $table->status)
+                                        @if($table->status == 0)
+                                            <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">提交</button>
+                                        @else
+                                            <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/sub/'.$table_id) }}'" class="btn btn-primary">
+                                                提交</button>
+                                        @endif
+                                    @endif
+                                    <a href="{{ url('/on_table') }}" class="btn btn-info">返回</a>
+                                @else
+                                    <a href="{{ url('/') }}" class="btn btn-info">返回</a>
+                                    <a onclick="printed('print')" class="btn btn-success">打印</a>
+                                @endif
+                            </div>
+                        </div>
                         </form>
 
                     <script type="text/javascript">
@@ -236,6 +258,7 @@
                         }
                         function printed(printpage)
                         {
+                            $('#bottom_button').hide();
                             var headstr = "<html><head><title></title></head><body>";
                             var footstr = "</body>";
                             var newstr = document.all.item(printpage).innerHTML;
@@ -243,6 +266,7 @@
                             document.body.innerHTML = headstr+newstr+footstr;
                             window.print();
                             document.body.innerHTML = oldstr;
+                            $('#bottom_button').show();
                             return false;
                         }
                     </script>
@@ -250,30 +274,6 @@
                 <!-- /.box-body -->
             </div>
             <!-- /.box -->
-            <div class="row">
-                <div class="col-sm-8"></div>
-                <div class="col-sm-4">
-                    @if($table->status == null  || $table->status<3)
-                        @if($user->role == 0 && $table->status == 0)
-                            <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/save/'.$table_id.'/update') }}'" class="btn btn-success">
-                                保存</button>
-                        @endif
-                        @if($user->role == $table->status)
-                            @if($table->status == 0)
-                                <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">提交</button>
-                            @else
-                                <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/sub/'.$table_id) }}'" class="btn btn-primary">
-                                    提交</button>
-                            @endif
-                        @endif
-                        <a href="{{ url('/on_table') }}" class="btn btn-info">返回</a>
-                    @else
-                        <a href="{{ url('/') }}" class="btn btn-info">返回</a>
-                        <a onclick="printed('print')" class="btn btn-success">打印</a>
-                    @endif
-                </div>
-            </div>
-
         </section>
         <!-- /.content -->
     </div>

+ 26 - 24
resources/views/admin/edit_table/table_three.blade.php

xqd xqd xqd xqd
@@ -186,7 +186,29 @@
                             </div>
                         </div>
                         {{--end model--}}
-
+                        <div class="row" id="bottom_button">
+                            <div class="col-sm-8"></div>
+                            <div class="col-sm-4">
+                                @if($table->status == null  || $table->status<3)
+                                    @if($user->role == 0 && $table->status == 0)
+                                        <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/save/'.$table_id.'/update') }}'" class="btn btn-success">
+                                            保存</button>
+                                    @endif
+                                    @if($user->role == $table->status)
+                                        @if($table->status == 0)
+                                            <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">提交</button>
+                                        @else
+                                            <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/sub/'.$table_id) }}'" class="btn btn-primary">
+                                                提交</button>
+                                        @endif
+                                    @endif
+                                    <a href="{{ url('/on_table') }}" class="btn btn-info">返回</a>
+                                @else
+                                    <a href="{{ url('/') }}" class="btn btn-info">返回</a>
+                                    <a onclick="printed('print')" class="btn btn-success">打印</a>
+                                @endif
+                            </div>
+                        </div>
                         </form>
                     <script type="text/javascript">
 
@@ -224,6 +246,7 @@
 
                         function printed(printpage)
                         {
+                            $('#bottom_button').hide();
                             var headstr = "<html><head><title></title></head><body>";
                             var footstr = "</body>";
                             var newstr = document.all.item(printpage).innerHTML;
@@ -231,6 +254,8 @@
                             document.body.innerHTML = headstr+newstr+footstr;
                             window.print();
                             document.body.innerHTML = oldstr;
+                            $('#bottom_button').show();
+
                             return false;
                         }
                     </script>
@@ -238,29 +263,6 @@
                 <!-- /.box-body -->
             </div>
             <!-- /.box -->
-            <div class="row">
-                <div class="col-sm-8"></div>
-                <div class="col-sm-4">
-                    @if($table->status == null  || $table->status<3)
-                        @if($user->role == 0 && $table->status == 0)
-                            <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/save/'.$table_id.'/update') }}'" class="btn btn-success">
-                                保存</button>
-                        @endif
-                        @if($user->role == $table->status)
-                            @if($table->status == 0)
-                                <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">提交</button>
-                            @else
-                                <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/sub/'.$table_id) }}'" class="btn btn-primary">
-                                    提交</button>
-                            @endif
-                        @endif
-                        <a href="{{ url('/on_table') }}" class="btn btn-info">返回</a>
-                    @else
-                        <a href="{{ url('/') }}" class="btn btn-info">返回</a>
-                        <a onclick="printed('print')" class="btn btn-success">打印</a>
-                    @endif
-                </div>
-            </div>
 
         </section>
         <!-- /.content -->

+ 26 - 24
resources/views/admin/edit_table/table_two.blade.php

xqd xqd xqd xqd
@@ -178,6 +178,29 @@
                             </div>
                         </div>
                         {{--end model--}}
+                        <div class="row" id="bottom_button">
+                            <div class="col-sm-8"></div>
+                            <div class="col-sm-4">
+                                @if($table->status == null  || $table->status<3)
+                                    @if($user->role == 0 && $table->status == 0)
+                                        <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/save/'.$table_id.'/update') }}'" class="btn btn-success">
+                                            保存</button>
+                                    @endif
+                                    @if($user->role == $table->status)
+                                        @if($table->status == 0)
+                                            <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">提交</button>
+                                        @else
+                                            <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/sub/'.$table_id) }}'" class="btn btn-primary">
+                                                提交</button>
+                                        @endif
+                                    @endif
+                                    <a href="{{ url('/on_table') }}" class="btn btn-info">返回</a>
+                                @else
+                                    <a href="{{ url('/') }}" class="btn btn-info">返回</a>
+                                    <a onclick="printed('print')" class="btn btn-success">打印</a>
+                                @endif
+                            </div>
+                        </div>
                         </form>
                     <script type="text/javascript">
 
@@ -214,6 +237,7 @@
                         });
                         function printed(printpage)
                         {
+                            $('#bottom_button').hide();
                             var headstr = "<html><head><title></title></head><body>";
                             var footstr = "</body>";
                             var newstr = document.all.item(printpage).innerHTML;
@@ -221,6 +245,8 @@
                             document.body.innerHTML = headstr+newstr+footstr;
                             window.print();
                             document.body.innerHTML = oldstr;
+                            $('#bottom_button').show();
+
                             return false;
                         }
                     </script>
@@ -228,30 +254,6 @@
                 <!-- /.box-body -->
             </div>
             <!-- /.box -->
-            <div class="row">
-                <div class="col-sm-8"></div>
-                <div class="col-sm-4">
-                    @if($table->status == null  || $table->status<3)
-                        @if($user->role == 0 && $table->status == 0)
-                            <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/save/'.$table_id.'/update') }}'" class="btn btn-success">
-                                保存</button>
-                        @endif
-                        @if($user->role == $table->status)
-                            @if($table->status == 0)
-                                <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">提交</button>
-                            @else
-                                <button id="sub" type="submit" onclick="javascript:this.form.action='{{ url('/table/sub/'.$table_id) }}'" class="btn btn-primary">
-                                    提交</button>
-                            @endif
-                        @endif
-                        <a href="{{ url('/on_table') }}" class="btn btn-info">返回</a>
-                    @else
-                        <a href="{{ url('/') }}" class="btn btn-info">返回</a>
-                        <a onclick="printed('print')" class="btn btn-success">打印</a>
-                    @endif
-                </div>
-            </div>
-
         </section>
         <!-- /.content -->
     </div>