?
Current Path : /home1/savoy/public_html/savoyglobal.net/cocorico/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/cocorico/application/views/hr/loadpostedsalary.php |
<?php $attributes=array('id'=>'validateform','class'=>'validate'); echo form_open('',$attributes); ?> <style> .display{ display: block; margin-top: 0px;margin-left: -582px; } </style> <div class="grid_12" > <div class="box"> <div class="content no-padding" > <table class="table table-striped table-hover table-bordered" id="sample_4"> <tr> <th>Sl No.</th> <th>Employee no</th> <th>Name</th> <th>Designation</th> <th>Department</th> <th width="15%" class="last">View</th> </tr> <?php $z=1; $no=1; foreach ($viewinfo as $row) { if($z%2==0) { $alt="alt"; } else $alt="alt1"; $emp=$this->mastermodel->get_data_srow('employee',$row['employee_id'],'employee_id'); $desg = $this->mastermodel->get_data_srow('designation',$emp->employee_designation_id,'designation_id'); $dept= $this->mastermodel->get_data_srow('department',$emp->employee_department_id,'department_id');?> <tr class="<?=$alt?>"> <td><?=$no?></td> <td><?=$row['employee_no']?></td> <td><?=$row['employee_name']?></td> <td><?php if(!empty($desg)) { echo $desg->designation_name; } ?></td> <td><?php if(!empty($dept)) { echo $dept->department_name; } ?></td> <td> <img id="saldetexample" src="<?=base_url()?>/assets/img/saldet.png" title="Salary Details" width="20" height="20" alt="Salary Details" align = "center" class="clickimage slslip" onclick="viewpostedpayslipdetails(<?=$row['employee_salary_slip_id']?>)" alt="" /> </td></tr> <?php $no++; $z++; } echo '<input type="hidden" name="empcount" id="empcount" value="'.$no.'"/>'; ?> </table> <div style="display:none"> <div id="staffsaldetdiv"></div> </div> </div> </div> </div> <?php echo form_close();?> <script> function viewpostedpayslipdetails(salid) { var $modal = $('<div id="payment_vouchar_div" class="modal hide fade display span12" tabindex="-1"></div>'); $.ajax({ url : "<?= site_url('hr/loadpostedsalary/viewpostedsalpay/') ?>/" + salid, success: function(data){ $modal.empty().html(data); $modal.modal(); } }); } </script>