Adjust banners and minor formatting

This commit is contained in:
Miles Lott 2004-02-22 14:32:55 +00:00
parent 15011a496e
commit ac7a91b8fa
4 changed files with 31 additions and 18 deletions

View File

@ -52,7 +52,7 @@
if(!$notall) if(!$notall)
{ {
$cats_link .= '<option value=""'; $cats_link .= '<option value=""';
if ($cat_id=="all") if($cat_id == 'all')
{ {
$cats_link .= ' selected'; $cats_link .= ' selected';
} }
@ -165,11 +165,11 @@
$GLOBALS['phpgw']->preferences->read_repository($GLOBALS['phpgw_info']['user']['account_id']); $GLOBALS['phpgw']->preferences->read_repository($GLOBALS['phpgw_info']['user']['account_id']);
if($old) if($old)
{ {
$GLOBALS['phpgw']->preferences->delete("addressbook","extra_".$old); $GLOBALS['phpgw']->preferences->delete('addressbook','extra_'.$old);
} }
if($new) if($new)
{ {
$GLOBALS['phpgw']->preferences->add("addressbook","extra_".$new); $GLOBALS['phpgw']->preferences->add('addressbook','extra_'.$new);
} }
$GLOBALS['phpgw']->preferences->save_repository(1); $GLOBALS['phpgw']->preferences->save_repository(1);
} }

View File

@ -1,4 +1,17 @@
<?php <?php
/**************************************************************************\
* eGroupWare *
* http://www.egroupware.org *
* Written by Joseph Engo <jengo@phpgroupware.org> *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
// $Id$
$GLOBALS['pref']->change('addressbook','company','addressbook_True'); $GLOBALS['pref']->change('addressbook','company','addressbook_True');
$GLOBALS['pref']->change('addressbook','lastname','addressbook_True'); $GLOBALS['pref']->change('addressbook','lastname','addressbook_True');
$GLOBALS['pref']->change('addressbook','firstname','addressbook_True'); $GLOBALS['pref']->change('addressbook','firstname','addressbook_True');

View File

@ -2,7 +2,7 @@
/**************************************************************************\ /**************************************************************************\
* eGroupWare * * eGroupWare *
* http://www.egroupware.org * * http://www.egroupware.org *
* Written by Mark Peters <skeeter@phpgroupware.org> * * Written by Miles Lott <milos@groupwhere.org> *
* -------------------------------------------- * * -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it * * This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the * * under the terms of the GNU General Public License as published by the *