dolibarr  7.0.0-beta
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@capnetworks.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 $langs->load("companies");
40 $langs->load("compta");
41 $langs->load("cashdesk");
42 
43 
44 /*
45  * View
46  */
47 
48 $form = new Form($db);
49 
50 $arrayofjs=array();
51 $arrayofcss=array('/cashdesk/css/style.css');
52 
53 top_htmlhead($head,$langs->trans("CashDesk"),0,0,$arrayofjs,$arrayofcss);
54 
55 print '<body>'."\n";
56 
57 if (!empty($error))
58 {
60 }
61 
62 print '<div class="conteneur">'."\n";
63 print '<div class="conteneur_img_gauche">'."\n";
64 print '<div class="conteneur_img_droite">'."\n";
65 
66 print '<div class="menu_principal">'."\n";
67 include_once 'tpl/menu.tpl.php';
68 print '</div>'."\n";
69 
70 print '<div class="contenu">'."\n";
71 include_once 'affContenu.php';
72 print '</div>'."\n";
73 
74 include_once 'affPied.php';
75 
76 print '</div></div></div>'."\n";
77 print '</body></html>'."\n";
dol_htmloutput_events($disabledoutputofmessages=0)
Print formated messages to output (Used to show messages on html output).
if(empty($reshook)) $form
View.
Definition: perms.php:103
GETPOST($paramname, $check='none', $method=0, $filter=NULL, $options=NULL, $noreplace=0)
Return value of a param into GET or POST supervariable.
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:1091
print
Draft customers invoices.
Definition: index.php:91