?
Current Path : /home1/savoy/public_html/savoyglobal.net/hr/application/views/Exits/ |
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/hr/application/views/Exits/view_exit.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <div class="select-bar" style="height: 25px;"> </div> <div id="searchdiv"> <?php $attributes=array('id'=>'searchvalidateform','class'=>'customForm'); echo form_open('exits/viewinexitssearch/search_exit/view_exit/1',$attributes); if(isset($_SESSION['searchdata'])) { $searchdata=$_SESSION['searchdata']; if(!empty($searchdata)) { $searchtext=$searchdata['searchtext']; $searchfield=$searchdata['searchopt']; } else { $searchtext = ""; $searchfield = ""; } } else { $searchtext = ""; $searchfield = ""; } ?> Search For <input type="text" name="searchtext" id="searchtext" value="<?=$searchtext;?>"> In <select name="searchopt" id="searchopt"> <option value="emp_non_full_name">Select</option> <option <?php if ($searchfield == "emp_non_full_name") echo "selected"; ?> value="emp_non_full_name">Employee Name</option> <option <?php if ($searchfield == "emp_non_no") echo "selected"; ?> value="emp_non_no">Employee No</option> <option <?php if ($searchfield == "trade_name") echo "selected"; ?> value="trade_name">Trade</option> <option <?php if ($searchfield == "leave_type_name") echo "selected"; ?> value="leave_type_name">Leave Type</option> <option <?php if ($searchfield == "leave_reason") echo "selected"; ?> value="leave_reason">Reason</option> </select> <input type="submit" id="button1" onclick="addformdata('searchvalidateform')" class="clickimage" value="Search"/> <?php echo form_close(); ?> </div> <table class="sort" cellpadding="0" cellspacing="0"> <caption>Employee Exit Information</caption> <thead> <tr> <th>Sl No</th> <th>Employee Name</th> <th>Employee No</th> <th>Trade</th> <th>Leave Type</th> <th>Reason</th> <th>Leave Start Date</th> <th>Exit Permit</th> <th width="10%">Action</th> </tr> </thead> <tbody> <?php if ($viewinfo->num_rows() > 0) { $table=""; $field=""; $z=1; foreach ($viewinfo->result() as $row) { if($row->emp_non_no[0]==',') { $row->emp_non_no=substr($row->emp_non_no, 1); } $emp_non_no = str_replace(',',', ', $row->emp_non_no); $num = $this->mastermodel->get_num_rows('exit','leave_id',$row->leave_id); $exit = $this->mastermodel->get_data_srow('exit',$row->leave_id,'leave_id'); if($z%2==0) $alt="alt"; else $alt="alt1"; ?> <tr class="<?=$alt;?>"> <td><?=$id;?></td> <td> <?php if ($num!=0) { ?> <a href="#" onclick="displayformdata('exits','edit_page','<?=$row->leave_id;?>','leave','leave_id','single_exit')" ><?=$row->emp_non_full_name;?></a><?php } else { ?> <?=$row->emp_non_full_name;?> <?php } ?> </td> <td><?=$row->emp_non_no;?></td> <td><?=$row->trade_name;?></td> <td><?=$row->leave_type_name;?></td> <td><?=$row->leave_reason;?></td> <td><?=$this->mastermodel->convertdatenormalformat($row->leave_starting_date);?></td> <td><?php if(!empty($exit)) { ?> <?=$exit->exit_permit;?> <?php } ?></td> <td> <div id="console_fronticons"> <?php if ($num==0) { ?> <div class="fronticons"> <img src="<?=base_url()?>assets/images/add-icon.png" title="Add Employee Exit Details" width="20" height="20" alt="Edit" align = "center" class="clickimage" onclick="editformdata('exits','edit_page','<?=$row->leave_id;?>','leave','leave_id','add_exit','')" alt="" /> </div> <?php } else if($exit->exit_permit=="Not Issued") { ?> <div class="fronticons"> <img src="<?=base_url()?>assets/images/edit-icon.gif" title="Update Exit Details" width="20" height="20" alt="Edit" align = "center" class="clickimage" onclick="editformdata('exits','edit_page','<?=$row->leave_id;?>','leave','leave_id','edit_exit','')" alt="" /> </div> <?php } ?> </div> </td> </tr> <?php $id++; $z++; } } ?> </tbody> </table> <div id="pager"> <ul id="pagination-digg"> <li <?php if($pagenum>1){ ?>class="previous" <?php } else { ?> class="previous-off" <?php } ?> > <?php if($pagenum>1){ ?><a href="#" onclick="viewdata('exits','viewinexitssearch','search_exit','view_exit',<?=$pagenum-1?>);" > <?php } ?> «Previous </a> </li> <?php //Pagination Numbers for($i=$startpage; $i<=$endpage; $i++) { if($pagenum==$i ) { ?> <li class="active" ><?=$i?></li> <?php } else { ?> <li><a href="#" onclick="viewdata('exits','viewinexitssearch','search_exit','view_exit',<?=$i?>);"><?=$i?></a></li> <?php } } ?> <li <?php if($pagenum<$endpage){ ?> class="next" <?php } else { ?> class="next-off" <?php } ?>> <?php if($pagenum<$endpage){ ?><a href="#" onclick="viewdata('exits','viewinexitssearch','search_exit','view_exit',<?=$pagenum+1?>);"> <?php } ?> Next » </a> </li> </ul> </div>