index.php 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. /**
  20. * \file htdocs/support/index.php
  21. * \ingroup support
  22. * \brief Provide an Online Help support
  23. */
  24. // Use its own include to not share the include of Dolibarr
  25. // This is a standalone feature with no information from Dolibarr to show
  26. // and no database access to do.
  27. include_once 'inc.php';
  28. $uri=preg_replace('/^http(s?):\/\//i','',$dolibarr_main_url_root);
  29. $pos = strstr($uri, '/'); // $pos contient alors url sans nom domaine
  30. if ($pos == '/') $pos = ''; // si $pos vaut /, on le met a ''
  31. if (! defined('DOL_URL_ROOT'))
  32. define('DOL_URL_ROOT', $pos); // URL racine relative
  33. $langs->loadLangs(array("other", $langs->load("help")));
  34. /*
  35. * View
  36. */
  37. pHeader($langs->trans("DolibarrHelpCenter"), $_SERVER["PHP_SELF"]);
  38. print '<br>'.$langs->trans("HelpCenterDesc1")."<br>\n";
  39. print $langs->trans("HelpCenterDesc2")."<br>\n";
  40. print '<br>';
  41. $homeurl=DOL_URL_ROOT.'/';
  42. if (GETPOST('dol_hide_toptmenu')) $homeurl.=(strpos($homeurl,'?')===false?'?':'&').'dol_hide_toptmenu=1';
  43. if (GETPOST('dol_hide_leftmenu')) $homeurl.=(strpos($homeurl,'?')===false?'?':'&').'dol_hide_leftmenu=1';
  44. if (GETPOST('dol_no_mouse_hover')) $homeurl.=(strpos($homeurl,'?')===false?'?':'&').'dol_no_mouse_hover=1';
  45. if (GETPOST('dol_use_jmobile')) $homeurl.=(strpos($homeurl,'?')===false?'?':'&').'dol_use_jmobile=1';
  46. print $langs->trans("ToGoBackToDolibarr",$homeurl);
  47. print '<br><br>';
  48. $style1='color: #333344; font-size: 16px; font-weight: bold';
  49. $style2='color: #5D4455; font-weight: bold;';
  50. print "\n";
  51. print '<div style="width: 100%; text-align: center"><div class="inline-block">';
  52. print "\n";
  53. // Forum/wiki support
  54. print '<table class="login tablesupport" width="100%">';
  55. print '<tr class="title" valign="top">';
  56. print '<td width="100%" align="left" valign="middle">';
  57. print '<table summary="who"><tr><td>'.img_picto('','who.png','class="valigntextbottom"',1).'</td><td>';
  58. print '<font style="'.$style1.'">'.$langs->trans("CommunitySupport").'</font>';
  59. print '<br>'.$langs->trans("TypeOfSupport").': <font style="'.$style2.'">'.$langs->trans("TypeSupportCommunauty").'</font>';
  60. print '<br>'.$langs->trans("TypeOfHelp").'/'.$langs->trans("Efficiency").'/'.$langs->trans("Price").': ';
  61. 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);
  62. print '</td></tr></table>';
  63. print '</td>';
  64. print '</tr>';
  65. print '<tr>';
  66. print '<td align="center" valign="middle">';
  67. print '<table class="nocellnopadd">';
  68. print '<tr><td align="center">';
  69. $urlwiki='https://wiki.dolibarr.org';
  70. if (preg_match('/fr/i',$langs->defaultlang)) $urlwiki='https://wiki.dolibarr.org/index.php/Accueil';
  71. if (preg_match('/es/i',$langs->defaultlang)) $urlwiki='https://wiki.dolibarr.org/index.php/Portada';
  72. print '<br>'.$langs->trans("ForDocumentationSeeWiki",$urlwiki,$urlwiki);
  73. print '<br>';
  74. $urlforum='https://www.dolibarr.org/forum/';
  75. $urlforumlocal='https://www.dolibarr.org/forum/';
  76. if (preg_match('/fr/i',$langs->defaultlang)) $urlforumlocal='https://www.dolibarr.fr/forum/';
  77. if (preg_match('/es/i',$langs->defaultlang)) $urlforumlocal='https://www.dolibarr.es/foro/';
  78. if (preg_match('/it/i',$langs->defaultlang)) $urlforumlocal='http://www.dolibarr.it/forum/';
  79. if (preg_match('/gr/i',$langs->defaultlang)) $urlforumlocal='https://www.dolibarr.gr/forum/';
  80. print '<br>'.$langs->trans("ForAnswersSeeForum",$urlforumlocal,$urlforumlocal).'<br>';
  81. if ($urlforumlocal != $urlforum) print '<b><a href="'.$urlforum.'">'.$urlforum.'</a></b>';
  82. print '</td></tr></table>';
  83. print '</td>';
  84. print '</tr>';
  85. print '</table>'."\n";
  86. print "\n";
  87. print '</div><div class="inline-block">';
  88. // EMail support
  89. print '<table class="login tablesupport" width="100%">';
  90. print '<tr class="title" valign="top">';
  91. print '<td width="100%" align="left" valign="middle">';
  92. print '<table summary="mail"><tr><td>'.img_picto('','mail.png','class="valigntextbottom"',1).'</td><td>';
  93. print '<font style="'.$style1.'">'.$langs->trans("EMailSupport").'</font>';
  94. print '<br>'.$langs->trans("TypeOfSupport").': <font style="'.$style2.'">'.$langs->trans("TypeSupportCommercial").'</font>';
  95. print '<br>'.$langs->trans("TypeOfHelp").'/'.$langs->trans("Efficiency").'/'.$langs->trans("Price").': ';
  96. 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);
  97. print '</td></tr></table>';
  98. print '</td>';
  99. print '</tr><tr>';
  100. $urlwiki='https://partners.dolibarr.org';
  101. print '<td align="center" valign="top">';
  102. print '<table class="nocellnopadd">';
  103. print '<tr><td align="center">';
  104. print '<br>'.$langs->trans("ToSeeListOfAvailableRessources").'<br>';
  105. print '<b><a href="'.$urlwiki.'">'.$langs->trans("ClickHere").'</a></b><br>';
  106. print '<br><br>';
  107. print '<br><br>';
  108. print '</td></tr></table>';
  109. print '</td>';
  110. print '</tr>';
  111. print '</table>'."\n";
  112. print '</div><div class="inline-block">';
  113. // Other support
  114. print '<table class="login tablesupport" width="100%">';
  115. print '<tr class="title">';
  116. print '<td width="100%" align="left" valign="middle">';
  117. print '<table summary="special"><tr><td>'.img_picto('','pagemaster.png','class="valigntextbottom"',1).'</td><td>';
  118. print '<font style="'.$style1.'">'.$langs->trans("OtherSupport").'</font>';
  119. print '<br>'.$langs->trans("TypeOfSupport").': <font style="'.$style2.'">'.$langs->trans("TypeSupportCommercial").'</font>';
  120. //print '<br>'.$langs->trans("Efficiency").'/'.$langs->trans("Price").': '.img_picto_common('','redstar').img_picto_common('','redstar').img_picto_common('','redstar').' / '.img_picto_common('','star');
  121. print '<br>'.$langs->trans("TypeOfHelp").'/'.$langs->trans("Efficiency").'/'.$langs->trans("Price").': ';
  122. print $langs->trans("TypeHelpDevForm").'/?/?';
  123. print '</td></tr></table>';
  124. print '</td>';
  125. print '</tr><tr>';
  126. $urlwiki='https://partners.dolibarr.org';
  127. print '<td align="center" valign="top">';
  128. print '<table class="nocellnopadd">';
  129. print '<tr><td align="center">';
  130. print '<br>'.$langs->trans("ToSeeListOfAvailableRessources").'<br>';
  131. print '<b><a href="'.$urlwiki.'">'.$langs->trans("ClickHere").'</a></b><br>';
  132. print '<br><br>';
  133. print '<br><br>';
  134. print '</td></tr></table>';
  135. print '</td>';
  136. print '</tr>';
  137. print '</table>'."\n";
  138. print "\n";
  139. print '<div style="clear: both"></div>';
  140. print '</div>';
  141. pFooter();