dolibarr  9.0.0
affIndex.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2007-2008 Jeremie Ollivier <jeremie.o@laposte.net>
3  * Copyright (C) 2008-2010 Laurent Destailleur <eldy@uers.sourceforge.net>
4  * Copyright (C) 2009 Regis Houssin <regis.houssin@inodbox.com>
5  * Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
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 
26 require '../main.inc.php';
27 require_once DOL_DOCUMENT_ROOT.'/cashdesk/include/environnement.php';
28 require_once DOL_DOCUMENT_ROOT.'/cashdesk/include/keypad.php';
29 
30 $error=GETPOST('error');
31 
32 // Test if already logged
33 if ( $_SESSION['uid'] <= 0 )
34 {
35  header('Location: index.php');
36  exit;
37 }
38 
39 // Load translation files required by the page
40 $langs->loadLangs(array("companies","compta","cashdesk"));
41 
42 
43 /*
44  * View
45  */
46 
47 $form = new Form($db);
48 
49 $arrayofjs=array();
50 $arrayofcss=array('/cashdesk/css/style.css');
51 
52 top_htmlhead($head,$langs->trans("CashDesk"),0,0,$arrayofjs,$arrayofcss);
53 
54 print '<body>'."\n";
55 
56 if (!empty($error))
57 {
59 }
60 
61 print '<div class="conteneur">'."\n";
62 print '<div class="conteneur_img_gauche">'."\n";
63 print '<div class="conteneur_img_droite">'."\n";
64 
65 print '<div class="menu_principal">'."\n";
66 include_once 'tpl/menu.tpl.php';
67 print '</div>'."\n";
68 
69 print '<div class="contenu">'."\n";
70 include_once 'affContenu.php';
71 print '</div>'."\n";
72 
73 include_once 'affPied.php';
74 
75 print '</div></div></div>'."\n";
76 print '</body></html>'."\n";
GETPOST($paramname, $check='none', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
dol_htmloutput_events($disabledoutputofmessages=0)
Print formated messages to output (Used to show messages on html output).
print
Draft customers invoices.
Definition: index.php:91
Class to manage generation of HTML components Only common components must be here.
top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $disablejmobile=0, $disablenofollow=0)
Ouput html header of a page.
Definition: main.inc.php:1172