dolibarr/htdocs/cashdesk/affIndex.php

77 lines
2.1 KiB
PHP
Raw Normal View History

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>
* 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>
* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
*
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
* 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
*/
/**
* \file htdocs/cashdesk/affIndex.php
* \ingroup cashdesk
* \brief First page of point of sale module
*/
require '../main.inc.php';
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
if ( $_SESSION['uid'] <= 0 )
{
2011-10-13 20:32:03 +02:00
header('Location: index.php');
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"));
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);
$arrayofjs=array();
2011-09-23 13:44:44 +02:00
$arrayofcss=array('/cashdesk/css/style.css');
top_htmlhead($head,$langs->trans("CashDesk"),0,0,$arrayofjs,$arrayofcss);
print '<body>'."\n";
2008-09-30 01:18:52 +02:00
if (!empty($error))
{
2017-06-13 19:46:27 +02:00
dol_htmloutput_events();
}
2009-11-11 18:32:06 +01: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
print '<div class="menu_principal">'."\n";
include_once 'tpl/menu.tpl.php';
print '</div>'."\n";
2008-09-30 01:18:52 +02:00
print '<div class="contenu">'."\n";
include_once 'affContenu.php';
print '</div>'."\n";
2008-09-30 01:18:52 +02:00
include_once 'affPied.php';
2008-09-30 01:18:52 +02:00
print '</div></div></div>'."\n";
print '</body></html>'."\n";