dolibarr/htdocs/support/index.php

210 lines
7.9 KiB
PHP
Raw Normal View History

<?php
/* Copyright (C) 2008-2015 Laurent Destailleur <eldy@users.sourceforge.net>
2018-10-27 14:43:12 +02:00
* Copyright (C) 2008-2012 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
2020-11-20 11:53:16 +01:00
* add german links 2020 Udo Tamm <dev@dolibit.de>
*
* 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 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
2019-09-23 21:55:30 +02:00
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
/**
2009-12-07 01:35:49 +01:00
* \file htdocs/support/index.php
* \ingroup support
* \brief Provide an Online Help support
*/
2010-12-01 22:38:00 +01:00
2009-05-09 20:00:14 +02:00
// 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.
2012-08-23 02:46:16 +02:00
include_once 'inc.php';
$uri = preg_replace('/^http(s?):\/\//i', '', $dolibarr_main_url_root);
$pos = strstr($uri, '/'); // $pos contient alors url sans nom domaine
2021-02-26 21:17:52 +01:00
if ($pos == '/') {
$pos = ''; // si $pos vaut /, on le met a ''
}
if (!defined('DOL_URL_ROOT')) {
define('DOL_URL_ROOT', $pos); // URL racine relative
2021-02-26 21:17:52 +01:00
}
$langs->loadLangs(array("other", $langs->load("help")));
/*
* View
*/
pHeader($langs->trans("DolibarrHelpCenter"), $_SERVER["PHP_SELF"]);
2017-02-22 02:19:50 +01:00
print '<br>'.$langs->trans("HelpCenterDesc1")."<br>\n";
print $langs->trans("HelpCenterDesc2")."<br>\n";
2009-05-09 00:08:41 +02:00
print '<br>';
$homeurl = DOL_URL_ROOT.'/';
2021-02-26 21:17:52 +01:00
if (GETPOST('dol_hide_toptmenu')) {
$homeurl .= (strpos($homeurl, '?') === false ? '?' : '&').'dol_hide_toptmenu=1';
}
if (GETPOST('dol_hide_leftmenu')) {
$homeurl .= (strpos($homeurl, '?') === false ? '?' : '&').'dol_hide_leftmenu=1';
}
if (GETPOST('dol_no_mouse_hover')) {
$homeurl .= (strpos($homeurl, '?') === false ? '?' : '&').'dol_no_mouse_hover=1';
}
if (GETPOST('dol_use_jmobile')) {
$homeurl .= (strpos($homeurl, '?') === false ? '?' : '&').'dol_use_jmobile=1';
}
print $langs->trans("ToGoBackToDolibarr", $homeurl);
2009-05-09 00:08:41 +02:00
print '<br><br>';
$style1 = 'color: #333344; font-size: 16px; font-weight: bold';
$style2 = 'color: #5D4455; font-weight: bold;';
2009-05-10 15:55:23 +02:00
print "\n";
2019-05-13 09:47:58 +02:00
print '<div style="width: 100%; text-align: center"><div class="inline-block blocksupport">';
2009-10-14 21:40:59 +02:00
print "\n";
2009-05-09 20:00:14 +02:00
// Forum/wiki support
2015-08-28 20:39:30 +02:00
print '<table class="login tablesupport" width="100%">';
2009-05-10 15:55:23 +02:00
print '<tr class="title" valign="top">';
2017-02-22 02:19:50 +01:00
print '<td width="100%" align="left" valign="middle">';
print '<table summary="who"><tr><td>'.img_picto('', 'who.png', 'class="valigntextbottom"', 1).'</td><td>';
2009-05-09 20:00:14 +02:00
print '<font style="'.$style1.'">'.$langs->trans("CommunitySupport").'</font>';
print '<br>'.$langs->trans("TypeOfSupport").': <font style="'.$style2.'">'.$langs->trans("TypeSupportCommunauty").'</font>';
2009-05-10 17:53:54 +02:00
print '<br>'.$langs->trans("TypeOfHelp").'/'.$langs->trans("Efficiency").'/'.$langs->trans("Price").': ';
print $langs->trans("TypeHelpDev").'/'.img_picto_common('', 'redstar', 'class="valigntextbottom"', 1).img_picto_common('', 'redstar', 'class="valigntextbottom"', 1).'/'.img_picto_common('', 'star', 'class="valigntextbottom"', 1).img_picto_common('', 'star', 'class="valigntextbottom"', 1).img_picto_common('', 'star', 'class="valigntextbottom"', 1).img_picto_common('', 'star', 'class="valigntextbottom"', 1);
print '</td></tr></table>';
print '</td>';
2009-10-14 21:40:59 +02:00
print '</tr>';
print '<tr>';
2017-02-22 02:19:50 +01:00
print '<td align="center" valign="middle">';
2013-04-05 17:39:27 +02:00
print '<table class="nocellnopadd">';
print '<tr><td align="center">';
$urlwiki = 'https://wiki.dolibarr.org';
2021-02-26 21:17:52 +01:00
if (preg_match('/fr/i', $langs->defaultlang)) {
$urlwiki = 'https://wiki.dolibarr.org/index.php/Accueil';
}
if (preg_match('/es/i', $langs->defaultlang)) {
$urlwiki = 'https://wiki.dolibarr.org/index.php/Portada';
}
if (preg_match('/de/i', $langs->defaultlang)) {
$urlwiki = 'https://wiki.dolibarr.org/index.php/Hauptseite';
}
print '<br>'.$langs->trans("ForDocumentationSeeWiki", $urlwiki, $urlwiki);
2009-05-09 20:00:14 +02:00
print '<br>';
$urlforum = 'https://www.dolibarr.org/forum/';
$urlforumlocal = 'https://www.dolibarr.org/forum/';
2021-02-26 21:17:52 +01:00
if (preg_match('/fr/i', $langs->defaultlang)) {
$urlforumlocal = 'https://www.dolibarr.fr/forum/';
}
if (preg_match('/es/i', $langs->defaultlang)) {
$urlforumlocal = 'https://www.dolibarr.es/foro/';
}
if (preg_match('/it/i', $langs->defaultlang)) {
$urlforumlocal = 'http://www.dolibarr.it/forum/';
}
if (preg_match('/gr/i', $langs->defaultlang)) {
$urlforumlocal = 'https://www.dolibarr.gr/forum/';
}
if (preg_match('/de/i', $langs->defaultlang)) {
$urlforumlocal = 'https://www.dolibarr.de/forum/';
}
print '<br>'.$langs->trans("ForAnswersSeeForum", $urlforumlocal, $urlforumlocal).'<br>';
2021-02-26 21:17:52 +01:00
if ($urlforumlocal != $urlforum) {
print '<b><a href="'.$urlforum.'">'.$urlforum.'</a></b>';
}
print '</td></tr></table>';
print '</td>';
2009-05-10 15:55:23 +02:00
print '</tr>';
2009-10-14 21:40:59 +02:00
print '</table>'."\n";
print "\n";
2009-05-10 15:55:23 +02:00
2019-05-13 09:47:58 +02:00
print '</div><div class="inline-block blocksupport">';
2009-05-10 17:53:54 +02:00
// EMail support
2015-08-28 20:39:30 +02:00
print '<table class="login tablesupport" width="100%">';
2009-05-10 17:53:54 +02:00
print '<tr class="title" valign="top">';
2017-02-22 02:19:50 +01:00
print '<td width="100%" align="left" valign="middle">';
print '<table summary="mail"><tr><td>'.img_picto('', 'mail.png', 'class="valigntextbottom"', 1).'</td><td>';
2009-05-10 17:53:54 +02:00
print '<font style="'.$style1.'">'.$langs->trans("EMailSupport").'</font>';
2009-05-09 20:00:14 +02:00
print '<br>'.$langs->trans("TypeOfSupport").': <font style="'.$style2.'">'.$langs->trans("TypeSupportCommercial").'</font>';
2009-05-10 17:53:54 +02:00
print '<br>'.$langs->trans("TypeOfHelp").'/'.$langs->trans("Efficiency").'/'.$langs->trans("Price").': ';
print $langs->trans("TypeHelpOnly").'/'.img_picto_common('', 'redstar', 'class="valigntextbottom"', 1).img_picto_common('', 'redstar', 'class="valigntextbottom"', 1).img_picto_common('', 'redstar', 'class="valigntextbottom"', 1).'/'.img_picto_common('', 'star', 'class="valigntextbottom"', 1).img_picto_common('', 'star', 'class="valigntextbottom"', 1);
print '</td></tr></table>';
print '</td>';
2009-05-10 15:55:23 +02:00
print '</tr><tr>';
$urlwiki = 'https://partners.dolibarr.org';
2009-05-10 15:55:23 +02:00
print '<td align="center" valign="top">';
print '<table class="nocellnopadd">';
print '<tr><td align="center">';
2009-10-14 13:08:16 +02:00
print '<br>'.$langs->trans("ToSeeListOfAvailableRessources").'<br>';
print '<b><a href="'.$urlwiki.'">'.$langs->trans("ClickHere").'</a></b><br>';
2009-05-09 20:00:14 +02:00
print '<br><br>';
print '<br><br>';
2009-10-14 13:08:16 +02:00
print '</td></tr></table>';
2009-05-09 20:00:14 +02:00
print '</td>';
2009-05-10 15:55:23 +02:00
print '</tr>';
2009-10-14 21:40:59 +02:00
print '</table>'."\n";
2009-05-10 15:55:23 +02:00
2013-04-05 17:39:27 +02:00
2019-05-13 09:47:58 +02:00
print '</div><div class="inline-block blocksupport">';
2013-04-05 17:39:27 +02:00
2009-05-09 20:00:14 +02:00
// Other support
2015-08-28 20:39:30 +02:00
print '<table class="login tablesupport" width="100%">';
2009-05-10 15:55:23 +02:00
print '<tr class="title">';
2017-02-22 02:19:50 +01:00
print '<td width="100%" align="left" valign="middle">';
print '<table summary="special"><tr><td>'.img_picto('', 'pagemaster.png', 'class="valigntextbottom"', 1).'</td><td>';
2009-05-10 15:55:23 +02:00
print '<font style="'.$style1.'">'.$langs->trans("OtherSupport").'</font>';
print '<br>'.$langs->trans("TypeOfSupport").': <font style="'.$style2.'">'.$langs->trans("TypeSupportCommercial").'</font>';
2009-05-10 17:53:54 +02:00
//print '<br>'.$langs->trans("Efficiency").'/'.$langs->trans("Price").': '.img_picto_common('','redstar').img_picto_common('','redstar').img_picto_common('','redstar').' / '.img_picto_common('','star');
print '<br>'.$langs->trans("TypeOfHelp").'/'.$langs->trans("Efficiency").'/'.$langs->trans("Price").': ';
print $langs->trans("TypeHelpDevForm").'/?/?';
print '</td></tr></table>';
2009-05-10 15:55:23 +02:00
print '</td>';
print '</tr><tr>';
$urlwiki = 'https://partners.dolibarr.org';
2009-05-10 15:55:23 +02:00
print '<td align="center" valign="top">';
print '<table class="nocellnopadd">';
print '<tr><td align="center">';
2009-05-09 20:00:14 +02:00
print '<br>'.$langs->trans("ToSeeListOfAvailableRessources").'<br>';
2009-05-10 17:53:54 +02:00
print '<b><a href="'.$urlwiki.'">'.$langs->trans("ClickHere").'</a></b><br>';
2009-05-10 15:55:23 +02:00
print '<br><br>';
print '<br><br>';
2009-05-09 20:00:14 +02:00
print '</td></tr></table>';
print '</td>';
2009-05-09 20:00:14 +02:00
print '</tr>';
2009-10-14 21:40:59 +02:00
print '</table>'."\n";
print "\n";
2013-04-05 17:39:27 +02:00
print '<div style="clear: both"></div>';
print '</div>';
pFooter();