Index.html 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <!-- header start -->
  2. <include file="Public/Header" />
  3. <!-- header end -->
  4. <!-- right content start -->
  5. <div class="content-right">
  6. <div class="content">
  7. <!-- form start -->
  8. <form class="am-form view-list" action="{{:U('Admin/Teacher/Index')}}" method="POST">
  9. <div class="am-g">
  10. <input type="text" class="am-radius form-keyword" placeholder="{{:L('teacher_so_keyword_tips')}}" name="keyword" <present name="param['keyword']"> value="{{$param.keyword}}"</present> />
  11. <button type="submit" class="am-btn am-btn-secondary am-btn-sm am-radius form-submit">{{:L('common_operation_query')}}</button>
  12. <label class="fs-12 m-l-5 c-p fw-100 more-submit">
  13. {{:L('common_more_screening')}}
  14. <input type="checkbox" name="is_more" value="1" id="is_more" <if condition="isset($param['is_more']) and $param['is_more'] eq 1">checked</if> />
  15. <i class="am-icon-angle-down"></i>
  16. </label>
  17. <div class="more-where <if condition="!isset($param['is_more']) or $param['is_more'] neq 1">none</if>">
  18. <select name="state" class="am-radius c-p m-t-10 m-l-5 param-where">
  19. <option value="-1">{{:L('common_view_teacher_state_name')}}</option>
  20. <foreach name="common_teacher_state_list" item="v">
  21. <option value="{{$v.id}}" <if condition="isset($param['state']) and $param['state'] eq $v['id']">selected</if>>{{$v.name}}</option>
  22. </foreach>
  23. </select>
  24. <select name="gender" class="am-radius c-p m-t-10 m-l-5 param-where">
  25. <option value="-1">{{:L('common_view_gender_name')}}</option>
  26. <foreach name="common_gender_list" item="v">
  27. <option value="{{$v.id}}" <if condition="isset($param['gender']) and $param['gender'] eq $v['id']">selected</if>>{{$v.name}}</option>
  28. </foreach>
  29. </select>
  30. <div class="param-date param-where m-l-5">
  31. <input type="text" name="time_start" readonly="readonly" class="am-radius m-t-10" placeholder="{{:L('teacher_time_start_text')}}" id="time_start" <if condition="isset($param['time_start'])">value="{{$param.time_start}}"</if>/>
  32. <span>~</span>
  33. <input type="text" readonly="readonly" class="am-radius m-t-10" placeholder="{{:L('teacher_time_end_text')}}" name="time_end" id="time_end" <if condition="isset($param['time_end'])">value="{{$param.time_end}}"</if>/>
  34. </div>
  35. </div>
  36. </div>
  37. </form>
  38. <!-- form end -->
  39. <!-- operation start -->
  40. <div class="am-g m-t-15">
  41. <a href="{{:U('Admin/Teacher/SaveInfo')}}" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus"> {{:L('common_operation_add')}}</a>
  42. <if condition="!IsMobile()">
  43. <a href="{{$excel_url}}" class="am-btn am-btn-success am-btn-xs m-l-10 am-icon-file-excel-o am-radius"> {{:L('common_operation_excel_export_name')}}</a>
  44. </if>
  45. </div>
  46. <!-- operation end -->
  47. <!-- list start -->
  48. <table class="am-table am-table-striped am-table-hover am-text-middle m-t-10">
  49. <thead>
  50. <tr>
  51. <th>{{:L('teacher_username_name')}}</th>
  52. <th class="am-hide-sm-only">{{:L('common_view_id_card_text')}}</th>
  53. <th class="am-hide-sm-only">{{:L('common_view_gender_name')}}</th>
  54. <th class="am-hide-sm-only">{{:L('common_view_tel_name')}}</th>
  55. <th class="am-hide-sm-only">{{:L('common_view_teacher_state_name')}}</th>
  56. <th>{{:L('common_more_name')}}</th>
  57. <th>{{:L('common_operation_name')}}</th>
  58. </tr>
  59. </thead>
  60. <tbody>
  61. <if condition="!empty($list)">
  62. <foreach name="list" item="v">
  63. <tr id="data-list-{{$v.id}}-{{$v.id_card}}">
  64. <td>{{$v.username}}</td>
  65. <td class="am-hide-sm-only">{{$v.id_card}}</td>
  66. <td class="am-hide-sm-only">{{$v.gender}}</td>
  67. <td class="am-hide-sm-only">{{$v.tel}}</td>
  68. <td class="am-hide-sm-only">{{$v.state}}</td>
  69. <td>
  70. <span class="am-icon-caret-down c-p" data-am-modal="{target: '#my-popup{{$v.id}}'}"> {{:L('common_see_more_name')}}</span>
  71. <div class="am-popup am-radius" id="my-popup{{$v.id}}">
  72. <div class="am-popup-inner">
  73. <div class="am-popup-hd">
  74. <h4 class="am-popup-title">{{:L('common_detail_content')}}</h4>
  75. <span data-am-modal-close class="am-close">&times;</span>
  76. </div>
  77. <div class="am-popup-bd">
  78. <dl class="dl-content">
  79. <dt>{{:L('teacher_username_name')}}</dt>
  80. <dd>{{$v.username}}</dd>
  81. <dt>{{:L('common_view_id_card_text')}}</dt>
  82. <dd>{{$v.id_card}}</dd>
  83. <dt>{{:L('common_view_gender_name')}}</dt>
  84. <dd>{{$v.gender}}</dd>
  85. <dt>{{:L('common_view_teacher_state_name')}}</dt>
  86. <dd>{{$v.state}}</dd>
  87. <dt>{{:L('common_address_text')}}</dt>
  88. <dd>{{$v.address}}</dd>
  89. <dt>{{:L('common_view_tel_name')}}</dt>
  90. <dd>{{$v.tel}}</dd>
  91. <dt>{{:L('common_mobile_name')}}</dt>
  92. <dd>{{$v.mobile}}</dd>
  93. <dt>{{:L('common_email_name')}}</dt>
  94. <dd>{{$v.email}}</dd>
  95. <dt>{{:L('teacher_birthday_text')}}</dt>
  96. <dd>{{$v.birthday}}</dd>
  97. <dt>{{:L('teacher_subject_text')}}</dt>
  98. <dd>{{$v.subject_list}}</dd>
  99. <dt>{{:L('common_create_time_name')}}</dt>
  100. <dd>{{$v.add_time}}</dd>
  101. <dt>{{:L('common_upd_time_name')}}</dt>
  102. <dd>{{$v.upd_time}}</dd>
  103. </dl>
  104. </div>
  105. </div>
  106. </div>
  107. </td>
  108. <td class="view-operation">
  109. <a href="{{:U('Admin/Course/SaveInfo', array('teacher_id'=>$v['id']))}}">
  110. <button class="am-btn am-btn-default am-btn-xs am-radius am-icon-list-alt" data-am-popover="{content: '{{:L('teacher_operation_course')}}', trigger: 'hover focus'}"></button>
  111. </a>
  112. <a href="{{:U('Admin/Teacher/SaveInfo', array('id'=>$v['id']))}}">
  113. <button class="am-btn am-btn-default am-btn-xs am-radius am-icon-edit" data-am-popover="{content: '{{:L('common_operation_edit')}}', trigger: 'hover focus'}"></button>
  114. </a>
  115. <button class="am-btn am-btn-default am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="{{:U('Admin/Teacher/Delete')}}" data-am-popover="{content: '{{:L('common_operation_delete')}}', trigger: 'hover focus'}" data-id="{{$v.id}}-{{$v.id_card}}"></button>
  116. </td>
  117. </tr>
  118. </foreach>
  119. <else />
  120. <tr><td colspan="10" class="table-no">{{:L('common_not_data_tips')}}</td></tr>
  121. </if>
  122. </tbody>
  123. </table>
  124. <!-- list end -->
  125. <!-- page start -->
  126. <if condition="!empty($list)">
  127. {{$page_html}}
  128. </if>
  129. <!-- page end -->
  130. </div>
  131. </div>
  132. <!-- right content end -->
  133. <!-- footer start -->
  134. <include file="Public/Footer" />
  135. <!-- footer end -->