uawdijnntqw1x1x1
IP : 216.73.217.47
Hostname : srv913213
Kernel : Linux srv913213 5.15.0-179-generic #189-Ubuntu SMP Tue May 5 18:20:56 UTC 2026 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
OS : Linux
PATH:
/
var
/
www
/
yapwebtv.com
/
..
/
..
/
www
/
krcollege.co
/
application
/
controllers
/
Extra_fees_structure.php
/
/
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Extra_fees_structure extends CI_Controller { function __construct() { parent::__construct(); isLoggedIn(); $this->load->model('fees_type/Fees_type_model'); $this->load->model('academic/Academic_model'); } public function index() { if(hasPermission('extra_fees_create')){ $page_data['page_title'] = 'Manage Extra Fees Type'; $page_data['page_name'] = 'admin/extra_fees_type/list'; $this->load->view('admin/template', $page_data); }else{ redirect(base_url('dashboard')); } } public function create() { if(hasPermission('extra_fees_create')){ $page_data['page_title'] = 'Create Extra Fees Type'; $page_data['page_name'] = 'admin/extra_fees_type/create'; $this->load->view('admin/template', $page_data); }else{ redirect(base_url('dashboard')); } } public function edit() { if(hasPermission('extra_fees_update')){ $id = $this->uri->segment(3); if ($id != '') { $get_fees_type = $this->Fees_type_model->get($id)->row_array(); $college = $this->Academic_model->getCollege()->result_array(); $academic_year = $this->Academic_model->getAcademicYear()->result_array(); $session_college_id = $this->session->userdata('college_id'); $session_course_id = $this->session->userdata('course_id'); $session_academic_id = $this->session->userdata('academic_id'); // if($session_course_id >0 && $session_academic_id >0){ $college_name = $this->Fees_type_model->getCollegename($session_college_id)->row_array(); $acadamic_from_year = $this->Fees_type_model->getAcademicfromyear($session_academic_id)->row_array(); $course = $this->Fees_type_model->getCoursename($session_course_id)->row_array(); $getFeestype = $this->Fees_type_model->getFeestype()->result_array(); $page_data['page_title'] = 'Create Fees Type'; $page_data['page_name'] = 'admin/extra_fees_type/add'; $page_data['course'] = $course; $page_data['college'] = $college; $page_data['academic_year'] = $academic_year; $page_data['college_name'] = $college_name; $page_data['acadamic_from_year'] = $acadamic_from_year; $page_data['getFeestype'] = $getFeestype; $page_data['fee_type'] = $get_fees_type['fee_type']; $page_data['fee_type_id'] = $get_fees_type['fee_type_id']; $page_data['type_name'] = $get_fees_type['type_name']; $page_data['amount'] = $get_fees_type['amount']; $this->load->view('admin/template', $page_data); // }else{ // set_alert('warning', "Please select the course and academic year."); // redirect(base_url('extra_fees_structure')); // } } }else{ redirect(base_url('dashboard')); } } public function ajax_list() { $CI = & get_instance(); $CI->load->model('fees_type/Extra_fees_type_table'); $lists = $this->Extra_fees_type_table->get_datatables(); $start = $_POST['start']; $data = array(); foreach ($lists as $list) { $row = array(); $id = $list['fee_type_id']; $college_name = $list['college_name']; $course_name= $list['course_name']; $academic_from_year = $list['academic_from_year']."-".$list['academic_to_year']; $type_name = $list['type_name']; $amount = $list['amount']; $status = $list['status']; $status_class = ($status == 1) ? "label label-primary" : "label label-danger"; $status_lable = ($status == 1) ? "Active" : "Inactive"; $status_title = ($status == 1) ? "Active" : "Inactive"; $status_padding = ($status == 1) ? "padding-left: 10px ;padding-right: 10px;" : ""; $btn_title_change = ($status == 1) ? "Deactivate" : "Activate"; $btn_color_change = ($status == 1) ? "btn btn-danger" : "btn btn-info"; $btn_padding = ($status == 0) ? "padding-right:18px;padding-left:18px" : ""; $data_status = ($status == 1) ? '0' : '1'; $active = '<center> <span class="' . $status_class . '" title="' . $status_title . '"style="' . $status_padding . '" >' . $status_lable . '</span> </center>'; $viewUrl = base_url("fees_type/view/$id"); $editUrl = base_url("extra_fees_structure/edit/$id"); $delUrl = base_url("fees_type/active"); $deleteUrl = base_url("fees_type/delete"); $action = '<center>'; if(hasPermission('extra_fees_update')){ $action .='<div class="col-md-12"><a href="' . $editUrl . '"><button type="button" class="btn btn-primary btn-sm">Edit</button> </a> </div>'; } $action .= '</center>'; $row[] = $start + 1; $row[] = $type_name; $row[] = $amount; // $row[] = $active; $row[] = $action; $row['DT_RowId'] = $id; $data[] = $row; $start++; } $output = array( "draw" => $_POST['draw'], "recordsTotal" => $CI->Extra_fees_type_table->count_all(), "recordsFiltered" => $CI->Extra_fees_type_table->count_filtered(), "data" => $data, ); echo json_encode($output); } public function feestype_exist() { $id = $this->input->post('id'); $name = $this->input->post('name'); $course = $this->input->post('course'); $academic = $this->input->post('academic'); echo $this->Fees_type_model->feestype_exist($name, $id,$course,$academic); } public function extrafee_exist() { $id = $this->input->post('id'); $name = $this->input->post('name'); echo $this->Fees_type_model->extrafee_exist($name, $id); } public function getAcademicYear() { $id = $this->input->post('id'); $res = $this->Fees_type_model->getCourse($id); echo $res; } public function insert() { $error_type = ''; $msg = ''; $result = false; $this->form_validation->set_rules('fee_type', 'Fees Type', 'trim|required'); $this->form_validation->set_rules('fees_type_name', 'Type Name', 'trim|required'); $this->form_validation->set_rules('amount', 'Amount', 'trim|required'); if ($this->form_validation->run() == FALSE) { $error_type = 'v'; $msg = validation_errors('<p class="error">', '</p>'); //validation_errors(); $result = false; } else { $fee_type = $this->input->post('fee_type'); $fees_type_name = $this->input->post('fees_type_name'); $amount = $this->input->post('amount'); $created_by= $this->session->userdata('user_id'); $created_on=date("Y-m-d H:i:s"); $data = array( 'type_name' => $fees_type_name, 'fee_type' => $fee_type, 'amount' => $amount, 'created_by' => $created_by, 'created_on' => $created_on, ); $result = $this->Fees_type_model->insert($data); set_alert('success', "Fees Type information created successfully."); $error_type = 'm'; $msg = 'Fees Type created successfully.'; $result = true; ($result) ? logActivity('Extra Fees Type ('.$fees_type_name.') created',LOG_EXTRAFEESTYPE) : ''; } echo json_encode(array('rs' => $result, 'errType' => $error_type, 'msg' => $msg)); } public function extra_fees_type_update() { $error_type = ''; $msg = ''; $result = false; // $this->form_validation->set_rules('college_id', 'college ', 'trim|required'); // $this->form_validation->set_rules('course_id', 'Course ', 'trim|required'); // $this->form_validation->set_rules('academic_year_id', 'Academic Year', 'trim|required'); $this->form_validation->set_rules('fees_type_name', 'Type name', 'trim|required'); $this->form_validation->set_rules('amount', 'Amount', 'trim|required'); if ($this->form_validation->run() == FALSE) { $error_type = 'v'; $msg = validation_errors('<p class="error">', '</p>'); //validation_errors(); $result = false; } else { $fees_type_name = $this->input->post('fees_type_name'); $fee_type_id = $this->input->post('fee_type_id'); $amount = $this->input->post('amount'); $old_fee_type_det = $this->Fees_type_model->get($fee_type_id)->row_array(); $old_fee_type_name = $old_fee_type_det['type_name']; $updated_by= $this->session->userdata('user_id'); $updated_on=date("Y-m-d H:i:s"); $data = array( 'fee_type_id' => $fee_type_id, 'type_name' => $fees_type_name, 'amount' => $amount, 'updated_by' => $updated_by, 'updated_on' => $updated_on, ); //print_r($data); $result = $this->Fees_type_model->update($fee_type_id,$data); set_alert('success', "Extra Fees Structure information updated successfully."); $error_type = 'm'; $msg = 'Extra Fees Structure updated successfully.'; $result = true; ($result) ? logActivity('Extra Fees Type updated from '.$old_fee_type_name.' to '.$fees_type_name,LOG_EXTRAFEESTYPE) : ''; } echo json_encode(array('rs' => $result, 'errType' => $error_type, 'msg' => $msg)); } }
/var/www/yapwebtv.com/../../www/krcollege.co/application/controllers/Extra_fees_structure.php