123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- @extends('admin/master')
- @section('content')
- <body>
- <div class="page-container">
- <div>
- <div>
- <input class="input-text" style="width:6%;text-align:center" type="text" value="开始时间"/>
- <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:''}}">
- <input class="input-text" style="width:6%;text-align:center" type="text" value="结束时间"/>
- <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:''}}">
-
- <a class="btn btn-primary radius" style="margin-left: 5px" onclick="user_search()" href="javascript:;">搜索</a>
- <a class="btn btn-primary radius" onclick="importExcel('数据导入')" href="javascript:;"> 导入数据</a>
-
- </div>
- </div>
-
- <div class="mt-20">
- <table class="table table-border table-bordered table-bg table-hover table-sort">
- <thead>
- <tr class="text-c">
- <th width="8%">日期</th>
- <th width="8%">微信Appid</th>
- <th width="8%">城市</th>
- <th width="8%">花费(元)</th>
- <th width="8%">曝光次数</th>
- <th width="8%">点击次数</th>
- <th width="8%">点击率</th>
- <th width="8%">转化目标量</th>
- <th width="8%">转化目标成本</th>
- <th width="8%">创建时间</th>
- <!--th width="6%">操作</th-->
- </tr>
- </thead>
- <tbody>
- @if($result)
- @foreach($result as $a)
- <tr class="text-c" style=" text-align:center;">
- <td>{{$a['ad_time']}}</td>
- <td>{{$a['wexin_appid']}}</td>
- <td>{{$a['city']}}</td>
- <td>{{$a['cost']}}</td>
- <td>{{$a['exposure_times']}}</td>
- <td>{{$a['click_times']}}</td>
- <td>{{$a['click_rate']}}</td>
- <td>{{$a['conversion_times']}}</td>
- <td>{{$a['conversion_cost']}}</td>
- <td>{{$a['add_time']}}</td>
- <!--td>
- <a style="text-decoration:none" onClick='custreport_edit("编辑","{{$a['id']}}")' href="javascript:;" title="编辑"><span class="btn btn-primary radius">编辑</span></a>
- <a style="text-decoration:none" onClick='custreport_del("删除","{{$a['id']}}")' href="javascript:;" title="删除"><span class="btn btn-primary radius">删除</span></a>
- </td-->
- </tr>
- @endforeach
- @endif
- </tbody>
- </table>
- </div>
- <!--弹出层 推入分组-->
- <div id="modal-demo1" class="modal fade" tabnonautomatic_index="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog">
- <div class="modal-content radius">
- <div class="modal-body" style="height:280px">
- <div class="cl pd-5 bg-1 bk-gray mt-20">
-
- <form class="form form-horizontal" method="POST" action="/admin/custreport/importDisCost" enctype="multipart/form-data">
- <input type="hidden" name="_token" value="{{ csrf_token() }}" />
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- 微信appid:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <input type="text" class="input-text" value="" placeholder="" name="wexin_appid">
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- 日期:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <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:''}}">
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- 文件:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <input id="file" type="file" class="form-control" name="dataFile" required>
- </div>
- </div>
- <div class="row cl">
- <div class="col-9 col-offset-2">
- <button type="submit" class="btn btn-primary radius">提交</button>
- <button class="btn radius" data-dismiss="modal" aria-hidden="true">关闭</button>
- </div>
- </div>
- </form>
- </div>
- <br>
- {{--<div style="float:right">--}}
- {{--<button class="btn btn-primary radius" onclick='submits(this,"{{$page}}")' value=" 确定 "> 确定 </button> --}}
- {{--<button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>--}}
- {{--</div>--}}
- </div>
- </div>
- </div>
- </div>
- <div id="page" class="page_div"></div>
- </div>
-
- <!--_footer 作为公共模版分离出去-->
- <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
- <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
- <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
- <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
- <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
- <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
- <!--/_footer 作为公共模版分离出去-->
- <!--/_footer 作为公共模版分离出去-->
- <script type="text/javascript">
- /*广告-添加*/
- function custreport_add(title){
- location.href="/admin/custreport/totalcreate";
- }
- /*广告-编辑*/
- function custreport_edit(title,id){
- location.href="/admin/custreport/totaledit/"+id;
- }
- /*广告-设为首页显示*/
- function up(obj,id){
- layer.confirm('确认要设为首页显示吗?',function(index){
- location.href='/admin/custreport/up/'+id;
- });
- }
- /*广告-移除*/
- function custreport_del(obj,id){
- layer.confirm('确认要删除吗?',function(index){
- location.href='/admin/custreport/totaldelete/'+id;
- });
- }
- /*广告-设为首页隐藏*/
- function down(obj,id){
- layer.confirm('确认要设为首页隐藏吗?',function(index){
- location.href='/admin/custreport/down/'+id;
- });
- }
- function user_search(){
- var stime = $('#stime').val();
- var etime = $('#etime').val();
- location.href = 'disCostList?stime='+stime+'&etime='+etime;
- }
- //导出
- function custreport_export(){
- var stime = $('#stime').val();
- var etime = $('#etime').val();
- var team_id = $('#team_id').val();
- location.href = '/admin/custreport/total_export?stime='+stime+'&etime='+etime+'&team_id='+team_id;
- }
- //批量导入
- function importExcel(){
- $("#modal-demo1").modal("show");
- }
-
- /*分页*/
-
- $("#page").paging({
- pageNo:{{$page}},
- totalPage: {{$pages}},
- totalSize: {{$count}},
- callback: function(num) {
- var stime = $('#stime').val();
- var etime = $('#etime').val();
- location.href='disCostList?page='+num+'&stime='+stime+'&etime='+etime;
- }
- })
-
- </script>
-
- </body>
- @endsection
|