getpdf.html 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>{$title}</title>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
  7. <meta name="renderer" content="webkit">
  8. <meta name="referrer" content="never">
  9. <meta name="robots" content="noindex, nofollow">
  10. <link href="/assets/css/bootstrap.css" rel="stylesheet">
  11. </head>
  12. <style>
  13. /* 默认情况下,屏幕上显示 */
  14. .hide-on-print {
  15. display: block;
  16. text-align: right;
  17. margin-bottom: 20px;
  18. padding-top: 20px;
  19. }
  20. .table-bordered {
  21. border: 1px solid #ddd;
  22. }
  23. .panel-heading {
  24. padding: 10px 0px;
  25. }
  26. .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {
  27. border: 1px solid #ddd;
  28. }
  29. /* 打印时隐藏 */
  30. @media print {
  31. .hide-on-print {
  32. display: none;
  33. }
  34. }
  35. </style>
  36. <body style="width: 760px;margin: 0 auto">
  37. <div class="hide-on-print">
  38. <button type="button" onclick="printPage()" class="btn btn-primary dropdown-toggle">导出PDF</button>
  39. </div>
  40. <div style="text-align: center"><h2>{$title}</h2></div>
  41. <table class="table table-striped table-bordered table-hover table-nowrap">
  42. <tr>
  43. <td>项目名称</td>
  44. <td>{$user_company['projectname']}</td>
  45. </tr>
  46. <tr>
  47. <td>委托单位</td>
  48. <td>{$user_company['weituo']}</td>
  49. </tr>
  50. <tr>
  51. <td>消防技术服务机构(公章)</td>
  52. <td>{$user_company['fuwujigou']}</td>
  53. </tr>
  54. <tr>
  55. <td>项目负责人(执业资格章)</td>
  56. <td>{$user_company['header']}</td>
  57. </tr>
  58. <tr>
  59. <td>签发日期</td>
  60. <td>{$user_company['starttime']|date="Y-m-d",###}</td>
  61. </tr>
  62. </table>
  63. <div style="text-align: center"><h2>建筑消防设施维护保养报告</h2></div>
  64. <table class="table table-striped table-bordered table-hover table-nowrap">
  65. <tr>
  66. <td>项目名称</td>
  67. <td colspan="3">{$user_company['projectname']}</td>
  68. </tr>
  69. <tr>
  70. <td>项目地址</td>
  71. <td colspan="3">{$user_company['projectaddress']}</td>
  72. </tr>
  73. <tr>
  74. <td>委托单位</td>
  75. <td colspan="3">{$user_company['weituo']}</td>
  76. </tr>
  77. <tr>
  78. <td>委托单位联系人</td>
  79. <td>{$user_info['contactname']}</td>
  80. <td>联系电话</td>
  81. <td>{$user_info['mobile']}</td>
  82. </tr>
  83. <tr>
  84. <td>消防技术服务机构</td>
  85. <td colspan="3">{$user_company['fuwujigou']}</td>
  86. </tr>
  87. <tr>
  88. <td>项目负责人</td>
  89. <td>{$user_company['header']}</td>
  90. <td>技术负责人</td>
  91. <td>{$user_company['xiaofang']}</td>
  92. </tr>
  93. <tr>
  94. <td>现场操作员及证书编号</td>
  95. <td colspan="3">{$worker['truename']}</td>
  96. </tr>
  97. <tr>
  98. <td>本次维保日期</td>
  99. <td colspan="3">{$jiance['tongjitime']|date="Y-m-d",###}</td>
  100. </tr>
  101. <tr>
  102. <td>维保服务合同期限</td>
  103. <td colspan="3">{$user_company['starttime']|date="Y-m-d",###} - {$user_company['endtime']|date="Y-m-d",###}</td>
  104. </tr>
  105. <tr>
  106. <td>建筑物概况</td>
  107. <td colspan="3"><br/><br/><br/><br/></td>
  108. </tr>
  109. <tr>
  110. <td>建筑物供水设施</td>
  111. <td colspan="3"><br/><br/><br/><br/></td>
  112. </tr>
  113. <tr>
  114. <td>维护保养合同涵盖的消防系统</td>
  115. <td colspan="3">
  116. {volist name="top_project" id="vo"}
  117. {$vo.check}{$vo.title}<br/>
  118. {/volist}
  119. </td>
  120. </tr>
  121. <tr>
  122. <td>消防技术服务机构现场记录的消防设施故障</td>
  123. <td colspan="3">
  124. 本次维护保养存在以下不合格项:<br>
  125. {volist name="job_wrong" id="vo"}
  126. {$vo.title}<br>
  127. {$vo.info}<br/>
  128. {/volist}
  129. </td>
  130. </tr>
  131. <tr>
  132. <td>以往记录的消防设施故障的跟踪</td>
  133. <td colspan="3"></td>
  134. </tr>
  135. <tr>
  136. <td>消防技术服务机构备注说明</td>
  137. <td colspan="3"></td>
  138. </tr>
  139. <tr>
  140. <td>消防技术服务机构项目负责人签字盖章</td>
  141. <td colspan="3">(项目负责人执业印章)<br>
  142. 项目负责人签字:<br><br><br><br>
  143. <div style="text-align: right">&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;日</div>
  144. </td>
  145. </tr>
  146. <tr>
  147. <td>消防技术服务机构技术负责人签字盖章</td>
  148. <td colspan="3">(技术负责人执业印章)<br>
  149. 技术负责人签字:<br><br><br><br>
  150. <div style="text-align: right">&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;日</div>
  151. </td>
  152. </tr>
  153. <tr>
  154. <td>委托单位意见</td>
  155. <td colspan="3"><br/><br/><br/><br/><br/><br/></td>
  156. </tr>
  157. </table>
  158. <div style="text-align: center"><h2>建筑消防设施维护保养详细记录</h2></div>
  159. <table class="table table-striped table-bordered table-hover table-nowrap">
  160. <tr>
  161. <td style="width: 15%">维保项</td>
  162. <td style="width: 15%">维保内容</td>
  163. <td style="width: 25%">检查方法和要求</td>
  164. <td style="width: 19%">实测记录</td>
  165. <td style="width: 10%">判定</td>
  166. <td style="width: 16%">位置与图片</td>
  167. </tr>
  168. {volist name="top" id="bigproject"}
  169. <tr>
  170. <td colspan="6">{$bigproject.title}</td>
  171. </tr>
  172. {foreach $bigproject['child_type1'] as $child_type1}
  173. <tr>
  174. <td>技术要求</td>
  175. <td>{$child_type1.title}</td>
  176. <td>{$child_type1.info}</td>
  177. <td>{$child_type1.job.remark}</td>
  178. <td>
  179. {foreach $child_type1.job.panding as $panding}
  180. {$panding}</br>
  181. {/foreach}
  182. </td>
  183. <td>
  184. {foreach $child_type1.job.images as $image}
  185. <img src="{$image}?imageView2/1/w/400/h/600/q/85" width="50" height="" />
  186. {/foreach}
  187. </td>
  188. </tr>
  189. {/foreach}
  190. {foreach $bigproject['child_type2'] as $child_type2}
  191. <tr>
  192. <td>维护要求</td>
  193. <td>{$child_type2.title}</td>
  194. <td>{$child_type2.info}</td>
  195. <td>{$child_type2.job.remark}</td>
  196. <td>
  197. {foreach $child_type2.job.panding as $panding}
  198. {$panding}</br>
  199. {/foreach}
  200. </td>
  201. <td>
  202. {foreach $child_type2.job.images as $image}
  203. <img src="{$image}?imageView2/1/w/400/h/600/q/85" width="50" height="" />
  204. {/foreach}
  205. </td>
  206. </tr>
  207. {/foreach}
  208. {/volist}
  209. </table>
  210. <script type="text/javascript">
  211. function printPage() {
  212. window.print();
  213. }
  214. </script>
  215. </body>
  216. </html>