<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<?php include("header-js.php");?>	
		
		
<!-----hrm-------------->		
<link rel="stylesheet" href="css/style.css" />
<!-- Responsive -->
<link rel="stylesheet" href="css/responsive.css" />

<!-----hrm-------------->
        <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
          <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->
</head>

<body class="skin-blue">
	<?php include("header.php");?>
    <!-- Main row -->
    <div class="row">
		<div id="wrapper">
			<div class="content">
				<div class="report-tab">
					<div class="employee-title">
						<div class="report-left"><h2><translate>Employee Lists</translate>
						<span></span></h2>
						</div>

<!--<div class="report-category"><select name="">
  <option selected="selected">Categories</option>
  <option>Employee Lists</option>
  <option>Employee Timesheet</option>
  <option>Monthly Timesheet</option>
  <option>Yearly Timesheet</option>
</select>
</div>--><!-- /report-category -->
						<div class="report-category">
<!--<a href="employee_list_delete.php" style="font-size:14px; font-weight:bold;line-height:36px;text-align:center;border:1px solid #666;padding:5px 8px;width:auto;margin-left:2px;">Deleted Employee List</a>--></div>
						<div class="report-category">
							<a href="create-person.php" style="font-size:14px; font-weight:bold;line-height:36px;text-align:center;border:1px solid #666;padding:5px 8px;width:auto;margin-left:2px;"><translate>ADD Employees</translate></a><!--<img src="images/create-person.png" alt="" width="165" height="36" border="0" />--></div>

<!-- /report-category -->

							<div class="clear-float"></div>
						</div><!-- /employee-title -->
						<div class="clear-float"></div>

<div class="report-cell-02">


<?php
if($_SESSION['usertype']=='SubadminHR' || $_SESSION['usertype']=='Superadmin')
{

?>
<select name="filter_branch" id="filter_branch" class="SearchBrhLists" onChange="javascript:load_emp_under_brnch_modified(this.value);">
<option value="">Branch</option>
</select>

<select name="filter_emp_id" id="filter_emp_id" class="Searchemp_list">
<option value="">Emp name</option>
</select>

<select name="filter_dept" id="filter_dept" class="Searchchgdept" onChange="javascript:load_emp_under_dept_modified(this.value);">
<option value="">Select Department</option>
</select>

<select name="filter_emp_status" id="filter_emp_status" class="Searchempstlist">
<option value="">Employee By Status</option>
</select>
<input type="button" value="Search" onClick="modified_search_employee_list()">
<?php
}
elseif($_SESSION['branchadmin'] == 'Y')
{
?>
<span style="background:#CC0066;padding: 3px 10px;font-size: 16px;color: #fff;font-weight: bold;border-radius: 15px;-webkit-border-radius: 15px;text-align:justify;">
<?php

echo $_SESSION['branch_name'];
echo '<select name="filter_branch" id="filter_branch" class="SearchBrhLists" style="display:none" onChange="javascript:load_emp_under_brnch_modified(this.value);">
<option value="'.$_SESSION['branch_id'].'">'.$_SESSION['branch_name'].'</option>
</select>';
?>
</span>

<select name="filter_emp_id" id="filter_emp_id" class="Searchemp_list">
<option value="">Emp name</option>
</select>

<select name="filter_dept" id="filter_dept" class="Searchchgdept" onChange="javascript:load_emp_under_dept_modified(this.value);">
<option value="">Select Department</option>
</select>

<select name="filter_emp_status" id="filter_emp_status" class="Searchempstlist">
<option value="">Employee By Status</option>
</select>
<input type="button" value="Search" onClick="modified_search_employee_list()">
<?php
}
else
{
?><div style="background:#CC0066;width: 160px;height: 27px;padding: 3px 10px;font-size: 16px;color: #fff;font-weight: bold;border-radius: 15px;-webkit-border-radius: 15px;text-align:justify;">
<?php

echo $_SESSION['branch_name'];
?>
</div>
<?php

}
?>

</label>

<div id="tabletabheadlist">

    <!--<label><input type="button" value="Employee" class="btn-tab-01" /></label>
    <label><input type="button" value="Owner" class="btn-tab-01"/></label>
    <label><input type="button" value="Manager" class="btn-tab-01" /></label>-->
</div>
<!--<label>
<select name="" class="hrLists">
  <option value="employeeLists">Employee Lists</option>
  <option value="managementList">Management</option>
  <option value="humanResourceList">Human Resource</option>
  <option value="departmentList">Department</option>
  <option value="designationList">Designation</option>
  <option value="newJoiningList">New Joining</option>
</select>
</label>-->
<div class="clear-float"></div>
</div><!-- /report-cell-02 -->


<div id="tablelist"></div>

<!--<div class="employee-cell">
<div class="clocked-in"><span class="clocked-status">Clocked-in</span> <span class="clocked-time">07:30 hours</span></div> 
<div class="employee-foto"><img src="images/employee.jpg" alt="" /></div>
<div class="employee-designation">Managing Director</div>
<h2>Jake Moser</h2>
<h3>moserjake@gmail.com</h3>
<h4>9933 789 789</h4>
<div class="timesheet-nav"><a href="#">Timesheet</a></div>
</div>--><!-- /employee-cell -->


<div class="clear-float"></div>
</div><!-- /report-tab -->

<div class="clear-float"></div>
</div><!-- /content -->
<div id="busy">Loading...</div>
<div class="footer">
<strong>© add-HRM </strong><span class="currentversion"></span><br />
<span><translate>Developed by</translate> <a href="http://www.aadhocc.com" target="_blank"><translate>Aadhocc</translate></a></span></div>
<!-- /footer -->

</div>
					
					
                    </div><!-- /.row (main row) -->

                </section><!-- /.content -->
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->

        <!-- add new calendar event modal -->
<script>
var userid = <?php echo $_SESSION['admin_id']; ?>;
<?php $userdetails = $db->fetchQuery("SELECT * FROM file where e_id='$userid'"); ?>
var userimage = "<?php echo $userdetails[0]['photo']; ?>";
</script>	

        <!-- jQuery 2.0.2 -->
        <!--<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>-->
        <!-- jQuery UI 1.10.3 -->
               <?php 
	include("footer-js.php");
?>
	
		
		<!--------------scripts for employee list-------------->

<script src="js/common.js"></script>
<script src="js/employee_list.js"></script>
<!--<script src="js/employee.js"></script>-->
<script language="javascript" src="js/css3-mediaqueries.js" type="text/javascript"></script>
<script src="js/employee_sg.js"></script>
	<!--------------scripts for employee list-------------->
<translate></translate>
    </body>
</html>
