function viewListOp()
 {
     if (empty($this->mObjectList)) {
         $this->setObjectList('dummyList');
     }
     if (is_object($this->mObjectList)) {
         $this->mObjectList->bindAction($this);
         $this->mObjectList->prepare();
         $this->mObjectList->buildList($this->mObjectArr, $this->mListSort, $this->mListOrder);
         $this->_getPageNav();
         if ($this->mRender->mTemplate) {
             $this->mXoopsTpl->assign('title', $this->mCaption . ' » ' . $this->__l('List'));
             $this->mXoopsTpl->assign('headers', $this->mObjectList->mListHeaders);
             $this->mXoopsTpl->assign('records', $this->mObjectList->mListRecords);
             $this->mXoopsTpl->assign('lang', array('new' => $this->__l('New')));
             $this->mXoopsTpl->assign('newlink', $this->getUrl(array('op' => 'new')));
             $this->mXoopsTpl->assign('pagenav', $this->mPageNav->renderNav());
         } else {
             $headers = $this->mObjectList->mListHeaders;
             $records = $this->mObjectList->mListRecords;
             $pagenav = $this->mPageNav->renderNav();
             include NBFRAME_BASE_DIR . '/templates/NBFrameList.tpl.php';
         }
     }
 }
 function prepare()
 {
     parent::prepare();
     $this->addElement('mygmap_category_id', '#', 20, array('sort' => true));
     $this->addElement('mygmap_category_name', $this->__l('mygmap_category_name'), 300);
     $this->addElement('mygmap_category_maptype', $this->__l('mygmap_category_maptype'), 80, array('sort' => true));
     $this->addElement('__SimpleEditLink__', '', 50, array('caption' => $this->__l('Edit')));
     $this->addElement('__SimpleDeleteLink__', '', 50, array('caption' => $this->__l('Delete')));
 }