Пример #1
0
 public function run()
 {
     $this->controller->pageTitle = "Community";
     $servicelist = new CCommunity();
     $result = $servicelist->getServiceList();
     if ($result['code'] == 200) {
         $this->controller->render('servicelist', array('list' => $result['data']));
     }
 }
Пример #2
0
 public function run()
 {
     $this->controller->pageTitle = "Members";
     $memeber = new CCommunity();
     $result = $memeber->getMemberList();
     if ($result['code'] == 200) {
         $this->controller->bodyCss = 'whitecolor';
         $this->controller->render('memberlist', array('list' => $result['data']));
     }
 }
Пример #3
0
 public function run()
 {
     $this->controller->pageTitle = "Companies";
     $companylist = new CCommunity();
     $result = $companylist->getCompanyList();
     if ($result['code'] == 200) {
         $this->controller->bodyCss = 'whitecolor';
         $this->controller->render('companylist', array('list' => $result['data']));
     }
 }
Пример #4
0
 public function run($id)
 {
     $community = new CCommunity();
     $result = $community->getCompanyListByService($id);
     $title = Service::model()->findByAttributes(array('id' => $id))->name;
     $this->controller->pageTitle = $title;
     if ($result['code'] == 200) {
         $this->controller->bodyCss = 'whitecolor';
         $this->controller->render('servicescompany', array('list' => $result['data']));
     }
 }