<?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" />

<script src="js/jquery-ui.js"></script>
<link rel="stylesheet" href="css/jquery-ui.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");
?>

                    <!-- Small boxes (Stat box) -->
                    

                    <!-- 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>Master Lists</translate> <span></span></h2></div>

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


<div class="clear-float"></div>
<?php 
$sub_rights=mysql_query("select * from menu as m,menu_sub as s where  m.menu_name='Settings' and m.menu_id=s.menu_id ");
$menu_cnt=mysql_num_rows($sub_rights);
?>

<div class="report-cell-02">
<?php if($userid!=1){  while($rows=mysql_fetch_array($sub_rights)){
if($rows['s_menu_name']=='manageCompany')
{$class='btn-tab-01 company_management';$val='Company';}
if($rows['s_menu_name']=='Branch')
{$class='btn-tab-01 branch_List';$val='Branch';}
if($rows['s_menu_name']=='Department')
{$class='btn-tab-01 department_List';$val='Department';}
if($rows['s_menu_name']=='Designation')
{$class='btn-tab-01 designation_List';$val='Designation';}
if($rows['s_menu_name']=='ReportTime')
{$class='btn-tab-01 report_time';$val='ReportTime';}
if($rows['s_menu_name']=='Device')
{$class='btn-tab-01 device_List';$val='Device';}
if($rows['s_menu_name']=='GratuityYear')
{$class='btn-tab-01 gratuity';$val='Gratuity Year';}
if($rows['s_menu_name']=='Notification')
{$class='btn-tab-01 notification';$val='Notification';}
if($rows['s_menu_name']=='Leave')
{$class='btn-tab-01 manage_leave';$val='Leave';}

$view_rights=mysql_fetch_array(mysql_query("select * from tbl_user_rights where user_id='$userid' and s_submenu_id='$rows[s_id]'"));
?>
<?php if($view_rights['view_right']==1){?>

<label><input type="button" value="<?php echo $val;?>" data-page="<?php echo $rows['s_menu_name'];?>"  class="<?php echo $class;?>" /></label>
<?php }?>

<?php /*?><label><input type="button" value="Branch" data-page="Branch"  class="btn-tab-01 branch_List" /></label>
<label><input type="button" value="Department" data-page="Department"  class="btn-tab-01 department_List" /></label>
<label><input type="button" value="Designation" data-page="Designation"  class="btn-tab-01 designation_List"/></label>

<label><input type="button" value="ReportTime" data-page="ReportTime"  class="btn-tab-01 report_time"/></label>

<label><input type="button" value="Device" data-page="Device"  class="btn-tab-01 device_List"/></label>

<label><input type="button" value="Gratuity Year" data-page="GratuityYear"  class="btn-tab-01 gratuity"/></label>
<label><input type="button" value="Notification" data-page="Notification"  class="btn-tab-01 notification"/></label>
<label><input type="button" value="Leave" data-page="Leave"  class="btn-tab-01 manage_leave"/></label><?php */?>

<?php }}else {?>

<label><input type="button" value="Company" data-page="manageCompany"  class="btn-tab-01 manageCompany" /></label>
<label><input type="button" value="Branch" data-page="Branch"  class="btn-tab-01 branch_List" /></label>
<label><input type="button" value="Department" data-page="Department"  class="btn-tab-01 department_List" /></label>
<label><input type="button" value="Designation" data-page="Designation"  class="btn-tab-01 designation_List"/></label>
<!--<label><input type="button" value="ReportTime" data-page="ReportTime"  class="btn-tab-01 report_time"/></label>-->
<label><input type="button" value="ReportTime" data-page="ReportTime"  class="btn-tab-01 report_time"/></label>
<label><input type="button" value="Shift" data-page="Shift"  class="btn-tab-01 shifting_periods"/></label>
<label><input type="button" value="Employee Grouping" data-page="EmployeeGrouping"  class="btn-tab-01 employee_grouping"/></label>
<label><input type="button" value="Device" data-page="Device"  class="btn-tab-01 device_List"/></label>

<label><input type="button" value="Gratuity Year" data-page="GratuityYear"  class="btn-tab-01 gratuity"/></label>
<label><input type="button" value="Notification" data-page="Notification"  class="btn-tab-01 notification"/></label>
<label><input type="button" value="Leave" data-page="Leave"  class="btn-tab-01 manage_leave"/></label>
<?php }?>


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


<div id="masterlist"></div>

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

<div class="clear-float"></div>
</div><!-- /content -->

<div class="footer">
<strong>© <translate>add-HRM</translate></strong><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 src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/jquery-ui.min.js"></script>-->
        <!-- jQuery 2.0.2 -->
              <?php 
			
			  
	include("footer-js.php");
?>
	
		
		<!--------------scripts for employee list-------------->




<!--<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>-->
<script type="text/javascript" src="js/jquery.timepicker.js"></script>
<link rel="stylesheet" type="text/css" href="js/jquery.timepicker.css" />
<script type="text/javascript" src="js/lib/bootstrap-datepicker.js"></script>


<script src="js/common.js"></script>
<script src="js/employee.js"></script>
<script src="js/employee_sg.js"></script>
<script src="js/notification.js"></script>
<script src="js/circular.js"></script>
<link rel="stylesheet" type="text/css" href="dist/bootstrap-clockpicker.min.css">
<script type="text/javascript" src="dist/bootstrap-clockpicker.min.js"></script>
	<!--------------scripts for employee list-------------->
    </body>
</html>