oil100.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. use app\assets\CoreAsset;
  3. use app\assets\PluginsAsset;
  4. $asset = CoreAsset::register($this);
  5. $assetsUrl = $asset->baseUrl;
  6. $pluginsAsset = PluginsAsset::register($this);
  7. $pluginsUrl = $pluginsAsset->baseUrl;
  8. use yii\widgets\ActiveForm;
  9. ?>
  10. <?php $this->beginContent('@app/modules/admin/views/layouts/_datatable_start.php'); ?><?php $this->endContent(); ?>
  11. <?php $this->beginContent('@app/modules/admin/views/layouts/_search.php',['show_car'=>($type>=2?1:0)]); ?><?php $this->endContent(); ?>
  12. <div class="row ">
  13. <div class="col-12">
  14. <div class="card main-wrapper-inner">
  15. <div class="card-body">
  16. <?php if($type==1){ ?> <h4 class="card-title">百公里油耗统计</h4> <?php }?>
  17. <?php if($type==2){ ?> <h4 class="card-title">百公里油耗明细表</h4> <?php }?>
  18. <ul class="nav nav-tabs nav-tabs-custom nav-justified cartab" role="tablist">
  19. <li class="nav-item">
  20. <a class="nav-link <?php if($type==1){ ?>active <?php }?>" href="<?php echo Yii::$app->controller->createRealUrl(['car/fee/oil100','type'=>1]);?>" >
  21. <span class="d-none d-sm-block">百公里油耗统计</span>
  22. </a>
  23. </li>
  24. <li class="nav-item">
  25. <a class="nav-link <?php if($type==2){ ?>active <?php }?>" href="<?php echo Yii::$app->controller->createRealUrl(['car/fee/oil100','type'=>2]);?>">
  26. <span class="d-none d-sm-block">百公里油耗明细表</span>
  27. </a>
  28. </li>
  29. </ul>
  30. <!-- Tab panes -->
  31. <div class="tab-content p-3 text-muted">
  32. <?php $this->beginContent('@app/modules/admin/views/layouts/_table.php'); ?><?php $this->endContent(); ?>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. <?php $this->beginContent('@app/modules/admin/views/layouts/_datatable_end.php'); ?><?php $this->endContent(); ?>
  39. <?php $this->beginContent('@app/modules/admin/views/layouts/_tablejs.php'); ?><?php $this->endContent(); ?>
  40. <script>
  41. function doKoujing()
  42. {
  43. $('#koujing_content').html('<?php echo $koujing;?>');
  44. }
  45. </script>