Brak opisu

throwDay.blade.php 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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-dd' })" 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-dd' })" 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 width="8%">日期</th>
  27. <th width="8%">当日投放金额</th>
  28. <th width="8%">当日公众号进粉</th>
  29. <th width="8%">当日进粉成本</th>
  30. <th width="8%">当日微信粉</th>
  31. <th width="8%">当日微信粉成本</th>
  32. <th width="8%">当日新粉ROI</th>
  33. <th width="8%">综合ROI</th>
  34. <th width="8%">导粉率</th>
  35. </tr>
  36. </thead>
  37. <tbody>
  38. @if($result)
  39. @foreach($result as $a)
  40. <tr class="text-c" style=" text-align:center;">
  41. <td>{{$a['dtime']}}</td>
  42. <td>{{$a['total_cost']}}</td>
  43. <td>{{$a['total_fan_add']}}</td>
  44. <td>{{$a['cost_fan']}}</td>
  45. <td>{{$a['wx_fan_add']}}</td>
  46. <td>{{$a['cost_wx_fan']}}</td>
  47. <td>{{$a['new_roi']}}</td>
  48. <td>{{$a['roi']}}</td>
  49. <td>{{$a['fan_rate']}}</td>
  50. </tr>
  51. @endforeach
  52. @endif
  53. </tbody>
  54. </table>
  55. </div>
  56. <div id="page" class="page_div"></div>
  57. </div>
  58. <!--_footer 作为公共模版分离出去-->
  59. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  60. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  61. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  62. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  63. <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
  64. <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  65. <!--/_footer 作为公共模版分离出去-->
  66. <!--/_footer 作为公共模版分离出去-->
  67. <script type="text/javascript">
  68. /*广告-添加*/
  69. function statistics_add(title){
  70. location.href="/admin/statistics/totalcreate";
  71. }
  72. /*广告-编辑*/
  73. function statistics_edit(title,id){
  74. location.href="/admin/statistics/totaledit/"+id;
  75. }
  76. /*广告-设为首页显示*/
  77. function up(obj,id){
  78. layer.confirm('确认要设为首页显示吗?',function(index){
  79. location.href='/admin/statistics/up/'+id;
  80. });
  81. }
  82. /*广告-移除*/
  83. function statistics_del(obj,id){
  84. layer.confirm('确认要删除吗?',function(index){
  85. location.href='/admin/statistics/totaldelete/'+id;
  86. });
  87. }
  88. /*广告-设为首页隐藏*/
  89. function down(obj,id){
  90. layer.confirm('确认要设为首页隐藏吗?',function(index){
  91. location.href='/admin/statistics/down/'+id;
  92. });
  93. }
  94. function user_search(){
  95. var stime = $('#stime').val();
  96. var etime = $('#etime').val();
  97. var team_id = $('#team_id').val();
  98. //var page = {{$page}};
  99. location.href = 'throwDay?stime='+stime+'&etime='+etime+'&team_id='+team_id;
  100. }
  101. //导出
  102. function statistics_export(){
  103. var stime = $('#stime').val();
  104. var etime = $('#etime').val();
  105. var team_id = $('#team_id').val();
  106. location.href = '/admin/statistics/throwDay_export?stime='+stime+'&etime='+etime+'&team_id='+team_id;
  107. }
  108. /*分页*/
  109. $("#page").paging({
  110. pageNo:{{$page}},
  111. totalPage: {{$pages}},
  112. totalSize: {{$count}},
  113. callback: function(num) {
  114. var stime = $('#stime').val();
  115. var etime = $('#etime').val();
  116. var team_id = $('#team_id').val();
  117. location.href='throwDay?page='+num+'&stime='+stime+'&etime='+etime+'&team_id='+team_id;
  118. }
  119. })
  120. </script>
  121. </body>
  122. @endsection