Ejemplo n.º 1
0
     array_push($questionarray, t('Meinen Sitzplatz wieder freigeben'));
     array_push($linkarray, "index.php?mod=seating&action=show&step=21&blockid={$_GET['blockid']}&row={$_GET['row']}&col={$_GET['col']}");
     array_push($questionarray, t('Aktion abbrechen. Zurück zum Sitzplan'));
     array_push($linkarray, "index.php?mod=seating&action=show&step=2&blockid={$_GET['blockid']}");
     $func->multiquestion($questionarray, $linkarray, t('Dieser Sitzplatz ist momentan für dich reserviert'));
     break;
     // Release seat
 // Release seat
 case 21:
     $seat2->FreeSeat($_GET['blockid'], $_GET['row'], $_GET['col']);
     $func->confirmation(t('Der Sitzplatz wurde erfolgreich freigegeben'), "index.php?mod=seating&action=show&step=2&blockid={$_GET['blockid']}");
     break;
     // Release seat and reserve new
 // Release seat and reserve new
 case 22:
     $seat2->FreeSeatAllMarkedByUser($auth['userid']);
     $seat2->MarkSeat($auth['userid'], $_GET['blockid'], $_GET['row'], $_GET['col']);
     $func->confirmation(t('Der alte Sitzplatz wurde freigegeben und der neue erfolgreich vorgemerkt.'), "index.php?mod=seating&action=show&step=2&blockid={$_GET['blockid']}");
     break;
     // Free seat as admin (question)
 // Free seat as admin (question)
 case 30:
     if ($auth['type'] > 1) {
         $seatingUser = $db->qry_first("SELECT s.userid, u.username FROM %prefix%seat_seats AS s\n    \t\t\t INNER JOIN %prefix%user AS u ON u.userid = s.userid\n  \t\t\t\t WHERE blockid = %int% AND row = %string% AND col = %string%", $_GET['blockid'], $_GET['row'], $_GET['col']);
         $questionarray = array();
         $linkarray = array();
         array_push($questionarray, t('Diesen Sitzplatz wieder freigeben'));
         array_push($linkarray, "index.php?mod=seating&action=show&step=31&blockid={$_GET['blockid']}&row={$_GET['row']}&col={$_GET['col']}");
         array_push($questionarray, t('Für %1 einen anderen Sitzplatz bestimmen (umsetzen)', $seatingUser['username']));
         array_push($linkarray, "index.php?mod=seating&action=show&step=32&blockid={$_GET['blockid']}&row={$_GET['row']}&col={$_GET['col']}&userid={$seatingUser['userid']}");
         array_push($questionarray, t('Aktion abbrechen. Zurück zum Sitzplan'));
Ejemplo n.º 2
0
                        array_push($linkarray, "index.php?mod=seating&action=seatadmin&step=10&userid={$_GET['userid']}&blockid={$_GET['blockid']}&row={$_GET['row']}&col={$_GET['col']}&quest=2&next_userid={$seat['userid']}");
                        array_push($questionarray, t('Aktion abbrechen. Zurück zum Sitzplan'));
                        array_push($linkarray, "index.php?mod=seating&action=seatadmin&step=3&userid={$_GET['userid']}&blockid={$_GET['blockid']}");
                        $func->multiquestion($questionarray, $linkarray, t('Dieser Sitzplatz ist aktuell belegt durch %1 (%2 %3)', $seat['username'], $seat['firstname'], $seat['name']));
                    }
                }
                break;
        }
        break;
        // Reserve seat
    // Reserve seat
    case 11:
        $seat2->AssignSeat($_GET['userid'], $_GET['blockid'], $_GET['row'], $_GET['col']);
        $func->confirmation(t('Der Sitzplatz wurde erfolgreich für %1 reserviert', $new_user['username']), "index.php?mod=seating&action=seatadmin");
        break;
        // Mark seat
    // Mark seat
    case 12:
        if ($new_user['paid'] == 0) {
            $seat2->FreeSeatAllMarkedByUser($_GET['userid']);
        }
        $seat2->MarkSeat($_GET['userid'], $_GET['blockid'], $_GET['row'], $_GET['col']);
        $func->confirmation(t('Der Sitzplatz wurde erfolgreich für %1 vorgemerkt', $new_user['username']), "index.php?mod=seating&action=seatadmin");
        break;
        // Free seat
    // Free seat
    case 20:
        $seat2->FreeSeat($_GET['blockid'], $_GET['row'], $_GET['col']);
        $func->confirmation(t('Der Sitzplatz wurde wieder freigegeben'), 'index.php?mod=seating&action=seatadmin');
        break;
}