|
- <?php
- /**
- *
- * ============================================================================
- * * 版权所有 蜘蛛出行 * *
- * 网站地址: http://www.zhizhuchuxing.com
- * ----------------------------------------------------------------------------
- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和
- * 使用;不允许对程序代码以任何形式任何目的的再发布。
- * ============================================================================
- * Author By: 张帅
- * PhpStorm list.php
- * Create By 2016/12/12 9:55 $
- */
-
- use backend\modules\zzcs\assets\ZzcsAsset;
- use yii\helpers\Url;
-
- ZzcsAsset::addCss($this, '/driver/css/driver_list.css');
- ZzcsAsset::addCss($this, '/global/css/combo.select.css');
- ZzcsAsset::addScript($this, '/global/js/jquery.combo.select.js');
- ZzcsAsset::addScript($this, '/driver/js/driver_list.js');
- ZzcsAsset::addScript($this, '/plug/layer/layer.js');
- ?>
- <div class="middle" style="border-bottom:none">
- <div class="first">
- <div class="top">
- <div id="brand-list" class="sole_line com_line btn-primary" style="" onclick="javascript:window.location.href='<?= Url::to(['/zzcs/base/brand-list']) ?>'">品牌</div>
- <div id="car-list" class="sole_line com_line btn-primary" style="" onclick="javascript:window.location.href='<?= Url::to(['/zzcs/base/car-list']) ?>'">车型</div>
- <div id="bus-list" class="sole_line com_line btn-primary" style="" onclick="javascript:window.location.href='<?= Url::to(['/zzcs/car/list']) ?>'">车辆</div>
- <div id="driver-list" class="sole_line" style="">司机</div>
- </div>
- </div>
- </div>
- <div class="search_station">
- <ul id="search_station">
- <li class="search1">
- <span class="name_span">车队名称:</span>
- <select class="select_line">
- <?php foreach ($motorcade['motorcade_name'] as $key => $vel) { ?>
- <option><?php echo $vel; ?></option>
- <?php } ?>
- </select>
- </li>
-
- <li class="search2">
- <span class="name_span">车队代码:</span>
- <select class="select_line">
- <?php foreach ($motorcade['motorcade_code'] as $key => $vel) { ?>
- <option><?php echo $vel; ?></option>
- <?php } ?>
- </select>
- </li>
- <li class="search3">
- <span>性别:</span>
- <select id="driver_sex" name="driver_sex">
- <option value="-1">请选择</option>
- <?php foreach ($sex_array as $key => $value) { ?>
- <option value="<?php echo $key; ?>"><?php echo $value; ?></option>
- <?php } ?>
- </select>
- </li>
- <li class="search9" style="width: 100%;height: 0px;">
- </li>
- <li class="search4">
- <span class="name_span">姓名:</span>
- <select class="select_line">
- <?php foreach ($driver_name_arr as $key => $vel) { ?>
- <option><?php echo $vel['driver_name']; ?></option>
- <?php } ?>
- </select>
- </li>
- <li class="search5">
- <span>工号:</span>
- <input type="text" id="driver_code" placeholder="工号"/>
- </li>
- <li class="search6">
- <span>手机号:</span>
- <input type="text" id="driver_mobile" placeholder="手机号"/>
- </li>
- <li class="search7">
- <span>驾驶证号:</span>
- <input type="text" id="driver_license" placeholder="驾驶证号"/>
- </li>
- <li class="search8">
- <span class="btn-primary" id="search_btn" onclick='searchInfo()'>查询</span>
- </li>
- </ul>
- </div>
-
- <div class="add_driver">
- <a target="_blank" onclick="open_new_path(this)" go_path="<?= Url::to(['/zzcs/driver/add-driver']) ?>"><span class="btn-primary"
- id="add_driver">+ 添加司机</span></a>
- </div>
-
- <div class="table_list">
- <table id="table_list">
- <thead>
- <tr>
- <th class="td1">
- <input type="checkbox" name="all_check_box" class="ace_check" onclick="select_checked('0')"/>
- </th>
- <th class="td2">姓名</th>
- <th class="td3">工号</th>
- <th class="td4">车队名称</th>
- <th class="td5">车队代码</th>
- <th class="td6">手机号</th>
- <th class="td7">驾驶证号</th>
- <th class="td8">性别</th>
- <th class="td9">操作</th>
- </tr>
- </thead>
- <tbody>
- <?php foreach ($driver_list as $list_key => $list_vel) { ?>
- <tr>
- <td class="td1">
- <input type="checkbox" name="all_check_box" class="ace_check" driver="<?php echo $list_vel['driver_id'];?>" onclick="select_checked('0')"/>
- </td>
- <td class="td2"><?php echo $list_vel['driver_name']; ?></td>
- <td class="td3"><?php echo $list_vel['driver_number']; ?></td>
- <td class="td4"><?php echo $list_vel['supplier_name']; ?></td>
- <td class="td5"><?php echo $list_vel['supplier_code']; ?></td>
- <td class="td6"><?php echo $list_vel['phone_no']; ?></td>
- <td class="td7"><?php echo $list_vel['license_no']; ?></td>
- <td class="td8">
- <?php if ($list_vel['sex'] == 0) {
- echo '男';
- } elseif ($list_vel['sex'] == 1) {
- echo '女';
- } ?>
- </td>
- <td class="td9">
- <a target="_blank" onclick="open_new_path(this)" go_path="<?= Url::to(['/zzcs/driver/show-info', 'driver_id' => $list_vel['driver_id']]) ?>">查看</a>
- <a target="_blank"
- onclick="open_new_path(this)" go_path="<?= Url::to(['/zzcs/driver/update-info', 'driver_id' => $list_vel['driver_id']]) ?>">修改</a>
- <a onclick="deleteDriver(this,<?php echo $list_vel['driver_id']; ?>)">删除</a>
- </td>
- </tr>
- <?php } ?>
- </tbody>
- </table>
- </div>
-
- <!--页码信息-->
- <div id="page_size_d" total_row="<?php echo $page['total_row']; ?>" total_page="<?php echo $page['total_page']; ?>">
- <span class="page_size">每页条数</span>
- <select id="page_size" onchange="changePageSize(this)">
- <option value="10">10</option>
- <option value="30">30</option>
- <option value="50">50</option>
- <option value="100">100</option>
- </select>
- </div>
- <div id="page_list">
- <?php
- if (count($page_arr) > 0) {
- foreach ($page_arr as $key => $vel) {
- if ($page['current_page'] == 1 && ($vel == '首页' || $vel == '<上一页')) {
- $class = 'not_click';
- } elseif ($page['current_page'] == $vel) {
- $class = 'click';
- } elseif ($page['current_page'] == $page['total_page'] && ($vel == '末页' || $vel == '下一页>')) {
- $class = 'not_click';
- } elseif ($vel == '...') {
- $class = 'not_click';
- } else {
- $class = 'clickable';
- }
- if ($vel != '首页' && $vel != '<上一页' && $vel != '下一页>' && $vel != '末页') {
- $class = 'page_num ' . $class;
- }
- if ($class == 'clickable' || $class == 'page_num clickable') {
- echo '<span class="' . $class . '" onclick="pageSearchInfo(this,' . $page['total_page'] . ')">' . $vel . '</span>';
- } else {
- echo '<span class="' . $class . '">' . $vel . '</span>';
- }
- }
- }
- ?>
- <span class="total_row">共<?php echo $page['total_row']; ?>条</span>
- </div>
|