dolibarr  17.0.0
about.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2004-2017 Laurent Destailleur <eldy@users.sourceforge.net>
3  * Copyright (C) 2021 Dorian Laurent <i.merraha@sofimedmaroc.com>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <https://www.gnu.org/licenses/>.
17  */
18 
25 // Load Dolibarr environment
26 require '../../main.inc.php';
27 require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
28 require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
29 require_once '../lib/partnership.lib.php';
30 
31 // Translations
32 $langs->loadLangs(array("errors", "admin", "partnership@partnership"));
33 
34 // Access control
35 if (!$user->admin) {
37 }
38 
39 // Parameters
40 $action = GETPOST('action', 'aZ09');
41 $backtopage = GETPOST('backtopage', 'alpha');
42 
43 
44 /*
45  * Actions
46  */
47 
48 
49 /*
50  * View
51  */
52 
53 $form = new Form($db);
54 
55 $page_name = "PartnershipAbout";
56 llxHeader('', $langs->trans($page_name));
57 
58 // Subheader
59 $linkback = '<a href="'.($backtopage ? $backtopage : DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1').'">'.$langs->trans("BackToModuleList").'</a>';
60 
61 print load_fiche_titre($langs->trans($page_name), $linkback, 'title_setup');
62 
63 // Configuration header
65 print dol_get_fiche_head($head, 'about', '', 0, 'partnership@partnership');
66 
67 require_once DOL_DOCUMENT_ROOT.'/core/modules/modPartnership.class.php';
68 $tmpmodule = new modPartnership($db);
69 print $tmpmodule->getDescLong();
70 
71 // Page end
72 print dol_get_fiche_end();
73 llxFooter();
74 $db->close();
llxFooter
llxFooter()
Empty footer.
Definition: wrapper.php:70
load_fiche_titre
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
Definition: functions.lib.php:5351
GETPOST
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
Definition: functions.lib.php:517
$form
if($cancel &&! $id) if($action=='add' &&! $cancel) if($action=='delete') if($id) $form
Actions.
Definition: card.php:143
partnershipAdminPrepareHead
partnershipAdminPrepareHead()
Prepare admin pages header.
Definition: partnership.lib.php:29
llxHeader
if(!defined('NOREQUIRESOC')) if(!defined('NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) llxHeader()
Empty header.
Definition: wrapper.php:56
dol_get_fiche_head
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='')
Show tabs of a record.
Definition: functions.lib.php:1849
dol_get_fiche_end
dol_get_fiche_end($notab=0)
Return tab footer of a card.
Definition: functions.lib.php:2045
Form
Class to manage generation of HTML components Only common components must be here.
Definition: html.form.class.php:52
accessforbidden
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.
Definition: security.lib.php:1086
modPartnership
Description and activation class for module Partnership This module is base on this specification : h...
Definition: modPartnership.class.php:37