* Settings * * 01/06/2004 by Christian Ehret chris@uffbasse.de */ $smartyType = "www"; include_once "../includes/default.inc.php"; $auth->is_authenticated(); $smarty->assign("tpl_title", "Liste über Zeitraum erstellen"); $smarty->assign("tpl_title", "Archiv"); $smarty->assign('tpl_nav', 'archive'); $smarty->assign('tpl_subnav', ''); $theguestid = $request->GetVar('guestid', 'get'); include_once "kassaclass.inc.php"; $kassacls = new Kassa(); include_once "barguestclass.inc.php"; $barguest = new Barguest(); if ($request->GetVar('frm_start', 'get') !== $request->undefined) { include_once 'articlecatclass.inc.php'; $articlecat = new articlecat(); $allcats = $articlecat->getall(); for ($i = 0; $i < count($allcats); $i++) { $cats[$i] = $allcats[$i]['articlecatid']; } $theguestid = $request->GetVar('frm_theguestid', 'get'); $start = $request->GetVar('frm_start', 'get'); $end = $request->GetVar('frm_end', 'get'); $guestarticles = $kassacls->getTimeline($theguestid, $start, $end, 'ASC', $cats); $smarty->assign('tpl_guestarticles', $guestarticles); } $smarty->assign('tpl_guest', $barguest->getName($theguestid)); $smarty->assign('tpl_theguestid', $theguestid);
* This copyright notice MUST APPEAR in all copies of the script! */ /** * View "receipt" as RTF * * * 1/11/2004 by Christian Ehret chris@uffbasse.de */ $nocachecontrol = true; include_once "../includes/default.inc.php"; $auth->is_authenticated(); include_once "../includes/fileselector.inc.php"; include_once "kassaclass.inc.php"; $kassacls = new Kassa(); include_once "barguestclass.inc.php"; $barguest = new Barguest(); if ($request->GetVar('cats', 'get') !== $request->undefined) { $cats = explode(",", $request->GetVar('cats', 'get')); } else { $cats = array(); } if ($request->GetVar('guestid', 'get') !== $request->undefined) { $theguestid = $request->GetVar('guestid', 'get'); $guestarticles = $kassacls->get($theguestid, 'ASC', $cats); $table = '\\trowd\\trgaph10\\trleft-10\\trrh301\\trpaddl10\\trpaddr10\\trpaddfl3\\trpaddfr3\\clbrdrb\\brdrw10\\brdrs \\cellx983\\clbrdrb\\brdrw10\\brdrs \\cellx4243\\clbrdrb\\brdrw10\\brdrs \\cellx6794\\clbrdrb\\brdrw10\\brdrs \\cellx8212\\clbrdrb\\brdrw10\\brdrs \\cellx9526\\pard\\intbl\\ql\\b Anzahl\\b0\\cell\\b Artikel\\b0\\cell\\b Datum\\b0\\cell\\b\\qr0 Preis\\b0\\cell\\b Total\\b0\\cell\\row'; for ($i = 0; $i < count($guestarticles); $i++) { if ($i == count($guestarticles) - 1) { $table .= '\\trowd\\trgaph10\\trleft-10\\trrh301\\trpaddl10\\trpaddr10\\trpaddfl3\\trpaddfr3\\clbrdrt\\brdrw10\\brdrs \\cellx983\\clbrdrt\\brdrw10\\brdrs \\cellx4243\\clbrdrt\\brdrw10\\brdrs \\cellx6794\\clbrdrt\\brdrw10\\brdrs \\cellx8212\\clbrdrt\\brdrw10\\brdrs \\cellx9526\\pard\\intbl\\cell\\cell\\cell\\pard\\intbl\\qr\\b Summe:\\cell ' . $guestarticles[$i]['total'] . ' \\\'80 \\cell\\b0\\row\\pard\\par'; } else { $table .= '\\trowd\\trgaph10\\trleft-10\\trrh301\\trpaddl10\\trpaddr10\\trpaddfl3\\trpaddfr3\\clbrdrt\\brdrw10\\brdrs \\cellx983\\clbrdrt\\brdrw10\\brdrs \\cellx4243\\clbrdrt\\brdrw10\\brdrs \\cellx6794\\clbrdrt\\brdrw10\\brdrs \\cellx8212\\clbrdrt\\brdrw10\\brdrs \\cellx9526\\pard\\intbl ' . $guestarticles[$i]['num'] . '\\cell ' . $guestarticles[$i]['description'] . '\\cell ' . $guestarticles[$i]['timestamp'] . ' Uhr\\cell\\pard\\intbl\\qr ' . $guestarticles[$i]['price'] . ' \\\'80\\cell ' . $guestarticles[$i]['total'] . ' \\\'80\\cell\\row'; }
<?php /*************************************************************** * Copyright notice * * (c) 2003-2004 Christian Ehret (chris@ehret.name) * All rights reserved * * This script is part of the ZVS project. The ZVS project 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 2 of the License, or * (at your option) any later version. * * The GNU General Public License can be found at * http://www.gnu.org/copyleft/gpl.html. * A copy is found in the textfile GPL.txt and important notices to the license * from the author is found in LICENSE.txt distributed with these scripts. * * * This script 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. * * This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ /** * Archive * * Archive
* GNU General Public License for more details. * * This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ /** * Statistics * * 01/19/2004 by Christian Ehret chris@uffbasse.de */ $smartyType = "www"; include_once "../includes/default.inc.php"; $auth->is_authenticated(); include_once 'statisticsclass.inc.php'; $statistics = new Statistics(); include_once "../includes/barguestclass.inc.php"; $barguest = new Barguest(); include_once "../includes/articlecatclass.inc.php"; $cat = new Articlecat(); $smarty->assign("tpl_title", "Statistiken"); $smarty->assign('tpl_nav', 'statistics'); $todaydate = getdate(); $day = $todaydate['mday']; $month = $todaydate['mon']; $year = $todaydate['year']; $thedate = "{$day}.{$month}.{$year}"; $theotherdate = "{$day}-{$month}-{$year}"; $thestart1 = "{$day}.{$month}.{$year}"; $theotherstart1 = "{$day}-{$month}-{$year}"; $theend1 = "{$day}.{$month}.{$year}"; $theotherend1 = "{$day}-{$month}-{$year}"; $smarty->assign('tpl_dates', $barguest->getdates());
* GNU General Public License for more details. * * This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ /** * Show bar interface * * bar interface * * 07/24/2003 by Christian Ehret chris@uffbasse.de */ $smartyType = "www"; include_once "../includes/default.inc.php"; $auth->is_authenticated(); include_once "barguestclass.inc.php"; $barguest = new Barguest(); include_once "barguestcatclass.inc.php"; $cls_barguestcat = new barguestcat(); $theguestid = -1; $theguest = ""; $thebookingcat = ""; include_once 'statisticsclass.inc.php'; $statistics = new Statistics(); include_once 'articlecatclass.inc.php'; $articlecat = new articlecat(); $barguestcat = $cls_barguestcat->getall(); $cats = $articlecat->getall(); for ($i = 0; $i < count($cats); $i++) { $cats[$i]['rownum'] = count($barguestcat) + $i; } for ($i = 0; $i < count($cats); $i++) {
* 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. * * This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ /** * Add bar guest * * Settings * * 01/06/2004 by Christian Ehret chris@uffbasse.de */ $smartyType = "www"; include_once "../includes/default.inc.php"; include_once "barguestclass.inc.php"; include_once "barguestcatclass.inc.php"; $barguest = new Barguest(); $barguestcat = new barguestcat(); $auth->is_authenticated(); $smarty->assign("tpl_title", "Gast hinzufügen"); $smarty->assign('tpl_barguestcat', $barguestcat->getAll()); if ($request->GetVar('frm_firstname', 'post') !== $request->undefined) { $guestid = $barguest->add(); $smarty->assign('tpl_theguestid', $guestid); $smarty->assign('tpl_added', 'true'); } else { $smarty->assign('tpl_added', 'false'); } $smarty->assign('tpl_bookingcat', $barguest->getAllBookingcat()); $smarty->display('addbarguest.tpl');
* the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * The GNU General Public License can be found at * http://www.gnu.org/copyleft/gpl.html. * A copy is found in the textfile GPL.txt and important notices to the license * from the author is found in LICENSE.txt distributed with these scripts. * * * This script 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. * * This copyright notice MUST APPEAR in all copies of the script! */ /** * Import user and categories from ZVS * * 12/14/2004 by Christian Ehret chris@uffbasse.de */ $smartyType = "www"; include_once "../includes/default.inc.php"; $auth->is_authenticated(); include_once "barguestclass.inc.php"; $guestcls = new Barguest(); setZVSHotelDB(); $guestcls->importZVSCategory(); $guestcls->importZVSGuest(); $smarty->assign("tpl_title", "Datenimport"); $smarty->display('importuser.tpl');
* This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ /** * Add a special article * * Settings * * 01/10/2004 by Christian Ehret chris@uffbasse.de */ $smartyType = "www"; include_once "../includes/default.inc.php"; $auth->is_authenticated(); include_once "articleclass.inc.php"; $article = new Article(); $smarty->assign("tpl_title", "Sonderverkauf"); if ($request->GetVar('frm_description', 'post') !== $request->undefined) { include_once "barguestclass.inc.php"; $barguest = new Barguest(); $articleid = $article->addSpecial(); $theguestid = $request->GetVar('frm_theguestid', 'post'); $smarty->assign("tpl_theguestid", $theguestid); $num = $request->GetVar('frm_num', 'post'); $barguest->buy($articleid, $theguestid, $num); $smarty->assign('tpl_added', 'true'); } else { $smarty->assign('tpl_articles', $article->getList()); $smarty->assign("tpl_theguestid", $request->GetVar('guestid', get)); $smarty->assign("tpl_catid", $request->GetVar('catid', get)); $smarty->assign('tpl_added', 'false'); } $smarty->display('addspecial.tpl');
* GNU General Public License for more details. * * This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ /** * Edit bar guest * * Settings * * 01/12/2004 by Christian Ehret chris@uffbasse.de */ $smartyType = "www"; include_once "../includes/default.inc.php"; include_once "barguestclass.inc.php"; include_once "barguestcatclass.inc.php"; $barguest = new Barguest(); $barguestcat = new barguestcat(); $auth->is_authenticated(); $smarty->assign("tpl_title", "Gast editieren"); $smarty->assign('tpl_barguestcat', $barguestcat->getAll()); if ($request->GetVar('frm_firstname', 'post') !== $request->undefined) { $guestid = $request->GetVar('frm_guestid', 'post'); $barguest->update($guestid, $request->GetVar('frm_firstname', 'post'), $request->GetVar('frm_lastname', 'post'), $request->GetVar('frm_bookingcat', 'post'), $request->GetVar('frm_gcolor', 'post'), $request->GetVar('frm_bgcat', 'post')); $smarty->assign('tpl_theguestid', $guestid); $smarty->assign('tpl_added', 'true'); } else { $guestid = $request->GetVar('guestid', 'get'); $smarty->assign('tpl_added', 'false'); $smarty->assign("tpl_guestid", $guestid); $smarty->assign("tpl_barguest", $barguest->GetNameSplit($guestid)); }
* GNU General Public License for more details. * * This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ /** * Show bar interface * * bar interface * * 07/24/2003 by Christian Ehret chris@uffbasse.de */ $smartyType = "www"; include_once "../includes/default.inc.php"; $auth->is_authenticated(); include_once "barguestclass.inc.php"; $barguest = new Barguest(); $theguestid = -1; $theguest = ""; if ($request->GetVar('guestid', 'get') !== $request->undefined) { $theguestid = $request->GetVar('guestid', 'get'); $theguest = $barguest->getName($theguestid); include_once "kassaclass.inc.php"; $kassacls = new Kassa(); if ($request->GetVar('frm_checkout', 'post') == "true") { $kassacls->checkout($theguestid, $request->GetVar('frm_setinactive', 'post')); } $articles = $kassacls->get($theguestid); $smarty->assign('tpl_articles', $articles); } $barguests = $barguest->getAll(); $smarty->assign('tpl_barguests', $barguests);