<?php
include("access_func.php");
$hddnAccessId = $_SESSION['caller']['args'][1];
if ($_SESSION['user']['access_level'] < 9)
{
  if ((isset($hddnAccessId)) && ($hddnAccessId != $_SESSION['user']['user_code'])) SableGeneralFunctions::divertFromPage("access/view.php");
}
$row = $sableDB->getRow("select * from access where access_id = ".$hddnAccessId);
?>

<script src="<?php SableGeneralFunctions::printModuleJS('access'); ?>"></script>
<!--// Access -->
<form id="frmAccess" name="frmAccess" autocomplete="on">
<input type="hidden" value="<?php echo(SableSystem::sableEncode($hddnAccessId)); ?>" id="hddnAccessId" name="hddnAccessId" />
<div class="forms">
  <div class="container">
    <div class="forms-grids">
      <div class="col-md-12 form-grid">
        <h3 class="title"><i class="fa fa-eye" aria-hidden="true"></i>&nbsp;View Access</h3>
        <p></p>
        <div class="clearfix"> </div>
      </div>
    </div>
  </div>
<p></p>
<!--// edtAccessName -->
<div class="container">
  <div class="forms-grids">
    <div class="col-md-4 forms-grid">
<input name="edtAccessName" type="text" id="edtAccessName"
readonly value="<?php echo($row['access_name'])?>" />
    </div>
    <div class="col-md-8">
      <div class="fieldHint" id="hint_edtAccessName">Access level description.</div>
    </div>
    <div class="clearfix"> </div>
  </div>
</div>
<!-- edtAccessName //-->
<p></p>
<!--// edtAccessLevel -->
<div class="container">
  <div class="forms-grids">
    <div class="col-md-4 forms-grid">
<input name="edtAccessLevel" type="text" id="edtAccessLevel"
readonly value="<?php echo($row['access_level'])?>" />
    </div>
    <div class="col-md-8">
      <div class="fieldHint" id="hint_edtAccessLevel">Access level</div>
    </div>
    <div class="clearfix"> </div>
  </div>
</div>
<!-- edtAccessLevel //-->
<p></p>
<!--// buttons -->
<div class="container">
<div class="forms-grids">
<div class="col-md-2 forms-grid">
<input type="button" id="btnCancel" value="Cancel"
class="submit" onclick="window.location = '<?php SableSystem::printCallPageLink('/access/'); ?>'"/>
</div>
<div class="col-md-2 forms-grid">
<input id="btnOk" type="button" onclick="editAccess('<?php echo(SableSystem::sableEncode($hddnAccessId)); ?>')" value="Modify Access" class="submit"/>
</div>
</div>
</div>
<!-- buttons //-->
</div>
</form>
<!-- Access //-->
