|
- <?php
-
- use backend\modules\motorcade\models\BaseDocument;
-
- /* @var $this yii\web\View */
- /* @var $searchModel backend\modules\motorcade\models\searchDocument */
- /* @var $dataProvider yii\data\ActiveDataProvider */
-
- $this->title = '司机预警';
- $this->params['breadcrumbs'][] = $this->title;
- ?>
- <style>
- .c_red {
- color: #e02222;
- }
- .date{
- width: 275px!important;
- }
- .search_name_this {
- display: inline-block !important;
- /*padding-left: 40px!important;*/
- padding-left: 0px !important;
- width: 91px !important;
- text-align: right !important;
- color:#80889a;
- }
-
- .search_name {
- display: inline-block !important;
- /*padding-left: 40px!important;*/
- padding-left: 15px !important;
- width: 115px !important;
- text-align: right !important;;
- }
-
- #bussearch-bus_belong > label {
- margin-left: 5px;
- margin-right: 10px
- }
-
- .form-inline {
- margin-bottom: 25px;
- margin-left: 0px;
- }
-
- .form-horizontal .form-group{
- margin-right: 0!important;
- margin-left: 0!important;
- }
- .span_left{
- width: 90px;text-align:right;display:inline-block;color:#80889a;
- }
- li>a{
- color:#80889a;
- }
- li>.active>a{
- color:#3e4355;
- }
- .old-nav{
- color: #80889a;
- cursor: pointer;
-
- }
- .old-nav:hover,.old-nav:focus,.old-nav:active{
- text-decoration: none;
- }
- .new-nav{
- color: #3e4355;
- text-decoration: none;
- }
- .new-nav:hover,.new-nav:focus,.new-nav:active{
- text-decoration: none;
- }
- label{
- color:#80889a;
- }
- .help-block{
- display: none!important;
- margin-bottom:6px!important;
- }
- .pagination{
- float: right;
- }
- .nav_title>li {
- width: auto !important;
- }
- </style>
- <?php
- $dataProvider1 = unserialize(serialize($dataProvider));
- $dataProvider1->query->andFilterWhere(['DOC_OPTION' => BaseDocument::LICENCE_DRIVER]);
- $dataProvider2 = unserialize(serialize($dataProvider));
- $dataProvider2->query->andFilterWhere(['DOC_OPTION' => BaseDocument::LICENCE_JOB]);
- ?>
- <?php $this->registerJs('z.init()'); ?>
- <div class="iframe_box">
- <ul class="nav nav-tabs nav_title" role="tablist" >
- <li href="#tab1" role="presentation" class="active" data-toggle="tab">
- <a style="cursor: pointer;width:126px;text-align: center">驾驶证
- <span class="label label-danger" <?= $dataProvider1->totalCount > 0?$dataProviders1->totalCount : 'style="visibility:hidden"' ?>><?= $dataProvider1->totalCount ?></span>
- </a>
- </li>
- <li href="#tab2"
- role="presentation" class="" data-toggle="tab">
- <a style="cursor: pointer;width:126px;text-align: center">从业资格证
- <span class="label label-danger" <?= $dataProvider2->totalCount > 0?$dataProviders2->totalCount : 'style="visibility:hidden"' ?>><?= $dataProvider2->totalCount ?></span>
- </a>
- </li>
- </ul>
- <div class="tab-content table_box">
- <div class="tab-pane active" role="tabpanel" id="tab1">
- <?php echo $this->render('_driver-tab-1', ['searchModel'=>$searchModel, 'dataProvider'=>$dataProvider1]) ?>
- </div>
- <div class="tab-pane" role="tabpanel" id="tab2">
- <?php echo $this->render('_driver-tab-2', ['searchModel'=>$searchModel, 'dataProvider'=>$dataProvider2]) ?>
- </div>
- </div>
- </div>
- <?php echo $this->render('_images_bus') ?>
|