<?php
	include("area_type_func.php");
	$hddnAreaTypeId = $_SESSION['caller']['args'][1];
	if ($_SESSION['user']['access_level'] < SABLE_ACCESS_MANAGER)
	{
		SableGeneralFunctions::divertFromPage();
	}

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

<!--// Area Type -->
<form id="frmAreaType" name="frmAreaType" 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 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);" >	
				</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="insertAreaType();" value="Add Area Type" class="submit"/>
				</div>
			</div>
		<!-- buttons //-->
		</div>
	</div>
</form>
<!-- Area Type //-->
