From 437ce6f6ec6e4c134cf3c72d72079c0d036be8d2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 10 May 2009 13:55:23 +0000 Subject: [PATCH] New: Enhance help center --- htdocs/langs/en_US/admin.lang | 4 +- htdocs/langs/en_US/help.lang | 2 +- htdocs/langs/fr_FR/admin.lang | 4 +- htdocs/langs/fr_FR/help.lang | 2 +- htdocs/support/default.css | 26 +++++----- htdocs/support/inc.php | 13 +++-- htdocs/support/index.php | 95 +++++++++++++++++++---------------- 7 files changed, 80 insertions(+), 66 deletions(-) diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index c69c3e88a6d..16dcd519c4b 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -175,8 +175,8 @@ OfficialWebSiteFr=French official web site OfficialWikiFr=French wiki OfficialWiki=Dolibarr Wiki OfficialDemo=Dolibarr online demo -ForDocumentationSeeWiki=For user's or developer's documentation, for FAQs (Frequently Asked Questions), take a look at the Dolibarr Wiki: %s -ForAnswersSeeForum=For other questions, help, you can read/ask questions on Dolibarr forum: %s +ForDocumentationSeeWiki=For user's or developer's documentation (Doc, FAQs...),
take a look at the Dolibarr Wiki:
%s +ForAnswersSeeForum=For any other questions/help, you can use the Dolibarr forum:
%s HelpCenterDesc1=This area can help you to get a Help support service on Dolibarr. HelpCenterDesc2=Some part of this service are available in english only. CurrentTopMenuHandler=Current top menu handler diff --git a/htdocs/langs/en_US/help.lang b/htdocs/langs/en_US/help.lang index be607f3d917..73e4b4b0e8a 100644 --- a/htdocs/langs/en_US/help.lang +++ b/htdocs/langs/en_US/help.lang @@ -8,7 +8,7 @@ ToSeeListOfAvailableRessources=To contact/see available ressources: ClickHere=Click here HelpCenter=Help center DolibarrHelpCenter=Dolibarr help and support center -ToGoBackToDolibarr=To go back on Dolibarr, click here. +ToGoBackToDolibarr=Click here to use TypeOfSupport=Nature of support TypeSupportCommunauty=Community (free) TypeSupportCommercial=Commercial diff --git a/htdocs/langs/fr_FR/admin.lang b/htdocs/langs/fr_FR/admin.lang index 2c0d882b408..9596cd23eb3 100644 --- a/htdocs/langs/fr_FR/admin.lang +++ b/htdocs/langs/fr_FR/admin.lang @@ -175,8 +175,8 @@ OfficialWebSiteFr = Site web officiel francophone OfficialWikiFr = Wiki francophone OfficialWiki = Wiki 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:
%s -ForAnswersSeeForum = Pour d'autres questions ou poser vos propres questions, vous pouvez utiliser le forum Dolibarr:
%s +ForDocumentationSeeWiki = Pour la documentation utilisateur, développeur ou les FAQs,
consultez le wiki Dolibarr:
%s +ForAnswersSeeForum = Pour tout autre question/aide, vous pouvez utiliser le forum Dolibarr:
%s 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 anglais. CurrentTopMenuHandler = Gestionnaire menu haut courant diff --git a/htdocs/langs/fr_FR/help.lang b/htdocs/langs/fr_FR/help.lang index 83aa16b1184..0a7a61be92e 100644 --- a/htdocs/langs/fr_FR/help.lang +++ b/htdocs/langs/fr_FR/help.lang @@ -8,7 +8,7 @@ ToSeeListOfAvailableRessources=Pour contacter/voir les ressources disponibles: ClickHere=Cliquez ici HelpCenter=Centre d'assistance DolibarrHelpCenter=Centre de support et d'aide Dolibarr -ToGoBackToDolibarr=Pour aller sur Dolibarr, cliquer ici. +ToGoBackToDolibarr=Cliquer ici pour utiliser TypeOfSupport=Nature du support TypeSupportCommunauty=Communautaire (gratuit) TypeSupportCommercial=Commercial diff --git a/htdocs/support/default.css b/htdocs/support/default.css index 70f87659754..af28dbc8e45 100644 --- a/htdocs/support/default.css +++ b/htdocs/support/default.css @@ -19,13 +19,14 @@ */ body { -font-size:14px; +font-size:12px; font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; -background-color: #F4F4F4; -margin-left: 20px; -margin-right: 20px; -margin-top: 20px; -margin-bottom: 20px; +background: #f9f9f9 url(headbg.jpg) 0 0 no-repeat; +/* background-color: #F4F4F4; */ +margin-left: 10px; +margin-right: 10px; +margin-top: 5px; +margin-bottom: 5px; } div.titre { @@ -34,13 +35,13 @@ margin: 0em 0em 0em 0em; } span.titre { -font-size:1.1em; +font-size: 14px; font-weight: bold; -background: #dcdcd3; +background: #FFFFFF; color: #4965B3; padding: 5px 5px 5px 5px; margin: 0em 0em 0em 0em; -border: 1px solid #8CACBB; +border: 1px solid #AAAAAA; } @@ -173,10 +174,6 @@ font-size: 13px; border-bottom: 1px solid #8CACBB; } -table { -font-size: 12px; -} - .install { border: 1px solid #8CACBB; @@ -187,3 +184,6 @@ tr.title { background: #DDDFDD; } + +table { font-size: 12px; } +table.login { border: 1px solid #C0C0C0; background: #F0F0F0 url(background.png) repeat-x;font-size: 12px;}'; diff --git a/htdocs/support/inc.php b/htdocs/support/inc.php index 2b0fc197b45..85aa10fa0c2 100644 --- a/htdocs/support/inc.php +++ b/htdocs/support/inc.php @@ -139,7 +139,8 @@ if (function_exists('get_magic_quotes_gpc')) // magic_quotes_* plus pris en comp // Defini objet langs $langs = new Translate('..',$conf); -$langs->setDefaultLang('auto'); +if (isset($_GET["lang"])) $langs->setDefaultLang($_GET["lang"]); +else $langs->setDefaultLang('auto'); $langs->setPhpLang(); $bc[false]=' class="bg1"'; @@ -201,14 +202,20 @@ function pHeader($soutitre,$next,$action='none') print ''.$langs->trans("Help").''."\n"; print ''."\n"; print ''."\n"; + print ''; + print ''; + print '
'; + print ''; + print ''; print ''.$soutitre.''."\n"; + print '
'; print '
'."\n"; print ''."\n"; - print '
'."\n"; +// print '
'."\n"; - print '
'."\n"; +// print '
'."\n"; } /** diff --git a/htdocs/support/index.php b/htdocs/support/index.php index 11bd601a90c..f42e10bff43 100644 --- a/htdocs/support/index.php +++ b/htdocs/support/index.php @@ -38,48 +38,33 @@ $langs->load("help"); pHeader($langs->trans("DolibarrHelpCenter"),$_SERVER["PHP_SELF"]); -print ''; -//print ''; -print '
'; -//print ''; -//print ''; print $langs->trans("HelpCenterDesc1")."
\n"; print $langs->trans("HelpCenterDesc2")."
\n"; -print '
'; print '
'; print $langs->trans("ToGoBackToDolibarr",DOL_URL_ROOT.'/'); +print 'Dolibarr'; print '

'; $style1='color: #333344; font-size: 16px; font-weight: bold'; $style2='color: #5D4455; font-weight: bold;'; +print "\n"; +print ''; +print '
'; -print ''; - -// Line of possible services -print ''; // Forum/wiki support -print ''; +print ''; +print ''; print '
'; +print ''; +print ''; +print ''; -// EMail support -print ''; -print ''; - -// Area of support cells -print ''; - -// Forum/wiki support -print ''; +print ''; +print ''; +print ''; + + +print ''; // EMail support -print ''; +print ''; +print ''; +print ''; +print ''; +print ''; - print ''; +print ''; +print '
'; -// Line of possible services +// Online support +print ''; print ''; -// Forum/wiki support -print ''; -// EMail support -print ''; -print ''; - -// Area of support cells -print ''; - -// Online support -print ''; +print ''; +print ''; +print ''; + +print ''; // Other support +print ''; +print ''; +print ''; +print ''; $urlwiki='http://wiki.dolibarr.org/index.php/List_of_OpenSource_Software_companies_and_freelancers'; -print ''; - print ''; +print ''; - +print '
'; pFooter();