diff --git a/htdocs/langs/ca_ES/help.lang b/htdocs/langs/ca_ES/help.lang index 3a909b414da..aa27d5e8a88 100644 --- a/htdocs/langs/ca_ES/help.lang +++ b/htdocs/langs/ca_ES/help.lang @@ -19,7 +19,7 @@ TypeHelpOnly = Només ajuda TypeHelpDev = Ajuda+Desenvolupament TypeHelpDevForm = Ajuda+Desenvolupament+Formació ToGetHelpGoOnSparkAngels1 = Algunes empreses o independents ofereixen serveis de suport molt ràpid (de vegades d'immediat) i més eficients gràcies a la capacitat de control remot del seu equip per ajudar a diagnosticar i resoldre els seus problemes. Aquesta assistència es pot trobar a la borsa d'assistents de %s: -ToGetHelpGoOnSparkAngels3 = Per accedir a la recerca de assistents disponibles (realitzant a continuació una recerca sobre la paraula clau "dolibarr"), feu clic aquí. +ToGetHelpGoOnSparkAngels3 = Per accedir a la recerca de assistents disponibles, feu clic aquí ToGetHelpGoOnSparkAngels2 = En ocasions, cap operador es troba disponible en el moment de la seva recerca, no oblideu canviar el criteri de cerca indicant "tots els disponibles". Pot, doncs, posar-se en contacte en diferit. BackToHelpCenter = Sinó, feu clic aquí per tornar al centre d'assistència. LinkToGoldMember = En cas contrari, podeu trucar immediatament a un dels assistents preseleccionats per Dolibarr per al seu idioma (%s) fent clic en el seu widget (disponibilitat i tarifa màxima actualitzades automàticament): diff --git a/htdocs/langs/en_US/help.lang b/htdocs/langs/en_US/help.lang index 98ef6089c71..f76fd7e9b9f 100644 --- a/htdocs/langs/en_US/help.lang +++ b/htdocs/langs/en_US/help.lang @@ -19,9 +19,9 @@ TypeHelpOnly=Help only TypeHelpDev=Help+Development TypeHelpDevForm=Help+Development+Formation ToGetHelpGoOnSparkAngels1=Some companies can provide a fast (sometime immediate) and more efficient online support by taking control of your computer. Such helpers can be found on %s web site: -ToGetHelpGoOnSparkAngels3=To go to search form (then make a search on "dolibarr" keyword), click here. +ToGetHelpGoOnSparkAngels3=You can also go to list of all available coaches for Dolibarr, for this click on button ToGetHelpGoOnSparkAngels2=Sometimes, there is no company available at the moment you make your search, so think to change the filter to look for "all availability". You will be able to send more requests. BackToHelpCenter=Otherwise, click here to go back to help center home page. -LinkToGoldMember=Also, you can call one of the coach preselected by Dolibarr for your language (%s) by clicking his Widget (status and maximum price are automatically updated): +LinkToGoldMember=You can call one of the coach preselected by Dolibarr for your language (%s) by clicking his Widget (status and maximum price are automatically updated): PossibleLanguages=Supported languages MakeADonation=Help Dolibarr project, make a donation \ No newline at end of file diff --git a/htdocs/langs/es_ES/help.lang b/htdocs/langs/es_ES/help.lang index ecf556fb57a..2539aeeeea5 100644 --- a/htdocs/langs/es_ES/help.lang +++ b/htdocs/langs/es_ES/help.lang @@ -19,7 +19,7 @@ TypeHelpOnly = Sólamente ayuda TypeHelpDev = Ayuda+Desarrollo TypeHelpDevForm = Ayuda+Desarrollo+Formación ToGetHelpGoOnSparkAngels1 = Algunas empresas o independientes ofrecen servicios de apoyo muy rápido (a veces de inmediato) y más eficientes gracias a la capacidad de control remoto de su equipo para ayudar a diagnosticar y resolver sus problemas. Esta asistencia se puede encontrar en la bolsa de asistentes de %s: -ToGetHelpGoOnSparkAngels3 = Para acceder a la búsqueda de asistentes disponibles (realizando a continuación una búsqueda sobre la palabra clave "dolibarr"), haga clic aquí. +ToGetHelpGoOnSparkAngels3 = Para acceder a la búsqueda de asistentes disponibles, haga clic aquí ToGetHelpGoOnSparkAngels2 = En ocasiones, ningún operador se encuentra disponible en el momento de su búsqueda, no olvide cambiar los criterios de búsqueda indicando "todos los disponibles". Puede, entonces, ponerse en contacto en diferido. BackToHelpCenter = Sino, haga clic aquí para volver al centro de asistencia. LinkToGoldMember = En caso contrario, puede llamar inmediatamente a uno de los asistentes preseleccionados por Dolibarr para su idioma (%s) haciendo clic en su widget (disponibilidad y tarifa máxima actualizadas automáticamente): diff --git a/htdocs/langs/fr_FR/help.lang b/htdocs/langs/fr_FR/help.lang index 63879a1dbae..abeef9c7cdf 100644 --- a/htdocs/langs/fr_FR/help.lang +++ b/htdocs/langs/fr_FR/help.lang @@ -19,9 +19,9 @@ TypeHelpOnly=Aide uniquement TypeHelpDev=Aide+Développement TypeHelpDevForm=Aide+Développement+Formation ToGetHelpGoOnSparkAngels1=Certaines sociétés ou indépendants offrent un service de support très rapide (parfois immédiat) et encore plus efficace grâce à la possibilité de prise de contrôle à distance de votre ordinateur pour mieux diagnostiquer et résoudre vos problèmes. Une telle aide peut être trouvée sur la bourse des accompagnateurs de %s. -ToGetHelpGoOnSparkAngels3=Pour accéder au formulaire de recherche des accompagnants disponibles (puis lancer une recherche sur le mot clé "dolibarr"), cliquez ici. +ToGetHelpGoOnSparkAngels3=Vous pouvez aussi accéder à la liste complète de tous les accompagnants disponibles, pour cela cliquez sur le bouton ToGetHelpGoOnSparkAngels2=Parfois, aucun intervenant n'est disponible au moment de votre recherche, aussi pensez à modifier vos critères de recherche en indiquant "Toutes disponibilités". Vous pourrez alors prendre contact en différé. BackToHelpCenter=Sinon, cliquez ici pour retourner au centre d'assistance. -LinkToGoldMember=Autrement, vous pouvez aussi appeler immédiatement un des accompagnateurs préselectionnés par Dolibarr pour votre langue (%s) en cliquant son Widget (disponibilité et tarif maximum sont raffraichis automatiquement): +LinkToGoldMember=Vous pouvez appeler immédiatement un des accompagnateurs préselectionnés par Dolibarr pour votre langue (%s) en cliquant son Widget (disponibilité et tarif maximum sont raffraichis automatiquement): PossibleLanguages=Langages possibles MakeADonation=Aidez le projet Dolibarr, faites un don \ No newline at end of file diff --git a/htdocs/support/default.css b/htdocs/support/default.css index 7de8aea4626..acc7ed481c1 100644 --- a/htdocs/support/default.css +++ b/htdocs/support/default.css @@ -1,4 +1,5 @@ /* Copyright (C) 2004 Rodolphe Quiedeville + * Copyright (C) 2009 Laurent Destailleur * * 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 @@ -15,7 +16,6 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id$ - * $Source$ */ body { @@ -188,4 +188,4 @@ background: #DDDFDD; } table { font-size: 12px; } -table.login { border: 1px solid #C0C0C0; background: #F0F0F0 url(background.png) repeat-x;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 50b15e59be7..7c41e3c1870 100644 --- a/htdocs/support/inc.php +++ b/htdocs/support/inc.php @@ -182,7 +182,7 @@ function conf($dolibarr_main_document_root) /** - * \brief Affiche entete HTML + * \brief Show HTML header */ function pHeader($soutitre,$next,$action='none') { @@ -201,21 +201,16 @@ function pHeader($soutitre,$next,$action='none') print ''."\n"; print ''.$langs->trans("Help").''."\n"; print ''."\n"; + print ''."\n"; - print ''; + + print '
'; print ''; print '
'; - print ''; + print 'logohelpcenter'; print ''; print ''.$soutitre.''."\n"; print '
'; - - print '
'."\n"; - print ''."\n"; - -// print '
'."\n"; - -// print '
'."\n"; } /** @@ -230,7 +225,6 @@ function pFooter($nonext=0,$setuplang='') $langs->load("main"); $langs->load("admin"); - print ''."\n"; print ''."\n"; print ''."\n"; } diff --git a/htdocs/support/online.php b/htdocs/support/online.php index e000be31546..4e2451134c0 100644 --- a/htdocs/support/online.php +++ b/htdocs/support/online.php @@ -33,6 +33,10 @@ $langs->load("other"); $langs->load("help"); +/* + * View + */ + pHeader($langs->trans("DolibarrHelpCenter"),$_SERVER["PHP_SELF"]); $urlsparkengels='http://www.spark-angels.com'; @@ -41,36 +45,34 @@ $titlesparkangels='Spark-Angels'; //print '
'; print $langs->trans("ToGetHelpGoOnSparkAngels1",$titlesparkangels).'
'; -print '
'; -print '
'; -print '* '.$langs->trans("ToGetHelpGoOnSparkAngels3",$urlsparkengels); -print ''; -//print ''; -//print 'SparkAngels web site'; -//print $titlesparkangels; -//print ''; -print '

'; -print $langs->trans("ToGetHelpGoOnSparkAngels2",$titlesparkangels).'
'; +print '

'; + +// List of predefined coaches +// We list here the 4 most active coaches on Dolibarr projects (according to number of commits +// found in page http://www.nltechno.com/stats/dolibarr/cvschangelogbuilder_dolibarr.html +$limit=4; $arrayofwidgets=array( // Widget for Laurent Destailleur array('name'=>'Laurent Destailleur', - 'id'=>'4256,4255', // Put of list of sparkangels widget id (for each language) - 'lang'=>'fr,en'), // Put list of language code of widgets (always english at end) - // Widget for Regis Houssin + 'sort'=>1, + 'id'=>'4256,4255', // Put of list of sparkangels widget id (for each language) + 'lang'=>'fr,en'), // Put list of language code of widgets (always english at end) +// Widget for Regis Houssin array('name'=>'Régis Houssin', - 'id'=>'4611', - 'lang'=>'fr') + 'sort'=>2, + 'id'=>'4611', + 'lang'=>'fr') ); +$arrayofwidgets=dol_sort_array($arrayofwidgets,'sort','asc',0,0); -// Preselected widgets $found=0; -print '

'; print '* '.$langs->trans("LinkToGoldMember",$langs->defaultlang).'

'; -print ''; +print '
'; foreach ($arrayofwidgets as $arraywidget) // Loop on each user { + if ($found >= $limit) break; $listofwidgets=split(',',$arraywidget['id']); $listoflangs=split(',',$arraywidget['lang']); $pos=0; @@ -95,7 +97,7 @@ foreach ($arrayofwidgets as $arraywidget) // Loop on each user //print 'xx lang qualified='.$langcode.' id='.$widgetid; print ''; print ''; - $found=1; + $found++; break; } } @@ -103,7 +105,45 @@ foreach ($arrayofwidgets as $arraywidget) // Loop on each user if (! $found) print ''; print '
'.$langs->trans("SorryNoHelpForYourLanguage").'
'; +print '

'; +// List of coaches +$sparkangellangcode=substr($langs->defaultlang,0,2); +if (! in_array($sparkangellangcode,array('fr','en','sp'))) $sparkangellangcode='en'; +print '
'; +print '* '.$langs->trans("ToGetHelpGoOnSparkAngels3",$urlsparkengels); +print '
'."\n"; +print '
'."\n"; +print ' '."\n"; +print ' '."\n"; +print ' '."\n"; +print ' '."\n"; +print ' '."\n"; +print ' '."\n"; +print ''."\n"; +print '
'."\n"; +print '
'."\n"; + +print '
'; +//print ''; +//print 'SparkAngels web site'; +//print $titlesparkangels; +//print ''; +print '
'; +//print $langs->trans("ToGetHelpGoOnSparkAngels2",$titlesparkangels).'
'; + + +// Otherwise, go back to help center home print '

'; print '* '.$langs->trans("BackToHelpCenter",DOL_URL_ROOT.'/support/'); print '

';