コード例 #1
0
 public function load()
 {
     if (user()->isGuest()) {
         $this->view->detail = "This page is only for registered OIM user";
         $this->render("error/404", null, true);
         return;
     }
     parent::load();
     $model = new Contact();
     $param = array("person" => 1, "disable" => 0);
     if (isset($_REQUEST["contacts"])) {
         $ids = array();
         foreach ($_REQUEST as $key => $value) {
             if (substr($key, 0, 9) == "contacts_") {
                 $ids[] = substr($key, 9);
             }
         }
         $param["ids"] = $ids;
     }
     $this->view->contacts = $model->getindex($param);
     $model = new DN();
     $this->view->contacts_dns = $model->getgroupby("contact_id", array("disable" => 0));
     $this->setpagetitle(self::default_title());
 }