<?php

include( "client_func.php" );


$hddnClientId = $_SESSION[ 'caller' ][ 'args' ][ 1 ];

if ( $_SESSION[ 'user' ][ 'access_level' ] < SABLE_ACCESS_MANAGER )

{

  SableGeneralFunctions::divertFromPage();

}



?>
<script src="<?php SableGeneralFunctions::printModuleJS('client'); ?>"></script>

<!--// Client -->
<form id="frmClient" name="frmClient" autocomplete="on">
  <div class="forms">
    <div class="container forms-grids">
      <div class="row forms-grid">
        <div class="col-md-12">
          <h3 class="title"><i class="fa fa-plus" aria-hidden="true"></i>&nbsp;Add Client</h3>
          <p></p>
        </div
      </div>
      
      <!--// edtClientName -->
    
        <p></p>
        <div class="col-md-12">
          <input name="edtAddressPostalCode" type="text" id="edtAddressPostalCode" onfocus="showHint('edtAddressPostalCode'); validate_edtAddressPostalCode();" onblur="hideHint('edtAddressPostalCode');" placeholder="Address Postal Code" onkeypress="handleEnter(this, event);" >
          <label for="edtAddressPostalCode" class="fieldHint hintUnder" id="hint_edtAddressPostalCode">Address Postal Code</label>
        </div>
      </div>
     
      
      <!-- container -->
<form>
    <h1>Address Form</h1>
    <label for="line_1">Address First Line</label><label>Search your Address</label>
    <div id="addressLookup"></div>
    <input type="text" id="line_1" />
    <label for="line_2">Address Second Line</label>
    <input type="text" id="line_2" />
    <label for="line_3">Address Third Line</label>
    <input type="text" id="line_3" />
    <label for="post_town">Town or City</label>
    <input type="text" id="post_town" />
    <label for="postcode">Postcode</label>
    <input type="text" id="postcode" />
</form>
      
          <p></p>

    <!--// buttons -->
    
    <div class="row forms-grid">
      <div class="col-md-2">
        <input type="button" id="btnCancel" value="Cancel"

					class="submit" onclick="window.location = '<?php SableSystem::printCallPageLink('/client/'); ?>'"/>
      </div>
      <div class="col-md-2 forms-grid">
<!--        <input id="btnOk" type="button" onclick="insertClient();" value="Add Client" class="submit"/>-->
        <input id="btnOk" type="button" onclick="getAddressOptions();" value="getAddressOptions" class="submit"/>
      </div>
    </div>
    
    <!-- buttons //-->
    
    <?php include(SABLE_INCLUDES_PATH.'googleMapsDisplay.php'); ?>
  </div>
  </div>
</form>


<?php include(SABLE_INCLUDES_PATH.'googleMaps.php'); ?>






<!-- Client //--> 

