Example #1
0
 $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'));
     }
 }
 if ($request->GetVar('frm_storno', 'post') == "true") {
     $selectedcats = $request->GetVar('frm_selectedcat', 'post');
     $kassacls->storno($request->GetVar('frm_boughtid', 'post'));
     $cat = "abrechnung";
 }
 if ($request->GetVar('frm_multiple_storno', 'post') == "true") {
     $selectedcats = $request->GetVar('frm_selectedcat', 'post');
     $payids = $request->getVar('payid', 'post');