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

<!--// Postal_data -->
<form id="frmPostal_data" name="frmPostal_data" autocomplete="on">
	<input type="hidden" value="<?= (SableSystem::sableEncode($hddnPostId)); ?>" id="hddnPostId" name="hddnPostId" />
	<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 Postal_data</h3>
					<p></p>
				</div>
			</div>
			<!--// edtSuburbName -->
			<div class="row">
				<div class="col-md-4">
					<input name="edtSuburbName" type="text" id="edtSuburbName" onfocus="showHint('edtSuburbName');" onchange="validate_edtSuburbName();" onblur="hideHint('edtSuburbName'); validate_edtSuburbName();" placeholder="Suburb Name" onkeypress="handleEnter(this, event);" value="<?= ($row['suburb_name']); ?>" >
				</div>
				<div class="col-md-8">
					<div class="fieldHint" id="hint_edtSuburbName">Suburb Name</div>
				</div>
			</div>
			<p></p>
			<!-- edtSuburbName //-->
			<p></p>
			<!--// edtBoxCode -->
			<div class="row">
				<div class="col-md-4">
					<input name="edtBoxCode" type="text" id="edtBoxCode" onfocus="showHint('edtBoxCode');" onchange="validate_edtBoxCode();" onblur="hideHint('edtBoxCode'); validate_edtBoxCode();" placeholder="Box Code" onkeypress="handleEnter(this, event);" value="<?= ($row['box_code']); ?>" >
				</div>
				<div class="col-md-8">
					<div class="fieldHint" id="hint_edtBoxCode">Box Code</div>
				</div>
			</div>
			<p></p>
			<!-- edtBoxCode //-->
			<p></p>
			<!--// edtStrCode -->
			<div class="row">
				<div class="col-md-4">
					<input name="edtStrCode" type="text" id="edtStrCode" onfocus="showHint('edtStrCode');" onchange="validate_edtStrCode();" onblur="hideHint('edtStrCode'); validate_edtStrCode();" placeholder="Str Code" onkeypress="handleEnter(this, event);" value="<?= ($row['str_code']); ?>" >
				</div>
				<div class="col-md-8">
					<div class="fieldHint" id="hint_edtStrCode">Str Code</div>
				</div>
			</div>
			<p></p>
			<!-- edtStrCode //-->
			<p></p>
			<!--// edtRegionName -->
			<div class="row">
				<div class="col-md-4">
					<input name="edtRegionName" type="text" id="edtRegionName" onfocus="showHint('edtRegionName');" onchange="validate_edtRegionName();" onblur="hideHint('edtRegionName'); validate_edtRegionName();" placeholder="Region Name" onkeypress="handleEnter(this, event);" value="<?= ($row['region_name']); ?>" >
				</div>
				<div class="col-md-8">
					<div class="fieldHint" id="hint_edtRegionName">Region Name</div>
				</div>
			</div>
			<p></p>
			<!-- edtRegionName //-->
			<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('/postal_data/'); ?>'"/>
				</div>
				<div class="col-md-2">
					<input id="btnOk" type="button" onclick="modifyPostal_data();" value="Update Postal_data" class="submit"/>
				</div>
			</div>
		<!-- buttons //-->
		</div>
	</div>
</form>
<!-- Postal_data //-->
