Sin descripción

discostlist.blade.php 9.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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. <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:''}}">
  9. <input class="input-text" style="width:6%;text-align:center" type="text" value="结束时间"/>
  10. <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:''}}">
  11. <a class="btn btn-primary radius" style="margin-left: 5px" onclick="user_search()" href="javascript:;">搜索</a>
  12. <a class="btn btn-primary radius" onclick="importExcel('数据导入')" href="javascript:;"> 导入数据</a>
  13. </div>
  14. </div>
  15. <div class="mt-20">
  16. <table class="table table-border table-bordered table-bg table-hover table-sort">
  17. <thead>
  18. <tr class="text-c">
  19. <th width="8%">日期</th>
  20. <th width="8%">微信Appid</th>
  21. <th width="8%">城市</th>
  22. <th width="8%">花费(元)</th>
  23. <th width="8%">曝光次数</th>
  24. <th width="8%">点击次数</th>
  25. <th width="8%">点击率</th>
  26. <th width="8%">转化目标量</th>
  27. <th width="8%">转化目标成本</th>
  28. <th width="8%">创建时间</th>
  29. <!--th width="6%">操作</th-->
  30. </tr>
  31. </thead>
  32. <tbody>
  33. @if($result)
  34. @foreach($result as $a)
  35. <tr class="text-c" style=" text-align:center;">
  36. <td>{{$a['ad_time']}}</td>
  37. <td>{{$a['wexin_appid']}}</td>
  38. <td>{{$a['city']}}</td>
  39. <td>{{$a['cost']}}</td>
  40. <td>{{$a['exposure_times']}}</td>
  41. <td>{{$a['click_times']}}</td>
  42. <td>{{$a['click_rate']}}</td>
  43. <td>{{$a['conversion_times']}}</td>
  44. <td>{{$a['conversion_cost']}}</td>
  45. <td>{{$a['add_time']}}</td>
  46. <!--td>
  47. <a style="text-decoration:none" onClick='custreport_edit("编辑","{{$a['id']}}")' href="javascript:;" title="编辑"><span class="btn btn-primary radius">编辑</span></a>
  48. <a style="text-decoration:none" onClick='custreport_del("删除","{{$a['id']}}")' href="javascript:;" title="删除"><span class="btn btn-primary radius">删除</span></a>
  49. </td-->
  50. </tr>
  51. @endforeach
  52. @endif
  53. </tbody>
  54. </table>
  55. </div>
  56. <!--弹出层 推入分组-->
  57. <div id="modal-demo1" class="modal fade" tabnonautomatic_index="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  58. <div class="modal-dialog">
  59. <div class="modal-content radius">
  60. <div class="modal-body" style="height:280px">
  61. <div class="cl pd-5 bg-1 bk-gray mt-20">
  62. <form class="form form-horizontal" method="POST" action="/admin/custreport/importDisCost" enctype="multipart/form-data">
  63. <input type="hidden" name="_token" value="{{ csrf_token() }}" />
  64. <div class="row cl">
  65. <label class="form-label col-xs-4 col-sm-2">
  66. 微信appid:</label>
  67. <div class="formControls col-xs-6 col-sm-6">
  68. <input type="text" class="input-text" value="" placeholder="" name="wexin_appid">
  69. </div>
  70. </div>
  71. <div class="row cl">
  72. <label class="form-label col-xs-4 col-sm-2">
  73. 日期:</label>
  74. <div class="formControls col-xs-6 col-sm-6">
  75. <input id="ad_time" type="text" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd' })" class="input-text Wdate" style="width:50%;text-align:center;" name="ad_time" value="{{$today?$today:''}}">
  76. </div>
  77. </div>
  78. <div class="row cl">
  79. <label class="form-label col-xs-4 col-sm-2">
  80. 文件:</label>
  81. <div class="formControls col-xs-6 col-sm-6">
  82. <input id="file" type="file" class="form-control" name="dataFile" required>
  83. </div>
  84. </div>
  85. <div class="row cl">
  86. <div class="col-9 col-offset-2">
  87. <button type="submit" class="btn btn-primary radius">提交</button>
  88. <button class="btn radius" data-dismiss="modal" aria-hidden="true">关闭</button>
  89. </div>
  90. </div>
  91. </form>
  92. </div>
  93. <br>
  94. {{--<div style="float:right">--}}
  95. {{--<button class="btn btn-primary radius" onclick='submits(this,"{{$page}}")' value="&nbsp;&nbsp;确定&nbsp;&nbsp;">&nbsp;&nbsp;确定&nbsp;&nbsp;</button>&nbsp;--}}
  96. {{--<button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>--}}
  97. {{--</div>--}}
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. <div id="page" class="page_div"></div>
  103. </div>
  104. <!--_footer 作为公共模版分离出去-->
  105. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  106. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  107. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  108. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  109. <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
  110. <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  111. <!--/_footer 作为公共模版分离出去-->
  112. <!--/_footer 作为公共模版分离出去-->
  113. <script type="text/javascript">
  114. /*广告-添加*/
  115. function custreport_add(title){
  116. location.href="/admin/custreport/totalcreate";
  117. }
  118. /*广告-编辑*/
  119. function custreport_edit(title,id){
  120. location.href="/admin/custreport/totaledit/"+id;
  121. }
  122. /*广告-设为首页显示*/
  123. function up(obj,id){
  124. layer.confirm('确认要设为首页显示吗?',function(index){
  125. location.href='/admin/custreport/up/'+id;
  126. });
  127. }
  128. /*广告-移除*/
  129. function custreport_del(obj,id){
  130. layer.confirm('确认要删除吗?',function(index){
  131. location.href='/admin/custreport/totaldelete/'+id;
  132. });
  133. }
  134. /*广告-设为首页隐藏*/
  135. function down(obj,id){
  136. layer.confirm('确认要设为首页隐藏吗?',function(index){
  137. location.href='/admin/custreport/down/'+id;
  138. });
  139. }
  140. function user_search(){
  141. var stime = $('#stime').val();
  142. var etime = $('#etime').val();
  143. location.href = 'disCostList?stime='+stime+'&etime='+etime;
  144. }
  145. //导出
  146. function custreport_export(){
  147. var stime = $('#stime').val();
  148. var etime = $('#etime').val();
  149. var team_id = $('#team_id').val();
  150. location.href = '/admin/custreport/total_export?stime='+stime+'&etime='+etime+'&team_id='+team_id;
  151. }
  152. //批量导入
  153. function importExcel(){
  154. $("#modal-demo1").modal("show");
  155. }
  156. /*分页*/
  157. $("#page").paging({
  158. pageNo:{{$page}},
  159. totalPage: {{$pages}},
  160. totalSize: {{$count}},
  161. callback: function(num) {
  162. var stime = $('#stime').val();
  163. var etime = $('#etime').val();
  164. location.href='disCostList?page='+num+'&stime='+stime+'&etime='+etime;
  165. }
  166. })
  167. </script>
  168. </body>
  169. @endsection