editreport.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. {foreach name="xianxiang" item="vo"}
  37. <tr>
  38. <td>
  39. <input {if in_array($vo.fault_id,$row.xxid)} disabled {/if} {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/>
  40. </td>
  41. </tr>
  42. {/foreach}
  43. </tbody>
  44. </table>
  45. <table class="new_table">
  46. <thead>
  47. <tr>
  48. <td>可能原因</td>
  49. </tr>
  50. </thead>
  51. <tbody>
  52. {foreach name="yuanyin" item="vv"}
  53. <tr>
  54. <td>
  55. <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}
  56. </td>
  57. </tr>
  58. {/foreach}
  59. </tbody>
  60. </table>
  61. <table class="new_table">
  62. <thead>
  63. <tr>
  64. <td>故障部位</td>
  65. </tr>
  66. </thead>
  67. <tbody>
  68. {foreach name="buwei" item="vv"}
  69. <tr>
  70. <td>
  71. <input {if $row.other_report_text.bw_id eq $key} checked {/if} id="row[bw_id]" name="unwin[bw_id]" type="radio" value="{$key}">
  72. &nbsp;&nbsp;&nbsp;{$vv}
  73. </td>
  74. </tr>
  75. {/foreach}
  76. </tbody>
  77. </table>
  78. <table class="new_table">
  79. <thead>
  80. <tr>
  81. <td>排除方法</td>
  82. </tr>
  83. </thead>
  84. <tbody>
  85. {foreach name="paichu" item="v2"}
  86. <tr>
  87. <td>
  88. <input {if $row.other_report_text.pc_id eq $key} checked {/if} id="row[pc_id]" name="unwin[pc_id]" type="radio" value="{$key}">
  89. &nbsp;&nbsp;&nbsp;{$v2}
  90. </td>
  91. </tr>
  92. {/foreach}
  93. </tbody>
  94. </table>
  95. </div>
  96. </div>
  97. </div>
  98. <div class="form-group layer-footer">
  99. <label class="control-label col-xs-12 col-sm-2"></label>
  100. <div class="col-xs-12 col-sm-8">
  101. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  102. </div>
  103. </div>
  104. </form>