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

<!--// Payment Method -->
<form id="frmPaymentMethod" name="frmPaymentMethod" autocomplete="on">
	<input type="hidden" value="<?php echo(SableSystem::sableEncode($hddnPmId)); ?>" id="hddnPmId" name="hddnPmId" />
	<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 Payment Method</h3>
					<p></p>
				</div>
			</div>
			<!--// edtPmName -->
			<div class="row forms-grid">
				<div class="col-md-4 forms-grid">
					<input name="edtPmName" type="text" id="edtPmName" onfocus="showHint('edtPmName'); validate_edtPmName();" onblur="hideHint('edtPmName');" placeholder="Description" onkeypress="handleEnter(this, event);" value="<?php echo($row['pm_name']); ?>" >
				</div>
				<div class="col-md-8">
					<div class="fieldHint" id="hint_edtPmName">Description</div>
				</div>
			</div>
			<p></p>
			<!-- edtPmName //-->
			<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('/payment_method/'); ?>'"/>
				</div>
				<div class="col-md-2 forms-grid">
					<input id="btnOk" type="button" onclick="modifyPaymentMethod();" value="Update Payment Method" class="submit"/>
				</div>
			</div>
		<!-- buttons //-->
		</div>
	</div>
</form>
<!-- Payment Method //-->
