2004-10-19 18:58:50 +00:00
|
|
|
<?php
|
2004-02-05 18:18:47 +00:00
|
|
|
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
2012-03-10 12:52:08 +00:00
|
|
|
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
2003-01-18 17:15:23 +00:00
|
|
|
*
|
|
|
|
|
* 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
|
2013-01-16 14:36:08 +00:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2003-01-18 17:15:23 +00:00
|
|
|
* (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-07-31 22:21:57 +00:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2003-01-18 17:15:23 +00:00
|
|
|
*/
|
2004-08-29 12:01:58 +00:00
|
|
|
|
2005-01-08 00:13:35 +00:00
|
|
|
/**
|
2009-03-09 11:28:12 +00:00
|
|
|
* \file htdocs/admin/index.php
|
|
|
|
|
* \brief Page d'accueil de l'espace administration/configuration
|
|
|
|
|
*/
|
2004-08-29 12:01:58 +00:00
|
|
|
|
2012-08-22 21:24:21 +00:00
|
|
|
require '../main.inc.php';
|
2003-01-18 17:15:23 +00:00
|
|
|
|
2004-08-29 12:01:58 +00:00
|
|
|
$langs->load("admin");
|
2005-01-08 00:13:35 +00:00
|
|
|
$langs->load("companies");
|
2004-08-29 12:01:58 +00:00
|
|
|
|
2012-03-10 12:52:08 +00:00
|
|
|
if (!$user->admin) accessforbidden();
|
2004-02-15 00:05:21 +00:00
|
|
|
|
2009-01-21 13:20:26 +00:00
|
|
|
$mesg='';
|
|
|
|
|
|
2004-02-05 18:18:47 +00:00
|
|
|
|
2006-05-25 17:00:00 +00:00
|
|
|
/*
|
2009-01-21 13:20:26 +00:00
|
|
|
* View
|
2006-05-25 17:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
2009-05-17 23:54:07 +00:00
|
|
|
$wikihelp='EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones';
|
2010-05-26 11:42:29 +00:00
|
|
|
llxHeader('',$langs->trans("Setup"),$wikihelp);
|
2005-07-09 11:49:05 +00:00
|
|
|
|
2004-07-21 09:08:44 +00:00
|
|
|
$form = new Form($db);
|
2005-08-20 14:36:32 +00:00
|
|
|
|
|
|
|
|
|
2006-08-12 15:32:57 +00:00
|
|
|
print_fiche_titre($langs->trans("SetupArea"),'','setup');
|
2005-11-13 01:44:40 +00:00
|
|
|
|
2009-01-21 13:20:26 +00:00
|
|
|
if ($mesg) print $mesg.'<br>';
|
2005-11-13 01:44:40 +00:00
|
|
|
|
2009-08-08 16:26:06 +00:00
|
|
|
print $langs->trans("SetupDescription1").' ';
|
2009-09-07 01:06:05 +00:00
|
|
|
print $langs->trans("AreaForAdminOnly").' ';
|
2005-08-20 14:36:32 +00:00
|
|
|
|
2009-08-09 00:35:17 +00:00
|
|
|
|
2009-09-07 01:06:05 +00:00
|
|
|
//print "<br>";
|
|
|
|
|
//print "<br>";
|
|
|
|
|
print $langs->trans("SetupDescription2")."<br><br>";
|
2009-08-09 00:35:17 +00:00
|
|
|
|
2012-10-17 13:19:43 +00:00
|
|
|
print '<br>';
|
2009-08-20 01:39:54 +00:00
|
|
|
//print '<hr style="color: #DDDDDD;">';
|
2013-01-14 14:18:15 +00:00
|
|
|
if (empty($conf->global->MAIN_INFO_SOCIETE_NOM) || empty($conf->global->MAIN_INFO_SOCIETE_PAYS)) $setupcompanynotcomplete=1;
|
|
|
|
|
print img_picto('','puce').' '.$langs->trans("SetupDescription3",DOL_URL_ROOT.'/admin/company.php?mainmenu=home'.(empty($setupcompanynotcomplete)?'':'&action=edit'));
|
|
|
|
|
if (! empty($setupcompanynotcomplete))
|
2012-10-18 08:36:53 +00:00
|
|
|
{
|
|
|
|
|
$langs->load("errors");
|
2012-10-17 13:19:43 +00:00
|
|
|
$warnpicto=img_warning($langs->trans("WarningMandatorySetupNotComplete"));
|
2013-01-20 14:37:33 +00:00
|
|
|
print '<br><div class="warning"><a href="'.DOL_URL_ROOT.'/admin/company.php?mainmenu=home'.(empty($setupcompanynotcomplete)?'':'&action=edit').'">'.$warnpicto.' '.$langs->trans("WarningMandatorySetupNotComplete").'</a></div>';
|
2012-10-17 13:19:43 +00:00
|
|
|
}
|
|
|
|
|
print '<br>';
|
|
|
|
|
print '<br>';
|
2009-08-20 01:39:54 +00:00
|
|
|
print '<br>';
|
|
|
|
|
//print '<hr style="color: #DDDDDD;">';
|
2012-10-17 13:19:43 +00:00
|
|
|
print img_picto('','puce').' '.$langs->trans("SetupDescription4",DOL_URL_ROOT.'/admin/modules.php?mainmenu=home');
|
|
|
|
|
if (count($conf->modules) <= 1) // If only user module enabled
|
|
|
|
|
{
|
|
|
|
|
$langs->load("errors");
|
|
|
|
|
$warnpicto=img_warning($langs->trans("WarningMandatorySetupNotComplete"));
|
2013-01-20 14:37:33 +00:00
|
|
|
print '<br><div class="warning"><a href="'.DOL_URL_ROOT.'/admin/modules.php?mainmenu=home">'.$warnpicto.' '.$langs->trans("WarningMandatorySetupNotComplete").'</a></div>';
|
2012-10-17 13:19:43 +00:00
|
|
|
}
|
|
|
|
|
print '<br>';
|
|
|
|
|
print '<br>';
|
2009-08-20 01:39:54 +00:00
|
|
|
print '<br>';
|
|
|
|
|
//print '<hr style="color: #DDDDDD;">';
|
2012-03-10 12:52:08 +00:00
|
|
|
print $langs->trans("SetupDescription5")."<br>";
|
2009-08-20 01:39:54 +00:00
|
|
|
//print '<hr style="color: #DDDDDD;">';
|
2009-08-08 16:26:06 +00:00
|
|
|
print "<br>";
|
2005-08-20 14:36:32 +00:00
|
|
|
|
2013-01-10 17:50:07 +00:00
|
|
|
// Show logo
|
|
|
|
|
print '<center><div class="logo_setup"></div></center>';
|
2003-01-18 17:15:23 +00:00
|
|
|
|
2009-08-24 19:29:52 +00:00
|
|
|
|
2011-08-27 14:24:16 +00:00
|
|
|
llxFooter();
|
2013-01-10 17:50:07 +00:00
|
|
|
|
|
|
|
|
$db->close();
|
2003-01-18 17:15:23 +00:00
|
|
|
?>
|