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
db->select_sum('quantity')->from('branchStock') ->where('type','transfer') ->where('item_id',$item) ->where('inOut','transfer')->where('branch_id',$this->session->userdata('branch_id')) ->get()->result() as $row_sum){ $trfqty=$row_sum->quantity; } //transfered quantity sum... $rcvdqty=0; foreach($this->db->select_sum('quantity')->from('branchStock') ->where('type','transfer') ->where('item_id',$item) ->where('inOut','in')->where('branch_id',$this->session->userdata('branch_id')) ->get()->result() as $row_sum){ $rcvdqty=$row_sum->quantity; } $total2=0; $qty2=$qty=0; $this->db->where('type','normal'); $this->db->where('inOut','in'); $this->db->where('item_id',$item); $this->db->where('branch_id',$this->session->userdata('branch_id')); $query = $this->db->get('branchStock'); foreach ($query->result() as $rows) { $qty=$qty+$rows->quantity; } //items out $total2=0; $qty2=0; $this->db->where('type','normal'); $this->db->where('inOut','out'); $this->db->where('item_id',$item); $this->db->where('branch_id',$this->session->userdata('branch_id')); $query2 = $this->db->get('branchStock'); foreach ($query2->result() as $rows2) { $qty2=$qty2+$rows2->quantity; } $netqty=$qty-$qty2-$trfqty+$rcvdqty; return $netqty; } public function checkItemSold($item) { //sold quantity sum... $trfqty=0; foreach($this->db->select_sum('quantity')->from('branchStock') ->where('type','normal') ->where('item_id',$item) ->where('inOut','out')->where('branch_id',$this->session->userdata('branch_id')) ->get()->result() as $row_sum){ $trfqty=$row_sum->quantity; } return $trfqty; } public function change_passwords_reset() { $_SESSION['school_id'] = $this->session->userdata('school_id'); $pass = $this->security->xss_clean($this->input->post('password1')); $data1 = array( 'password_recover' => $pass, ); $this->db->select('password_recover'); $this->db->where('school_id', $_SESSION['school_id']); $this->db->update('schools', $data1); } public function check_password1() { $_SESSION['school_id'] = $this->session->userdata('school_id'); $_SESSION['reg_number'] = $this->session->userdata('reg_number'); $pass = $this->security->xss_clean($this->input->post('password')); $this->db->where('school_id', $_SESSION['school_id']); $this->db->where('reg_number', $_SESSION['reg_number']); $this->db->where('password', MD5($pass)); $query = $this->db->get('staffs'); return $query->num_rows(); } public function change_passwords1() { $_SESSION['school_id'] = $this->session->userdata('school_id'); $_SESSION['reg_number'] = $this->session->userdata('reg_number'); $pass = $this->security->xss_clean($this->input->post('password1')); $data1 = array( 'password' => MD5($pass), ); $this->db->select('passwaord'); $this->db->where('school_id', $_SESSION['school_id']); $this->db->where('reg_number', $_SESSION['reg_number']); $this->db->update('staffs', $data1); } public function change_passwords_reset1() { $_SESSION['school_id'] = $this->session->userdata('school_id'); $_SESSION['reg_number'] = $this->session->userdata('reg_number'); $pass = $this->security->xss_clean($this->input->post('password1')); $data1 = array( 'password_reset' => $pass, ); $this->db->select('password_reset'); $this->db->where('school_id', $_SESSION['school_id']); $this->db->where('reg_number', $_SESSION['reg_number']); $this->db->update('staffs', $data1); } }