<?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 type="text/javascript" src="js/jquery.min.js"></script>-->
<link rel="stylesheet" href="css/jquery-ui.css" />

<link rel="stylesheet" type="text/css" href="css/jquery.jui_pagination.css"/>
<!-- if touch event support is needed (mobile devices) -->
<script type="text/javascript" src="js/jquery.ui.touch-punch.min.js"></script>
 
<script type="text/javascript" src="js/jquery.jui_pagination.min.js"></script>
<script type="text/javascript" src="js/en.js"></script>

<script type="text/javascript" src="js/jquery.ba-hashchange.min.js"></script>

<link rel="stylesheet" href="css/weather.css" />
<!-- Responsive -->
<!-- Tabcontent (ORDER) -->

<link rel="stylesheet" type="text/css" href="css/tab-content.css" />	
<link type="text/css" rel="stylesheet" href="css/ui.notify.css" />
<script type="text/javascript" src="js/moment.min.js"></script>
<script type="text/javascript" src="js/jquery.simplePagination.js"></script>

<script src="js/dateFormat.js"></script>

<script src="js/print.js"></script>
<link href='fullcalendar/fullcalendar.css' rel='stylesheet' />
<link href='fullcalendar/fullcalendar.print.css' rel='stylesheet' media='print' />
<script src='fullcalendar/fullcalendar.min.js'></script>

<link rel="stylesheet" href="css/simplePagination.css" />

<!-----hrm-------------->

    </head>



    <body class="skin-blue">
        <!-- header logo: style can be found in header.less -->
        
        <?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>Leave Request</translate><span></span></h2></div>



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


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

<div class="report-cell-02">
<?php 
$sub_rights=mysql_query("select * from menu as m,menu_sub as s where  m.menu_name='Leave Apply & Tracking' and m.menu_id=s.menu_id ");
$menu_cnt=mysql_num_rows($sub_rights);
?>

<?php 
$emp_id=$_SESSION['admin_id'];
$qry=$db->fetchQuery("select * from employee where imd_supervisor_id=$emp_id");

?>
<ul class="payroll-menu" style="margin-bottom:0px !important;">
<li data-page="addNewpersonalLeaveRequest" class="addNewpersonalLeaveRequest"><translate>Apply Leave</translate></li>
</ul>
<?php
if($_SESSION['usertype']!='Superadmin')
{
?>
<ul class="payroll-menu" style="margin-bottom:0px !important;">
<li data-page="personalleave" class="personalleave" ><translate>Applied Leaves</translate></li>
</ul>
<?php
}
if(!empty($qry) || $_SESSION['usertype'] == 'Superadmin' ){
?>
<ul class="payroll-menu" style="margin-bottom:0px !important;">
<li data-page="leaveRequests" class="leaveRequests" ><translate>Approve Leaves</translate></li>
</ul>
<?php } ?>


<ul class="payroll-menu" style="margin-bottom:0px !important;">
<li data-page="timesheet_edit" class="timesheet_edit" ><translate>Attendance Regularization</translate></li>
</ul>

<?php
if(!empty($qry) || $_SESSION['usertype']=='Superadmin')
{
?>
<ul class="payroll-menu" style="margin-bottom:0px !important;">
<li data-page="timesheet_approval" class="timesheet_approval" ><translate>Approve Attendance</translate></li>
</ul>
<?php
}

?>

<?php
if($_SESSION['usertype']!='Superadmin')
{
?>
<ul class="payroll-menu" style="margin-bottom:0px !important; ">
<li data-page="timesheet_view" class="timesheet_view" ><translate>Attendance Status</translate></li>
</ul>
<?php
}
?>


<!--subha<ul class="payroll-menu">
<li data-page="registerwages" class="registerwages" >Wages</li>
</ul>-->

<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 class="report-cell-03 leave_search">

<form class="pdtSearchForm">
<label><input type="text" placeholder="From date" name="from_date" id="prdaddate" style="width:100px;"/></label>
<label><input type="text" placeholder="To date" name="to_date" id="toaddate" style="width:100px;" /></label>
<?php /*?><label><input type="text" placeholder="Add date" name="add_date" id="prd_addate" style="width:100px;"/></label><?php */?>
<label class="designation">
    <select name="designation" id="designation" style="width:150px;">
    <option value="">Designation</option>
    </select>
</label>
<label class="branch">
    <select name="branch" id="branch" style="width:75px;">
    <option value="">Branch</option>
    </select>
</label>
<label class="imdatesupervisor">
    <select name="memberid" id="imdatesupervisor" style="width:100px;">
    <option value="">Member</option>
    </select>
</label>
<label>
    <select name="immapproval" id="immapproval" style="width:100px;">
    <option value=""> Approval</option>
	<option value="0">Pending</option>
	<option value="1">Approved</option>
	<option value="2">Declined</option>
    </select>
</label>

<!--<label>
    <select name="finalapproval" id="finalapproval" style="width:100px;">
    <option value="">Final</option>
	<option value="1">Approved</option>
	<option value="0">Pending</option>
    </select>
</label>-->	
<input type="hidden" value="<?php echo $emp_id;?>" name="userhid" id="userhid">

</form>

<label>
<input type="button" value="Search" id="searchPdt" class="searchPdt" style="width:70px;"  />
</label>
<label>
<input type="button" value="Search" id="searchpersonalPdt" class="searchpersonalPdt" style="width:70px;"  />
</label>
<div class="clear-float"></div>
</div>
<div id="tablelist"></div>
<div id="t_leave_list"></div>
<div class="pagination-holder clearfix" align="center" >
			<div id="light-pagination" style="width:500px"  class="pagination light-theme simple-pagination"></div>
</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 -->
<span class="leaveats" id="leaveath" style="visibility:visible;">

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

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

<div class="footer">
<strong>© add-HRM</strong><br />
<span>Developed by <a href="http://www.aadhocc.com" target="_blank">Aadhocc</a></span></div>
<!-- /footer -->

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

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

        <!-- add new calendar event modal -->


        <!-- jQuery 2.0.2 -->
<?php /*?>        <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
        <!-- jQuery UI 1.10.3 -->
        <script src="js/jquery-ui-1.10.3.min.js" type="text/javascript"></script><?php */?>
        <!-- Bootstrap -->
               <?php 
	include("footer-js.php");
?>
	


		
		<!--------------scripts for employee list-------------->
		
<script src="js/common.js"></script>

<script src="js/leaverequest.js"></script>

	<!--------------scripts for employee list-------------->
    </body>
</html>