?
Current Path : /home1/savoy/public_html/savoyglobal.net/oscardraft/application/views/student/ |
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/oscardraft/application/views/student/view_cancellation.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <div class="icons_main"> <div class="icons"> <img src="<?= base_url() ?>assets/images/add.png" title="Add New" class="clickimage" onclick="addformdisplay('add_cancellation','student')" alt="Add New" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Student Cancellation</h4> </div> </div> <div class="clean"></div> <div class="grid_12"> <div class="box"> <div class="header"> </div> <div class="content no-padding"> <table class="table"> <tr> <th><input type="radio" name="student_cancellation" id="student_cancellation_posted" <?php if ($_SESSION['res_function'] == 'search_cancellation_posted') echo "checked"; ?> value="0" class="chzn-done" onclick="viewdata('student','viewinstudentsearch','search_cancellation_posted','view_cancellation','1')" /></th><th><label>Posted cancellation Details</label></th> <th><input type="radio" name="student_cancellation" id="student_cancellation" value="1" <?php if ($_SESSION['res_function'] == 'search_cancellation') echo "checked"; ?> class="chzn-done" onclick="viewdata('student','viewinstudentsearch','search_cancellation','view_cancellation','1')" /></th><th><label>Un-Posted cancellation Details</label></th> </tr> </table> </div> </div> </div> <div class="grid_12"> <div class="box"> <div class="header"> </div> <div class="content"> <table id="table-example" class="table"> <thead> <tr> <th id="sl">Sl No</th> <th>Student Name</th> <th>Student No</th> <th>Class Name</th> <th>Age</th> <th>Cancellation Date</th> <th>Action</th> </tr> </thead> <tbody> <?php $table = ""; $field = ""; $i = 0; foreach ($viewinfo->result() as $row) { $i++; ?> <tr> <td id="sl"> <?= $i ?> </td> <td> <a href="#" onclick="displayformdata('student','single_page','<?= $row->cancellation_id; ?>','student_cancellation','cancellation_id','single_cancellation')"> <?= $row->first_name . ' ' . $row->last_name ?></a> </td> <td> <?= $row->reg_no ?> </td> <td> <?= $row->class_name_code ?> </td> <td> <?php /* 'yyyy-mm-dd format' */ $age_details = $this->mastermodel->getAgeDetails($row->dob); echo $age_details['in_words']; ?> </td> <!-- <td> <?= $row->refund_amount ?> </td>--> <td> <?= $this->mastermodel->convertdatenormalformat($row->cancellation_date) ?> </td> <?php if ($row->journal_id > 0) { ?> <td id="actions_63" > <img src="<?= base_url() ?>/assets/images/view-icon.png" id="editclass" title="View" width="20" height="20" alt="View Entry" align = "center" onclick="viewthis_unpost(<?= $row->journal_id ?>, 'search_payment_voucher', 'view_payment_voucher')" style="cursor: pointer" class="clickimage1" /> </td> <?php } else { ?> <td id="actions_4"> <div class="elements"> <img src="<?= base_url() ?>assets/images/edit-icon.gif" title="Edit" width="20" height="20" alt="Edit" align = "center" class="clickimage" onclick="editformdata('student','edit_page','<?= $row->cancellation_id; ?>','student_cancellation','cancellation_id','edit_cancellation')" alt="" /> </div> <div class="elements"><img src="<?= base_url() ?>assets/images/delete-icon.png" title="Delete" width="20" height="20" onclick="delete_cancellation('<?= $row->cancellation_id; ?>','<?= $row->student_class_id; ?>' )" alt="Delete" align = "center"/></div> <div class="elements"><img src="<?= base_url() ?>assets/images/process.png" title="Allocate Fees" width="20" height="20" onclick="editformdata('student','edit_page','<?= $row->cancellation_id; ?>','student_cancellation','cancellation_id','post_student_cancellation')" alt="Post" align = "center"/> </div> </td> <?php } ?> </tr> <?php } ?> </tbody> </table> </div> </div> </div> <div class="actions-left"> <div style="display:none"> <div id="empdiv"></div> </div> </div> <script type="text/javascript"> function delete_cancellation(cancellation_id, student_class_id) { var clicked = function(){ $.fallr('hide'); $.ajax({ type: "POST", dataType:"json", url: "<?= site_url('student/delete_cancellation/') ?>/"+cancellation_id+"/"+student_class_id, success: function(msg) { viewdata('student','viewinstudentsearch','search_cancellation','view_cancellation','1'); } }); }; $.fallr('show', { buttons : { button1 : {text: 'Yes', danger: true, onclick: clicked}, button2 : {text: 'Cancel', onclick: function(){$.fallr('hide')}} }, content : '<p>Are you sure you want to delete ?</p>', icon : 'error' }); } </script>