147 lines
4.4 KiB
PHP
147 lines
4.4 KiB
PHP
|
<?php
|
||
|
include ('techsyn_header.php');
|
||
|
if(!isset($_SESSION['RoleCode']) || $_SESSION['RoleCode']!="ADM"){
|
||
|
echo "<script>location.href='accessDenied.php'</script>";
|
||
|
}
|
||
|
?>
|
||
|
<link rel="stylesheet" href="css/wizard.css">
|
||
|
<style type="text/css">
|
||
|
.hidden-radio {
|
||
|
position: absolute;
|
||
|
top: 11px;
|
||
|
left: 27px;
|
||
|
width: 60px;
|
||
|
height: 60px;
|
||
|
border-radius: 100%;
|
||
|
background: #fff;
|
||
|
opacity: 0;
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
</style>
|
||
|
<!-- Main Content Container for side bar and body-->
|
||
|
<div class="main-container ace-save-state" id="main-container">
|
||
|
<script type="text/javascript">
|
||
|
try{ace.settings.loadState('main-container')}catch(e){}
|
||
|
</script>
|
||
|
<?php include('techsyn_sidebar.php'); ?>
|
||
|
|
||
|
<!--breadcrumb-->
|
||
|
<?php
|
||
|
|
||
|
?>
|
||
|
|
||
|
<div class="main-content">
|
||
|
<div class="main-content-inner">
|
||
|
<div class="breadcrumbs ace-save-state" id="breadcrumbs">
|
||
|
<ul class="breadcrumb">
|
||
|
<li><i class="ace-icon fa fa-home home-icon"></i> <a href="#">Home</a>
|
||
|
</li>
|
||
|
<li class="active">Dashboard</li>
|
||
|
|
||
|
</ul>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
<!-- End of breadcrumb -->
|
||
|
|
||
|
<div class="content">
|
||
|
<div class="container-fluid">
|
||
|
<form id="reception_form">
|
||
|
|
||
|
<div class="row" style="margin-top: 10px;">
|
||
|
<div class="col-12 col-sm-6 col-md-3" >
|
||
|
|
||
|
|
||
|
<div class="info-box choice" data-toggle="wizard-radio" rel="tooltip"
|
||
|
title="OHC Users" data-original-title="OHC Users">
|
||
|
<span class="info-box-icon bg-green "><input type="radio" name="task" class="hidden-radio" value="ohcs">
|
||
|
|
||
|
<i class="ace-icon fa fa-h-square"></i>
|
||
|
</span>
|
||
|
|
||
|
<div class="info-box-content"><br>
|
||
|
<span class="info-box-text">Issue Points</span> <span
|
||
|
class="info-box-number"><?php echo getTableFieldValue('ohc_type', 'count(*)', '', '', '')?> <small>Center Points</small></span>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="col-12 col-sm-6 col-md-3">
|
||
|
<div class="info-box choice mb-3">
|
||
|
<span class="info-box-icon bg-red "><input type="radio" name="task" class="hidden-radio" value="roles">
|
||
|
|
||
|
<i class="ace-icon fa fa-bed"></i></span>
|
||
|
|
||
|
|
||
|
<div class="info-box-content"><br>
|
||
|
<span class="info-box-text">User Roles</span> <span
|
||
|
class="info-box-number"><?php echo getTableFieldValue('role_master', 'count(*)', '', '', '')?> <small>User Roles</small></span>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-12 col-sm-6 col-md-3">
|
||
|
<div class="info-box choice mb-3">
|
||
|
<span class="info-box-icon bg-red "><input type="radio" name="task" class="hidden-radio" value="users">
|
||
|
|
||
|
<i class="ace-icon fa fa-user-md"></i>
|
||
|
</span>
|
||
|
|
||
|
<div class="info-box-content"><br>
|
||
|
<span class="info-box-text">Users</span> <span
|
||
|
class="info-box-number"><?php echo getTableFieldValue('tbl_users', 'count(*)', '', '', '')?> <small>Staff Members</small>
|
||
|
</span>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-12 col-sm-6 col-md-3">
|
||
|
<div class="info-box choice mb-3">
|
||
|
<span class="info-box-icon bg-green "><input type="radio" name="task" class="hidden-radio" value="patients">
|
||
|
<i class="ace-icon fa fa-user"></i>
|
||
|
</span>
|
||
|
|
||
|
<div class="info-box-content"><br>
|
||
|
<span class="info-box-text">Employees</span> <span
|
||
|
class="info-box-number"><?php echo getTableFieldValue('patient_master', 'count(*)', '', '', '')?> <small>Employees</small></span>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
<!-- /.page-content -->
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- /.main-content -->
|
||
|
</div>
|
||
|
|
||
|
<?php include('techsyn_footer.php'); ?>
|
||
|
<script>
|
||
|
$(document).ready(function(){
|
||
|
$(".choice").on("click", function () {
|
||
|
var v = $(this).closest("div").find("input[name='task']").attr("checked","checked");
|
||
|
task =v.val();
|
||
|
if(task=='users'){
|
||
|
document.forms['reception_form'].action='user_list.php';
|
||
|
}else if(task=='ohcs'){
|
||
|
document.forms['reception_form'].action='ohc_type_list.php';
|
||
|
}else if(task=='roles'){
|
||
|
document.forms['reception_form'].action='role_list.php';
|
||
|
}else if(task=='patients'){
|
||
|
//document.forms['reception_form'].action='emp_list.php';
|
||
|
}
|
||
|
$("#reception_form").attr('method', 'POST');
|
||
|
$("#reception_form").submit();
|
||
|
|
||
|
});
|
||
|
});
|
||
|
</script>
|