update help

This commit is contained in:
ceb 2002-12-01 03:28:30 +00:00
parent de9637797d
commit e8daf4ff25
6 changed files with 175 additions and 87 deletions

View File

@ -0,0 +1,53 @@
<?php
/**************************************************************************\
* phpGroupWare - User manual *
* http://www.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['phpgw_info']['flags'] = Array
(
'headonly' => 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);
?>

View File

@ -1,57 +0,0 @@
<?php
/**************************************************************************\
* phpGroupWare - User manual *
* http://www.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$ */
$phpgw_flags = Array
(
'headonly' => True,
'currentapp' => 'addressbook'
);
$phpgw_info['flags'] = $phpgw_flags;
include('../../../header.inc.php');
$font = $phpgw_info['theme']['font'];
?>
<img src="<?php echo $phpgw->common->image('addressbook','navbar.gif'); ?>" border="0">
<font face="<?php echo $font ?>" size="2"><p/>
A searchable address book for keeping contact information of business
associates or friends and family.
<ul><li><b>Add:</b><br/>
Click on the add button, a form page will be presented with the following fields:
<table width="80%">
<td bgcolor="#ccddeb" width="50%" valign="top">
<font face="<?php echo $font; ?>" size="2">
Last name:<br/>
E-mail:<br/>
Home phone:<br/>
Work phone:<br/>
Mobile:<br/>
Street:<br/>
City:<br/>
State:<br/>
ZIP code:<br/>
Access:<br/>
Group settings:<br/>
Notes:</td>
<td bgcolor="#ccddeb" width="50%" valign="top">
<font face="<?php echo $font; ?>" size="2">
First name:<br/>
Company name:<br/>
Fax:<br/>
Pager:<br/>
Other number:<br/>
Birthday:</td></table>
...and many others.
Simply fill in the fields, and click OK.</li><p/></ul>
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.<p/>

View File

@ -0,0 +1,34 @@
<?php
/**************************************************************************\
* phpGroupWare - User manual *
* http://www.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['phpgw_info']['flags'] = Array
(
'headonly' => 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);
?>

View File

@ -1,25 +0,0 @@
<?php
/**************************************************************************\
* phpGroupWare - User manual *
* http://www.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$ */
$phpgw_flags = Array(
'currentapp' => 'manual'
);
$phpgw_info['flags'] = $phpgw_flags;
include('../../header.inc.php');
$appname = 'addressbook';
include(PHPGW_SERVER_ROOT.'/'.$appname.'/setup/setup.inc.php');
?>
<img src="<?php echo $phpgw->common->image($appname,'navbar.gif'); ?>" border="0"><p/>
<font face="<?php echo $phpgw_info['theme']['font']; ?>" size="2">
Version: <b><?php echo $setup_info[$appname]['version']; ?></b>
</font>

View File

@ -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();
?>

View File

@ -0,0 +1,76 @@
<!-- $Id$ -->
<xsl:template name="help_data">
<xsl:apply-templates select="xhelp"/>
</xsl:template>
<xsl:template match="xhelp">
<xsl:choose>
<xsl:when test="overview">
<xsl:apply-templates select="overview"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="add"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="overview">
<table>
<tr>
<td>
<xsl:value-of disable-output-escaping="yes" select="intro"/>
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="add">
<table>
<tr>
<td><xsl:value-of disable-output-escaping="yes" select="intro"/><br/>
<table width="80%" bgcolor="#ccddeb">
<tr>
<td><xsl:value-of select="lang_lastname"/>:</td>
<td><xsl:value-of select="lang_firstname"/>:</td>
</tr>
<tr>
<td><xsl:value-of select="lang_email"/>:</td>
<td><xsl:value-of select="lang_company"/>:</td>
</tr>
<tr>
<td><xsl:value-of select="lang_homephone"/>:</td>
<td><xsl:value-of select="lang_fax"/>:</td>
</tr>
<tr>
<td><xsl:value-of select="lang_workphone"/>:</td>
<td><xsl:value-of select="lang_pager"/>:</td>
</tr>
<tr>
<td><xsl:value-of select="lang_mobile"/>:</td>
<td><xsl:value-of select="lang_othernumber"/>:</td>
</tr>
<tr>
<td><xsl:value-of select="lang_street"/>:</td>
<td><xsl:value-of select="lang_city"/>:</td>
</tr>
<tr>
<td><xsl:value-of select="lang_state"/>:</td>
<td><xsl:value-of select="lang_zip"/>:</td>
</tr>
<tr>
<td><xsl:value-of select="lang_access"/>:</td>
<td><xsl:value-of select="lang_groupsettings"/>:</td>
</tr>
<tr>
<td><xsl:value-of select="lang_notes"/>:</td>
<td><xsl:value-of select="lang_birthday"/>:</td>
</tr>
</table>
<xsl:value-of disable-output-escaping="yes" select="end"/><br/>
<xsl:value-of disable-output-escaping="yes" select="access_descr"/><br/>
</td>
</tr>
</table>
</xsl:template>