diff --git a/addressbook/admin.php b/addressbook/admin.php new file mode 100644 index 0000000000..78ac03a64e --- /dev/null +++ b/addressbook/admin.php @@ -0,0 +1,69 @@ + 'addressbook', + 'noheader' => True, + 'nonavbar' => True, + 'noappheader' => True, + 'noappfooter' => True, + 'enable_config_class' => True, + 'enable_nextmatchs_class' => True + ); + + include('../header.inc.php'); + + $phpgw->config->read_repository(); + + if ($submit) + { + if ($usecountrylist) + { + $phpgw->config->config_data['countrylist'] = True; + } + else + { + unset($phpgw->config->config_data['countrylist']); + } + + $phpgw->config->save_repository(True); + Header('Location: ' . $phpgw->link('/admin/index.php')); + } + + $phpgw->common->phpgw_header(); + echo parse_navbar(); + + $t = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); + $t->set_file(array('admin' => 'admin.tpl')); + + $t->set_var('action_url',$phpgw->link('/addressbook/admin.php')); + + $tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color); + $t->set_var('tr_color',$tr_color); + + $t->set_var('lang_countrylist',lang('Use Country List')); + if ($phpgw->config->config_data['countrylist']) + { + $t->set_var('countrylist',' checked'); + } + else + { + $t->set_var('countrylist',''); + } + + $t->set_var('lang_admin',lang('Addressbook').' '.lang('Admin')); + $t->set_var('lang_submit',lang('submit')); + + $t->pparse('out','admin'); + $phpgw->common->phpgw_footer(); +?> diff --git a/addressbook/templates/default/admin.tpl b/addressbook/templates/default/admin.tpl new file mode 100644 index 0000000000..04d328c296 --- /dev/null +++ b/addressbook/templates/default/admin.tpl @@ -0,0 +1,16 @@ + +

{lang_admin}:


+

+ + + + + + + +
+ {lang_countrylist} +
+ +
+
diff --git a/addressbook/templates/default/form.tpl b/addressbook/templates/default/form.tpl index d480c0f732..e173d838c5 100755 --- a/addressbook/templates/default/form.tpl +++ b/addressbook/templates/default/form.tpl @@ -146,7 +146,7 @@ {lang_bcountry}: - + {bcountry} {lang_timezone}: @@ -275,7 +275,7 @@ {lang_hcountry}: - + {hcountry}