?
Current Path : /home1/savoy/www/savoyglobal.net/eldertree/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/www/savoyglobal.net/eldertree/application/views/student/view_deactivate.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?> <!-- 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 yellow"> <div class="portlet-title"> <div class="caption"><i class="icon-cogs"></i>Student Deactivate</div> <div class="actions"> <a href="#" onclick="addformdisplay('add_deactivate','student')" class="btn green"><i class="icon-plus"></i> Add</a> </div> </div> <div class="portlet-body"> <table class="table table-striped table-hover table-bordered" id="sample_3"> <thead> <tr> <th class="sl_th">Sl No</th> <th>Student Name</th> <th>Student Reg No</th> <th>Class Name</th> <th>Age</th> <th>Deactivate Date</th> <th>Activated</th> <th>Activation Date</th> <th class="action_th">Activation</th> <th class="action_th">Edit</th> <th class="action_th">Delete</th> </tr> </thead> <tbody> <tbody> <?php $table = ""; $field = ""; $i = 0; foreach ($viewinfo->result() as $row) { $i++; ?> <tr class="odd gradeX"> <td><?= $i; ?></td> <td> <a href="#" onclick="displayformdata('student','single_page','<?= $row->deactivate_id; ?>','student_deactivate','deactivate_id','single_deactivate')"> <?= $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> <?= $this->mastermodel->convertdatenormalformat($row->start_date) ?> </td> <td> <?= ($row->activate) ? "Yes" : "No"; ?> </td> <td><?= $this->mastermodel->convertdatenormalformat($row->activate_date) ?></td> <td> <?php if($row->activate==0) { ?> <a class="activate_student" id="image_icon" href="#" data-deactivate_id="<?=$row->deactivate_id;?>" >Activate</a></td> <!-- <a class="edit" href="#" onclick="smalldisplayformdata1('student','edit_page',<?= $row->deactivate_id; ?>,'student_deactivate','deactivate_id','student_activate')">Activate</a>--> <?php } ?> <td><a class="edit" href="#" onclick="editformdata('student','edit_page','<?= $row->deactivate_id; ?>','student_deactivate','deactivate_id','edit_deactivate')">Edit</a></td> <td> <a class="delete" href="#" onclick="deletedata('student_deactivate',<?= $row->deactivate_id; ?>,'deactivate_id','student','viewinstudentsearch','search_deactivate','view_deactivate','<?= $table ?>','<?= $field ?>')">Delete</a> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> <div style='display:none'> <div id="uploaddiv"></div> </div> <script> jQuery(document).ready(function() { UIModals.init(); TableManaged.init(); $('.activate_student').on("click",function(e){ e.preventDefault(); var $modal = $('<div id="activate_student_div" class="modal hide fade" tabindex="-1"></div>'); var deactivate_id = $(this).data('deactivate_id'); $.ajax({ url : '<?= site_url() ?>/student/edit_page/'+deactivate_id+'/student_deactivate/deactivate_id/student_activate', success: function(data){ $modal.empty().html(data); $modal.modal(); } }); }); }); </script>