_type = $type; $this->_id = $id; $this->_name = $name; $this->_title = $title; $this->_tblIds = $tblIds; $this->_helpLink = 'index.html'; } public function PrintHtml(&$confData, $disp) { $viewTags = 'vbsDdBCiI'; $editTags = 'eEaScn'; $isEdit = ( strpos($editTags, $disp->_act) !== false ); if ( $disp->_act == 'd' || $disp->_act == 'i' ) $this->printActionConfirm($disp); if ( $disp->_err != null ) { echo GUIBase::message("",$disp->_err,"error"); } $tblDef = DTblDef::GetInstance(); if ( $disp->_tid == null ) { $tids = $this->_tblIds; } else { $tid = DUtil::getLastId($disp->_tid); $tids = array($tid); } $ref = DUtil::getLastId($disp->_ref); foreach ($tids as $ti ) { $tbl = $tblDef->GetTblDef($ti); $isExtract = false; if ( $disp->_act == 'a' ) { $d = array(); } else if ( $disp->_act == 'S' || $disp->_act == 'c' || $disp->_act == 'n') //save failed or in change { $isExtract = true; $d = &$confData; } else { $d = DUtil::locateData($confData, $tbl->_dataLoc, $disp->_ref); } if ( $tbl->_holderIndex != null ) { if ( $disp->_act == 'e' || $disp->_act == 'E' || $disp->_act == 'a') { $disp->_info['holderIndex'] = is_array($d)? array_keys($d):null; $disp->_info['holderIndex_cur'] = $ref; } if ( !$isExtract && $ref != null && substr($ti, -3) != 'TOP') $d = &$d[$ref]; } else { $disp->_info['holderIndex'] = null; } echo "