category=str_replace('_',' ',$opt['_restAlias']); } function exec(&$Doc) { $Terms = SiteMap::getObj('Term/Term.php'); // if (!$this->category) { $Doc->addContent(array('tpl'=>'Term/show.tpl', 'category'=>$Terms->aTermCategory)); // } else { $aCategories=$Terms->getTermCategory4Select(); foreach ($aCategories as $cCategory) $this->showCategoryTerm($Doc, $Terms, $cCategory); // } return true; } function showCategoryTerm(&$Doc, $Terms, $cCategory) { $Doc->addContent(array('tpl'=>'text.tpl', 'text'=>'

'.$cCategory.'

')); $Terms->_filterFields=array('title'); $Terms->setFilter($cCategory); require_once('class/DB/List/List.php'); $DB_List = new DB_List($Doc, $Terms, array('id')); $DB_List->ipp = 1024*1024; $DB_List->insertColLast('term', array('title' => 'Term', 'width' => '120', 'tpl' => 'Term/List/term.tpl', 'params' => array('term'))); $DB_List->insertColLast('definition', array('title' => 'Definition', 'tpl' => 'Term/List/definition_full.tpl', 'params' => array('definition'))); $DB_List->donotsowsummary=1; $DB_List->exec(); $Doc->addContent(array('tpl'=>'text.tpl', 'text'=>'

Back to Top

')); } } ?>