* Copyright (C) 2008-2010 Laurent Destailleur * Copyright (C) 2009 Regis Houssin * Copyright (C) 2011 Juanjo Menent * * 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 * (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 * along with this program. If not, see . */ /** * \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'; require_once DOL_DOCUMENT_ROOT.'/cashdesk/include/keypad.php'; $error = GETPOST('error'); // Test if already logged if ($_SESSION['uid'] <= 0) { header('Location: index.php'); exit; } // Load translation files required by the page $langs->loadLangs(array("companies", "compta", "cashdesk")); if (empty($user->rights->cashdesk->run)) { accessforbidden(); } /* * View */ $form = new Form($db); $arrayofjs = array(); $arrayofcss = array('/cashdesk/css/style.css'); top_htmlhead($head, $langs->trans("CashDesk"), 0, 0, $arrayofjs, $arrayofcss); print ''."\n"; if (!empty($error)) { dol_htmloutput_events(); } print '
'."\n"; print '
'."\n"; print '
'."\n"; print ''."\n"; print '
'."\n"; include_once 'affContenu.php'; print '
'."\n"; include_once 'affPied.php'; print '
'."\n"; print ''."\n";