Geen omschrijving

newFanMonthAmountList.blade.php 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. @extends('admin/master')
  2. @section('content')
  3. <body>
  4. <div class="page-container">
  5. <div>
  6. <div>
  7. <input class="input-text" style="width:6%;text-align:center" type="text" value="所属团队"/>
  8. <select style="width:10%;text-align:center" id='team_id' name="team_id">
  9. {{--<option value="0" @if($team_id=='') selected @endif>-- 选择团队 --</option>--}}
  10. @foreach($teamlist as $v)
  11. <option value="{{$v['id']}}" @if($team_id==$v['id']) selected @endif>{{$v['name']}}</option>
  12. @endforeach
  13. </select>
  14. <input class="input-text" style="width:6%;text-align:center" type="text" value="开始时间"/>
  15. <input id="stime" type="text" onfocus="WdatePicker({ dateFmt:'yyyy-MM' })" class="input-text Wdate" style="width:12%;text-align:center;margin-left: -5px" name="stime" value="{{$stime?$stime:''}}">
  16. <input class="input-text" style="width:6%;text-align:center" type="text" value="结束时间"/>
  17. <input id="etime"type="text" onfocus="WdatePicker({ dateFmt:'yyyy-MM' })" class="input-text Wdate" style="width:12%;text-align:center;margin-left: -5px" name="etime" value="{{$etime?$etime:''}}">
  18. <a class="btn btn-primary radius" style="margin-left: 5px" onclick="user_search()" href="javascript:;">搜索</a>
  19. <!--a class="btn btn-primary radius" onclick="statistics_export()" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 导出数据</a-->
  20. </div>
  21. </div>
  22. <div class="mt-20">
  23. <table class="table table-border table-bordered table-bg table-hover table-sort">
  24. <thead>
  25. <tr class="text-c">
  26. <th>时间</th>
  27. <th>加粉数</th>
  28. @foreach($columns as $v)
  29. <th>@if($v==0) 当月销售额 @else {{$v}}月后销售额@endif</th>
  30. @endforeach
  31. </tr>
  32. </thead>
  33. <tbody>
  34. @if($result)
  35. @foreach($result as $k=>$a)
  36. <tr class="text-c" style=" text-align:center;">
  37. <td>{{$k}}</td>
  38. <td>{{$a['fan_add']}}</td>
  39. @foreach($a['amount'] as $val)
  40. <td>{{$val}}</td>
  41. @endforeach
  42. </tr>
  43. @endforeach
  44. @endif
  45. </tbody>
  46. </table>
  47. </div>
  48. <div id="page" class="page_div"></div>
  49. </div>
  50. <!--_footer 作为公共模版分离出去-->
  51. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  52. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  53. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  54. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  55. <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
  56. <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  57. <!--/_footer 作为公共模版分离出去-->
  58. <!--/_footer 作为公共模版分离出去-->
  59. <script type="text/javascript">
  60. function user_search(){
  61. var stime = $('#stime').val();
  62. var etime = $('#etime').val();
  63. var team_id = $('#team_id').val();
  64. location.href = 'newFanMonthAmountList?stime='+stime+'&etime='+etime+'&team_id='+team_id;
  65. }
  66. </script>
  67. </body>
  68. @endsection