#===================================================================== # LedgerSMB # Small Medium Business Accounting software # http://www.ledgersmb.org/ # # # See COPYRIGHT file for copyright information #====================================================================== # # This file has undergone whitespace cleanup. # #====================================================================== # # two frame layout with refractured menu # ####################################################################### $menufile = "menu.ini"; use LedgerSMB::Menu; 1; # end of main sub display { $form->{titlebar} = "LedgerSMB " . $locale->text('Version') . " $form->{version} - $myconfig{name} - $myconfig{dbname}"; if ( $form->{lynx} ) { $menu = new Menu "$menufile"; $menu->add_file("custom_$menufile") if -f "custom_$menufile"; $menu->add_file("$form->{login}_$menufile") if -f "$form->{login}_$menufile"; @menuorder = $menu->access_control( \%myconfig ); $form->{title} = "LedgerSMB $form->{version}"; $form->header(1); $offset = int( 21 - $#menuorder ) / 2; print "
"; print "\n" x $offset; print ""; print qq|
" . $menu->menuitem( \%myconfig, \%$form, $_ ) . $locale->text($_) . qq| |