?
Current Path : /home1/savoy/public_html/savoyglobal.net/horeitia/application/views/Payroll/ |
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/horeitia/application/views/Payroll/view_salary_payment.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <div class="select-bar" style="height:30px;"> <label> </label> </div> <div id="searchdiv"> <?php $attributes=array('id'=>'searchvalidateform','class'=>'customForm'); echo form_open('payroll/viewinpayrollsearch/search_payroll_generation/view_salary_payment/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="payroll_generation_subject">Select</option> <option <?php if ($searchfield == "payroll_generation_subject") echo "selected"; ?> value="payroll_generation_subject">Subject</option> <option <?php if ($searchfield == "payroll_generation_date") echo "selected"; ?> value="payroll_generation_date">Date</option> <option <?php if ($searchfield == "payroll_generation_month") echo "selected"; ?> value="payroll_generation_month">Month</option> <option <?php if ($searchfield == "payroll_generation_remarks") echo "selected"; ?> value="payroll_generation_remarks">Remarks</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>Salary Payment</caption> <thead> <tr> <th>Sl No</th> <th>Subject</th> <th>Date</th> <th>Month & Year</th> <th>Remarks</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($z%2==0) $alt="alt"; else $alt="alt1"; echo '<tr class="'.$alt.'"> <td>'.$id.'</td>'; ?> <td><a href="#" onclick="displayformdata('payroll','single_page','<?=$row->payroll_generation_id;?>','payroll_generation','payroll_generation_id','single_salary_payment')" ><?=$row->payroll_generation_subject;?></a></td> <?php echo '<td>'.$this->mastermodel->convertdatenormalformat($row->payroll_generation_date).'</td> <td>'.$row->payroll_generation_month_year.'</td> <td>'.$row->payroll_generation_remarks.'</td>'; ?> <td> <div id="console_fronticons""> <div class="fronticons"> <img src="<?=base_url()?>assets/images/add-icon.png" title="Add Salary Payment" class="clickimage" onclick="displayformdata('payroll','single_page','<?=$row->payroll_generation_id;?>','payroll_generation','payroll_generation_id','add_salary_payment')" alt="Add New" align = "center" width="20" height="20" /> </div> <div class="fronticons"> <a class="inliexample2" href="#" onclick="display_payroll_generation('<?=$row->payroll_generation_id;?>')" ><img src="<?=base_url()?>assets/images/bluedown.jpg" title="View Payroll Details" width="20" height="20" alt="View Payroll Details" align = "center" class="clickimage" /></a> </div> </div> </td> <?php $id++; $z++; } } ?> </tbody> </table> <div style="display:none;"> <div id="payroll_details"> </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('payroll','viewinpayrollsearch','search_payroll_generation','view_salary_payment',<?=$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('payroll','viewinpayrollsearch','search_payroll_generation','view_salary_payment',<?=$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('payroll','viewinpayrollsearch','search_payroll_generation','view_salary_payment',<?=$pagenum+1?>);"> <?php } ?> Next » </a> </li> </ul> </div>