dolibarr  13.0.2
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.
31 include_once 'inc.php';
32 $uri = preg_replace('/^http(s?):\/\//i', '', $dolibarr_main_url_root);
33 $pos = strstr($uri, '/'); // $pos contient alors url sans nom domaine
34 if ($pos == '/') $pos = ''; // si $pos vaut /, on le met a ''
35 if (!defined('DOL_URL_ROOT'))
36  define('DOL_URL_ROOT', $pos); // URL racine relative
37 
38 $langs->loadLangs(array("other", $langs->load("help")));
39 
40 /*
41  * View
42  */
43 
44 pHeader($langs->trans("DolibarrHelpCenter"), $_SERVER["PHP_SELF"]);
45 
46 print '<br>'.$langs->trans("HelpCenterDesc1")."<br>\n";
47 print $langs->trans("HelpCenterDesc2")."<br>\n";
48 
49 print '<br>';
50 
51 $homeurl = DOL_URL_ROOT.'/';
52 if (GETPOST('dol_hide_toptmenu')) $homeurl .= (strpos($homeurl, '?') === false ? '?' : '&').'dol_hide_toptmenu=1';
53 if (GETPOST('dol_hide_leftmenu')) $homeurl .= (strpos($homeurl, '?') === false ? '?' : '&').'dol_hide_leftmenu=1';
54 if (GETPOST('dol_no_mouse_hover')) $homeurl .= (strpos($homeurl, '?') === false ? '?' : '&').'dol_no_mouse_hover=1';
55 if (GETPOST('dol_use_jmobile')) $homeurl .= (strpos($homeurl, '?') === false ? '?' : '&').'dol_use_jmobile=1';
56 print $langs->trans("ToGoBackToDolibarr", $homeurl);
57 
58 print '<br><br>';
59 
60 $style1 = 'color: #333344; font-size: 16px; font-weight: bold';
61 $style2 = 'color: #5D4455; font-weight: bold;';
62 
63 print "\n";
64 print '<div style="width: 100%; text-align: center"><div class="inline-block blocksupport">';
65 print "\n";
66 
67 // Forum/wiki support
68 print '<table class="login tablesupport" width="100%">';
69 print '<tr class="title" valign="top">';
70 print '<td width="100%" align="left" valign="middle">';
71 
72 print '<table summary="who"><tr><td>'.img_picto('', 'who.png', 'class="valigntextbottom"', 1).'</td><td>';
73 
74 print '<font style="'.$style1.'">'.$langs->trans("CommunitySupport").'</font>';
75 print '<br>'.$langs->trans("TypeOfSupport").': <font style="'.$style2.'">'.$langs->trans("TypeSupportCommunauty").'</font>';
76 print '<br>'.$langs->trans("TypeOfHelp").'/'.$langs->trans("Efficiency").'/'.$langs->trans("Price").': ';
77 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);
78 
79 print '</td></tr></table>';
80 print '</td>';
81 print '</tr>';
82 
83 print '<tr>';
84 print '<td align="center" valign="middle">';
85 
86 print '<table class="nocellnopadd">';
87 print '<tr><td align="center">';
88 $urlwiki = 'https://wiki.dolibarr.org';
89 if (preg_match('/fr/i', $langs->defaultlang)) $urlwiki = 'https://wiki.dolibarr.org/index.php/Accueil';
90 if (preg_match('/es/i', $langs->defaultlang)) $urlwiki = 'https://wiki.dolibarr.org/index.php/Portada';
91 if (preg_match('/de/i', $langs->defaultlang)) $urlwiki = 'https://wiki.dolibarr.org/index.php/Hauptseite';
92 print '<br>'.$langs->trans("ForDocumentationSeeWiki", $urlwiki, $urlwiki);
93 print '<br>';
94 $urlforum = 'https://www.dolibarr.org/forum/';
95 $urlforumlocal = 'https://www.dolibarr.org/forum/';
96 if (preg_match('/fr/i', $langs->defaultlang)) $urlforumlocal = 'https://www.dolibarr.fr/forum/';
97 if (preg_match('/es/i', $langs->defaultlang)) $urlforumlocal = 'https://www.dolibarr.es/foro/';
98 if (preg_match('/it/i', $langs->defaultlang)) $urlforumlocal = 'http://www.dolibarr.it/forum/';
99 if (preg_match('/gr/i', $langs->defaultlang)) $urlforumlocal = 'https://www.dolibarr.gr/forum/';
100 if (preg_match('/de/i', $langs->defaultlang)) $urlforumlocal = 'https://www.dolibarr.de/forum/';
101 print '<br>'.$langs->trans("ForAnswersSeeForum", $urlforumlocal, $urlforumlocal).'<br>';
102 if ($urlforumlocal != $urlforum) print '<b><a href="'.$urlforum.'">'.$urlforum.'</a></b>';
103 print '</td></tr></table>';
104 print '</td>';
105 print '</tr>';
106 print '</table>'."\n";
107 print "\n";
108 
109 print '</div><div class="inline-block blocksupport">';
110 
111 // EMail support
112 print '<table class="login tablesupport" width="100%">';
113 print '<tr class="title" valign="top">';
114 print '<td width="100%" align="left" valign="middle">';
115 
116 print '<table summary="mail"><tr><td>'.img_picto('', 'mail.png', 'class="valigntextbottom"', 1).'</td><td>';
117 
118 print '<font style="'.$style1.'">'.$langs->trans("EMailSupport").'</font>';
119 print '<br>'.$langs->trans("TypeOfSupport").': <font style="'.$style2.'">'.$langs->trans("TypeSupportCommercial").'</font>';
120 print '<br>'.$langs->trans("TypeOfHelp").'/'.$langs->trans("Efficiency").'/'.$langs->trans("Price").': ';
121 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);
122 
123 print '</td></tr></table>';
124 
125 print '</td>';
126 print '</tr><tr>';
127 $urlwiki = 'https://partners.dolibarr.org';
128 print '<td align="center" valign="top">';
129 print '<table class="nocellnopadd">';
130 print '<tr><td align="center">';
131 print '<br>'.$langs->trans("ToSeeListOfAvailableRessources").'<br>';
132 print '<b><a href="'.$urlwiki.'">'.$langs->trans("ClickHere").'</a></b><br>';
133 print '<br><br>';
134 print '<br><br>';
135 print '</td></tr></table>';
136 print '</td>';
137 print '</tr>';
138 print '</table>'."\n";
139 
140 
141 print '</div><div class="inline-block blocksupport">';
142 
143 
144 // Other support
145 print '<table class="login tablesupport" width="100%">';
146 print '<tr class="title">';
147 print '<td width="100%" align="left" valign="middle">';
148 
149 print '<table summary="special"><tr><td>'.img_picto('', 'pagemaster.png', 'class="valigntextbottom"', 1).'</td><td>';
150 
151 print '<font style="'.$style1.'">'.$langs->trans("OtherSupport").'</font>';
152 print '<br>'.$langs->trans("TypeOfSupport").': <font style="'.$style2.'">'.$langs->trans("TypeSupportCommercial").'</font>';
153 //print '<br>'.$langs->trans("Efficiency").'/'.$langs->trans("Price").': '.img_picto_common('','redstar').img_picto_common('','redstar').img_picto_common('','redstar').' / '.img_picto_common('','star');
154 print '<br>'.$langs->trans("TypeOfHelp").'/'.$langs->trans("Efficiency").'/'.$langs->trans("Price").': ';
155 print $langs->trans("TypeHelpDevForm").'/?/?';
156 
157 print '</td></tr></table>';
158 
159 print '</td>';
160 print '</tr><tr>';
161 $urlwiki = 'https://partners.dolibarr.org';
162 print '<td align="center" valign="top">';
163 print '<table class="nocellnopadd">';
164 print '<tr><td align="center">';
165 print '<br>'.$langs->trans("ToSeeListOfAvailableRessources").'<br>';
166 print '<b><a href="'.$urlwiki.'">'.$langs->trans("ClickHere").'</a></b><br>';
167 print '<br><br>';
168 print '<br><br>';
169 print '</td></tr></table>';
170 print '</td>';
171 print '</tr>';
172 print '</table>'."\n";
173 print "\n";
174 
175 
176 print '<div style="clear: both"></div>';
177 print '</div>';
178 
179 
180 pFooter();
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:347
img_picto_common($titlealt, $picto, $moreatt= '', $pictoisfullpath=0)
Show picto (generic function)
print $_SERVER["PHP_SELF"]
Edit parameters.
pFooter($nonext=0, $setuplang= '', $jscheckfunction= '', $withpleasewait=0)
Print HTML footer of install pages.
Definition: inc.php:424
print
Draft customers invoices.
Definition: index.php:89