% $screenTitle="Template Preferences"; &main::checkPermissions("","TEMPLATE_PREFERENCES"); $fields = &main::GetFieldProperties($main::templates_dir . "calendars/" . $Config->get("template_dir")."/preferences.txt"); # Get the current preferences for this template set from the calendar config $template = $Config->get("template_dir"); foreach ($Config->keys()) { $pref = $_; next unless $pref =~ s/^template_preference_${template}_//o; $preferences->{$pref} = $Config->get($_); } %>