Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

182 rader
7.8 KiB

  1. <?php
  2. /**
  3. *
  4. * ============================================================================
  5. * * 版权所有 蜘蛛出行 * *
  6. * 网站地址: http://www.zhizhuchuxing.com
  7. * ----------------------------------------------------------------------------
  8. * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和
  9. * 使用;不允许对程序代码以任何形式任何目的的再发布。
  10. * ============================================================================
  11. * Author By: 张帅
  12. * PhpStorm list.php
  13. * Create By 2016/12/12 9:55 $
  14. */
  15. use backend\modules\zzcs\assets\ZzcsAsset;
  16. use yii\helpers\Url;
  17. ZzcsAsset::addCss($this, '/driver/css/driver_list.css');
  18. ZzcsAsset::addCss($this, '/global/css/combo.select.css');
  19. ZzcsAsset::addScript($this, '/global/js/jquery.combo.select.js');
  20. ZzcsAsset::addScript($this, '/driver/js/driver_list.js');
  21. ZzcsAsset::addScript($this, '/plug/layer/layer.js');
  22. ?>
  23. <div class="middle" style="border-bottom:none">
  24. <div class="first">
  25. <div class="top">
  26. <div id="brand-list" class="sole_line com_line btn-primary" style="" onclick="javascript:window.location.href='<?= Url::to(['/zzcs/base/brand-list']) ?>'">品牌</div>
  27. <div id="car-list" class="sole_line com_line btn-primary" style="" onclick="javascript:window.location.href='<?= Url::to(['/zzcs/base/car-list']) ?>'">车型</div>
  28. <div id="bus-list" class="sole_line com_line btn-primary" style="" onclick="javascript:window.location.href='<?= Url::to(['/zzcs/car/list']) ?>'">车辆</div>
  29. <div id="driver-list" class="sole_line" style="">司机</div>
  30. </div>
  31. </div>
  32. </div>
  33. <div class="search_station">
  34. <ul id="search_station">
  35. <li class="search1">
  36. <span class="name_span">车队名称:</span>
  37. <select class="select_line">
  38. <?php foreach ($motorcade['motorcade_name'] as $key => $vel) { ?>
  39. <option><?php echo $vel; ?></option>
  40. <?php } ?>
  41. </select>
  42. </li>
  43. <li class="search2">
  44. <span class="name_span">车队代码:</span>
  45. <select class="select_line">
  46. <?php foreach ($motorcade['motorcade_code'] as $key => $vel) { ?>
  47. <option><?php echo $vel; ?></option>
  48. <?php } ?>
  49. </select>
  50. </li>
  51. <li class="search3">
  52. <span>性别:</span>
  53. <select id="driver_sex" name="driver_sex">
  54. <option value="-1">请选择</option>
  55. <?php foreach ($sex_array as $key => $value) { ?>
  56. <option value="<?php echo $key; ?>"><?php echo $value; ?></option>
  57. <?php } ?>
  58. </select>
  59. </li>
  60. <li class="search9" style="width: 100%;height: 0px;">
  61. </li>
  62. <li class="search4">
  63. <span class="name_span">姓名:</span>
  64. <select class="select_line">
  65. <?php foreach ($driver_name_arr as $key => $vel) { ?>
  66. <option><?php echo $vel['driver_name']; ?></option>
  67. <?php } ?>
  68. </select>
  69. </li>
  70. <li class="search5">
  71. <span>工号:</span>
  72. <input type="text" id="driver_code" placeholder="工号"/>
  73. </li>
  74. <li class="search6">
  75. <span>手机号:</span>
  76. <input type="text" id="driver_mobile" placeholder="手机号"/>
  77. </li>
  78. <li class="search7">
  79. <span>驾驶证号:</span>
  80. <input type="text" id="driver_license" placeholder="驾驶证号"/>
  81. </li>
  82. <li class="search8">
  83. <span class="btn-primary" id="search_btn" onclick='searchInfo()'>查询</span>
  84. </li>
  85. </ul>
  86. </div>
  87. <div class="add_driver">
  88. <a target="_blank" onclick="open_new_path(this)" go_path="<?= Url::to(['/zzcs/driver/add-driver']) ?>"><span class="btn-primary"
  89. id="add_driver">+ 添加司机</span></a>
  90. </div>
  91. <div class="table_list">
  92. <table id="table_list">
  93. <thead>
  94. <tr>
  95. <th class="td1">
  96. <input type="checkbox" name="all_check_box" class="ace_check" onclick="select_checked('0')"/>
  97. </th>
  98. <th class="td2">姓名</th>
  99. <th class="td3">工号</th>
  100. <th class="td4">车队名称</th>
  101. <th class="td5">车队代码</th>
  102. <th class="td6">手机号</th>
  103. <th class="td7">驾驶证号</th>
  104. <th class="td8">性别</th>
  105. <th class="td9">操作</th>
  106. </tr>
  107. </thead>
  108. <tbody>
  109. <?php foreach ($driver_list as $list_key => $list_vel) { ?>
  110. <tr>
  111. <td class="td1">
  112. <input type="checkbox" name="all_check_box" class="ace_check" driver="<?php echo $list_vel['driver_id'];?>" onclick="select_checked('0')"/>
  113. </td>
  114. <td class="td2"><?php echo $list_vel['driver_name']; ?></td>
  115. <td class="td3"><?php echo $list_vel['driver_number']; ?></td>
  116. <td class="td4"><?php echo $list_vel['supplier_name']; ?></td>
  117. <td class="td5"><?php echo $list_vel['supplier_code']; ?></td>
  118. <td class="td6"><?php echo $list_vel['phone_no']; ?></td>
  119. <td class="td7"><?php echo $list_vel['license_no']; ?></td>
  120. <td class="td8">
  121. <?php if ($list_vel['sex'] == 0) {
  122. echo '男';
  123. } elseif ($list_vel['sex'] == 1) {
  124. echo '女';
  125. } ?>
  126. </td>
  127. <td class="td9">
  128. <a target="_blank" onclick="open_new_path(this)" go_path="<?= Url::to(['/zzcs/driver/show-info', 'driver_id' => $list_vel['driver_id']]) ?>">查看</a>
  129. <a target="_blank"
  130. onclick="open_new_path(this)" go_path="<?= Url::to(['/zzcs/driver/update-info', 'driver_id' => $list_vel['driver_id']]) ?>">修改</a>
  131. <a onclick="deleteDriver(this,<?php echo $list_vel['driver_id']; ?>)">删除</a>
  132. </td>
  133. </tr>
  134. <?php } ?>
  135. </tbody>
  136. </table>
  137. </div>
  138. <!--页码信息-->
  139. <div id="page_size_d" total_row="<?php echo $page['total_row']; ?>" total_page="<?php echo $page['total_page']; ?>">
  140. <span class="page_size">每页条数</span>
  141. <select id="page_size" onchange="changePageSize(this)">
  142. <option value="10">10</option>
  143. <option value="30">30</option>
  144. <option value="50">50</option>
  145. <option value="100">100</option>
  146. </select>
  147. </div>
  148. <div id="page_list">
  149. <?php
  150. if (count($page_arr) > 0) {
  151. foreach ($page_arr as $key => $vel) {
  152. if ($page['current_page'] == 1 && ($vel == '首页' || $vel == '<上一页')) {
  153. $class = 'not_click';
  154. } elseif ($page['current_page'] == $vel) {
  155. $class = 'click';
  156. } elseif ($page['current_page'] == $page['total_page'] && ($vel == '末页' || $vel == '下一页>')) {
  157. $class = 'not_click';
  158. } elseif ($vel == '...') {
  159. $class = 'not_click';
  160. } else {
  161. $class = 'clickable';
  162. }
  163. if ($vel != '首页' && $vel != '<上一页' && $vel != '下一页>' && $vel != '末页') {
  164. $class = 'page_num ' . $class;
  165. }
  166. if ($class == 'clickable' || $class == 'page_num clickable') {
  167. echo '<span class="' . $class . '" onclick="pageSearchInfo(this,' . $page['total_page'] . ')">' . $vel . '</span>';
  168. } else {
  169. echo '<span class="' . $class . '">' . $vel . '</span>';
  170. }
  171. }
  172. }
  173. ?>
  174. <span class="total_row">共<?php echo $page['total_row']; ?>条</span>
  175. </div>