Пример #1
0
     $dsp->AddContent();
     break;
 case 3:
     // Save block settings
     if ($_GET['action'] == 'add') {
         $db->qry("INSERT INTO %prefix%seat_block SET\n    party_id = %int%,\n    group_id = %int%,\n    price_id = %int%,\n    name = %string%,\n    rows = %int%,\n    cols = %int%,\n    orientation = %string%,\n    u18 = %string%,\n    remark = %string%,\n    text_tl = %string%,\n    text_tc = %string%,\n    text_tr = %string%,\n    text_lt = %string%,\n    text_lc = %string%,\n    text_lb = %string%,\n    text_rt = %string%,\n    text_rc = %string%,\n    text_rb = %string%,\n    text_bl = %string%,\n    text_bc = %string%,\n    text_br = %string%\n    ", $party->party_id, $_POST['group_id'], $_POST['price_id'], $_POST['name'], $_POST['rows'] - 1, $_POST['cols'] - 1, $_POST['orientation'], $_POST['u18'], $_POST['remark'], $_POST['text_tl'], $_POST['text_tc'], $_POST['text_tr'], $_POST['text_lt'], $_POST['text_lc'], $_POST['text_lb'], $_POST['text_rt'], $_POST['text_rc'], $_POST['text_rb'], $_POST['text_bl'], $_POST['text_bc'], $_POST['text_br']);
         $_GET['blockid'] = $db->insert_id();
     } else {
         $db->qry("UPDATE %prefix%seat_block SET\n    party_id = %int%,\n    group_id = %int%,\n    price_id = %int%,\n    name = %string%,\n    rows = %int%,\n    cols = %int%,\n    orientation = %string%,\n    u18 = %string%,\n    remark = %string%,\n    text_tl = %string%,\n    text_tc = %string%,\n    text_tr = %string%,\n    text_lt = %string%,\n    text_lc = %string%,\n    text_lb = %string%,\n    text_rt = %string%,\n    text_rc = %string%,\n    text_rb = %string%,\n    text_bl = %string%,\n    text_bc = %string%,\n    text_br = %string%\n    WHERE blockid = %int%\n    ", $party->party_id, $_POST['group_id'], $_POST['price_id'], $_POST['name'], $_POST['rows'] - 1, $_POST['cols'] - 1, $_POST['orientation'], $_POST['u18'], $_POST['remark'], $_POST['text_tl'], $_POST['text_tc'], $_POST['text_tr'], $_POST['text_lt'], $_POST['text_lc'], $_POST['text_lb'], $_POST['text_rt'], $_POST['text_rc'], $_POST['text_rb'], $_POST['text_bl'], $_POST['text_bc'], $_POST['text_br'], $_GET['blockid']);
     }
     // No Break!
 // No Break!
 case 4:
     // Continue with seperator definition
     $dsp->NewContent(t('Sitzblock Zwischengänge definieren'), t(' Abstände zwischen einzelnen Zeilen bzw. Reihen können mit den außen angezeigten Pfeilen eingefügt bzw. wieder gelöscht werden.'));
     $dsp->AddSingleRow($seat2->DrawPlan($_GET['blockid'], 1));
     $dsp->SetForm("index.php?mod=seating&action={$_GET['action']}&step=5&blockid={$_GET['blockid']}");
     $dsp->AddFormSubmitRow(t('Weiter'));
     $dsp->AddBackButton("index.php?mod=seating&action={$_GET['action']}&step=2&blockid={$_GET['blockid']}", 'seating/add');
     $dsp->AddContent();
     break;
     // Seat-Selection
 // Seat-Selection
 case 5:
 case 6:
     $dsp->NewContent(t('Sitzblock Sitze definieren'), t('Nun kannst du Plätze des Sitzblockes aktivieren bzw. deaktivieren um den Sitzblock deinen Bedürfnissen anzupassen.<br /><br />Ganze Reihen bzw. Spalten von Plätzen können aktiviert bzw. deaktiviert werden, indem du auf die Spalten- bzw. Reihen-Beschriftung  klicken.'));
     $dsp->SetForm("index.php?mod=seating&action={$_GET['action']}&step=6&blockid={$_GET['blockid']}", "block");
     $dsp->AddSingleRow($seat2->DrawPlan($_GET['blockid'], 2));
     $dsp->AddFormSubmitRow(t('Speichern'));
     $dsp->AddDoubleRow('', $dsp->FetchSpanButton(t('Weiter'), "index.php?mod=seating&action={$_GET['action']}&step=7&blockid={$_GET['blockid']}"));
     $dsp->AddBackButton("index.php?mod=seating&action={$_GET['action']}&step=4&blockid={$_GET['blockid']}", 'seating/add');
Пример #2
0
}
switch ($_GET['step']) {
    default:
        $additional_where = "p.party_id = {$party->party_id} and u.type > 0";
        $current_url = 'index.php?mod=seating&action=seatadmin';
        $target_url = 'index.php?mod=seating&action=seatadmin&step=2&userid=';
        include_once 'modules/usrmgr/search_basic_userselect.inc.php';
        break;
    case 2:
        $current_url = "index.php?mod=seating&action=seatadmin&step=2&userid={$_GET['userid']}";
        $target_url = "index.php?mod=seating&action=seatadmin&step=3&userid={$_GET['userid']}&blockid=";
        include_once 'modules/seating/search_basic_blockselect.inc.php';
        break;
    case 3:
        $dsp->NewContent(t('Sitzplatz - Informationen'), t('Fahre mit der Maus über einen Sitzplatz, um weitere Informationen zu erhalten.'));
        $dsp->AddSingleRow($seat2->DrawPlan($_GET['blockid'], 0, "index.php?mod=seating&action=seatadmin&step=10&userid={$_GET['userid']}&blockid={$_GET['blockid']}"));
        $dsp->AddBackButton("index.php?mod=seating&action=seatadmin&step=2&userid={$_GET['userid']}", 'seating/seatadmin');
        $dsp->AddContent();
        break;
        // Reserve seat - questions
    // Reserve seat - questions
    case 10:
        switch ($seat['status']) {
            case 0:
                // Seat unavailable
            // Seat unavailable
            case '':
                $func->error(t('Dieser Sitzplatz existiert nicht'), "index.php?mod=seating&action=seatadmin&step=2&userid={$_GET['userid']}");
                break;
            case 1:
                // Seat free, or just marked -> ask if reserve, or mark
Пример #3
0
         $func->confirmation("Der Sitzplatz wurde erfolgreich reserviert. Fahre nun mit dem alten Besitzer dieses Sitzplatzes fort", '');
         $_GET['userid'] = $_GET['next_userid'];
     }
     $current_url = "index.php?mod=usrmgr&action=entrance&step=7&umode={$_GET["umode"]}&userid={$_GET["userid"]}";
     $target_url = "index.php?mod=usrmgr&action=entrance&step=8&umode={$_GET["umode"]}&userid={$_GET["userid"]}&blockid=";
     include_once 'modules/seating/search_basic_blockselect.inc.php';
     break;
     // Sitzplatz auswählen
 // Sitzplatz auswählen
 case 8:
     $dsp->NewContent('Sitzplatz - Informationen', 'Fahre mit der Maus über einen Sitzplatz um weitere Informationen zu erhalten.');
     $dsp->AddDoubleRow('Sitzplatz', '', 'seating');
     $dsp->AddDoubleRow('Benutzer', '', 'name');
     $dsp->AddDoubleRow('Clan', '', 'clan');
     $dsp->AddDoubleRow('IP', '', 'ip');
     $dsp->AddSingleRow($seat2->DrawPlan($_GET['blockid'], 0, "index.php?mod=usrmgr&action=entrance&step=9&umode={$_GET["umode"]}&userid={$_GET["userid"]}&blockid={$_GET["blockid"]}"));
     $dsp->AddBackButton('index.php?mod=seating', 'seating/show');
     $dsp->AddContent();
     break;
     // Belegten Sitzplatz tauschen / löschen?
 // Belegten Sitzplatz tauschen / löschen?
 case 9:
     $seat = $db->qry_first("SELECT s.userid, s.status, u.username, u.firstname, u.name FROM %prefix%seat_seats AS s\n  \t\t\tLEFT JOIN %prefix%user AS u ON s.userid = u.userid\n  \t\t\tWHERE blockid = %int% AND row = %string% AND col = %string%", $_GET['blockid'], $_GET['row'], $_GET['col']);
     if ($seat['status'] == 1 or $seat['status'] == 3) {
         $_GET['step'] = 10;
     } elseif ($seat['status'] == 2) {
         $questionarray = array();
         $linkarray = array();
         array_push($questionarray, "Dennoch reservieren. {$seat['username']} hat dadurch anschließend keinen Sitzplatz mehr");
         array_push($linkarray, "index.php?mod=usrmgr&action=entrance&step=10&umode={$_GET["umode"]}&userid={$_GET["userid"]}&blockid={$_GET["blockid"]}&row={$_GET['row']}&col={$_GET['col']}");
         array_push($questionarray, "Dennoch reservieren und {$seat['username']} anschließend einen neuen Sitzplatz aussuchen");
Пример #4
0
<?php

include_once "modules/seating/class_seat.php";
$seat2 = new seat2();
$id = $_GET['id'];
$function = $_GET['function'];
$userarray = $_GET['userarray'];
$legend = $_GET['l'];
$dsp->NewContent("");
$dsp->AddSingleRow($seat2->DrawPlan($id, 0, '', $userarray[0]));
$dsp->AddContent();