29 lines
825 B
PHP
29 lines
825 B
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
|
class Modulebalk extends MY_Controller{
|
|
|
|
function __construct(){
|
|
parent::__construct();
|
|
$models = array("shared/Session_model");
|
|
$this->load->model($models);
|
|
$this->load->helper('string');
|
|
if ( ! $this->check_online_status() ) {
|
|
echo json_encode( array('offline' => TRUE) );
|
|
die;
|
|
};// if
|
|
}
|
|
|
|
function setselectedschool(){
|
|
$schoolid = $this->uri->segment(4);
|
|
$this->Session_model->set_selectedschool($schoolid);
|
|
$this->selectedschool = $schoolid;
|
|
echo json_encode($schoolid);
|
|
|
|
}
|
|
function setselectedschooljaar(){
|
|
$schooljaarnr = $this->uri->segment(4);
|
|
$this->Session_model->set_schooljaar($schooljaarnr);
|
|
$this->schooljaar = $schooljaarnr;
|
|
echo json_encode($schooljaarnr);
|
|
}
|
|
}
|