record_detail.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <style>
  4. .test-paper {
  5. display: flex;
  6. justify-content: center;
  7. align-items: center;
  8. }
  9. .test-paper-title {
  10. font-size: 24px;
  11. font-weight: bold;
  12. }
  13. .test-paper-user {
  14. font-size: 14px;
  15. margin-left: 100px;
  16. margin-top: 20px;
  17. }
  18. .title-text {
  19. font-size: 18px;
  20. font-weight: 600;
  21. margin-top: 30px;
  22. }
  23. .sub_title{
  24. font-size: 16px;
  25. font-weight: 600;
  26. margin-left: 20px;
  27. margin-bottom: 10px;
  28. }
  29. .sub_sub_title{
  30. font-size: 16px;
  31. font-weight: 500;
  32. margin-left: 20px;
  33. margin-bottom: 5px;
  34. margin-top: 5px;
  35. }
  36. .sub_sub_scored_box{
  37. font-size: 15px;
  38. margin-left: 30px;
  39. margin-top: 8px;
  40. margin-bottom: 8px;
  41. }
  42. .sub_sub_scored{
  43. }
  44. .sub_sub_reason{
  45. margin-left: 50px;
  46. }
  47. .create_time{
  48. text-align: right;
  49. margin-right: 100px;
  50. font-size: 16px;
  51. margin-top: 30px;
  52. margin-bottom: 50px;
  53. }
  54. </style>
  55. </style>
  56. <div class="row">
  57. <div class="col-sm-12">
  58. <div class="ibox float-e-margins">
  59. <div class="ibox-content">
  60. <div class="ibox-tools">
  61. <a onclick="window.history.back()" class="toback">返回上一页</a>
  62. </div>
  63. <div id="printer" style="margin-top: 30px;border: 1px solid #f1f1f1;padding: 10px">
  64. <h2 style="text-align: center">{$info['supervise_title']}</h2>
  65. <!-- <h4 style="text-align: right">提交人:{$info['user_name']}</h4>-->
  66. <table class="table table-bordered">
  67. <thead>
  68. <tr>
  69. <th colspan="2" style="width:20%">考核目标</th>
  70. <th style="width:120px">评分标准</th>
  71. <th style="width:120px">考核标准</th>
  72. <th style="width:50px">分值</th>
  73. <th style="width:50px">得分</th>
  74. <th style="width:50px">扣分</th>
  75. <th style="width:60px">扣分原因</th>
  76. <th style="width:80px">图片</th>
  77. </tr>
  78. </thead>
  79. <tbody>
  80. {foreach $arr as $k=>$v}
  81. <tr>
  82. {if condition="$v['title1']"}
  83. <td rowspan="{$v['num1']}">{$v['title1']}</td>
  84. {/if}
  85. {if condition="$v['title2']"}
  86. <td style="width:10%" rowspan="{$v['num2']}">{$v['title2']}</td>
  87. <td style="width:10%" rowspan="{$v['num2']}">{$v['standard']}</td>
  88. {/if}
  89. <td style="width:15%">{$v['title3']}</td>
  90. <td>{$v['score']}</td>
  91. {if condition="$v['title2']"}
  92. <td rowspan="{$v['num2']}">{$v['score_dec']}</td>
  93. <td rowspan="{$v['num2']}">{$v['scored']}</td>
  94. <td rowspan="{$v['num2']}" style="width:10%">{$v['reason']}</td>
  95. <td rowspan="{$v['num2']}" style="width:20%">
  96. {if condition = "$v['img']"}
  97. {foreach $v['img'] as $kk=>$vv}
  98. <img src="{$vv}" alt="" width="50px" height="50px" onclick="open_img(this)">
  99. {/foreach}
  100. {/if}
  101. </td>
  102. {/if}
  103. </tr>
  104. {/foreach}
  105. </tbody>
  106. </table>
  107. <h5 style="text-align: right">提交时间:{$info['create_time']} <text style="margin-left: 30px">总分:{$info['score1']}</text> <text style="margin-left: 30px">得分:{$info['score2']}</text> <text style="margin-left: 30px">扣分:{$info['score']}</text> <text style="margin-left: 30px">提交人:{$info['user_name']}</text> </h5>
  108. </div>
  109. <div class="text-center">
  110. <br>
  111. <a href="javascript:;" class="btn btn-sm btn-primary" onclick="print()"><i class="glyphicon glyphicon-print"> 打印</i></a>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. {/block}
  118. {block name="script"}
  119. <script src="/static/bootstrap-multiselect/docs/js/jquery-2.1.3.min.js"></script>
  120. <script src="/static/browser.js"></script>
  121. <script src="/static/jquery.jqprint-0.3.js"></script>
  122. <script>
  123. function print(){
  124. $("#printer").jqprint();
  125. }
  126. </script>
  127. {/block}