diff --git a/addressbook/field_edit.php b/addressbook/field_edit.php index 3586b4dac9..8ff1ff9b89 100755 --- a/addressbook/field_edit.php +++ b/addressbook/field_edit.php @@ -29,6 +29,7 @@ $field = ereg_replace(' ','_',$field); $ofield = ereg_replace(' ','_',$ofield); + $t->set_var('title',lang('addressbook').' '.lang('custom fields')); $t->set_var('font',$font); $t->set_var('note',$note); $t->set_var('lang_add',lang('Add')); diff --git a/addressbook/fields.php b/addressbook/fields.php index 7fefec3e4a..a26b92af03 100644 --- a/addressbook/fields.php +++ b/addressbook/fields.php @@ -30,7 +30,8 @@ "row" => "custom_field_list_row.tpl" )); - $phpgw->template->set_var("message",$message); + $phpgw->template->set_var("title",lang('addressbook').' '.lang('custom fields')); + $phpgw->template->set_var("message",''); $phpgw->template->set_var("sort_name",lang("Name")); $phpgw->template->set_var("lang_edit",lang("Edit")); $phpgw->template->set_var("lang_delete",lang("Delete")); @@ -38,20 +39,26 @@ $phpgw->preferences->read_repository(); - while (list($col,$descr) = each($phpgw_info["user"]["preferences"]["addressbook"])) { - if ( substr($col,0,6) == 'extra_' ) { + while (list($col,$descr) = each($phpgw_info["user"]["preferences"]["addressbook"])) + { + if ( substr($col,0,6) == 'extra_' ) + { $fields[$i] = ereg_replace('extra_','',$col); $fields[$i] = ereg_replace(' ','_',$fields[$i]); - echo "
".$i.": '".$fields[$i]."'"; - } else { + //echo "
".$i.": '".$fields[$i]."'"; + } + else + { $fields[$i] = ''; } $i++; } reset($fields); - for($i=0;$inextmatchs->template_alternate_row_color(&$phpgw->template); @@ -70,7 +77,8 @@ $phpgw->template->parse("rows","row",True); } } - if (!$found) { + if (!$found) + { $phpgw->nextmatchs->template_alternate_row_color(&$phpgw->template); $phpgw->template->set_var("field_name",' '); $phpgw->template->set_var("field_edit",' '); @@ -82,7 +90,6 @@ . $phpgw->link("/addressbook/field_edit.php","method=add") . '">' . lang("Add") . ''); - $phpgw->template->pparse("out","row"); $phpgw->template->pparse("out","body"); $phpgw->common->phpgw_footer(); ?> diff --git a/addressbook/templates/default/custom_field_list.tpl b/addressbook/templates/default/custom_field_list.tpl index 9be103d91f..50c2d49b07 100644 --- a/addressbook/templates/default/custom_field_list.tpl +++ b/addressbook/templates/default/custom_field_list.tpl @@ -1,4 +1,5 @@ - +
+
{title}

{message}

diff --git a/addressbook/templates/default/edit_field.tpl b/addressbook/templates/default/edit_field.tpl index 5d262d8530..f149f2ef3d 100644 --- a/addressbook/templates/default/edit_field.tpl +++ b/addressbook/templates/default/edit_field.tpl @@ -1,6 +1,7 @@

+ {title}
{message}
{hidden_vars} diff --git a/addressbook/templates/idsociety/custom_field_list.tpl b/addressbook/templates/idsociety/custom_field_list.tpl index 9be103d91f..50c2d49b07 100755 --- a/addressbook/templates/idsociety/custom_field_list.tpl +++ b/addressbook/templates/idsociety/custom_field_list.tpl @@ -1,4 +1,5 @@ - +
+
{title}

{message}

diff --git a/addressbook/templates/idsociety/edit_field.tpl b/addressbook/templates/idsociety/edit_field.tpl index 5d262d8530..f149f2ef3d 100755 --- a/addressbook/templates/idsociety/edit_field.tpl +++ b/addressbook/templates/idsociety/edit_field.tpl @@ -1,6 +1,7 @@

+ {title}
{message}
{hidden_vars}