dolibarr 19.0.3
index.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2008-2015 Laurent Destailleur <eldy@users.sourceforge.net>
3 * Copyright (C) 2008-2012 Regis Houssin <regis.houssin@inodbox.com>
4 * Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
5 * add german links 2020 Udo Tamm <dev@dolibit.de>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 */
20
28// Use its own include to not share the include of Dolibarr
29// This is a standalone feature with no information from Dolibarr to show
30// and no database access to do.
31include_once 'inc.php';
32
33$uri = preg_replace('/^http(s?):\/\//i', '', $dolibarr_main_url_root);
34$pos = strstr($uri, '/'); // $pos contient alors url sans nom domaine
35if ($pos == '/') {
36 $pos = ''; // si $pos vaut /, on le met a ''
37}
38if (!defined('DOL_URL_ROOT')) {
39 define('DOL_URL_ROOT', $pos); // URL racine relative
40}
41
42$langs->loadLangs(array("other", "help"));
43
44
45/*
46 * View
47 */
48
49pHeader($langs->trans("DolibarrHelpCenter"), $_SERVER["PHP_SELF"]);
50
51print '<br><span class="opacitymedium">'.$langs->trans("HelpCenterDesc1")."<br>\n";
52print $langs->trans("HelpCenterDesc2")."</span><br>\n";
53
54print '<br>';
55
56$homeurl = DOL_URL_ROOT.'/';
57if (GETPOST('dol_hide_toptmenu')) {
58 $homeurl .= (strpos($homeurl, '?') === false ? '?' : '&').'dol_hide_toptmenu=1';
59}
60if (GETPOST('dol_hide_leftmenu')) {
61 $homeurl .= (strpos($homeurl, '?') === false ? '?' : '&').'dol_hide_leftmenu=1';
62}
63if (GETPOST('dol_no_mouse_hover')) {
64 $homeurl .= (strpos($homeurl, '?') === false ? '?' : '&').'dol_no_mouse_hover=1';
65}
66if (GETPOST('dol_use_jmobile')) {
67 $homeurl .= (strpos($homeurl, '?') === false ? '?' : '&').'dol_use_jmobile=1';
68}
69// If a global var $dolibarr_main_url_root exists, install is done and complete, we can show the link to home page
70if (!empty($dolibarr_main_url_root)) {
71 print $langs->trans("ToGoBackToDolibarr", $homeurl);
72}
73
74print '<br><br>';
75
76$style1 = 'color: #333344; font-size: 16px; font-weight: bold';
77$style2 = 'color: #5D4455; font-weight: bold;';
78
79print "\n";
80print '<div style="width: 100%; text-align: center"><div class="inline-block blocksupport">';
81print "\n";
82
83// Forum/wiki support
84print '<table class="login tablesupport" width="100%" style="margin-top: 20px">';
85print '<tr class="title tablesupport-title" valign="top">';
86print '<td width="100%" align="left" valign="middle">';
87
88print '<table summary="who"><tr><td>'.img_picto('', 'who.png', 'class="valignmiddle paddingright"', 1).'</td><td>';
89
90print '<span style="'.$style1.'">'.$langs->trans("CommunitySupport").'</span>';
91print '<span class="small">';
92print '<br><span class="opacitymedium">'.$langs->trans("TypeOfSupport").':</span> ';
93print '<span style="'.$style2.'">'.$langs->trans("TypeSupportCommunauty").'</span>';
94print '<br><span class="opacitymedium">'.$langs->trans("TypeOfHelp").':</span> ';
95print $langs->trans("TypeHelpDev");
96print '<br><span class="opacitymedium">'.$langs->trans("Efficiency").':</span> ';
97print img_picto_common('', 'redstar', 'class="valignmiddle"', 1).img_picto_common('', 'redstar', 'class="valignmiddle"', 1);
98print '<br><span class="opacitymedium">'.$langs->trans("Price").':</span> ';
99print img_picto_common('', 'star', 'class="valignmiddle"', 1).img_picto_common('', 'star', 'class="valignmiddle"', 1).img_picto_common('', 'star', 'class="valignmiddle"', 1).img_picto_common('', 'star', 'class="valignmiddle"', 1).img_picto_common('', 'star', 'class="valignmiddle"', 1);
100print '</span>';
101
102print '</td></tr></table>';
103print '</td>';
104print '</tr>';
105
106print '<tr>';
107print '<td align="center" valign="middle">';
108
109print '<table class="nocellnopadd">';
110print '<tr><td align="center">';
111$urlwiki = 'https://wiki.dolibarr.org';
112if (preg_match('/fr/i', $langs->defaultlang)) {
113 $urlwiki = 'https://wiki.dolibarr.org/index.php/Accueil';
114}
115if (preg_match('/es/i', $langs->defaultlang)) {
116 $urlwiki = 'https://wiki.dolibarr.org/index.php/Portada';
117}
118if (preg_match('/de/i', $langs->defaultlang)) {
119 $urlwiki = 'https://wiki.dolibarr.org/index.php/Hauptseite';
120}
121print '<div class="wordbreak">';
122print '<br>'.$langs->trans("ForDocumentationSeeWiki", $urlwiki, $urlwiki);
123print '<br>';
124$urlforum = 'https://www.dolibarr.org/forum/';
125$urlforumlocal = 'https://www.dolibarr.org/forum/';
126if (preg_match('/fr/i', $langs->defaultlang)) {
127 $urlforumlocal = 'https://www.dolibarr.fr/forum/';
128}
129if (preg_match('/es/i', $langs->defaultlang)) {
130 $urlforumlocal = 'https://www.dolibarr.es/foro/';
131}
132if (preg_match('/it/i', $langs->defaultlang)) {
133 $urlforumlocal = 'http://www.dolibarr.it/forum/';
134}
135if (preg_match('/gr/i', $langs->defaultlang)) {
136 $urlforumlocal = 'https://www.dolibarr.gr/forum/';
137}
138if (preg_match('/de/i', $langs->defaultlang)) {
139 $urlforumlocal = 'https://www.dolibarr.de/forum/';
140}
141print '<br>'.$langs->trans("ForAnswersSeeForum", $urlforumlocal, $urlforumlocal).'<br>';
142if ($urlforumlocal != $urlforum) {
143 print '<b><a href="'.$urlforum.'">'.$urlforum.'</a></b>';
144}
145print '</div>';
146print '</td></tr></table>';
147print '</td>';
148print '</tr>';
149print '</table>'."\n";
150print "\n";
151
152print '</div><div class="inline-block blocksupport">';
153
154// EMail support
155print '<table class="login tablesupport" width="100%" style="margin-top: 20px">';
156print '<tr class="title tablesupport-title" valign="top">';
157print '<td width="100%" align="left" valign="middle">';
158
159print '<table summary="mail"><tr><td>'.img_picto('', 'mail.png', 'class="valignmiddle paddingright"', 1).'</td><td>';
160
161print '<span style="'.$style1.'">'.$langs->trans("EMailSupport").'</span>';
162print '<span class="small">';
163print '<br><span class="opacitymedium">'.$langs->trans("TypeOfSupport").':</span> ';
164print '<span style="'.$style2.'">'.$langs->trans("TypeSupportCommercial").'</span>';
165print '<br><span class="opacitymedium">'.$langs->trans("TypeOfHelp").':</span>';
166print $langs->trans("TypeHelpOnly");
167print '<br><span class="opacitymedium">'.$langs->trans("Efficiency").':</span>';
168print img_picto_common('', 'redstar', 'class="valignmiddle"', 1).img_picto_common('', 'redstar', 'class="valignmiddle"', 1).img_picto_common('', 'redstar', 'class="valignmiddle"', 1);
169print '<br><span class="opacitymedium">'.$langs->trans("Price").':</span> ';
170print img_picto_common('', 'star', 'class="valignmiddle"', 1).img_picto_common('', 'star', 'class="valignmiddle"', 1);
171print '</span>';
172
173print '</td></tr></table>';
174
175print '</td>';
176print '</tr><tr>';
177$urlwiki = 'https://partners.dolibarr.org';
178print '<td align="center" valign="top">';
179print '<table class="nocellnopadd">';
180print '<tr><td align="center">';
181print '<br><span class="opacitymedium">'.$langs->trans("ToSeeListOfAvailableRessources").'</span><br>';
182print '<br>';
183print '<b><a href="'.$urlwiki.'">'.$langs->trans("ClickHere").'</a></b><br>';
184print '<br>';
185print '<br><br>';
186print '</td></tr></table>';
187print '</td>';
188print '</tr>';
189print '</table>'."\n";
190
191
192print '</div><div class="inline-block blocksupport">';
193
194
195// Other support
196print '<table class="login tablesupport" width="100%" style="margin-top: 20px">';
197print '<tr class="title tablesupport-title">';
198print '<td width="100%" align="left" valign="middle">';
199
200print '<table summary="special"><tr><td>'.img_picto('', 'pagemaster.png', 'class="valignmiddle paddingright"', 1).'</td><td>';
201
202print '<span style="'.$style1.'">'.$langs->trans("OtherSupport").'</span>';
203print '<span class="small">';
204print '<br><span class="opacitymedium">'.$langs->trans("TypeOfSupport").':</span> ';
205print '<span style="'.$style2.'">'.$langs->trans("TypeSupportCommercial").'</span>';
206print '<br><span class="opacitymedium wordbreak">'.$langs->trans("TypeOfHelp").':</span>';
207print $langs->trans("TypeHelpDevForm");
208print '<br><span class="opacitymedium">'.$langs->trans("Efficiency").':</span>';
209print img_picto_common('', 'redstar', 'class="valignmiddle"', 1).img_picto_common('', 'redstar', 'class="valignmiddle"', 1).img_picto_common('', 'redstar', 'class="valignmiddle"', 1).img_picto_common('', 'redstar', 'class="valignmiddle"', 1).img_picto_common('', 'redstar', 'class="valignmiddle"', 1);
210print '<br><span class="opacitymedium">'.$langs->trans("Price").':</span> ';
211print img_picto_common('', 'star', 'class="valignmiddle"', 1);
212print '</span>';
213
214print '</td></tr></table>';
215
216print '</td>';
217print '</tr><tr>';
218$urlwiki = 'https://partners.dolibarr.org';
219print '<td align="center" valign="top">';
220print '<table class="nocellnopadd">';
221print '<tr><td align="center">';
222print '<br><span class="opacitymedium">'.$langs->trans("ToSeeListOfAvailableRessources").'</span><br>';
223print '<br>';
224print '<b><a href="'.$urlwiki.'">'.$langs->trans("ClickHere").'</a></b><br>';
225print '<br>';
226print '<br><br>';
227print '</td></tr></table>';
228print '</td>';
229print '</tr>';
230print '</table>'."\n";
231print "\n";
232
233
234print '<div style="clear: both"></div>';
235print '</div>';
236
237
238pFooter();
img_picto_common($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $notitle=0)
Show picto (generic function)
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
pHeader($subtitle, $next, $action='set', $param='', $forcejqueryurl='', $csstable='main-inside')
Show HTML header of install pages.
Definition inc.php:516
pFooter($nonext=0, $setuplang='', $jscheckfunction='', $withpleasewait=0, $morehtml='')
Print HTML footer of install pages.
Definition inc.php:605