<?php
include("address_type_func.php");
$hddnAddressTypeId = $_SESSION['caller']['args'][1];
if ($_SESSION['user']['access_level'] < SABLE_ACCESS_MANAGER)
{
	SableGeneralFunctions::divertFromPage();
}
$row = $sableDB->getRow("select * from address_type where address_type_id = {$hddnAddressTypeId}");
?>
<script src="<?= SableGeneralFunctions::printModuleJS('address_type') ?>"></script>

<!--// Address_type -->
<form id="frmAddress_type" name="frmAddress_type" autocomplete="on">
	<input type="hidden" value="<?= (SableSystem::sableEncode($hddnAddressTypeId)); ?>" id="hddnAddressTypeId" name="hddnAddressTypeId" />
	<div class="forms">
		<div class="container forms-grids">
			<div class="row">
				<div class="col-md-12">
					<h3 class="title"><i class="fa fa-edit" aria-hidden="true"></i>&nbsp;Modify Address_type</h3>
					<p></p>
				</div>
			</div>
			<!--// edtAddressTypeName -->
			<div class="row">
				<div class="col-md-4">
					<input name="edtAddressTypeName" type="text" id="edtAddressTypeName" onfocus="showHint('edtAddressTypeName');" onchange="validate_edtAddressTypeName();" onblur="hideHint('edtAddressTypeName'); validate_edtAddressTypeName();" placeholder="Address Type Name" onkeypress="handleEnter(this, event);" value="<?= ($row['address_type_name']); ?>" >
				</div>
				<div class="col-md-8">
					<div class="fieldHint" id="hint_edtAddressTypeName">Address Type Name</div>
				</div>
			</div>
			<p></p>
			<!-- edtAddressTypeName //-->
			<p></p>
		<!--// buttons -->
			<div class="row">
				<div class="col-md-2">
					<input type="button" id="btnCancel" value="Cancel"
					class="submit" onclick="window.location = '<?php SableSystem::printCallPageLink('/address_type/'); ?>'"/>
				</div>
				<div class="col-md-2">
					<input id="btnOk" type="button" onclick="modifyAddress_type();" value="Update Address_type" class="submit"/>
				</div>
			</div>
		<!-- buttons //-->
		</div>
	</div>
</form>
<!-- Address_type //-->
