?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/application/views/franchisee/ |
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/sec/application/views/franchisee/view_franchisee_fee.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <!-- BEGIN PAGE LEVEL STYLES --> <link rel="stylesheet" href="<?= base_url(); ?>assets/plugins/data-tables/DT_bootstrap.css" /> <!-- END PAGE LEVEL STYLES --> <div class="row-fluid"> <div class="span12"> <!-- BEGIN EXAMPLE TABLE PORTLET--> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-cogs"></i>Franchisee Fee Details</div> </div> <div class="portlet-body"> <table class="table table-striped table-hover table-bordered" id="sample_2"> <thead> <tr> <th class="sl_th">Sl No</th> <th>Batch</th> <th>Course</th> <th>Teacher</th> <th>Date of Commencement</th> <th>Status</th> <th class="action_th">Add</th> <th class="action_th">Edit</th> <!-- <th class="action_th">Print</th>--> </tr> </thead> <tbody> <?php $table = ""; $field = ""; $i = 0; foreach ($viewinfo->result() as $row) { $total_course_fee = $this->franchiseemodel->get_total_royalty($row->batch_id); $paid_royalty = $this->franchiseemodel->get_paid_royaly($row->batch_id); $franchisee_royalty = $this->mastermodel->get_single_field_value('franchisee_course', 'franchisee_course_royalty', 'course_id', $row->course_id); $total_royalty = $franchisee_royalty*$total_course_fee/100; if($total_royalty > $paid_royalty) $status = "Payment Pending"; else $status = "Payment Completed"; $i++; ?> <tr class="odd gradeX"> <td><?= $i; ?></td> <td> <a href="#" onclick="displayformdata('franchisee','single_franchisee_fee','<?= $row->batch_id; ?>','batch','batch_id','single_franchisee_fee')"> <?= $row->batch_no ?> </a> </td> <td> <?= $row->course_name ?></td> <td><?php $teacher = $this->mastermodel->get_teacher_batch($row->batch_id, date("d-m-Y")); if (!empty($teacher)) echo $teacher->employee_name; ?> </td> <td><?= $this->mastermodel->convertdatenormalformat($row->start_date) ?></td> <td> <?php if($total_royalty > $paid_royalty) { ?> <a href="#"><img src="<?= base_url() ?>assets/img/unlock.jpg" title="Un paid" width="20" height="20" alt="Edit" align = "center" class="clickimage" onclick="editformdata('franchisee','add_franchisee_fee',<?= $row->batch_id; ?>,'batch','batch_id','add_franchisee_fee');" alt="" /> </a> <?php } else { ?> <a href="#"> <img src="<?= base_url() ?>assets/img/lock.jpg" title="Paid" width="20" height="20" alt="Edit" align = "center" class="clickimage" alt="" /> </a> <?php } ?> </td> <td> <?php if($total_royalty > $paid_royalty) { ?> <a class="Add" href="#" onclick="editformdata('franchisee','add_franchisee_fee',<?= $row->batch_id; ?>,'batch','batch_id','add_franchisee_fee');" >Add</a> <?php } ?> </td> <td><a class="edit" href="#" onclick="editformdata('franchisee','edit_franchisee_fee','<?= $row->batch_id; ?>','batch','batch_id','edit_franchisee_fee')">Edit</a></td> <!-- <td><a class="Print" href="#" onclick="editformdata('franchisee','edit_franchisee_fee',<?= $row->batch_id; ?>,'batch','batch_id','add_student_batch');" >Print</a></td>--> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> <div style='display:none'> <div id="uploaddiv"></div> </div> <div id="ajax-modal" class="modal hide fade" tabindex="-1"></div> <script> jQuery(document).ready(function() { UIModals.init(); TableManaged.init(); }); </script>