examing.html 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <style>
  2. .profile-avatar-container {
  3. position: relative;
  4. width: 100px;
  5. margin: 0 auto;
  6. }
  7. .profile-avatar-container .profile-user-img {
  8. width: 100px;
  9. height: 100px;
  10. }
  11. .profile-avatar-container .profile-avatar-text {
  12. display: none;
  13. }
  14. .profile-avatar-container:hover .profile-avatar-text {
  15. display: block;
  16. position: absolute;
  17. height: 100px;
  18. width: 100px;
  19. background: #444;
  20. opacity: .6;
  21. color: #fff;
  22. top: 0;
  23. left: 0;
  24. line-height: 100px;
  25. text-align: center;
  26. }
  27. .profile-avatar-container button {
  28. position: absolute;
  29. top: 0;
  30. left: 0;
  31. width: 100px;
  32. height: 100px;
  33. opacity: 0;
  34. }
  35. .readme {
  36. margin-top:2%;
  37. text-align: center;
  38. line-height:8px;
  39. font-size:22px;
  40. }
  41. .djs {
  42. margin-top:2%;
  43. text-align: center;
  44. line-height:8px;
  45. font-size:22px;
  46. color:red;
  47. margin-bottom: 3%;
  48. }
  49. </style>
  50. <style type="text/css">
  51. .new_table {
  52. border-collapse: collapse;
  53. margin: 0 auto;
  54. text-align: center;
  55. width: 94%;
  56. font-size: 12px;
  57. margin-left:0px;
  58. }
  59. .new_table td,
  60. table th {
  61. border: 1px solid #cad9ea;
  62. color: #666;
  63. height: 3.5em;
  64. }
  65. .new_table thead th {
  66. background-color: #CCE8EB;
  67. width: 100px;
  68. }
  69. .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
  70. background-color: #17223f;
  71. color: #ffffff;
  72. border-color: #17223f;
  73. outline: none
  74. }
  75. .nav-tabs {
  76. border-bottom: 1.5px solid #17223f;
  77. margin-bottom: 10px;
  78. }
  79. .panel-heading{font-size: 18px}
  80. </style>
  81. <div class="row animated fadeInRight">
  82. <div class="col-md-12">
  83. <div class="box box-primary">
  84. <div class="panel-body">
  85. <div class="panel-heading">
  86. <div class="readme">正在考试中,考试时间 {$row.limit_duration} 分钟</div>
  87. <div class="djs">距离考试结束还有 <span id="timer"></span> </div>
  88. </div>
  89. <div class="box-body box-profile">
  90. <form id="update-form" role="form" data-toggle="validator" method="POST" action="">
  91. <div class="col-xs-12 col-sm-12">
  92. <div class="form-group">
  93. <label style=" width: 10%;" class="control-label col-xs-3 col-sm-3">{:__('申请更换件')}:</label>
  94. <div class="col-xs-9 col-sm-9">
  95. <dl class="fieldlist" data-name="row[other_replace]" data-template="other_suppliertpl">
  96. <dd>
  97. <ins style="width: 550px;">更换件类型</ins>
  98. <ins style="width: 430px;">状态</ins>
  99. </dd>
  100. <dd style="margin-right: 87%">
  101. <a href="javascript:;" class="btn btn-sm btn-info btn-append"><i class="fa fa-plus"></i> 追加</a>
  102. </dd>
  103. <textarea name="row[other_replace]" class="form-control hide other_replace" cols="30" rows="5">{$row.other_replace}</textarea>
  104. </dl>
  105. <!--定义模板,模板语法使用Art-Template模板语法 <span class="btn btn-sm btn-success btn-replace" title="保存"><i class="fa fa-check"></i></span>-->
  106. <script type="text/html" id="other_suppliertpl">
  107. <dd class="form-inline">
  108. <select class="form-control" name="unwin[<%=index%>][fault_id]" style="width: 50%;">
  109. <option value="" >请选择</option>
  110. {foreach name="departmentdata" item="vo"}
  111. <option value="{$vo.fault_id}" <%if(row.fault_id =='{$vo.fault_id}'){%> selected <% }%> >{$vo.replace_name}</option>
  112. {/foreach}
  113. </select>
  114. <input type="text" class="form-control" readonly name="unwin[<%=index%>][request_status]" value="<%if(row["request_status"]==1){%>已申请<%}else if(row["request_status"]==2){ %>已送达<%}else if(row["request_status"]==3){%>驳回<%}else{%>未申请<%}%>" style="width: 41%;">
  115. <span class="btn btn-sm btn-danger btn-remove" title="移除"><i class="fa fa-times"></i></span>
  116. </dd>
  117. </script>
  118. </div>
  119. </div>
  120. <div class="form-group">
  121. <div class="col-xs-9 col-sm-9" style="margin-left:44%;margin-bottom:15px">
  122. <button type="button" class="btn btn-success btn-replace" style="text-align: center;width: 13%;margin-top: 5%">
  123. {:__('立即申请')}</button>
  124. </div>
  125. </div>
  126. </div>
  127. <div class="col-xs-12 col-sm-12">
  128. <div class="form-group">
  129. <label style=" width: 10%;" class="control-label col-xs-3 col-sm-3">{:__('维修报告列表')}:</label>
  130. <div class="col-xs-9 col-sm-9">
  131. <table class="new_table">
  132. <thead>
  133. <tr>
  134. <td>故障现象</td>
  135. <td>可能原因</td>
  136. <td>故障部位</td>
  137. <td>排除方法</td>
  138. <td>操作</td>
  139. </tr>
  140. </thead>
  141. <tbody>
  142. {if $row.other_report_text}
  143. {foreach name="row.other_report_text" item="vo"}
  144. <tr>
  145. <td>{$vo.xx_name}</td>
  146. <td>{$vo.yy_name}</td>
  147. <td>{$vo.bw_name}</td>
  148. <td>{$vo.pc_name}</td>
  149. <td>
  150. <span class="btn btn-xs btn-success btnedit" title="编辑" xh_id="{$vo.xh_id}"><i class="fa fa-pencil"></i> 编辑</span>
  151. <span class="btn btn-xs btn-danger btnmove" title="移除" xh_id="{$vo.xh_id}"><i class="fa fa-times"></i> 移除</span>
  152. </td>
  153. </tr>
  154. {/foreach}
  155. {else/}
  156. <tr>
  157. <td colspan="5">暂无记录</td>
  158. </tr>
  159. {/if}
  160. </tbody>
  161. </table>
  162. <a href="javascript:;" style="margin-top:8px" class="btn btn-sm btn-info btn-addlog">添加维修报告记录</a>
  163. </div>
  164. <textarea name="row[other_report]" style="margin-top:9px" class="form-control hide other_report" cols="30" rows="5">{$row.other_report}</textarea>
  165. </div>
  166. </div>
  167. <div class="form-group" style="text-align: center">
  168. <!-- <button type="button" class="btn btn-success btn-replace" style="text-align: center;width: 10%;margin-top: 5%">{:__('暂存')}</button>-->
  169. <button type="submit" class="btn btn-info" style="text-align: center;width: 10%;margin-top: 5%">{:__('交卷')}</button>
  170. </div>
  171. </form>
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. </div>