dolibarr/htdocs/support/index.php

180 lines
7.4 KiB
PHP
Raw Normal View History

<?php
/* Copyright (C) 2008-2015 Laurent Destailleur <eldy@users.sourceforge.net>
2012-12-30 15:13:49 +01:00
* Copyright (C) 2008-2012 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
*
* 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
2011-08-01 01:19:04 +02:00
* along with this program. If not, see <http://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);
2012-01-04 21:47:40 +01:00
$pos = strstr($uri, '/'); // $pos contient alors url sans nom domaine
2009-05-09 20:00:14 +02:00
if ($pos == '/') $pos = ''; // si $pos vaut /, on le met a ''
2012-08-02 10:07:55 +02:00
if (! defined('DOL_URL_ROOT'))
define('DOL_URL_ROOT', $pos); // URL racine relative
$langs->load("other");
2009-05-08 23:41:54 +02:00
$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>';
2013-04-05 17:39:27 +02:00
$homeurl=DOL_URL_ROOT.'/';
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';
2009-05-09 20:00:14 +02:00
$style2='color: #5D4455; font-weight: bold;';
2009-05-10 15:55:23 +02:00
print "\n";
2017-02-22 02:19:50 +01:00
print '<div style="width: 100%; text-align: center"><div class="inline-block">';
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">';
2017-08-07 16:06:38 +02:00
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").': ';
2017-08-07 16:06:38 +02:00
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">';
2017-01-07 14:56:15 +01:00
$urlwiki='https://wiki.dolibarr.org';
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';
2009-05-10 17:53:54 +02:00
print '<br>'.$langs->trans("ForDocumentationSeeWiki",$urlwiki,$urlwiki);
2009-05-09 20:00:14 +02:00
print '<br>';
2017-01-07 14:56:15 +01:00
$urlforum='https://www.dolibarr.org/forum/';
$urlforumlocal='https://www.dolibarr.org/forum/';
2017-08-21 20:49:12 +02: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/';
2017-08-21 20:49:12 +02:00
if (preg_match('/gr/i',$langs->defaultlang)) $urlforumlocal='https://www.dolibarr.gr/forum/';
print '<br>'.$langs->trans("ForAnswersSeeForum",$urlforumlocal,$urlforumlocal).'<br>';
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
print '</div><div class="inline-block">';
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">';
2017-08-07 16:06:38 +02:00
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").': ';
2017-08-07 16:06:38 +02:00
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>';
2017-01-07 14:56:15 +01:00
$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
2013-06-05 16:24:32 +02:00
print '</div><div class="inline-block">';
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">';
2017-08-07 16:06:38 +02:00
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>';
2017-01-07 14:56:15 +01:00
$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();