editreport.html 5.2 KB

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