<?php
require_once '../connection.php';

$enquiry_date = date("l dS M \'y");

$drg = isset($_GET['drg']) ? $_GET['drg'] : '';

if (!empty($_GET['drg'])) {
    include "../table.php";
}
?>

<!DOCTYPE html>
<html lang="en">
    <head>

        <!-- Basic Page Needs -->
        <meta charset="utf-8">
    	<meta name="viewport" content="width=device-width, initial-scale=1">
        <title><?php echo $title; ?> - Form 60 - <?php echo $street; ?> - <?php echo date("dmY"); ?></title>
        <meta name="description" content="">
        <meta name="author" content="">

        <!-- FONT -->
        <link href="//fonts.googleapis.com/css?family=Raleway:400,300,600" rel="stylesheet" type="text/css">

        <!-- CSS -->
        <link rel="stylesheet" href="../css/forms.css" >
        <link rel="stylesheet" href="../css/forms_print.css" media="print">

        <!-- Favicon -->
        <link rel="shortcut icon" href="../images/blueprint.ico" type="image/x-icon">

    </head>

	<body>
        <!-- Primary Page Layout -->
        <div class="container">

            <!-- !userProfile -->
            <div class="logo" > <div src="images/color-logo.png" height="50px"></div>
                <div style="margin-top:10px;"></div>

                <!-- Form Details  -->
                <table id="top-heading" width="100%" style="border-top:3px solid black;">
                    <thead></thead>
                    <tbody width="100%">
                        <tr>
                            <td id="title" width="75%">
                                <h3>START-WORK NOTIFICATION AND <br />&ndash; AUTHORISATION – PLUMBING WORK</h3>
                            </td>
                            <td id="codes" width="25%">
                                <h4>Section 110 </h4>
                                <h4>Regulation 35</h4>
                            </td>
                        </tr>
                    </tbody>
                </table>

                <!-- Council Details  -->
                <table class="expand hover" width="75%">
                    <thead></thead>
                    <tbody width="100%">
                        <tr>
                            <td width="12.5%">To:</td>
                            <td id="border" width="65%" style="font-weight:bold;"><?php echo $building_surveyor; ?> - <?php echo $bs_company; ?></td>
                            <td width="27.5%">Permit Authority</td>
                        </tr>

                        <tr>
                            <td width="12.5%">Address:</td>
                            <td id="border" width="65%"><?php echo $bs_address; ?></td>
                            <td width="27.5%">Address</td>
                        </tr>

                        <tr>
                            <td width="12.5%">&nbsp;</td>
                            <td id="border" width="60%"><?php echo $bs_email; ?></td>
                            <td width="27.5%">Contact Details</td>
                        </tr>

                        <tr>
                            <td width="12.5%">&nbsp;</td>
                            <td id="border" width="60%"><?php echo $bs_mobile; ?></td>
                            <td width="27.5%">Phone Number</td>
                        </tr>

                    </tbody>
                </table>

                <!-- Form Number  -->
                <table class="expand hover" width="25%">
                    <thead></thead>
                    <tbody width="100%">
                        <tr>
                            <td style="padding: 0px;">
                                <p id="form" width="100%">Form</p>
                                <p id="formNo" width="100%">60</p>
                            </td>
                        </tr>
                    </tbody>
                </table>

                <!-- Building Designer Details  -->
                <table id="heading" width="100%">
                    <thead></thead>
                    <tbody width="100%">
                        <tr>
                            <td width="75%">
                                <h4>Details of plumbing work:</h4>
                            </td>
                            <td id="codes" width="25%">&nbsp;</td>
                        </tr>
                    </tbody>
                </table>

                <br />

                <table class="expand hover" width="100%">
                    <thead></thead>
                    <tbody width="100%">
                        <tr>
                            <td width="20%">Type of work:</td>
                            <td id="border" width="5%" style="text-align: center;"><?php //if ($row['39_bwpermit'] == '1'){echo "&#10008";}?>&#10008</td>
                            <td width="20%">Permit work:</td>
                            <td id="border" width="5%" style="text-align: center;"><?php //if ($row['39_bwnotifi']== '1'){echo "&#10008";}?></td>
                            <td width="20%">Notifiable work:</td>
                            <td width="25%">(X one applicable.)</td>
                            <td width="5%">&nbsp;</td>
                        </tr>
                    </tbody>
                </table>

                <table class="expand hover" width="100%">
                    <thead></thead>
                    <tbody width="100%">
                        <tr>
                            <td width="12.5%">Address:</td>
                            <td id="border" width="40%"><?php echo $street; ?></td>
                            <td width="22.5%" style="text-align: right;">Lot No:</td>
                            <td id="border" width="25%"><?php echo $folio; ?></td>
                        </tr>

                        <tr>
                            <td width="12.5%">&nbsp;</td>
                            <td id="border" width="40%"><?php echo $town; ?>, <?php echo $state; ?>, <?php echo $post_code; ?></td>
                            <td width="22.5%" style="text-align: right;">Certificate of title:</td>
                            <td id="border" width="25%"><?php echo $volume; ?></td>
                        </tr>

                        <tr>
                            <td width="12.5%">&nbsp;</td>
                            <td id="border" width="40%">PID: <?php echo $propertyId; ?> ( Volume: <?php echo $volume; ?> Folio: <?php echo $folio; ?> )</td>
                            <td width="22.5%" style="text-align: right;">PID:</td>
                            <td id="border" width="25%"><?php echo $propertyId; ?></td>
                        </tr>

                        <tr>
                            <td width="12.5%">The work:</td>
                            <td id="border" width="40%">Roof Plumbing for <?php echo $type; ?> ( Approximately <?php echo ($length * $width ); ?>m2 )</td>
                            <td width="22.5%" style="text-align: right;">Permit Number or Likely Compliance Number:</td>
                            <td id="border" width="25%" style="text-transform: uppercase;" class="text-uppercase"><?php echo $permit_no; ?></td>
                        </tr>
                    </tbody>
                </table>

                <br />

                <table class="expand hover" width="100%">
                    <thead></thead>
                    <tbody width="100%">
                        <tr>
                            <td width="12.5%">Reticulated water</td>
                            <td id="border" width="5%"></td>
                            <td width="" style="text-align: right;">Sewerage</td>
                            <td id="border" width="5%"></td>
                            <td width="" style="text-align: right;">Stormwater</td>
                            <td id="border" width="5%"></td>
                            <td width="" style="text-align: right;">Is the work gratuitious work</td>
                            <td id="border" width="5%"></td>
                        </tr>
                    </tbody>
                </table>

                <table class="expand hover" width="100%">
                    <thead></thead>
                    <tbody width="100%">
                        <tr>
                            <td width="12.5%" >On-site</td>
                            <td id="border" width="5%"></td>
                            <td width="" style="text-align: right;">Roof plumbing</td>
                            <td id="border" width="5%" style="color:blue;">&#10008</td>
                            <td width="" style="text-align: right;">Other (please specify)</td>
                            <td id="border" width="25%"></td>
                        </tr>
                    </tbody>
                </table>

                <table class="expand hover" width="100%">
                    <thead></thead>
                    <tbody width="100%">
                        <tr>
                            <td width="25%" >wastewater management system</td>
                            <td width="50%" ></td>
                            <td width="25%" style="text-align: right;">(X if applicable)</td>
                        </tr>
                    </tbody>
                </table>

                <!-- Details of the proposed work  -->
                <table id="heading" width="100%" >
                    <thead></thead>
                    <tbody width="100%">
                        <tr>
                            <td width="75%">
                                <h4>Details of plumber/certifier and contractor:</h4>
                            </td>
                            <td id="codes" width="25%">&nbsp;</td>
                        </tr>
                    </tbody>
                </table>

                <table class="expand hover" width="100%">
                    <thead></thead>
                    <tbody width="100%">
                        <tr>
                            <td width="12.5%">Plumber:</td>
                            <td id="border" width="40%">Anthony R. Wallis</td>
                            <td width="0%">&nbsp;</td>
                            <td width="22.5%" style="text-align: right;">Project reference No.</td>
                            <td id="border" width="25%">Bison Job # <span style="color: red;"><?php echo $qId; ?></span></td>
                        </tr>

                        <tr>
                            <td width="12.5%">Business:</td>
                            <td id="border" width="40%">Bison Constructions</td>
                            <td width="0%">&nbsp;</td>
                            <td width="22.5%" style="text-align: right;">Licence No:</td>
                            <td id="border"width="25%">1550938</td>
                        </tr>

                        <tr>
                            <td width="12.5%">Address:</td>
                            <td id="border" width="40%">34835 Tasman Hwy, Scottsdale Tas 7260</td>
                            <td width="0%">&nbsp;</td>
                            <td width="22.5%" style="text-align: right;">Phone No:</td>
                            <td id="border"width="25%">03 6352 4449</td>
                        </tr>

                    </tbody>
                </table>

                <table class="expand hover" width="100%">
                    <thead></thead>
                    <tbody width="100%">
                        <tr>
                            <td width="14.5%">Category:</td>
                            <td id="border" width="30%">Roof, Stormwater</td>
                            <td width="0%">&nbsp;</td>
                            <td width="12.5%" style="text-align: right;">Email Address:</td>
                            <td id="border" width="42%">tony@bisonent.com.au</td>
                        </tr>

                    </tbody>
                </table>


                <table class="expand hover" width="100%">
                    <thead></thead>
                    <tbody width="100%">
                        <tr>
                            <td width="19.5%">&nbsp;</td>
                            <td width="25%">&nbsp;</td>
                            <td width="0%">&nbsp;</td>
                            <td width="12.5%" style="text-align: right;">&nbsp;</td>
                            <td width="42%">&nbsp;</td>
                        </tr>
                    </tbody>
                </table>

                <br />

                <!-- Design Documents provided:  -->
                <table id="heading" width="100%" >
                    <thead></thead>
                    <tbody width="100%">
                        <tr>
                            <td width="75%">
                                <h4>Notice details:</h4>
                            </td>
                            <td id="codes" width="25%">&nbsp;</td>
                        </tr>
                    </tbody>
                </table>

                <br />

                <!-- Design Documents provided:  -->
                <table class="expand hover" width="100%" style="border-bottom: none;">
                    <thead></thead>
                    <tbody width="100%">
                        <tr>
                            <td width="50%" style="text-align: right;"><b>The plumbing work detailed above is to start work on:</b></td>
                            <td id="border" width="25%" style="font-size: 15px; color:blue;"> <?php echo date('dS M Y', strtotime($install_date_start)) ;?> </td>
                            <td width="25%">Date</td>
                        </tr>
                    </tbody>
                </table>

                <table class="expand hover" width="100%" style="border-bottom: none;">
                    <thead></thead>
                    <tbody width="100%">
                        <tr>
                            <td width="12.5%">Applicant <span style="font-size: 10px;">(Plumber)</span></td>
                            <!-- (builder or owner builder): -->
                            <td id="border" width="28%" style="font-size: 19px; color:blue;">
                                Anthony R. Wallis
                            </td>
                            <td width="1.75%"></td>
                            <td id="border" width="28%" height="40px">
                                <div class="signature"> <img src="images/signature/anthony_r_wallis-signature.png" height="40px" /> </div>
                            </td>
                            <td width="1.75%"></td>
                            <td id="border" width="28%" style="font-size: 19px; color:blue;">
                                <?php echo $signedDate; ?>
                            </td>
                        </tr>
                    </tbody>
                </table>

                <table class="expand hover" width="100%" style="border-bottom: none;">
                    <thead></thead>
                    <tbody width="100%">
                        <tr>
                            <td width="12.5%">Recipient <span style="font-size: 10px;">(for phone application)</span></td>
                            <!-- (builder or owner builder): -->
                            <td id="border" width="28%" style="">
                                Name [print]
                            </td>
                            <td width="1.75%"></td>
                            <td id="border" width="28%" height="40px">
                                Signed
                            </td>
                            <td width="1.75%"></td>
                            <td id="border" width="28%" style="">
                                Date
                            </td>
                        </tr>
                    </tbody>
                </table>

                <!-- Standards, codes or guidelines  -->
                <table id="heading" width="100%">
                    <thead></thead>
                    <tbody width="100%">
                        <tr>
                            <td width="75%">
                                <h4>Authorisation to start plumbing work: (Permit Authority use only)</h4>
                            </td>
                            <td id="codes" width="25%">&nbsp;</td>
                        </tr>
                    </tbody>
                </table>

                <table class="expand hover" width="100%" style="border-bottom: none;">
                    <thead></thead>
                    <tbody width="100%">
                        <tr>
                            <td width="100%"><p><b>Your authorisation is issued in accordance with the Building Act 2016 and Building Regulations 2016.</b></p></td>
                        </tr>
                    </tbody>
                </table>

                <table class="expand hover" width="100%" style="border-bottom: none;">
                    <thead></thead>
                    <tbody width="100%">
                        <tr>
                            <td width="20%">Name:</td>
                            <td id="border" width="36.5%">&nbsp;</td>
                            <td width="1.75%">&nbsp;</td>
                            <td width="20%">Date</td>
                            <td width="1.75%">&nbsp;</td>
                            <td id="border" width="20%">&nbsp;</td>
                        </tr>
                        <tr>
                            <td width="20%" height="30px">Signed:</td>
                            <td id="border" width="36.5%"></td>
                            <td width="1.75%">&nbsp;</td>
                            <td width="20%">Authorisation No</td>
                            <td width="1.75%">&nbsp;</td>
                            <td id="border" width="20%"></td>
                        </tr>

                    </tbody>
                </table>

                <table class="expand hover" width="100%" style="border-bottom: none;">
                    <thead></thead>
                    <tbody width="100%">
                        <tr>
                            <td width="100%">
                                <p><b>Notes:  </b>A copy of this Form is to be sent to the applicant.</p>
                            </td>
                        </tr>
                    </tbody>
                </table>

                <table class="expand hover" width="100%" style="border-bottom: none;">
                    <thead></thead>
                    <tbody width="100%">
                        <tr>
                            <td width="100%">
                                <p class="footer" ><?php echo $qId; ?> - [Form 60] - Document Printed on: <?php echo date("dS M Y");?> at <?php echo date("g:i A");?></p>
                            </td>
                        </tr>
                    </tbody>
                </table>

            </div>
        </div>

    </body>
</html>