?
Current Path : /home1/savoy/public_html/savoyglobal.net/drafthr/system/application/views/HR/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/drafthr/system/application/views/HR/viewworkshifts.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <div class="select-bar"> <label><img src="<?=base_url()?>/assets/images/add-icon.png" title="Add New" class="clickimage" onclick="addworkshifts(1)" alt="Add New" align = "top" width="25" height="25" /></label> <label> Search For <input type="text" name="search" id="search" value="<?=$searchtxt;?>" style="background-image: none;"> in <select id ="selectsearch" name="selectsearch"><option value="">All</option> <option value="date" <?php if ($searchoption == "date") echo "selected"; ?>>Date</option> <option value="occasion" <?php if ($searchoption == "occasion") echo "selected"; ?>>Occasion</option> </select> </label> <label for="submit"> <button type="submit" class="clickimage" id="submit" onclick="searchworkshifts(document.getElementById('search').value,document.getElementById('selectsearch').value);">Search</button> </label> </div> <table class="sort" cellpadding="0" cellspacing="0"> <caption>Work Shifts</caption> <thead> <tr> <th>Sl No.</th> <th>Shift Name</th> <th>WEF Date</th> <th>Starting Time</th> <th>Ending Time</th> <th>Half Day Ending Time</th> <th>Grace Time</th> <th class="last">Action</th> </tr> <?php $z=1; $no=1; foreach ($viewinfo as $row) { if($z%2==0) $alt="alt"; else $alt="alt1"; $date = $this->mastermodel->convdatformat($row['work_shift_wef_date']); echo '<tr class="'.$alt.'"><td>'.$no.'</td> <td>'.$row['work_shift_name'].'</td> <td>'.$date.'</td> <td>'.$row['work_shift_starting_time'].'</td> <td>'.$row['work_shift_ending_time'].'</td> <td>'.$row['work_shift_ending_time_half'].'</td> <td>'.$row['work_shift_grace_time'].'</td> <td >';?> <div id="console_fronticons"> <div class="fronticons"> <img src="<?=base_url()?>/assets/images/edit-icon.gif" title="Edit" width="20" height="20" alt="Edit" align = "center" onclick="editworkshifts(1,<?=$row['work_shift_id']?>)" /></div><div class="fronticons"> <?=anchor('hr/delete/workshifts/'.$row['work_shift_id'].'/112', '<img src="'.base_url().'/assets/images/delete-icon.png" title="Delete" width="20" height="20" align = "center" >',array('class'=>'delete','onclick'=>"return confirm('Are you sure want to delete this record?')"))?> </div> </div> <?php echo '</td></tr>' ; $no++; $z++; } ?> </table> <ul class="paginate"> <li class="pagsel"onclick="paginationworkshiftssearch('1','<?=$searchoption?>','<?=$searchtxt?>')"> <img src="<?php echo base_url() ?>/assets/images/first.gif"/> </li> <li class="pagsel" <?php if($pagenum>1){ ?> onclick="paginationworkshiftssearch('<?=$pagenum-1?>','<?=$searchoption?>','<?=$searchtxt?>')" <?php } ?> > <img src="<?php echo base_url() ?>/assets/images/prev.gif"/> </li> <?php //Pagination Numbers for($i=$startpage; $i<=$endpage; $i++) { if($pagenum==$i ) {?> <li class="pagsel" onclick="paginationworkshiftssearch('<?=$i?>','<?=$searchoption?>','<?=$searchtxt?>')"><?=$i?></li> <?php } else {?> <li class="pag" onclick="paginationworkshiftssearch('<?=$i?>','<?=$searchoption?>','<?=$searchtxt?>')"><?=$i?></li> <?php } } ?> <li class="pagsel" <?php if($pagenum<$pages){ ?> onclick="paginationworkshiftssearch(<?=$pagenum+1?>,'<?=$searchoption?>','<?=$searchtxt?>')"<?php } ?>> <img style="vertical-align:top" src="<?php echo base_url() ?>/assets/images/next.gif"/> </li> <li class="pagsel" onclick="paginationworkshiftssearch('<?=$pages?>','<?=$searchoption?>','<?=$searchtxt?>')"><img src="<?php echo base_url() ?>/assets/images/last.gif"/> </li> </ul>