?
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/add_franchisee_fee.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Franchisee Fee</div> <div class="tools"> <a href="#" onclick="viewdata('franchisee','viewinfranchiseesearch','search_franchisee_fee','view_franchisee_fee','<?= $_SESSION['pagenum']; ?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <!-- BEGIN FORM--> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); echo form_open('franchisee/addinfranchisee/insert_franchisee_fee/view_franchisee_fee/1', $attributes); $payment_type = $this->mastermodel->getdatas('finance_payment_types', 'payment_type_id', 'asc'); // ?> <h3 class="form-section">Batch Details</h3> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Batch Code:</label> <div class="controls"> <span class="text bold"> <?= $viewinfo->batch_no; ?></span> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Course Name:</label> <div class="controls"> <span class="text bold"> <?= $viewinfo->course_name; ?></span> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Teacher:</label> <div class="controls"> <span class="text bold"> <?php $teacher = $this->mastermodel->get_teacher_batch($viewinfo->batch_id, date("d-m-Y")); if (!empty($teacher)) echo $teacher->employee_name; ?></span> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Date of Commencement:</label> <div class="controls"> <span class="text bold"> <?= $this->mastermodel->convertdatenormalformat($viewinfo->start_date) ?></span> </div> </div> </div> </div> <input type="hidden" name="franchisee_fee_batch_id" id="franchisee_fee_batch_id" value="<?= $viewinfo->batch_id; ?>"/> <h3 class="form-section"> Details of Payment</h3> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Amount:</label> <div class="controls"> <input type="text" name="franchisee_fee_amount" id="franchisee_fee_amount" class="required span12" /> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Date:</label> <div class="controls"> <input class="span12 required calfocus" type="text" name="franchisee_fee_date" id="franchisee_fee_date" /> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Receipt No of Franchisee:</label> <div class="controls"> <input type="text" name="franchisee_receipt_no" id="franchisee_receipt_no" class="required span12" /> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Payment Mode:</label> <div class="controls"> <select name="franchisee_fee_payment_mode" id="franchisee_fee_payment_mode" class="required chosen span12" > <?php foreach ($payment_type as $value) { echo '<option value="' . $value['payment_type_id'] . '">' . $value["payment_type"] . '</option>'; } ?> </select> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Remarks:</label> <div class="controls"> <textarea name="franchisee_fee_payment_remarks" id="franchisee_fee_payment_remarks" class="span12" placeholder="To Whom Paid"></textarea> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Franchisee Name:</label> <div class="controls"> <span class="text bold"> <?= $viewinfo->franchisee_name; ?></span> <input type="hidden" name="franchisee_id" value="<?= $viewinfo->franchisee_name_id; ?>"id="franchisee_id" class=" span12" /> </div> </div> </div> </div> <h3 class="form-section">Franchisee Royalty Details</h3> <table class="table table-striped table-hover table-bordered" id="sample_3"> <tr> <th>Reg No </th> <th>First Name</th> <th>Last Name</th> <th>Gender</th> <th>Nationality</th> <th>Date of Birth</th> <th>Course Fee Paid</th> <th>Royalty</th> <th><?= anchor("franchisee/xls_franchisee_royality/" . $viewinfo->batch_id , '<img src="' . base_url() . '/assets/img/xls.png" title="xls" width="20" height="20">', 'title="xls"'); ?></th> </tr> <?php $sum = 0; foreach ($student_list as $row) { $id = $row['student_batch_id']; if (!empty($id)) { $course_paid_fee= $this->franchiseemodel->get_paid_fee_details($viewinfo->batch_id, $row['student_id']); ?> <tr> <td><?= $row['reg_no']; ?></td> <td><?= $row['first_name']; ?></td> <td><?= $row['last_name']; ?></td> <td><?= $row['gender']; ?></td> <td><?= $row['nationality']; ?></td> <td><?= $this->mastermodel->convertdatenormalformat($row['dob']); ?></td> <td style="text-align: right"><?= $course_paid_fee; ?></td> <td style="text-align: right"><?= $course_paid_fee * $viewinfo->franchisee_course_royalty / 100; ?></td> <td></td> </tr> <?php $sum+=$course_paid_fee * $viewinfo->franchisee_course_royalty / 100; } } ?> <tr> <th colspan="7">Total Amount</th> <th style="text-align: right"><?= $sum; ?></th> <th></th> </tr> </table> <div class="form-actions"> <input type="hidden" name="tab_name" value="franchisee_fee"/> <input type="hidden" name="resfunction" value="search_franchisee_fee"/> <button type="submit" class="btn blue" onclick="addformdata('validateform')"><i class="icon-ok"></i> Save</button> <button type="button" onclick="viewdata('franchisee','viewinfranchiseesearch','search_franchisee_fee','view_franchisee_fee','<?= $_SESSION['pagenum']; ?>')" class="btn">Cancel</button> </div> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div>