function fetch_data()
 {
     global $dbh;
     $this->info = array();
     if (!$this->id) {
         return;
     }
     $req = "select authperso_authority_authperso_num from authperso_authorities where id_authperso_authority=" . $this->id;
     $res = pmb_mysql_query($req, $dbh);
     if ($r = pmb_mysql_fetch_object($res)) {
         $authperso = new authperso($r->authperso_authority_authperso_num);
         $this->info['isbd'] = $authperso->get_isbd($this->id);
         $this->info['view'] = $authperso->get_view($this->id);
         $this->info['authperso'] = $authperso->get_data();
         $this->info['data'] = $authperso->fetch_data_auth($this->id);
         $this->info['authperso_num'] = $r->authperso_authority_authperso_num;
     }
 }
示例#2
0
 function fetch_data()
 {
     global $PMBuserid;
     $this->info = array();
     $i = 0;
     $req = "select * from authperso ";
     $resultat = pmb_mysql_query($req);
     if (pmb_mysql_num_rows($resultat)) {
         while ($r = pmb_mysql_fetch_object($resultat)) {
             $authperso = new authperso($r->id_authperso);
             //$this->info[$i]=$authperso->get_data();
             $this->info[$r->id_authperso] = $authperso->get_data();
             $i++;
         }
     }
 }
示例#3
0
 function aut_notice_list()
 {
     global $msg;
     global $charset;
     global $aut_type, $mode, $aut_id;
     switch ($aut_type) {
         case "authperso":
             $authperso = new authperso($mode - 1000);
             $info = $authperso->get_data();
             $isbd = $authperso->get_isbd($aut_id);
             $display = "<b>" . $info['name'] . "</b>&nbsp;" . htmlentities($isbd, ENT_QUOTES, $charset);
             $this->human_notice_query = $display;
             break;
     }
     $this->notice_list_common($display);
 }