2008-09-30 01:18:52 +02:00
|
|
|
<?php
|
2009-05-19 22:10:27 +02:00
|
|
|
/* Copyright (C) 2007-2008 Jeremie Ollivier <jeremie.o@laposte.net>
|
2010-10-22 04:00:50 +02:00
|
|
|
* Copyright (C) 2008-2010 Laurent Destailleur <eldy@uers.sourceforge.net>
|
2018-10-27 14:43:12 +02:00
|
|
|
* Copyright (C) 2009 Regis Houssin <regis.houssin@inodbox.com>
|
2011-05-06 18:56:08 +02:00
|
|
|
* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
|
2009-09-11 16:29:36 +02:00
|
|
|
*
|
2008-09-30 01:18:52 +02:00
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
2013-01-16 15:36:08 +01:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2008-09-30 01:18:52 +02:00
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2011-08-01 00:21:57 +02:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2008-09-30 01:18:52 +02:00
|
|
|
*/
|
|
|
|
|
|
2009-11-18 01:26:50 +01:00
|
|
|
/**
|
|
|
|
|
* \file htdocs/cashdesk/affIndex.php
|
|
|
|
|
* \ingroup cashdesk
|
|
|
|
|
* \brief First page of point of sale module
|
|
|
|
|
*/
|
2012-08-22 23:24:21 +02:00
|
|
|
require '../main.inc.php';
|
2012-08-22 23:11:24 +02:00
|
|
|
require_once DOL_DOCUMENT_ROOT.'/cashdesk/include/environnement.php';
|
2014-06-08 14:36:31 +02:00
|
|
|
require_once DOL_DOCUMENT_ROOT.'/cashdesk/include/keypad.php';
|
2010-09-28 19:35:49 +02:00
|
|
|
|
2017-06-13 19:46:27 +02:00
|
|
|
$error=GETPOST('error');
|
|
|
|
|
|
2010-09-28 19:35:49 +02:00
|
|
|
// Test if already logged
|
2011-09-16 00:27:36 +02:00
|
|
|
if ( $_SESSION['uid'] <= 0 )
|
2011-05-06 18:56:08 +02:00
|
|
|
{
|
2011-10-13 20:32:03 +02:00
|
|
|
header('Location: index.php');
|
2008-10-26 15:14:37 +01:00
|
|
|
exit;
|
|
|
|
|
}
|
2008-09-30 01:18:52 +02:00
|
|
|
|
2018-09-09 11:10:32 +02:00
|
|
|
// Load translation files required by the page
|
|
|
|
|
$langs->loadLangs(array("companies","compta","cashdesk"));
|
2010-06-17 00:16:11 +02:00
|
|
|
|
2011-10-01 13:23:10 +02:00
|
|
|
|
2010-07-14 21:00:45 +02:00
|
|
|
/*
|
|
|
|
|
* View
|
|
|
|
|
*/
|
|
|
|
|
|
2017-01-18 01:37:12 +01:00
|
|
|
$form = new Form($db);
|
|
|
|
|
|
2011-09-16 00:27:36 +02:00
|
|
|
$arrayofjs=array();
|
2011-09-23 13:44:44 +02:00
|
|
|
$arrayofcss=array('/cashdesk/css/style.css');
|
2011-09-16 00:27:36 +02:00
|
|
|
|
|
|
|
|
top_htmlhead($head,$langs->trans("CashDesk"),0,0,$arrayofjs,$arrayofcss);
|
|
|
|
|
|
2009-09-11 16:29:36 +02:00
|
|
|
print '<body>'."\n";
|
2008-09-30 01:18:52 +02:00
|
|
|
|
2010-06-17 00:16:11 +02:00
|
|
|
if (!empty($error))
|
2009-11-18 01:26:50 +01:00
|
|
|
{
|
2017-06-13 19:46:27 +02:00
|
|
|
dol_htmloutput_events();
|
2009-11-18 01:26:50 +01:00
|
|
|
}
|
2009-11-11 18:32:06 +01:00
|
|
|
|
2009-09-11 16:29:36 +02:00
|
|
|
print '<div class="conteneur">'."\n";
|
|
|
|
|
print '<div class="conteneur_img_gauche">'."\n";
|
|
|
|
|
print '<div class="conteneur_img_droite">'."\n";
|
2008-09-30 01:18:52 +02:00
|
|
|
|
2009-09-11 16:29:36 +02:00
|
|
|
print '<div class="menu_principal">'."\n";
|
2012-08-23 02:04:35 +02:00
|
|
|
include_once 'tpl/menu.tpl.php';
|
2009-09-11 16:29:36 +02:00
|
|
|
print '</div>'."\n";
|
2008-09-30 01:18:52 +02:00
|
|
|
|
2009-09-11 16:29:36 +02:00
|
|
|
print '<div class="contenu">'."\n";
|
2012-08-23 02:04:35 +02:00
|
|
|
include_once 'affContenu.php';
|
2009-09-11 16:29:36 +02:00
|
|
|
print '</div>'."\n";
|
2008-09-30 01:18:52 +02:00
|
|
|
|
2012-08-23 02:04:35 +02:00
|
|
|
include_once 'affPied.php';
|
2008-09-30 01:18:52 +02:00
|
|
|
|
2009-09-11 16:29:36 +02:00
|
|
|
print '</div></div></div>'."\n";
|
|
|
|
|
print '</body></html>'."\n";
|