Exemplo n.º 1
0
 function __construct()
 {
     parent::__construct();
     $this->view->setLayout('main_layout');
     Document::setCss(array('style'));
     Document::setJs(array('article'));
 }
Exemplo n.º 2
0
 function __construct()
 {
     parent::__construct();
     Document::setTitle('Giới thiệu');
     Document::setCss(array('style'));
     $this->view->setLayout('main_layout');
 }
Exemplo n.º 3
0
 function __construct()
 {
     parent::__construct();
     $this->view->setLayout('login_layout');
     Document::setCss(array('login-admin'));
     Document::setTitle('Đăng nhập');
 }
Exemplo n.º 4
0
 function exeWrite()
 {
     Document::setTitle('Soạn thư');
     Document::setCss(array('style', 'jquery-ui-1.10.3.custom.min'));
     Document::setJs(array('jquery-ui-1.10.3.custom.min', 'sendMessage'));
     $id = (int) Session::get('user')['id'];
     if ($id > 0) {
         $rls = $this->loadRelationship();
         $data = array();
         $data['id'] = $id;
         $data['friends'] = $rls->listFriends($id);
         $this->view->render('write', $data);
     }
 }
Exemplo n.º 5
0
 public function __construct()
 {
     parent::__construct();
     $this->view->setLayout('main_layout');
     Document::setCss();
 }
Exemplo n.º 6
0
 function exeDetail()
 {
     $id = (int) Request::get('user');
     if ($id == Session::get('user')['id']) {
         Until::redirectTo('user');
     }
     if ($id > 0) {
         $data = $this->model->selectOne($id);
         if (empty($data)) {
             Until::redirectTo();
         } else {
             Document::setCss(array('style', 'fotorama'));
             Document::setTitle('Thông tin thành viên');
             Document::setJs(array('friend', 'fotorama'));
             $img = $this->loadImage();
             $data['images'] = $img->selectUser($data['username']);
             $data['url'] = BASE_URL . '/';
             $job = $this->loadJob();
             $data['jobs'] = $job->selectAll();
             $domicile = $this->loadDomicile();
             $data['domiciles'] = $domicile->selectAll();
             $specialize = $this->loadSpecialize();
             $data['pecializes'] = $specialize->selectAll();
             $specialize = $this->loadSpecialize();
             $data['specializes'] = $specialize->selectAll();
             $relation = $this->loadRelationship();
             $userId = Session::get('user')['id'];
             if ($userId > 0) {
                 $data['friend'] = $relation->relationship($id, $userId);
             } else {
                 $data['friend'] = false;
             }
             $data['memberLink'] = BASE_URL . '/user/detail?user='******'edit'] = BASE_URL . '/user/edit';
             $this->view->render('detail', $data);
         }
     } else {
         Until::redirectTo();
     }
 }