form_71a.php 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  1. <?php
  2. require_once '../connection.php';
  3. function e($s): string { return htmlspecialchars((string)($s ?? ''), ENT_QUOTES, 'UTF-8'); }
  4. $enquiry_date = date("l dS M \'y");
  5. $drg = isset($_GET['drg']) ? (int)$_GET['drg'] : 0;
  6. if (!empty($drg)) {
  7. include "../table.php";
  8. }
  9. ?>
  10. <!DOCTYPE html>
  11. <html lang="en">
  12. <head>
  13. <!-- Basic Page Needs -->
  14. <meta charset="utf-8">
  15. <meta name="viewport" content="width=device-width, initial-scale=1">
  16. <title><?php echo e($title); ?> - Form 71a - <?php echo e($street); ?> - <?php echo date("dmY"); ?></title>
  17. <meta name="description" content="">
  18. <meta name="author" content="">
  19. <!-- FONT -->
  20. <link href="//fonts.googleapis.com/css?family=Raleway:400,300,600" rel="stylesheet" type="text/css">
  21. <!-- CSS -->
  22. <link rel="stylesheet" href="../css/forms.css" >
  23. <link rel="stylesheet" href="../css/forms_print.css" media="print">
  24. <!-- Favicon -->
  25. <link rel="shortcut icon" href="../images/blueprint.ico" type="image/x-icon">
  26. </head>
  27. <body>
  28. <!-- Primary Page Layout -->
  29. <div class="container">
  30. <!-- !userProfile -->
  31. <div class="logo"> <img src="../images/blueprint-full-logo-medium.png" height="50px"> </div>
  32. <div style="margin-top:10px;"></div>
  33. <!-- Form Details -->
  34. <table id="top-heading" width="100%" style="border-top:3px solid black;">
  35. <thead></thead>
  36. <tbody width="100%">
  37. <tr>
  38. <td id="title" width="75%">
  39. <h3>STANDARD OF WORK CERTIFICATE – BUILDING WORK</h3>
  40. </td>
  41. <td id="codes" width="25%">
  42. <h4>Section 103 </h4>
  43. <h4>Section 151</h4>
  44. </td>
  45. </tr>
  46. </tbody>
  47. </table>
  48. <!-- Council Details -->
  49. <table class="expand hover" width="75%">
  50. <thead></thead>
  51. <tbody width="100%">
  52. <tr>
  53. <td width="12.5%">To:</td>
  54. <td id="border" width="65%" style="font-weight:bold;">
  55. <?php echo e($building_surveyor); ?> -
  56. <?php echo e($bs_company); ?>
  57. </td>
  58. <td width="27.5%">Building Surveyor</td>
  59. </tr>
  60. <tr>
  61. <td width="12.5%">Address:</td>
  62. <td id="border" width="65%">
  63. <?php echo e($bs_address); ?>
  64. </td>
  65. <td width="27.5%">Address</td>
  66. </tr>
  67. <tr>
  68. <td width="12.5%">&nbsp;</td>
  69. <td id="border" width="60%">
  70. <?php echo e($bs_email); ?>
  71. </td>
  72. <td width="27.5%">Contact Details</td>
  73. </tr>
  74. </tbody>
  75. </table>
  76. <!-- Form Number -->
  77. <table class="expand hover" width="25%">
  78. <thead></thead>
  79. <tbody width="100%">
  80. <tr>
  81. <td style="padding: 0px;">
  82. <p id="form" width="100%">Form</p>
  83. <p id="formNo" width="100%">71a</p>
  84. </td>
  85. </tr>
  86. </tbody>
  87. </table>
  88. <!-- Details of the Builder -->
  89. <table id="heading" width="100%">
  90. <thead></thead>
  91. <tbody width="100%">
  92. <tr>
  93. <td width="75%">
  94. <h4>Builder details:</h4>
  95. </td>
  96. <td id="" width="25%">&nbsp;</td>
  97. </tr>
  98. </tbody>
  99. </table>
  100. <table class="expand hover" width="100%">
  101. <thead></thead>
  102. <tbody width="100%">
  103. <tr>
  104. <td width="12.5%">Builder:</td>
  105. <td id="border" width="40%"><?php echo e($licenced_builder); ?></td>
  106. <td width="0%">&nbsp;</td>
  107. <td width="22.5%" style="text-align: right;">Project reference No.</td>
  108. <td id="border" width="25%">Bison Job # <span style="color: red;"><?php echo e($qId); ?></span></td>
  109. </tr>
  110. <tr>
  111. <td width="12.5%">Business:</td>
  112. <td id="border" width="40%"><?php echo e($lb_company); ?></td>
  113. <td width="0%">&nbsp;</td>
  114. <td width="22.5%" style="text-align: right;">Licence No:</td>
  115. <td id="border"width="25%"><?php echo e($lb_licence); ?></td>
  116. </tr>
  117. <tr>
  118. <td width="12.5%">Address:</td>
  119. <td id="border" width="40%"><?php echo e($lb_address); ?></td>
  120. <td width="0%">&nbsp;</td>
  121. <td width="22.5%" style="text-align: right;">Phone No:</td>
  122. <td id="border"width="25%"><?php echo e($lb_mobile); ?></td>
  123. </tr>
  124. <tr>
  125. <td width="12.5%">&nbsp;</td>
  126. <td id="border" width="40%"><?php //echo $row['39_b_state'];?></td>
  127. <td width="0%">&nbsp;</td>
  128. <td width="22.5%" style="text-align: right;">Fax No:</td>
  129. <td id="border"width="25%"><?php //echo $row['39_b_fax'];?></td>
  130. </tr>
  131. </tbody>
  132. </table>
  133. <table class="expand hover" width="100%">
  134. <thead></thead>
  135. <tbody width="100%">
  136. <tr>
  137. <td width="14.5%">Category:</td>
  138. <td id="border" width="30%">Builder - Medium Rise</td>
  139. <td width="0%">&nbsp;</td>
  140. <td width="12.5%" style="text-align: right;">Email Address:</td>
  141. <td id="border" width="42%"><?php echo e($lb_email); ?></td>
  142. </tr>
  143. </tbody>
  144. </table>
  145. <br />
  146. <!-- Details of the Owner -->
  147. <table id="heading" width="100%" >
  148. <thead></thead>
  149. <tbody width="100%">
  150. <tr>
  151. <td width="75%"><h4>Owner details:</h4></td>
  152. <td id="" width="25%">&nbsp;</td>
  153. </tr>
  154. </tbody>
  155. </table>
  156. <table class="expand hover" width="100%">
  157. <thead></thead>
  158. <tbody width="100%">
  159. <tr>
  160. <td width="75%" style="font-style: italic;">Note: Copy <b>Must</b> be forwarded to Owner</td>
  161. <td id="" width="25%">&nbsp;</td>
  162. </tr>
  163. </tbody>
  164. </table>
  165. <table class="expand hover" width="100%">
  166. <thead></thead>
  167. <tbody width="100%">
  168. <tr>
  169. <td width="12.5%">Owner:</td>
  170. <td id="border" width="88%">
  171. <?php echo e($propertyOwner); ?>
  172. </td>
  173. </tr>
  174. </tbody>
  175. </table>
  176. <table class="expand hover" width="100%">
  177. <thead></thead>
  178. <tbody width="100%">
  179. <tr>
  180. <td width="12.5%">Business:</td>
  181. <td id="border" width="40%">
  182. <?php echo e($propertyName); ?>
  183. </td>
  184. <td width="0%">&nbsp;</td>
  185. <td width="22.5%" style="text-align: right;">Phone No:</td>
  186. <td id="border" width="25%">
  187. <?php echo e($client_mobile); ?>
  188. </td>
  189. </tr>
  190. <tr>
  191. <td width="12.5%">Address:</td>
  192. <td id="border" width="40%">
  193. <?php echo e($propertyAddress); ?>
  194. </td>
  195. <td width="0%">&nbsp;</td>
  196. <td width="22.5%" style="text-align: right;">Fax No:</td>
  197. <td id="border" width="25%">
  198. <?php //echo $row['39_b_fax'];?>
  199. </td>
  200. </tr>
  201. </tbody>
  202. </table>
  203. <table class="expand hover" width="100%">
  204. <thead></thead>
  205. <tbody width="100%">
  206. <tr>
  207. <td width="14.5%">&nbsp;</td>
  208. <td width="20%">
  209. </td>
  210. <td width="0%">&nbsp;</td>
  211. <td width="22.5%" style="text-align: right;">Email Address:</td>
  212. <td id="border" width="42%">
  213. <?php echo e($client_email); ?>
  214. </td>
  215. </tr>
  216. </tbody>
  217. </table>
  218. <br />
  219. <!-- Building Designer Details -->
  220. <table id="heading" width="100%">
  221. <thead></thead>
  222. <tbody width="100%">
  223. <tr>
  224. <td width="75%">
  225. <h4>Details of Building work:</h4>
  226. </td>
  227. <td id="" width="25%">&nbsp;</td>
  228. </tr>
  229. </tbody>
  230. </table>
  231. <br />
  232. <table class="expand hover" width="100%">
  233. <thead></thead>
  234. <tbody width="100%">
  235. <tr>
  236. <td width="20%">Type of work:</td>
  237. <td id="border" width="5%" style="text-align: center;"><?php if ($permit_type == '1'){echo "&#10008";}?></td>
  238. <td width="20%">Permit work:</td>
  239. <td id="border" width="5%" style="text-align: center;"><?php if ($permit_type == '0'){echo "&#10008";}?></td>
  240. <td width="20%">Notifiable work:</td>
  241. <td width="25%">(X one applicable.)</td>
  242. <td width="5%">&nbsp;</td>
  243. </tr>
  244. </tbody>
  245. </table>
  246. <table class="expand hover" width="100%">
  247. <thead></thead>
  248. <tbody width="100%">
  249. <tr>
  250. <td width="25%" style="text-align: right;">Certificate of Likely Compliance Number:</td>
  251. <td id="border" width="25%"><?php echo e(strtoupper(str_replace('_', '/', $compliance_no))); ?></td>
  252. <td width="25%" style="text-align: right;">Permit or Certificate of Likely Compliance Number:</td>
  253. <td id="border" width="25%" class="text-uppercase"><?php echo e(strtoupper(str_replace('_', '/', $permit_no))); ?></td>
  254. </tr>
  255. </tbody>
  256. </table>
  257. <table class="expand hover" width="100%">
  258. <thead></thead>
  259. <tbody width="100%">
  260. <tr>
  261. <td width="12.5%">Address:</td>
  262. <td id="border" width="40%"><?php echo e($site_address); ?></td>
  263. <td width="22.5%" style="text-align: right;">Lot No:</td>
  264. <td id="border" width="25%"><?php echo e(str_replace('_', '/', $volumeId)); ?></td>
  265. </tr>
  266. <tr>
  267. <td width="12.5%">&nbsp;</td>
  268. <td id="border" width="40%"></td>
  269. <td width="22.5%" style="text-align: right;">PID:</td>
  270. <td id="border" width="25%"><?php echo e($propertyId); ?></td>
  271. </tr>
  272. </tbody>
  273. </table>
  274. <table class="expand hover" width="100%">
  275. <thead></thead>
  276. <tbody width="100%">
  277. <tr>
  278. <td width="12.5%">The work:</td>
  279. <td id="border" width="87.5%">Proposed new <?php echo e($size); ?> ( Approximately <?php echo e($length * $width); ?>m2 ) - <?php echo e($type); ?></td>
  280. </tr>
  281. </tbody>
  282. </table>
  283. <br>
  284. <table class="expand hover" width="100%">
  285. <thead></thead>
  286. <tbody width="100%">
  287. <tr>
  288. <td width="12.5%">Use of building:</td>
  289. <td id="border" width="40%"><?php echo e($type); ?></td>
  290. <td width="22.5%" style="text-align: right;">Building Class(es):</td>
  291. <td id="border"width="25%"><?php echo e($building_class); ?></td>
  292. </tr>
  293. </tbody>
  294. </table>
  295. <!-- Standards, codes or guidelines -->
  296. <table id="heading" width="100%">
  297. <thead></thead>
  298. <tbody width="100%">
  299. <tr>
  300. <td width="75%">
  301. <h4>Builder Standard of Work Statement:</h4>
  302. </td>
  303. <td id="" width="25%">&nbsp;</td>
  304. </tr>
  305. </tbody>
  306. </table>
  307. <table class="expand hover" width="100%" style="border-bottom: none;">
  308. <thead></thead>
  309. <tbody width="100%">
  310. <tr>
  311. <td width="100%">
  312. <p>I confirm I am the <span style="font-style: italic;">Licensed Builder</span> responsible for the construction and supervision of the above referenced project. Having supervised and/or carried out the building work, I confirm that:</p>
  313. </td>
  314. </tr>
  315. </tbody>
  316. </table>
  317. <table class="expand hover" width="100%" style="border-bottom: none;">
  318. <thead></thead>
  319. <tbody width="100%">
  320. <tr>
  321. <td width="100%">
  322. <p><b>Notes.</b></p>
  323. <ul>
  324. <li>(a) all building work is complete; and</li>
  325. <li>(b) all directions given under the Building Act 2016 and Building Regulations 2016 have been complied with; and</li>
  326. <li>(c) the building work as constructed is in compliance with the National Construction Code, the approved plans, specifications and conditions of the Certificate of Likely Compliance (or a Building Permit) granted for the work</li>
  327. </ul>
  328. </td>
  329. </tr>
  330. </tbody>
  331. </table>
  332. <?php
  333. $signedDate = '';
  334. $result = mysqli_query($con, "SELECT * FROM `council_forms` WHERE quote = " . (int)$client_quote . " AND form_type = 'F71a' ORDER BY date ASC");
  335. if (!$result) {
  336. printf("Error: %s\n", mysqli_error($con));
  337. exit();
  338. }
  339. while ($row = mysqli_fetch_array($result)) {
  340. $signedDate = date('d M Y', strtotime($row['date']));
  341. }
  342. ?>
  343. <table class="expand hover" width="100%" style="border-bottom: none;">
  344. <thead></thead>
  345. <tbody width="100%">
  346. <tr>
  347. <td width="12.5%">Builder:</td>
  348. <!-- (builder or owner builder): -->
  349. <td id="border" width="28%" style="font-size: 19px; color:blue;">
  350. <?php echo e($licenced_builder); ?>
  351. </td>
  352. <td width="1.75%"></td>
  353. <td id="border" width="28%" height="40px">
  354. <div class="signature"> <img src="images/signature/<?php echo e(strtolower(str_replace(' ', '_', $licenced_builder))); ?>-signature.png" height="40px" /> </div>
  355. </td>
  356. <td width="1.75%"></td>
  357. <td id="border" width="28%" style="font-size: 19px; color:blue;">
  358. <?php echo e($signedDate); ?>
  359. </td>
  360. </tr>
  361. </tbody>
  362. </table>
  363. <table class="expand hover" width="100%" style="border-bottom: none;">
  364. <thead></thead>
  365. <tbody width="100%">
  366. <tr>
  367. <td width="100%">
  368. <p class="footer">
  369. <?php echo e($qId); ?> - [Form 71a] - Document Printed on: <?php echo date("dS M Y");?> at <?php echo date("g:i A");?>
  370. </p>
  371. </td>
  372. </tr>
  373. </tbody>
  374. </table>
  375. </div>
  376. <!-- End Document -->
  377. </body>
  378. </html>