Exemple #1
0
 public function PrintHtml($disp)
 {
     $this->_disp_tid = $disp->Get(DInfo::FLD_TID);
     $this->_disp_ref = $disp->Get(DInfo::FLD_REF);
     $this->_linked_tbls = NULL;
     $this->_extended = TRUE;
     if ($this->_disp_tid == '') {
         $this->_extended = FALSE;
     } elseif (($last = strrpos($this->_disp_tid, '`')) > 0) {
         $this->_disp_tid = substr($this->_disp_tid, $last + 1);
     }
     if (($topmesg = $disp->Get(DInfo::FLD_TopMsg)) != NULL) {
         foreach ($topmesg as $tm) {
             echo UIBase::message('', $tm, 'error');
         }
     }
     $root = $disp->Get(DInfo::FLD_PgData);
     if ($root == NULL) {
         return;
     }
     if ($root->Get(CNode::FLD_KEY) == CNode::K_EXTRACTED) {
         $this->print_tbl($this->_disp_tid, $root, $disp);
     } else {
         $this->_printdone = FALSE;
         $this->print_map($this->_tblmap, $root, $disp);
     }
     if ($disp->IsViewAction() && $this->_linked_tbls != NULL) {
         $this->_extended = TRUE;
         $disp->SetPrintingLinked(TRUE);
         foreach ($this->_linked_tbls as $lti) {
             $this->_disp_tid = $lti;
             $this->_disp_ref = $disp->Get(DInfo::FLD_REF);
             $this->_printdone = FALSE;
             $this->print_map($this->_tblmap, $root, $disp);
         }
         $disp->SetPrintingLinked(FALSE);
     }
 }