|
@@ -1,29 +1,11 @@
|
|
-@extends('layouts.admin')
|
|
|
|
-@section('content')
|
|
|
|
- <!--左侧菜单栏-->
|
|
|
|
-@include('admin.left-sidebar')
|
|
|
|
-<!-- 内容 -->
|
|
|
|
-<link rel="stylesheet" type="text/css" href="{{ url('/css/jquery.dataTables.min.css') }}">
|
|
|
|
-<script type="text/javascript" charset="utf8" src="{{ url('/js/jquery.dataTables.min.js') }}"></script>
|
|
|
|
-<div class="content-wrapper">
|
|
|
|
- <!-- Content Header (Page header) -->
|
|
|
|
- <section class="content-header">
|
|
|
|
- <h1>
|
|
|
|
- 表单统计
|
|
|
|
- <small>{{ $table_name }}</small>
|
|
|
|
- </h1>
|
|
|
|
- <ol class="breadcrumb">
|
|
|
|
- <li><a href="{{ url('/')}}"><i class="fa fa-dashboard"></i> 主页</a></li>
|
|
|
|
- <li><a href="#">表单统计</a></li>
|
|
|
|
- </ol>
|
|
|
|
- </section>
|
|
|
|
- <!-- Main content -->
|
|
|
|
- <section class="content">
|
|
|
|
|
|
+
|
|
|
|
+@extends('layouts.datatable')
|
|
|
|
+ @section('table')
|
|
<div class="row">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="col-md-12">
|
|
<div class="box box-primary">
|
|
<div class="box box-primary">
|
|
<div class="box-header with-border">
|
|
<div class="box-header with-border">
|
|
- <h3 class="box-title">重组二维数组测试</h3>
|
|
|
|
|
|
+ <h3 class="box-title">统计数据</h3>
|
|
</div>
|
|
</div>
|
|
<div class="box-body">
|
|
<div class="box-body">
|
|
<div class="dataTables_wrapper form-inline dt-bootstrap">
|
|
<div class="dataTables_wrapper form-inline dt-bootstrap">
|
|
@@ -36,16 +18,16 @@
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody>
|
|
<tbody>
|
|
- @foreach($table as $num=>$data)
|
|
|
|
- <tr>
|
|
|
|
- <td>{{ $data->bzc_name }}</td>
|
|
|
|
- <td>{{ $data->area }}</td>
|
|
|
|
- <td>{{ $data->total_money }}</td>
|
|
|
|
- <td>{{ $data->price }}</td>
|
|
|
|
- <td>{{ $data->jchae }}</td>
|
|
|
|
- <td>{{ $data->tchae }}</td>
|
|
|
|
- </tr>
|
|
|
|
- @endforeach
|
|
|
|
|
|
+ @foreach($table as $num=>$data)
|
|
|
|
+ <tr>
|
|
|
|
+ <td>{{ $data->bzc_name }}</td>
|
|
|
|
+ <td>{{ $data->area }}</td>
|
|
|
|
+ <td>{{ $data->total_money }}</td>
|
|
|
|
+ <td>{{ $data->price }}</td>
|
|
|
|
+ <td>{{ $data->jchae }}</td>
|
|
|
|
+ <td>{{ $data->tchae }}</td>
|
|
|
|
+ </tr>
|
|
|
|
+ @endforeach
|
|
</tbody>
|
|
</tbody>
|
|
</table>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
@@ -54,32 +36,4 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </section>
|
|
|
|
- <!-- /.content -->
|
|
|
|
-</div>
|
|
|
|
-<!-- /.content-wrapper -->
|
|
|
|
-
|
|
|
|
-<script>
|
|
|
|
-
|
|
|
|
- $(document).ready(function() {
|
|
|
|
- $('#table').dataTable({
|
|
|
|
- "aLengthMenu" : [ [ 10, 20, 50, -1 ], [ "10", "20", "50", "所有" ] ],
|
|
|
|
- "oLanguage" : {
|
|
|
|
- "sLengthMenu" : "每页显示 _MENU_ 条记录",
|
|
|
|
- "sZeroRecords" : "对不起,没有匹配的数据",
|
|
|
|
- "sInfo" : "第 _START_ - _END_ 条 / 共 _TOTAL_ 条数据",
|
|
|
|
- "sInfoEmpty" : "没有匹配的数据",
|
|
|
|
- "sInfoFiltered" : "(数据表中共 _MAX_ 条记录)",
|
|
|
|
- "sProcessing" : "正在加载中...",
|
|
|
|
- "sSearch" : "全文搜索:",
|
|
|
|
- "oPaginate" : {
|
|
|
|
- "sFirst" : "第一页",
|
|
|
|
- "sPrevious" : " 上一页 ",
|
|
|
|
- "sNext" : " 下一页 ",
|
|
|
|
- "sLast" : " 最后一页 "
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
- });
|
|
|
|
-</script>
|
|
|
|
-@endsection
|
|
|
|
|
|
+ @endsection
|