% &main::checkPermissions("_global","ADMIN_SETTINGS"); $screenTitle="Admin Interface"; $dir = $main::BASE_DIR . "templates/admin/"; if (-d $dir) { opendir(DIR,$dir); while($f = readdir(DIR)) { if (($f !~ /^\.\.?$/) && (-d $dir.$f)) { push(@admin_template_dirs,$f); } } closedir(DIR); } $admin_template_dirs_list=new HTML::optionList(); $admin_template_dirs_list->addSimpleOptions(@admin_template_dirs); $admin_template_dirs_list->setSelectedValue($AdminConfig->get("admin_template_dir")); require "calendars.inc"; $calendars = &main::GetAllCalendars($main::calendars_file); $calendars_list=new HTML::optionList(); #foreach $cal (sort {$calendars->[$a]->{name} cmp $calendars->[$b]->{name}} @$calendars) { foreach $cal (@$calendars) { $calendars_list->addOption($cal->{key},$cal->{name}); } $calendars_list->setSelectedValue($AdminConfig->get("default_calendar")); %>
|
|||
|
|||