rbac->hasPrivilege('fees_reminder', 'can_view')) { access_denied(); } $this->session->set_userdata('top_menu', 'Fees Collection'); $this->session->set_userdata('sub_menu', 'feereminder/setting'); $data = array(); $data['title'] = 'Email Config List'; $feereminderlist = $this->feereminder_model->get(); $data['feereminderlist'] = $feereminderlist; $this->form_validation->set_rules('email_type', $this->lang->line('email_type'), 'required'); if ($this->input->server('REQUEST_METHOD') == "POST") { $ids = $this->input->post('ids'); $update_array = array(); foreach ($ids as $id_key => $id_value) { $array = array( 'id' => $id_value, 'is_active' => 0, 'day' => $this->input->post('days' . $id_value), ); $is_active = $this->input->post('isactive_' . $id_value); if (isset($is_active)) { $array['is_active'] = $is_active; } $update_array[] = $array; } $this->feereminder_model->updatebatch($update_array); $this->session->set_flashdata('msg', '