student.php 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. use backend\widgets\TabWidget;
  3. echo TabWidget::widget(['list' => $this->context->menuList, 'currentMenu' => $this->context->id]);
  4. ?>
  5. <div class="panel panel-default">
  6. <?php
  7. use backend\widgets\SubTabWidget;
  8. echo SubTabWidget::widget(['list' => $this->context->subMenuList, 'currentMenu' => $this->context->action->id]);
  9. ?>
  10. <div class="panel-body">
  11. <div class="dataTables_wrapper form-inline dt-bootstrap no-footer">
  12. <div class="row">
  13. <form action="" method="GET">
  14. <div class="col-xs-6" style="width:90%;">
  15. <div class="dataTables_length">
  16. <label>昵称/手机号:<input type="search" value="<?php if (isset($_GET['content'])) {
  17. echo $_GET['content'];
  18. } ?>" class="form-control" name="content" placeholder=""></label>
  19. <input class="btn btn-secondary btn-single" type="submit" name="" value="搜索"/>
  20. </div>
  21. </div>
  22. </form>
  23. </div>
  24. <div class="table-responsive">
  25. <table class="table table-bordered table-striped table-hover table-condensed">
  26. <thead>
  27. <tr class="active">
  28. <th class="no-sorting hidden-xs"><input name="selectAll" type="checkbox"></th>
  29. <th class="hidden-xs">ID</th>
  30. <th class="hidden-xs">头像</th>
  31. <th>来源&nbsp;&nbsp;昵称</th>
  32. <th>操作</th>
  33. </tr>
  34. </thead>
  35. <tbody class="middle-align">
  36. <?php foreach ($models as $key => $val) { ?>
  37. <tr>
  38. <td class="hidden-xs"><input name="uId" value="<?= $val->id ?>" type="checkbox"></td>
  39. <td class="hidden-xs"><?= $val->id ?></td>
  40. <td class="hidden-xs"></td>
  41. <td class="hidden-xs"><?= $val->xhUser->userName ?></td>
  42. <td class="hidden-xs"></td>
  43. </tr>
  44. <?php } ?>
  45. </tbody>
  46. </table>
  47. </div>
  48. <div class="row">
  49. <div>
  50. <div class="dataTables_paginate paging_simple_numbers"
  51. style="float:right;padding-top:0px;margin-right:15px;">
  52. <?= $pages ?>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. <!-- footer -->
  60. <?php
  61. use backend\widgets\FooterWidget;
  62. ?>
  63. <?= FooterWidget::widget() ?>
  64. <!-- footer -->