form_71a.php 17 KB

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