dolibarr  13.0.2
zapierindex.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
3  * Copyright (C) 2004-2015 Laurent Destailleur <eldy@users.sourceforge.net>
4  * Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
5  * Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
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 <http://www.gnu.org/licenses/>.
19  */
20 
27 // Load Dolibarr environment
28 require '../main.inc.php';
29 require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
30 
31 // Load translation files required by the page
32 $langs->loadLangs(array("zapier@zapier"));
33 
34 $action = GETPOST('action', 'aZ09');
35 
36 
37 // Securite acces client
38 if (!$user->rights->zapier->read) accessforbidden();
39 $socid = GETPOST('socid', 'int');
40 if (isset($user->socid) && $user->socid > 0) {
41  $action = '';
42  $socid = $user->socid;
43 }
44 
45 $max = 5;
46 $now = dol_now();
47 
48 
49 /*
50  * Actions
51  */
52 
53 // None
54 
55 
56 /*
57  * View
58  */
59 
60 $form = new Form($db);
61 $formfile = new FormFile($db);
62 
63 llxHeader("", $langs->trans("ZapierForDolibarrArea"));
64 
65 print load_fiche_titre($langs->trans("ZapierForDolibarrArea"), '', 'zapier.png@zapier');
66 
67 print '<div class="fichecenter"><div class="fichethirdleft">';
68 
69 
70 print '</div><div class="fichetwothirdright"><div class="ficheaddleft">';
71 
72 
73 print '</div></div></div>';
74 
75 // End of page
76 llxFooter();
77 $db->close();
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
dol_now($mode= 'auto')
Return date for now.
llxHeader()
Empty header.
Definition: wrapper.php:45
Class to manage generation of HTML components Only common components must be here.
load_fiche_titre($titre, $morehtmlright= '', $picto= 'generic', $pictoisfullpath=0, $id= '', $morecssontable= '', $morehtmlcenter= '')
Load a title with picto.
accessforbidden($message= '', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
Class to offer components to list and upload files.
print
Draft customers invoices.
Definition: index.php:89
llxFooter()
Empty footer.
Definition: wrapper.php:59