* 
* 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');
* Manage articlecategories
* 
* Settings
* 
* 08/30/2004 by Christian Ehret chris@uffbasse.de
*/
$smartyType = "www";
include_once "../includes/default.inc.php";
$auth->is_authenticated();
include_once 'articlecatclass.inc.php';
$articlecat = new articlecat();
$smarty->assign("tpl_title", "Artikelkategorieverwaltung");
$smarty->assign('tpl_nav', 'settings');
$smarty->assign('tpl_subnav', 'editarticlecat');
if ($request->GetVar('frm_articlecatid', 'post') !== $request->undefined) {
    if ($request->GetVar('frm_action', 'post') == 'edit') {
        $smarty->assign('tpl_editid', $request->GetVar('frm_articlecatid', 'post'));
    } else {
        if ($request->GetVar('frm_action', 'post') == 'addnew') {
            $smarty->assign('tpl_addnew', 'true');
        } else {
            if ($request->GetVar('frm_action', 'post') == 'del') {
                $articlecat->del($request->GetVar('frm_articlecatid', 'post'));
            } else {
                $check = $articlecat->saveupdate();
            }
        }
    }
}
$smarty->assign('tpl_article', $articlecat->getall());
$smarty->display('editarticlecat.tpl');