Example #1
0
*              This copyright notice MUST APPEAR in all copies of the script!
*/
/**
* Manage articles
* 
* Settings
* 
* 07/24/2003 by Christian Ehret chris@uffbasse.de
*/
$smartyType = "www";
include_once "../includes/default.inc.php";
$auth->is_authenticated();
include_once 'articleclass.inc.php';
include_once 'articlecatclass.inc.php';
$article = new article();
$articlecat = new articlecat();
$smarty->assign("tpl_title", "Artikelverwaltung");
$smarty->assign('tpl_nav', 'settings');
$smarty->assign('tpl_subnav', 'editarticle');
$newperiod = 'false';
if ($request->GetVar('frm_period', 'post') !== $request->undefined) {
    $theperiod = $request->GetVar('frm_period', 'post');
} else {
    $actPeriod = $article->getactPeriod();
    $theperiod = $actPeriod['periodid'];
}
if ($request->GetVar('frm_action', 'post') == 'edit') {
    $smarty->assign('tpl_editid', $request->GetVar('frm_articleid', 'post'));
} elseif ($request->GetVar('frm_action', 'post') == 'addnew') {
    $smarty->assign('tpl_addnew', 'true');
} elseif ($request->GetVar('frm_action', 'post') == 'del') {
Example #2
0
* 
* 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');
Example #3
0
*  GNU General Public License for more details.
*
*  This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
* 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();
            }