AddOption('Index','main:doc:index'); $MIOLO->GetUI(); include_once($MIOLO->GetModulePath('.','menu.inc')); include_once($MIOLO->GetModulePath('common','etc/documentation.class')); if ( ! $MIOLO->InvokeHandler($module,'doc/'.$context->ShiftAction()) ) { $home = $MIOLOCONF['home']['modules']; $fp = opendir($home); if ( $fp ) { while ( $ent=readdir($fp) ) { if ( substr($ent,0,1) != '.' && is_dir($home.'/'.$ent) ) { $dirs[] = array($ent,$ent); } } closedir($fp); } sort($dirs); $current = Form::GetFormValue('module','common'); $selection = new Selection('Module','module',$current,$dirs); $selection->AddAttribute('onChange','this.form.submit()'); $form = new TabbedForm(); $form->SetTitle('MIOLO Documentation'); $form->AddPage('MIOLO',array(new DocumentationIndex(' ','miolo'))); $form->AddPage('Modules',array(new Separator(), $selection, new DocumentationIndex(' ',$current), new Separator())); $form->AddPage('Functions',array(new FunctionIndex())); unset($form->buttons); $theme->SetContent($form); } ?>