Beispiel #1
0
 /**
  * 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/";
 }
Beispiel #2
0
 /**
  * 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/";
 }
Beispiel #3
0
 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');
 }
Beispiel #4
0
 /**
  * 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/";
 }
Beispiel #5
0
 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');
 }
Beispiel #6
0
 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);
 }
Beispiel #7
0
 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);
     }
 }
Beispiel #9
0
 function __construct()
 {
     parent::__construct();
     checkIsLoggedIn();
     $this->general_mdl->setTable('sys_config');
 }
Beispiel #10
0
 function __construct()
 {
     parent::__construct();
     checkIsLoggedIn();
     $this->config->load('thumbimage', true);
 }