+ /* load the template set option */
+ $templateset_values = array();
+
+ foreach ($aTemplateSet as $sKey => $aTemplateSetAttributes) {
+ $templateset_values[$aTemplateSetAttributes['NAME']] = $aTemplateSetAttributes['PATH'];
+ }
+ ksort($templateset_values);
+ $templateset_values = array_flip($templateset_values);
+ $optvals[SMOPT_GRP_GENERAL][] = array(
+ 'name' => 'sTplDir',
+ 'caption' => _("Template"),
+ 'type' => SMOPT_TYPE_STRLIST,
+ 'refresh' => SMOPT_REFRESH_ALL,
+ 'posvals' => $templateset_values,
+ 'save' => 'save_option_template'
+ );
+
+