c5a67d4a0e05341ed674aa5a21406b76.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php /*a:1:{s:76:"/data/web/mall.valimart.net/app/admin/view/statgoods/stat_hotgoods_list.html";i:1657785098;}*/ ?>
  2. <div id="container_<?php echo htmlentities($stat_field); ?>" class="w100pre close_float" style="height:400px"></div>
  3. <table class="ds-default-table">
  4. <thead class="thead">
  5. <tr class="space">
  6. <th colspan="15"><?php echo htmlentities(lang('statgoods_hot_top_50')); ?></th>
  7. </tr>
  8. <tr class="thead sortbar-array">
  9. <th class="align-center w18pre"><?php echo htmlentities(lang('statstore_number')); ?></th>
  10. <th class="align-center"><?php echo htmlentities(lang('ds_goods')); ?></th>
  11. <th class="align-center"><?php echo htmlentities($sort_text); ?></th>
  12. </tr>
  13. </thead>
  14. <tbody id="datatable">
  15. <?php if(!(empty($statlist) || (($statlist instanceof \think\Collection || $statlist instanceof \think\Paginator ) && $statlist->isEmpty()))): if(is_array($statlist) || $statlist instanceof \think\Collection || $statlist instanceof \think\Paginator): if( count($statlist)==0 ) : echo "" ;else: foreach($statlist as $key=>$v): ?>
  16. <tr class="hover">
  17. <td class="alignleft"><?php echo htmlentities($v['sort']); ?></td>
  18. <td class="alignleft">
  19. <a href="<?php echo url('home/Goods/index',['goods_id'=>$v['goods_id']]); ?>" target="_blank"><?php echo htmlentities($v['goods_name']); ?></a>
  20. </td>
  21. <td><?php echo htmlentities($v[$stat_field]); ?></td>
  22. </tr>
  23. <?php endforeach; endif; else: echo "" ;endif; else: ?>
  24. <tr class="no_data">
  25. <td colspan="11"><?php echo htmlentities(lang('no_record')); ?></td>
  26. </tr>
  27. <?php endif; ?>
  28. </tbody>
  29. </table>
  30. <script>
  31. $(function () {
  32. $('#container_<?php echo htmlentities($stat_field); ?>').highcharts(<?php echo $stat_json; ?>);
  33. });
  34. </script>