public function action_admin_list()
 {
     // fetch modulenames as numeric indexed array
     $modules = Clansuite_ModuleInfoController::getModuleNames(false, true);
     $themes = Clansuite_Theme::getThemeDirectories();
     // create a new form
     $form = new Clansuite_Form('module_select_dropdown_form', 'post', '/templatemanager/admin/edit');
     $form->setLegend(_('Select Module or Theme to edit'));
     // select dropdown for modules
     $form->addElement('select')->setName('select_form[module]')->setLabel(_('Module'))->setOptions($modules)->withValuesAsKeys();
     // select dropdown for themes
     $form->addElement('select')->setName('select_form[theme]')->setLabel(_('Theme'))->setOptions($themes)->withValuesAsKeys();
     // add the buttonbar
     $form->addElement('buttonbar')->setCancelButtonURL('index.php?mod=templatemanager&sub=admin');
     // assign the html of the form to the view
     $this->getView()->assign('module_select_dropdown_form', $form->render());
     $this->display();
 }
 public function action_admin_list()
 {
     // get themes
     $themes = Clansuite_Theme::getThemeDirectories();
     // get modules
     #$modules = Clansuite_ModuleInfoController::getModuleNames(true);
     $modules = Clansuite_ModuleInfoController::loadModuleInformations();
     // pop the counter off the end
     array_pop($modules);
     $view = $this->getView();
     $view->assign('themes', $themes);
     $view->assign('modules', $modules);
     $view->assign('cores', array());
     // @todo fetch core language items
     $this->display();
 }