New: Enhance help center

This commit is contained in:
Laurent Destailleur 2009-05-09 18:00:14 +00:00
parent d33f8a6d63
commit 3ccb9cb0da
7 changed files with 141 additions and 66 deletions

View File

@ -1,10 +1,14 @@
# Dolibarr language file - en_US - help # Dolibarr language file - en_US - help
CHARSET=UTF-8 CHARSET=UTF-8
CommunitySupport=Community suuport CommunitySupport=Forum/Wiki support
EMailSupport=Emails support EMailSupport=Emails support
RemoteControlSupport=Real time and remote support RemoteControlSupport=Online real time / remote support
OtherSupport=Other support
ToSeeListOfAvailableRessources=To contact/see available ressources: ToSeeListOfAvailableRessources=To contact/see available ressources:
ClickHere=Click here ClickHere=Click here
HelpCenter=Help center HelpCenter=Help center
DolibarrHelpCenter=Dolibarr help and support center DolibarrHelpCenter=Dolibarr help and support center
ToGoBackToDolibarr=To go back on Dolibarr, <a href="%s">click here</a>. ToGoBackToDolibarr=To go back on Dolibarr, <a href="%s">click here</a>.
TypeOfSupport=Nature of support
TypeSupportCommunauty=Community (free)
TypeSupportCommercial=Commercial

View File

@ -177,7 +177,7 @@ OfficialWiki = Wiki Dolibarr
OfficialDemo = Démo en ligne Dolibarr OfficialDemo = Démo en ligne Dolibarr
ForDocumentationSeeWiki = Pour la documentation utilisateur, développeur ou les FAQs (questions-réponses fréquentes), consultez le wiki Dolibarr:<br><b><a href="%s" target="_blank">%s</a></b> ForDocumentationSeeWiki = Pour la documentation utilisateur, développeur ou les FAQs (questions-réponses fréquentes), consultez le wiki Dolibarr:<br><b><a href="%s" target="_blank">%s</a></b>
ForAnswersSeeForum = Pour d'autres questions ou poser vos propres questions, vous pouvez utiliser le forum Dolibarr:<br><b><a href="%s" target="_blank">%s</a></b> ForAnswersSeeForum = Pour d'autres questions ou poser vos propres questions, vous pouvez utiliser le forum Dolibarr:<br><b><a href="%s" target="_blank">%s</a></b>
HelpCenterDesc1 = Cet espace permet de vous aider à obtenir un service de support sur Dolibarr. HelpCenterDesc1 = Cette application, indépendante de Dolibarr, vous permet de vous aider à obtenir un service de support sur Dolibarr.
HelpCenterDesc2 = Certain de ces services ne sont disponibles qu'en <b>anglais</b>. HelpCenterDesc2 = Certain de ces services ne sont disponibles qu'en <b>anglais</b>.
CurrentTopMenuHandler = Gestionnaire menu haut courant CurrentTopMenuHandler = Gestionnaire menu haut courant
CurrentLeftMenuHandler = Gestionnaire menu gauche courant CurrentLeftMenuHandler = Gestionnaire menu gauche courant

View File

@ -1,10 +1,14 @@
# Dolibarr language file - fr_FR - help # Dolibarr language file - fr_FR - help
CHARSET=UTF-8 CHARSET=UTF-8
CommunitySupport=Support communautaire CommunitySupport=Assistance Forums et Wiki
EMailSupport=Support emails EMailSupport=Assistance Emails
RemoteControlSupport=Support temps réel à distance RemoteControlSupport=Assistance en ligne temps réel
OtherSupport=Autres type d'assistance
ToSeeListOfAvailableRessources=Pour contacter/voir les ressources disponibles: ToSeeListOfAvailableRessources=Pour contacter/voir les ressources disponibles:
ClickHere=Cliquez ici ClickHere=Cliquez ici
HelpCenter=Centre d'aide HelpCenter=Centre d'aide
DolibarrHelpCenter=Centre de support et d'aide Dolibarr DolibarrHelpCenter=Centre de support et d'aide Dolibarr
ToGoBackToDolibarr=Pour aller sur Dolibarr, <a href="%s">cliquer ici</a>. ToGoBackToDolibarr=Pour aller sur Dolibarr, <a href="%s">cliquer ici</a>.
TypeOfSupport=Nature du support
TypeSupportCommunauty=Communautaire (gratuit)
TypeSupportCommercial=Commercial

View File

@ -19,7 +19,7 @@
*/ */
body { body {
font-size:13px; font-size:14px;
font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
background-color: #F4F4F4; background-color: #F4F4F4;
margin-left: 20px; margin-left: 20px;
@ -182,3 +182,8 @@ font-size: 12px;
border: 1px solid #8CACBB; border: 1px solid #8CACBB;
padding: 4px 4px 4px 4px; padding: 4px 4px 4px 4px;
} }
tr.title
{
background: #DDDFDD;
}

View File

@ -146,7 +146,7 @@ $bc[false]=' class="bg1"';
$bc[true]=' class="bg2"'; $bc[true]=' class="bg2"';
/* /**
* \brief Load conf file (file must exists) * \brief Load conf file (file must exists)
* \param dolibarr_main_document_root Root directory of Dolibarr bin files * \param dolibarr_main_document_root Root directory of Dolibarr bin files
* \return int <0 if KO, >0 if OK * \return int <0 if KO, >0 if OK
@ -180,7 +180,7 @@ function conf($dolibarr_main_document_root)
} }
/* /**
* \brief Affiche entete HTML * \brief Affiche entete HTML
*/ */
function pHeader($soutitre,$next,$action='none') function pHeader($soutitre,$next,$action='none')
@ -211,6 +211,12 @@ function pHeader($soutitre,$next,$action='none')
print '<table class="main-inside" width="100%"><tr><td>'."\n"; print '<table class="main-inside" width="100%"><tr><td>'."\n";
} }
/**
* Enter description here...
*
* @param unknown_type $nonext
* @param unknown_type $setuplang
*/
function pFooter($nonext=0,$setuplang='') function pFooter($nonext=0,$setuplang='')
{ {
global $langs; global $langs;
@ -225,7 +231,12 @@ function pFooter($nonext=0,$setuplang='')
print '</html>'."\n"; print '</html>'."\n";
} }
/**
* Enter description here...
*
* @param unknown_type $message
* @param unknown_type $level
*/
function dolibarr_support_syslog($message, $level=LOG_DEBUG) function dolibarr_support_syslog($message, $level=LOG_DEBUG)
{ {
if (! defined('LOG_DEBUG')) define('LOG_DEBUG',6); if (! defined('LOG_DEBUG')) define('LOG_DEBUG',6);

View File

@ -23,8 +23,14 @@
* \version $Id$ * \version $Id$
*/ */
// Use its own include to not share the include of Dolibarr
// This is a standalone feature with no information from Dolibarr to show
// and no database access to do.
include_once("./inc.php"); include_once("./inc.php");
include_once("../master.inc.php"); $uri=eregi_replace('^http(s?)://','',$dolibarr_main_url_root);
$pos = strstr ($uri, '/'); // $pos contient alors url sans nom domaine
if ($pos == '/') $pos = ''; // si $pos vaut /, on le met a ''
define('DOL_URL_ROOT', $pos); // URL racine relative
$langs->load("other"); $langs->load("other");
$langs->load("help"); $langs->load("help");
@ -41,27 +47,33 @@ print $langs->trans("ToGoBackToDolibarr",DOL_URL_ROOT.'/');
print '<br><br>'; print '<br><br>';
print '<table border="1">'; $style1='color: #333344; font-size: 18px; font-weight: bold';
$style2='color: #5D4455; font-weight: bold;';
print '<table border="1" style="spacing: 4px; padding: 2px">';
// Line of possible services // Line of possible services
print '<tr>'; print '<tr class="title">';
print '<td align="center">'; // Forum/wiki support
print '<b>'.$langs->trans("CommunitySupport").'</b>'; print '<td align="center" valign="middle">';
//print img_picto('','/theme/common/who.png','',1).'<br>';
print '<font style="'.$style1.'">'.$langs->trans("CommunitySupport").'</font>';
print '<br>'.$langs->trans("TypeOfSupport").': <font style="'.$style2.'">'.$langs->trans("TypeSupportCommunauty").'</font>';
print '</td>'; print '</td>';
// EMail support
print '<td align="center">'; print '<td align="center">';
print '<b>'.$langs->trans("EMailSupport").'</b>'; //print img_picto('','/theme/common/mail.png','',1).'<br>';
print '</td>'; print '<font style="'.$style1.'">'.$langs->trans("EMailSupport").'</font>';
print '<td align="center">'; print '<br>'.$langs->trans("TypeOfSupport").': <font style="'.$style2.'">'.$langs->trans("TypeSupportCommercial").'</font>';
print '<b>'.$langs->trans("RemoteControlSupport").'</b>';
print '</td>'; print '</td>';
print '</tr>'; print '</tr>';
// Area of support cells // Area of support cells
print '<tr>'; print '<tr>';
print '<td width="33%" align="center" valign="top" style="background:#FFFFFF">';
// Forum/wiki support
print '<td width="33%" align="center" valign="top" style="background:#FFFFFF">';
print '<table class="nocellnopadd"><tr><td align="center" valign="top">'; print '<table class="nocellnopadd"><tr><td align="center" valign="top">';
print img_picto('','/theme/common/who.png','',1); print img_picto('','/theme/common/who.png','',1);
print '</td></tr><tr><td align="center">'; print '</td></tr><tr><td align="center">';
@ -70,30 +82,65 @@ if ($langs->defaultlang == 'fr_FR') $urlwiki='http://wiki.dolibarr.org/index.php
if ($langs->defaultlang == 'es_ES') $urlwiki='http://wiki.dolibarr.org/index.php/Portada'; if ($langs->defaultlang == 'es_ES') $urlwiki='http://wiki.dolibarr.org/index.php/Portada';
print '<br>'.$langs->trans("ForDocumentationSeeWiki",$urlwiki,$urlwiki).'<br>'; print '<br>'.$langs->trans("ForDocumentationSeeWiki",$urlwiki,$urlwiki).'<br>';
print '<br>'.$langs->trans("ForAnswersSeeForum",'http://www.dolibarr.org/forum/','http://www.dolibarr.org/forum/').'<br>'; print '<br>'.$langs->trans("ForAnswersSeeForum",'http://www.dolibarr.org/forum/','http://www.dolibarr.org/forum/').'<br>';
print '<br>';
print '</td></tr></table>'; print '</td></tr></table>';
print '</td>'; print '</td>';
print '<td width="34%" align="center" valign="top" style="background:#FFFFFF">';
// EMail support
print '<td width="34%" align="center" valign="top" style="background:#FFFFFF">';
print '<table class="nocellnopadd"><tr><td align="center" valign="top">'; print '<table class="nocellnopadd"><tr><td align="center" valign="top">';
print img_picto('','/theme/common/mail.png','',1); print img_picto('','/theme/common/mail.png','',1);
print '</td></tr><tr><td align="center">'; print '</td></tr><tr><td align="center">';
print '<br>'.$langs->trans("FeatureNotYetAvailable").'.'; print '<br>'.$langs->trans("FeatureNotYetAvailable").'.';
print '</td></tr></table>'; print '</td></tr></table>';
print '</td>'; print '</td>';
print '<td width="33%" align="center" valign="top" style="background:#FFFFFF">';
print '<table class="nocellnopadd"><tr><td align="center" valign="top">'; print '</tr>';
print img_picto('','/theme/common/internet.png','',1);
print '</td></tr><tr><td align="center">';
print '<br>'.$langs->trans("ToSeeListOfAvailableRessources").' ';
print '<a href="online.php">'.$langs->trans("ClickHere").'</a>';
print '</td></tr></table>';
// Line of possible services
print '<tr class="title">';
// Forum/wiki support
print '<td align="center">';
print '<font style="'.$style1.'">'.$langs->trans("RemoteControlSupport").'</font>';
print '<br>'.$langs->trans("TypeOfSupport").': <font style="'.$style2.'">'.$langs->trans("TypeSupportCommercial").'</font>';
print '</td>';
// EMail support
print '<td align="center">';
print '<font style="'.$style1.'">'.$langs->trans("OtherSupport").'</font>';
print '<br>'.$langs->trans("TypeOfSupport").': <font style="'.$style2.'">'.$langs->trans("TypeSupportCommercial").'</font>';
print '</td>'; print '</td>';
print '</tr>'; print '</tr>';
// Area of support cells
print '<tr>';
// Online support
print '<td width="33%" align="center" valign="top" style="background:#FFFFFF">';
print '<table class="nocellnopadd"><tr><td align="center" valign="top">';
print img_picto('','/theme/common/internet.png','',1);
print '</td></tr><tr><td align="center">';
print '<br>';
print '<br>'.$langs->trans("ToSeeListOfAvailableRessources").'<br>';
print '<b><a href="online.php">'.$langs->trans("ClickHere").'</a></b>';
print '<br><br>';
print '<br><br>';
print '</td></tr></table>';
print '</td>';
// Other support
$urlwiki='http://wiki.dolibarr.org/index.php/List_of_OpenSource_Software_companies_and_freelancers';
print '<td width="33%" align="center" valign="top" style="background:#FFFFFF">';
print '<table class="nocellnopadd"><tr><td align="center" valign="top">';
print img_picto('','/theme/common/pagemaster.png','',1);
print '</td></tr><tr><td align="center">';
print '<br>';
print '<br>'.$langs->trans("ToSeeListOfAvailableRessources").'<br>';
print '<b><a href="'.$urlwiki.'">'.$langs->trans("ClickHere").'</a></b>';
print '</td></tr></table>';
print '</td>';
print '</tr>';
print '</table>'; print '</table>';

View File

@ -24,12 +24,16 @@
*/ */
include_once("./inc.php"); include_once("./inc.php");
$uri=eregi_replace('^http(s?)://','',$dolibarr_main_url_root);
$pos = strstr ($uri, '/'); // $pos contient alors url sans nom domaine
if ($pos == '/') $pos = ''; // si $pos vaut /, on le met a ''
define('DOL_URL_ROOT', $pos); // URL racine relative
$langs->load("other"); $langs->load("other");
$langs->load("help"); $langs->load("help");
pHeader("Dolibarr Help Service Center",$_SERVER["PHP_SELF"]); pHeader($langs->trans("DolibarrHelpCenter"),$_SERVER["PHP_SELF"]);
print '<br><br><br>'; print '<br><br><br>';