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

<!--// Area Type -->
<form id="frmAreaType" name="frmAreaType" autocomplete="on">
	<input type="hidden" value="<?php echo(SableSystem::sableEncode($hddnAreaTypeId)); ?>" id="hddnAreaTypeId" name="hddnAreaTypeId" />
	<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-edit" aria-hidden="true"></i>&nbsp;Modify Area Type</h3>
					<p></p>
				</div>
			</div>
			<!--// edtAreaTypeName -->
			<div class="row forms-grid">
				<div class="col-md-4 forms-grid">
					<input name="edtAreaTypeName" type="text" id="edtAreaTypeName" onfocus="showHint('edtAreaTypeName'); validate_edtAreaTypeName();" onblur="hideHint('edtAreaTypeName');" placeholder="Area Type Name" onkeypress="handleEnter(this, event);" value="<?php echo($row['area_type_name']); ?>" >
				</div>
				<div class="col-md-8">
					<div class="fieldHint" id="hint_edtAreaTypeName">Area Type Name</div>
				</div>
			</div>
			<p></p>
			<!-- edtAreaTypeName //-->
			<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('/area_type/'); ?>'"/>
				</div>
				<div class="col-md-2 forms-grid">
					<input id="btnOk" type="button" onclick="modifyAreaType();" value="Update Area Type" class="submit"/>
				</div>
			</div>
		<!-- buttons //-->
		</div>
	</div>
</form>
<!-- Area Type //-->
