<?php
include("country_func.php");
$hddnCountryId = $_SESSION['caller']['args'][1];
if ($_SESSION['user']['access_level'] < SABLE_ACCESS_MANAGER)
{
	SableGeneralFunctions::divertFromPage();
}
$row = $sableDB->getRow("select * from country where country_id = {$hddnCountryId}");

?>
<script src="<?= SableGeneralFunctions::printModuleJS('country') ?>"></script>

<!--// Country -->
<form id="frmCountry" name="frmCountry" autocomplete="on">
	<input type="hidden" value="<?= (SableSystem::sableEncode($hddnCountryId)); ?>" id="hddnCountryId" name="hddnCountryId" />
	<div class="forms">
		<div class="container forms-grids">
			<div class="row">
				<div class="col-md-12">
					<h3 class="title"><i class="fa fa-eye" aria-hidden="true"></i>&nbsp;View Country</h3>
					<p></p>
				</div>
			</div>
			<!--// edtCountryIso -->
			<div class="row">
				<div class="col-md-4">
					<input name="edtCountryIso" type="text" id="edtCountryIso"readonly value="<?= ($row['country_iso']); ?>" >
				</div>
				<div class="col-md-8">
					<div class="fieldHint" id="hint_edtCountryIso">Country Iso</div>
				</div>
			</div>
			<p></p>
			<!-- edtCountryIso //-->
			<p></p>
			<!--// edtCountryName -->
			<div class="row">
				<div class="col-md-4">
					<input name="edtCountryName" type="text" id="edtCountryName"readonly value="<?= ($row['country_name']); ?>" >
				</div>
				<div class="col-md-8">
					<div class="fieldHint" id="hint_edtCountryName">Country Name</div>
				</div>
			</div>
			<p></p>
			<!-- edtCountryName //-->
			<p></p>
			<!--// edtCountryNicename -->
			<div class="row">
				<div class="col-md-4">
					<input name="edtCountryNicename" type="text" id="edtCountryNicename"readonly value="<?= ($row['country_nicename']); ?>" >
				</div>
				<div class="col-md-8">
					<div class="fieldHint" id="hint_edtCountryNicename">Country Nicename</div>
				</div>
			</div>
			<p></p>
			<!-- edtCountryNicename //-->
			<p></p>
			<!--// edtCountryIso3 -->
			<div class="row">
				<div class="col-md-4">
					<input name="edtCountryIso3" type="text" id="edtCountryIso3"readonly value="<?= ($row['country_iso3']); ?>" >
				</div>
				<div class="col-md-8">
					<div class="fieldHint" id="hint_edtCountryIso3">Country Iso3</div>
				</div>
			</div>
			<p></p>
			<!-- edtCountryIso3 //-->
			<p></p>
			<!--// edtCountryNumcode -->
			<div class="row">
				<div class="col-md-4">
					<input name="edtCountryNumcode" type="text" id="edtCountryNumcode"readonly value="<?= ($row['country_numcode']); ?>" >
				</div>
				<div class="col-md-8">
					<div class="fieldHint" id="hint_edtCountryNumcode">Country Numcode</div>
				</div>
			</div>
			<p></p>
			<!-- edtCountryNumcode //-->
			<p></p>
			<!--// edtCountryPhonecode -->
			<div class="row">
				<div class="col-md-4">
					<input name="edtCountryPhonecode" type="text" id="edtCountryPhonecode"readonly value="<?= ($row['country_phonecode']); ?>" >
				</div>
				<div class="col-md-8">
					<div class="fieldHint" id="hint_edtCountryPhonecode">Country Phonecode</div>
				</div>
			</div>
			<p></p>
			<!-- edtCountryPhonecode //-->
			<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('/country/'); ?>'"/>
				</div>
				<div class="col-md-2">
					<input id="btnOk" type="button" onclick="editCountry('<?= (SableSystem::sableEncode($hddnCountryId)); ?>')" value="Modify Country" class="submit"/>
				</div>
			</div>
		<!-- buttons //-->
		</div>
	</div>
</form>
<!-- Country //-->
