Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
Total Number of Students db->where('school_id',$this->session->userdata('school_id')); $this->db->where('status',0); $this->db->where('academic_year',$year); $count=$this->db->count_all_results('classes'); echo $count; ?> Total Amount Required db->where('school_id',$this->session->userdata('school_id')); $get=$this->db->get('payers'); foreach($get->result() as $row){ $this->db->where('school_id',$this->session->userdata('school_id')); $this->db->where('payment_id',$row->payment_id); $fee_type=$this->db->get('payments_type'); foreach($fee_type->result() as $ro){ $name=$ro->name; } if($row->schoolars_type==2){ $this->db->where('school_id',$this->session->userdata('school_id')); $this->db->where('status',0); $this->db->where('class_level',$row->class_level); $this->db->where('category',$row->students_type); $this->db->where('academic_year',$year); $countt1=$this->db->count_all_results('classes'); //selecting from the register fees table $this->db->where('school_id',$this->session->userdata('school_id')); $this->db->where('academic_year',$year); $this->db->where('payer_id',$row->payer_id); $this->db->where('payment_id',$row->payment_id); $get_fee=$this->db->get('register_fees'); foreach($get_fee->result() as $rowf){ $total_amount1=$rowf->amount*$countt1; // echo 'Total= '.number_format($total_amount1).'
'; echo 'Amount = '.$rowf->amount.' '. $name.' |'. $row->payment_id.' '.$row->payer_id.' '.$row->class_level.' '.$row->students_type.' '.$row->schoolars_type.' both schoolar type = '.$countt1.'

'; $this->db->where('school_id',$this->session->userdata('school_id')); $this->db->where('status',0); $this->db->where('class_level',$row->class_level); $this->db->where('category',$row->students_type); $this->db->where('academic_year',$year); $get_reg=$this->db->get('classes'); foreach($get_reg->result() as $reg){ echo $reg->reg_number.'

'; } } }else{ $total_amount2=0; $this->db->where('school_id',$this->session->userdata('school_id')); $this->db->where('status',0); $this->db->where('class_level',$row->class_level); $this->db->where('schoolar_type',$row->schoolars_type); $this->db->where('category',$row->students_type); $this->db->where('academic_year',$year); $countt2=$this->db->count_all_results('classes'); //selecting from the register fees table $this->db->where('school_id',$this->session->userdata('school_id')); $this->db->where('academic_year',$year); $this->db->where('payer_id',$row->payer_id); $this->db->where('payment_id',$row->payment_id); $get_feee=$this->db->get('register_fees'); foreach($get_feee->result() as $rowff){ $total_amount2=$rowff->amount*$countt2; // echo ' Total= '.number_format($total_amount2).' '.'
'; echo 'Amount = '.$rowff->amount.' '. $name.' |'.$row->payment_id.' '.$row->payer_id.' '.$row->class_level.' '.$row->schoolars_type.' schoolar ='.$countt2.'

'; $this->db->where('school_id',$this->session->userdata('school_id')); $this->db->where('status',0); $this->db->where('class_level',$row->class_level); $this->db->where('schoolar_type',$row->schoolars_type); $this->db->where('category',$row->students_type); $this->db->where('academic_year',$year); $get_reg=$this->db->get('classes'); foreach($get_reg->result() as $reg){ echo $reg->reg_number.'

'; } } } } $required=$sum+ $sum1; echo 'Tsh '. number_format(($required)); ?> Amount Paid db->select_sum('amount'); $this->db->where('school_id',$this->session->userdata('school_id')); $this->db->where('academic_year',$year); foreach($this->db->get('transactions')->result() as $amount){ if($amount->amount=='' || $amount->amount==0){ echo '---'; }else{ echo $amount->amount; } $paid_amount=$amount->amount; } ?> Amount Remained $paid_amount){ echo 'Tsh '.number_format($required-$paid_amount); }elseif($required=$paid_amount){ echo '---'; }else{ echo '---'; } ?>