* * 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); $smarty->display('selectreceipt2.tpl');