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

<!--// Area -->
<form id="frmArea" name="frmArea" autocomplete="on">
	<input type="hidden" value="<?php echo(SableSystem::sableEncode($hddnAreaId)); ?>" id="hddnAreaId" name="hddnAreaId" />
	<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</h3>
					<p></p>
				</div>
			</div>
			<!--// edtAreaName -->
			<div class="row forms-grid">
				<div class="col-md-4 forms-grid">
					<input name="edtAreaName" type="text" id="edtAreaName" onfocus="showHint('edtAreaName'); validate_edtAreaName();" onblur="hideHint('edtAreaName');" placeholder="Area Name" onkeypress="handleEnter(this, event);" value="<?php echo($row['area_name']); ?>" >
				</div>
				<div class="col-md-8">
					<div class="fieldHint" id="hint_edtAreaName">Area Name</div>
				</div>
			</div>
			<p></p>
			<!-- edtAreaName //-->
			<p></p>

			<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/'); ?>'"/>
				</div>
				<div class="col-md-2 forms-grid">
					<input id="btnOk" type="button" onclick="modifyArea();" value="Update Area" class="submit"/>
				</div>
			</div>
		<!-- buttons //-->
		</div>
	</div>
</form>
<!-- Area //-->
