?
Current Path : /home1/savoy/www/savoyglobal.net/sgms/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/www/savoyglobal.net/sgms/application/views/HR/view_employee.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="addformdisplay('add_employee','HR')" alt="Add New" align = "center" width="25" height="25" /> </label> </div> <div id="searchdiv"> <?php $attributes=array('id'=>'searchvalidateform','class'=>'customForm'); echo form_open('hr/viewinhrsearch/search_employee/view_employee/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="employee_no">Select</option> <option <?php if ($searchfield == "employee_no") echo "selected"; ?> value="employee_no">Employee No</option> <option <?php if ($searchfield == "employee_name") echo "selected"; ?> value="employee_name">Employee Name</option> <option <?php if ($searchfield == "employee_contact_no") echo "selected"; ?> value="employee_contact_no">Contact No</option> <option <?php if ($searchfield == "device_no") echo "selected"; ?> value="device_no">Device No</option> <option <?php if ($searchfield == "department_name") echo "selected"; ?> value="department_name">Department</option> <option <?php if ($searchfield == "designation_name") echo "selected"; ?> value="designation_name">Designation</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>Employees</caption> <thead> <tr> <th>Sl No</th> <th>Employee No</th> <th>Employee Name</th> <th>Contact No</th> <th>Device No</th> <th>Department</th> <th>Designation</th> <th width="10%">Action</th> </tr> </thead> <tbody> <?php if ($viewinfo->num_rows() > 0) { $table="employeecustomer~sales_lead"; $field="employee_id~employee_id"; $z=1; $i=($pagenum-1)*10; foreach ($viewinfo->result() as $row) { if($z%2==0) $alt="alt"; else $alt="alt1"; ?> <tr class="<?=$alt;?>"> <td><?=++$i;?></td> <td><?=$row->employee_no;?></td> <td><a href="#" onclick="displayformdata('hr','single_page','<?=$row->employee_id;?>','employee','employee_id','single_employee')" ><?=$row->employee_name;?></a></td> <td><?=$row->employee_contact_no;?></td> <td><?=$row->device_no;?></td> <td><?=$row->department_name;?></td> <td><?=$row->designation_name;?></td> <td> <div id="console_fronticons"> <div class="fronticons"> <a class="inliexample2" href="#" onclick="showuploaddiv('<?=$row->employee_id;?>')" ><img src="<?=base_url()?>assets/images/upload.png" title="Upload File" width="20" height="20" alt="Upload" align = "center" class="clickimage" onclick="showuploaddiv('<?=$row->employee_id;?>')" /></a> </div> <div class="fronticons"> <img src="<?=base_url()?>assets/images/edit-icon.gif" title="Edit" width="20" height="20" alt="Edit" align = "center" class="clickimage" onclick="editformdata('hr','edit_page','<?=$row->employee_id;?>','employee','employee_id','edit_employee')" alt="" /> </div> <div class="fronticons"> <img src="<?=base_url()?>assets/images/delete-icon.png" title="Delete" width="20" height="20" onclick="deletedata('employee',<?=$row->employee_id;?>,'employee_id','hr','viewinhrsearch','search_employee','view_employee','<?=$table?>','<?=$field?>')" alt="Delete" align = "center"/> </div> </div> </td> <?php $z++; } ?> </tr> <?php } ?> </tbody> </table> <div style='display:none'> <div id="uploaddiv"></div> </div> <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('hr','viewinhrsearch','search_employee','view_employee',<?=$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('hr','viewinhrsearch','search_employee','view_employee',<?=$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('hr','viewinhrsearch','search_employee','view_employee',<?=$pagenum+1?>);"> <?php } ?> Next » </a> </li> </ul> </div>