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

<!--// Area Size -->
<form id="frmAreaSize" name="frmAreaSize" autocomplete="on">
	<input type="hidden" value="<?php echo(SableSystem::sableEncode($hddnAreaSizeId)); ?>" id="hddnAreaSizeId" name="hddnAreaSizeId" />
	<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 Size</h3>
					<p></p>
				</div>
			</div>
			<!--// selAreaTypeId -->
			<div class="row forms-grid">
				<div class="col-md-4 forms-grid">
					<div class="dropdown">
						<select name="selAreaTypeId" type="select" id="selAreaTypeId" onfocus="showHint('selAreaTypeId');" onblur="hideHint('selAreaTypeId'); validate_selAreaTypeId()" onkeypress="handleEnter(this, event)" placeholder="Area Type">
<?php echo(SableDBFunctions::getOptions("area_type", "area_type_id", "area_type_name", $row['area_type_id'])); ?>
						</select>
					</div>
				</div>
				<div class="col-md-8">
					<div class="fieldHint" id="hint_selAreaTypeId">Area Type</div>
				</div>
			</div>
			<p></p>
			<!-- selAreaTypeId //-->
			<p></p>
			<!--// edtAreaSizeName -->
			<div class="row forms-grid">
				<div class="col-md-4 forms-grid">
					<input name="edtAreaSizeName" type="text" id="edtAreaSizeName" onfocus="showHint('edtAreaSizeName'); validate_edtAreaSizeName();" onblur="hideHint('edtAreaSizeName');" placeholder="Area Size Description" onkeypress="handleEnter(this, event);" value="<?php echo($row['area_size_name']); ?>" >
				</div>
				<div class="col-md-8">
					<div class="fieldHint" id="hint_edtAreaSizeName">Area Size Description</div>
				</div>
			</div>
			<p></p>
			<!-- edtAreaSizeName //-->
			<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_size/'); ?>'"/>
				</div>
				<div class="col-md-2 forms-grid">
					<input id="btnOk" type="button" onclick="modifyAreaSize();" value="Update Area Size" class="submit"/>
				</div>
			</div>
		<!-- buttons //-->
		</div>
	</div>
</form>
<!-- Area Size //-->
