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 <https://www.gnu.org/licenses/>.
19 */
20
21/**
22 *	\file       htdocs/cashdesk/affIndex.php
23 *	\ingroup    cashdesk
24 *	\brief      First page of point of sale module
25 */
26require '../main.inc.php';
27require_once DOL_DOCUMENT_ROOT.'/cashdesk/include/environnement.php';
28require_once DOL_DOCUMENT_ROOT.'/cashdesk/include/keypad.php';
29
30$error = GETPOST('error');
31
32// Test if already logged
33if ($_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
52top_htmlhead($head, $langs->trans("CashDesk"), 0, 0, $arrayofjs, $arrayofcss);
53
54print '<body>'."\n";
55
56if (!empty($error))
57{
58	dol_htmloutput_events();
59}
60
61print '<div class="conteneur">'."\n";
62print '<div class="conteneur_img_gauche">'."\n";
63print '<div class="conteneur_img_droite">'."\n";
64
65print '<div class="menu_principal">'."\n";
66include_once 'tpl/menu.tpl.php';
67print '</div>'."\n";
68
69print '<div class="contenu">'."\n";
70include_once 'affContenu.php';
71print '</div>'."\n";
72
73include_once 'affPied.php';
74
75print '</div></div></div>'."\n";
76print '</body></html>'."\n";
77