From e8daf4ff25cc7586213eac5358fd0b0d471df5dc Mon Sep 17 00:00:00 2001 From: ceb Date: Sun, 1 Dec 2002 03:28:30 +0000 Subject: [PATCH] update help --- addressbook/help/EN/add.php | 53 ++++++++++++++ addressbook/help/EN/addressbook.php | 57 ---------------- addressbook/help/EN/overview.php | 34 +++++++++ addressbook/help/index.php | 25 ------- addressbook/inc/hook_help.inc.php | 17 +++-- addressbook/templates/default/help_data.xsl | 76 +++++++++++++++++++++ 6 files changed, 175 insertions(+), 87 deletions(-) create mode 100644 addressbook/help/EN/add.php delete mode 100755 addressbook/help/EN/addressbook.php create mode 100644 addressbook/help/EN/overview.php delete mode 100755 addressbook/help/index.php create mode 100644 addressbook/templates/default/help_data.xsl diff --git a/addressbook/help/EN/add.php b/addressbook/help/EN/add.php new file mode 100644 index 0000000000..f07f8732dd --- /dev/null +++ b/addressbook/help/EN/add.php @@ -0,0 +1,53 @@ + True, + 'currentapp' => 'addressbook' + ); + + include('../../../header.inc.php'); + + $GLOBALS['phpgw']->help->set_params(array('app_name' => 'addressbook', + 'title' => lang('add'), + 'params' => array('app_intro' => 'overview.php'))); + + $values['add'] = array + ( + 'intro' => 'Click on the add button, a form page will be presented with the following fields:', + 'lang_lastname' => 'Last name', + 'lang_firstname' => 'First name' + 'lang_email' => 'E-mail', + 'lang_homephone' => 'Home phone', + 'lang_workphone' => 'Work phone', + 'lang_mobile' => 'Mobile', + 'lang_street' => 'Street', + 'lang_city' => 'City', + 'lang_state' => 'State', + 'lang_zip' => 'ZIP code', + 'lang_access' => 'Access', + 'lang_group_settings' => 'Group settings', + 'lang_notes' => 'Notes', + 'lang_company' => 'Company name', + 'lang_fax' => 'Fax' + 'lang_pager' => 'Pager' + 'lang_othernumber' => 'Other number' + 'lang_birthday' => 'Birthday' + 'end' => 'Simply fill in the fields, and click OK.', + 'access_descr' => 'Access can be restricted to private, overriding acl preferences settings. + From preferences, you can grant access to users to the be able to view, + edit, and even delete your entries.' + ); + + $GLOBALS['phpgw']->help->xdraw($values); +?> diff --git a/addressbook/help/EN/addressbook.php b/addressbook/help/EN/addressbook.php deleted file mode 100755 index 2f6dfd11a9..0000000000 --- a/addressbook/help/EN/addressbook.php +++ /dev/null @@ -1,57 +0,0 @@ - True, - 'currentapp' => 'addressbook' - ); - - $phpgw_info['flags'] = $phpgw_flags; - include('../../../header.inc.php'); - $font = $phpgw_info['theme']['font']; -?> - -

-A searchable address book for keeping contact information of business -associates or friends and family. -

-Access can be restricted to private, overriding acl preferences settings. -From preferences, you can grant access to users to the be able to view, -edit, and even delete your entries.

diff --git a/addressbook/help/EN/overview.php b/addressbook/help/EN/overview.php new file mode 100644 index 0000000000..5c9602694c --- /dev/null +++ b/addressbook/help/EN/overview.php @@ -0,0 +1,34 @@ + True, + 'currentapp' => 'addressbook' + ); + + include('../../../header.inc.php'); + + $GLOBALS['phpgw']->help = CreateObject('phpgwapi.help_helper'); + $GLOBALS['phpgw']->help->set_params(array('app_name' => 'addressbook', + 'title' => lang('addressbook overview'), + 'params' => array('app_intro' => 'overview.php'))); + + + $values['overview'] = array + ( + 'intro' => 'A searchable address book for keeping contact information of business associates or friends and family.' + ); + + $GLOBALS['phpgw']->help->xdraw($values); + $GLOBALS['phpgw']->xslttpl->set_var('phpgw',$GLOBALS['phpgw']->help->output); +?> diff --git a/addressbook/help/index.php b/addressbook/help/index.php deleted file mode 100755 index cb5177ad31..0000000000 --- a/addressbook/help/index.php +++ /dev/null @@ -1,25 +0,0 @@ - 'manual' - ); - $phpgw_info['flags'] = $phpgw_flags; - include('../../header.inc.php'); - $appname = 'addressbook'; - include(PHPGW_SERVER_ROOT.'/'.$appname.'/setup/setup.inc.php'); -?> -

- -Version: - diff --git a/addressbook/inc/hook_help.inc.php b/addressbook/inc/hook_help.inc.php index 83bdc44b08..9e135b48bd 100644 --- a/addressbook/inc/hook_help.inc.php +++ b/addressbook/inc/hook_help.inc.php @@ -10,18 +10,25 @@ \**************************************************************************/ /* $Id$ */ - $app_id = $GLOBALS['phpgw']->applications->name2id('addressbook'); + include(PHPGW_SERVER_ROOT.'/'.'addressbook'.'/setup/setup.inc.php'); - $GLOBALS['phpgw']->help->set_params(array('app_id' => $app_id, - 'app_name' => 'addressbook', - 'title' => lang('addressbook'))); + $GLOBALS['phpgw']->help->set_params(array('app_name' => 'addressbook', + 'title' => lang('addressbook'), + 'app_version' => $setup_info['addressbook']['version'])); $GLOBALS['phpgw']->help->data[] = array ( 'text' => lang('owerview'), - 'link' => $GLOBALS['phpgw']->help->check_help_file('addressbook.php'), + 'link' => $GLOBALS['phpgw']->help->check_help_file('overview.php'), 'lang_link_statustext' => lang('owerview') ); + $GLOBALS['phpgw']->help->data[] = array + ( + 'text' => lang('add'), + 'link' => $GLOBALS['phpgw']->help->check_help_file('add.php'), + 'lang_link_statustext' => lang('add') + ); + $GLOBALS['phpgw']->help->draw(); ?> diff --git a/addressbook/templates/default/help_data.xsl b/addressbook/templates/default/help_data.xsl new file mode 100644 index 0000000000..3019fa3ddc --- /dev/null +++ b/addressbook/templates/default/help_data.xsl @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + + + + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
::
::
::
::
::
::
::
::
::
+
+
+
+