editreport.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <style type="text/css">
  2. .new_table {
  3. border-collapse: collapse;
  4. margin: 0 auto;
  5. text-align: center;
  6. width: 25%;float: left;
  7. font-size: 12px;
  8. }
  9. .new_table td,
  10. table th {
  11. border: 1px solid #cad9ea;
  12. color: #666;
  13. height: 2.5em;
  14. }
  15. .new_table thead th {
  16. background-color: #CCE8EB;
  17. width: 100px;
  18. }
  19. tbody td{
  20. text-align: left;
  21. padding-left:15px;
  22. }
  23. </style>
  24. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  25. <div class="col-lg-12">
  26. <div class="tab-content">
  27. <div class="tab-pane" style="display: block">
  28. <input name="unwin[xh_id]" value="{$row.other_report_text.xh_id}" type="hidden">
  29. <table class="new_table">
  30. <thead>
  31. <tr>
  32. <td>故障现象</td>
  33. </tr>
  34. </thead>
  35. <tbody>
  36. <!-- <tr>-->
  37. <!-- <td>-->
  38. <!-- <select class="form-control" name="unwin[xx_id]">-->
  39. <!-- <option value="" >请选择</option>-->
  40. <!-- {foreach name="xianxiang" item="vo"}-->
  41. <!-- <option value="{$vo.fault_id}" {if $row.other_report_text.xx_id eq $vo.fault_id} selected {/if}>{$vo.name}</option>-->
  42. <!-- {/foreach}-->
  43. <!-- </select>-->
  44. <!-- </td>-->
  45. <!-- </tr>-->
  46. {foreach name="xianxiang" item="vo"}
  47. <tr>
  48. <td>
  49. <input {if $row.other_report_text.xx_id eq $vo.fault_id} checked {/if} id="row[xx_id]" name="unwin[xx_id]" type="radio" value="{$vo.fault_id}">&nbsp;&nbsp;&nbsp;{$vo.name}<br/>
  50. </td>
  51. </tr>
  52. {/foreach}
  53. </tbody>
  54. </table>
  55. <table class="new_table">
  56. <thead>
  57. <tr>
  58. <td>可能原因</td>
  59. </tr>
  60. </thead>
  61. <tbody>
  62. <!-- <tr>-->
  63. <!-- <td>-->
  64. <!-- {:build_select('unwin[yy_id][]', $yuanyin, $row.other_report_text.yy_id, ['class'=>'form-control selectpicker','multiple'=>''])}-->
  65. <!-- </td>-->
  66. <!-- </tr>-->
  67. {foreach name="yuanyin" item="vv"}
  68. <tr>
  69. <td>
  70. <input type="checkbox" {if in_array($key,$row.other_report_text.yy_id)} checked {/if} name="unwin[yy_id][]" value="{$key}">&nbsp;&nbsp;&nbsp;{$vv}
  71. </td>
  72. </tr>
  73. {/foreach}
  74. </tbody>
  75. </table>
  76. <table class="new_table">
  77. <thead>
  78. <tr>
  79. <td>故障部位</td>
  80. </tr>
  81. </thead>
  82. <tbody>
  83. <!-- <tr>-->
  84. <!-- <td>-->
  85. <!-- {:build_select('unwin[bw_id][]', $buwei, $row.other_report_text.bw_id, ['class'=>'form-control selectpicker','multiple'=>''])}-->
  86. <!-- </td>-->
  87. <!-- </tr>-->
  88. {foreach name="buwei" item="vv"}
  89. <tr>
  90. <td>
  91. <input {if $row.other_report_text.bw_id eq $key} checked {/if} id="row[bw_id]" name="unwin[bw_id]" type="radio" value="{$key}">
  92. &nbsp;&nbsp;&nbsp;{$vv}
  93. </td>
  94. </tr>
  95. {/foreach}
  96. </tbody>
  97. </table>
  98. <table class="new_table">
  99. <thead>
  100. <tr>
  101. <td>排除方法</td>
  102. </tr>
  103. </thead>
  104. <tbody>
  105. <!-- <tr>-->
  106. <!-- <td>-->
  107. <!-- {:build_select('unwin[pc_id][]', $paichu, $row.other_report_text.pc_id, ['class'=>'form-control selectpicker','multiple'=>''])}-->
  108. <!-- </td>-->
  109. <!-- </tr>-->
  110. {foreach name="paichu" item="v2"}
  111. <tr>
  112. <td>
  113. <input {if $row.other_report_text.pc_id eq $key} checked {/if} id="row[pc_id]" name="unwin[pc_id]" type="radio" value="{$key}">
  114. &nbsp;&nbsp;&nbsp;{$v2}
  115. </td>
  116. </tr>
  117. {/foreach}
  118. </tbody>
  119. </table>
  120. </div>
  121. </div>
  122. </div>
  123. <div class="form-group layer-footer">
  124. <label class="control-label col-xs-12 col-sm-2"></label>
  125. <div class="col-xs-12 col-sm-8">
  126. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  127. </div>
  128. </div>
  129. </form>