Esempio n. 1
0
*
*  This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
* Manage guest categories
* 
* Settings
* 
* @since 2004-07-24
* @author Christian Ehret <*****@*****.**> 
*/
$smartyType = "www";
include_once "../includes/default.inc.php";
$auth->is_authenticated();
include_once 'guestcategoryclass.inc.php';
$gcategory = new GuestCategory();
$smarty->assign("tpl_title", "Kategorieverwaltung");
$smarty->assign('tpl_nav', 'settings');
$smarty->assign('tpl_subnav', 'catsettings');
$smarty->assign('tpl_subnav2', 'category');
if ($request->GetVar('frm_catid', 'post') !== $request->undefined) {
    if ($request->GetVar('frm_action', 'post') == 'edit') {
        $smarty->assign('tpl_editid', $request->GetVar('frm_catid', 'post'));
    } else {
        if ($request->GetVar('frm_action', 'post') == 'addnew') {
            $smarty->assign('tpl_addnew', 'true');
        } else {
            if ($request->GetVar('frm_action', 'post') == 'del') {
                $gcategory->del($request->GetVar('frm_catid', 'post'));
            } else {
                $check = $gcategory->saveupdate();
Esempio n. 2
0
***************************************************************/
/**
* Manage guest categories
* 
* Guest
* 
* @since 2004-07-24
* @author Christian Ehret <*****@*****.**> 
*/
$smartyType = "www";
include_once "../includes/default.inc.php";
$auth->is_authenticated();
include_once 'guestclass.inc.php';
include_once 'guestcategoryclass.inc.php';
$guest = new Guest();
$gcategory = new GuestCategory();
$smarty->assign("tpl_title", "Gast bearbeiten/anlegen");
$smarty->assign('tpl_nav', 'gast');
$smarty->assign('tpl_subnav', 'cat');
$smarty->assign('tpl_type', 'editgast');
if ($request->GetVar('guestid', 'get') !== $request->undefined) {
    $guestid = $request->GetVar('guestid', 'get');
} elseif ($request->GetVar('frm_gastid', 'post') !== $request->undefined) {
    $guestid = $request->GetVar('frm_gastid', 'post');
} else {
    // noch kein Gast angelegt
    header("Location: " . $wwwroot . "editgast.php");
    exit;
}
if ($request->GetVar('frm_changeAction', 'post') == 'add') {
    $gcategory->subscribe($request->GetVar('frm_gastid', 'post'), $request->GetVar('frm_catid', 'post'));
Esempio n. 3
0
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU General Public License for more details.
*
*  This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
* Show guest categories
* 
* Guest
* 
* @since 2004-06-05
* @author Christian Ehret <*****@*****.**> 
*/
$smartyType = "www";
include_once "../includes/default.inc.php";
$auth->is_authenticated();
include_once 'guestclass.inc.php';
include_once 'guestcategoryclass.inc.php';
$guest = new Guest();
$gcategory = new GuestCategory();
$smarty->assign("tpl_title", "Gast bearbeiten/anlegen");
$smarty->assign('tpl_nav', 'showgast');
$smarty->assign('tpl_subnav', 'cat');
$smarty->assign('tpl_type', 'showgast');
if ($request->GetVar('guestid', 'get') !== $request->undefined) {
    $guestid = $request->GetVar('guestid', 'get');
}
$smarty->assign('tpl_cat', $gcategory->getsubscribed($guestid));
$smarty->assign('tpl_gast', $guest->getGuest($request->GetVar('guestid', 'get')));
$smarty->display('showcat.tpl');