/** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/info * - or - * http://example.com/index.php/info/index * - or - * Since this controller is set as the default controller in * config/routes.php, it's displayed at http://example.com/ * * So any other public methods not prefixed with an underscore will * map to /index.php/info/<method_name> * @see http://codeigniter.com/user_guide/general/urls.html */ public function __construct() { parent::__construct(); checkIsLoggedIn(); $this->load->model('dx_auth/users', 'users'); $this->load->model('dx_auth/user_profile', 'profile'); $this->data['controller_url'] = "admin/info/"; }
/** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/doctor * - or - * http://example.com/index.php/doctor/index * - or - * Since this controller is set as the default controller in * config/routes.php, it's displayed at http://example.com/ * * So any other public methods not prefixed with an underscore will * map to /index.php/doctor/<method_name> * @see http://codeigniter.com/user_guide/general/urls.html */ public function __construct() { parent::__construct(); checkIsLoggedIn(); $this->general_mdl->setTable('doctor'); $this->load->model('dx_auth/users', 'users'); $this->load->model('dx_auth/user_profile', 'profile'); $this->data['controller_url'] = "admin/doctor/"; }
function __construct() { parent::__construct(); checkIsLoggedIn(); $this->load->model('tank_auth/users', 'users'); $this->load->model('tank_auth/profiles_mdl', 'profiles'); $this->load->library('tank_auth'); $this->lang->load('tank_auth'); $this->load->library('pagination'); $this->load->library('form_validation'); $this->load->helper('form'); }
/** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/book * - or - * http://example.com/index.php/book/index * - or - * Since this controller is set as the default controller in * config/routes.php, it's displayed at http://example.com/ * * So any other public methods not prefixed with an underscore will * map to /index.php/book/<method_name> * @see http://codeigniter.com/user_guide/general/urls.html */ public function __construct() { parent::__construct(); checkIsLoggedIn(); $this->data['config'] = $this->general_mdl->sys_configs; //医生资料 $this->general_mdl->setTable('doctor'); $this->data['doctors'] = $this->general_mdl->get_query()->result(); $this->general_mdl->setTable('appointment'); $this->load->model('dx_auth/users', 'users'); $this->load->model('dx_auth/user_profile', 'profile'); $this->data['controller_url'] = "admin/book/"; }
function __construct() { parent::__construct(); checkIsLoggedIn(); $this->load->model('dx_auth/users', 'users'); $this->load->model('dx_auth/user_profile', 'profile'); $this->load->model('dx_auth/roles', 'roles'); $this->load->model('dx_auth/user_temp', 'user_temp'); $this->load->model('dx_auth/permissions', 'permissions'); $this->config->load('thumbimage', true); $this->load->library('pagination'); $this->load->library('Form_validation'); $this->load->helper('form'); }
public function index_delete() { checkIsLoggedIn($this); $status = 404; $return["data"] = ""; $return["result"] = "NOOK"; $id = $this->input->post('id') > 0 ? $this->input->post('id') : 0; if ($id > 0) { $user = CI_User::getById($id); if ($user->delete()) { $status = 200; $return["result"] = "OK"; } } $this->response($return, $status); }
function __construct() { parent::__construct(); checkIsLoggedIn(); $this->load->model('dx_auth/user_Profile', 'profile'); }
public function expired_get() { checkIsLoggedIn($this); $status = 404; $return["data"] = ""; $return["result"] = "NOOK"; $arrOptions['userId'] = $this->get('userId'); if ($arrOptions['userId'] > 0) { $requests = CI_Request::getExpiredByUser($arrOptions['userId']); if ($requests) { $status = 200; $return["result"] = "OK"; $return["data"] = ""; foreach ($requests as $key => $request) { $myRequest = CI_Request::getData($request); $return["data"][$key] = $myRequest; } } $this->response($return, $status); } }
function __construct() { parent::__construct(); checkIsLoggedIn(); $this->general_mdl->setTable('sys_config'); }
function __construct() { parent::__construct(); checkIsLoggedIn(); $this->config->load('thumbimage', true); }