BBnepal-Accounts/account/application/controllers/Defaults.php
Sampanna Rimal 9cd05ef3cb commitall
2024-07-10 18:28:19 +05:45

39 lines
1.1 KiB
PHP

<?php
class Defaults extends CI_Controller
{
function __construct()
{
parent::__construct();
checkLogin();
}
public function index()
{
$data['dataValue'] = $this->session;
$query = $this->db->select('bbnepal_category, accategory_id')
->from('tbl_acdefaults')
->get();
$dataA = array();
foreach ($query->result() as $row) {
$dataA[$row->bbnepal_category] = $row->accategory_id;
}
$data['Defaults'] = $dataA;
if ($_POST) {
pre($_POST);
$students_section = $_POST['students_section'];
$teachers_section = $_POST['teachers_section'];
$fee_types_section = $_POST['fee_types_section'];
$expenses_section = $_POST['expenses_section'];
$inventory_purchase_section = $_POST['inventory_purchase_section'];
$inventory_sales_section = $_POST['inventory_sales_section'];
$student_defaults = $this->db->query("SELECT * FROM tbl_acdefaults WHERE ");
die;
}
loadView('setup/defaults', $data);
}
}