$theguestid = $request->GetVar('guestid', 'get'); $num = $request->GetVar('frm_num', 'post'); $barguest->buy($articleid, $theguestid, $num); $smarty->assign('tpl_showlast', 'true'); } if ($request->GetVar('guestid', 'get') !== $request->undefined) { $theguestid = $request->GetVar('guestid', 'get'); $theguest = $barguest->getName($theguestid); $thegroupcolor = $barguest->getGroupColor($theguestid); $thebookingcat = $barguest->getBookingcat($theguestid); include_once "articleclass.inc.php"; $articlecls = new Article(); //$articles = $articlecls->Getall(true); $articles = array(); for ($i = 0; $i < count($cats); $i++) { $cats[$i]['articles'] = $articlecls->Getallcat(true, $cats[$i]['articlecatid']); } $smarty->assign('tpl_articles', $articles); include_once "kassaclass.inc.php"; $kassacls = new Kassa(); if ($request->GetVar('frm_checkout', 'post') == "true") { $payids = $request->getVar('payid', 'post'); for ($i = 0; $i < count($payids); ++$i) { $kassacls->pay($payids[$i]); } $cat = "abrechnung"; $selectedcats = $request->GetVar('frm_selectedcat', 'post'); if ($request->GetVar('frm_setinactive', 'post') == "true") { $kassacls->checkout($theguestid, $request->GetVar('frm_setinactive', 'post')); } }