Esempio n. 1
0
				
					<thead>
						<th class="text-center">Employee Name</th>
						<th class="text-center">Date</th>
						<th class="text-center">Leave Type</th>
						<th class="text-center">Number of Days</th>
						<th class="text-center">Status</th>
						<th class="text-center">Action</th>
					</thead>
				
					<tbody>
					<?php 
    foreach ($leave_data as $key => $value) {
        $noOfLeaves = businessWorkingDays($value->leave_start_date, $value->leave_end_date);
        $start_date = convertDbDate($value->leave_start_date);
        $end_date = convertDbDate($value->leave_end_date);
        ?>
						<tr>
							<td class="text-center"><?php 
        echo $value->first . ' ' . $value->last;
        ?>
</td>
							<td class="text-center view_leave_calendar" data-leave-id="<?php 
        echo $value->leave_id;
        ?>
" data-user-id="<?php 
        echo $value->user_id;
        ?>
"><?php 
        echo $start_date;
        ?>
Esempio n. 2
0
?>
" required/>
                    <span class="input-group-addon calendar_icon">
                        <span class="glyphicon glyphicon-calendar"></span>
                    </span>
                    
                </div>
                <div class="help-block with-errors date-errors text-left"></div>
            	</div>
            </div>
            <div class="form-group more_then_day_leave">
            	<label for="leave_pan_half_day" class="col-sm-3 control-label">End Date</label>
            	<div class="form-group col-sm-9 ">
            	 <div class='input-group col-md-5'>
                    <input type='text' class="form-control end_date datepicker" id="end_date" name="leave_end_date" data-error="Please select end date" value="<?php 
echo convertDbDate($user_data->leave_end_date);
?>
" required/>
                   
                    <span class="input-group-addon calendar_icon">
                        <span class="glyphicon glyphicon-calendar"></span>
                    </span>
                     
                </div> 
                <div class="help-block with-errors date-errors text-left"></div>
            	</div>
            </div>
			<div class="form-group text-center">
				<input type="hidden" name="leave_id" value="<?php 
echo $user_data->leave_id;
?>