138 lines
3.8 KiB
PHP
Executable File
138 lines
3.8 KiB
PHP
Executable File
<?php
|
|
$Empcnt = '';
|
|
//echo $DEPCode;
|
|
//echo ROLE_MANAGER;
|
|
if(!empty($EmpCount))
|
|
{
|
|
foreach ($EmpCount as $Emp)
|
|
{
|
|
$Empcnt = $Emp->EmpCount;
|
|
}
|
|
|
|
|
|
}
|
|
?>
|
|
<div class="content-wrapper">
|
|
<section class="content">
|
|
<!-- Dashboard for Account department-->
|
|
<?php
|
|
if($DEPCode == FINANCE)
|
|
{
|
|
?>
|
|
<div class="content-wrapper">
|
|
<!-- Content Header (Page header) -->
|
|
<section class="content-header">
|
|
<center><h1> Accounts Department Dashboard</h1> </center>
|
|
</section>
|
|
<!-- Main content -->
|
|
<section class="content">
|
|
<!-- Info boxes -->
|
|
<center>
|
|
<div class="row">
|
|
<!-- fix for small devices only -->
|
|
<div class="clearfix visible-sm-block"></div>
|
|
<div class="col-md-4 col-md-offset-4 col-sm-6 col-xs-12">
|
|
<div class="info-box">
|
|
<span class="info-box-icon bg-yellow"><i class="ion ion-ios-people-outline"></i></span>
|
|
<div class="info-box-content">
|
|
<span class="info-box-text">Employees</span>
|
|
<span class="info-box-number"><?php echo $Empcnt ?></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</center>
|
|
<div>
|
|
<marquee direction="up" scrollamount="2" height="150px;"> <font color="Brown"> <h1><b>Guidelines:</b></h1><h3> # PaySlip menu in header has two sub menu ( 1.Upload Salary , 2.PaySlip Generator)<br/><br/>
|
|
# Upload salary menu is used to upload the Salary Excel file into the database<br/><br/>
|
|
# Payslip generator menu is to generate the salary slip for individual Employess or All Employees</h3>
|
|
</center> </font></marquee>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
<!-- Dashboard for admin-->
|
|
<?php
|
|
if($role == ROLE_ADMIN)
|
|
{
|
|
?>
|
|
<div class="content">
|
|
<!-- Content Header (Page header) -->
|
|
<section class="content-header">
|
|
<h1> Admin Dashboard </h1>
|
|
</section>
|
|
<!-- Main content -->
|
|
<section class="content">
|
|
<div class="row">
|
|
|
|
|
|
<!-- ./col -->
|
|
<div class=" col-xs-12 col-md-4 col-md-offset-4">
|
|
<!-- small box -->
|
|
<div class="small-box bg-yellow">
|
|
<div class="inner">
|
|
<h3>44</h3>
|
|
|
|
<p>User Registrations</p>
|
|
</div>
|
|
<div class="icon">
|
|
<i class="ion ion-person-add"></i>
|
|
</div>
|
|
<a href="<?php echo base_url(); ?>userListing" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ./col -->
|
|
</div>
|
|
</section>
|
|
<!-- /.content -->
|
|
</div>
|
|
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
|
|
<!-- Dashboard for Manager department-->
|
|
<?php
|
|
if($role == ROLE_MANAGER)
|
|
{
|
|
?>
|
|
<div class="content-wrapper">
|
|
<!-- Content Header (Page header) -->
|
|
<section class="content-header">
|
|
<center><h1> Manager Department Dashboard</h1> </center>
|
|
</section>
|
|
<!-- Main content -->
|
|
<section class="content">
|
|
<!-- Info boxes -->
|
|
<center>
|
|
<div class="row">
|
|
<!-- fix for small devices only -->
|
|
<div class="clearfix visible-sm-block"></div>
|
|
<div class="col-md-4 col-md-offset-4 col-sm-6 col-xs-12">
|
|
<div class="info-box">
|
|
<span class="info-box-icon bg-yellow"><i class="ion ion-ios-people-outline"></i></span>
|
|
<div class="info-box-content">
|
|
<span class="info-box-text">Employees</span>
|
|
<span class="info-box-number"><?php echo $Empcnt ?></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</center>
|
|
<div>
|
|
<marquee direction="up" scrollamount="2" height="150px;">Hi This Is Manager Login </marquee>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
|
|
</section>
|
|
</div>
|