Location: PHPKode > projects > ARBS > arbs-1.5.1.78/blinde.php
<?php
/*
 * ARBS - Advanced Resource Booking System
 * Copyright (C) 2005-2007 ITMC der TU Dortmund
 * Based on MRBS by Daniel Gardner <http://mrbs.sourceforge.net/>
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * 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.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA 02110-1301, USA.
 */


include_once("glob_inc.inc.php");

#this form allows barrierfree booking of devices for blind and handicaped people
#it must not be designt and all unnecessary htmlcode should be removed
#the form simply sends all data to $mrbs_admin_email
?>
<html><head><title><?php echo(_("Reserving devices for blind people")); ?></title></head>
<body>
<form method=POST action=blinde.php>
<?php
if(isset($_POST['geraet'])){
        $body=$_POST['geraet']."\n
        "._("Tutor").": ".$_POST['dozent']."\n
        "._("Specials").": ".$_POST['zubehoer']."\n
        "._("Name").": ".$_POST['name']."\n
        "._("eMail").": ".$_POST['email']."\n
        "._("Phone").": ".$_POST['telefon']."\n
        "._("from").": ".$_POST['startdatum']." ".$_POST['startzeit']."\n
        "._("till").": ".$_POST['enddatum']." ".$_POST['endzeit']."\n";
        mail($mrbs_admin_email, _("Blind people's reservation"), $body);
        echo _("Your request was sent. We'll contact you via mail in a short time.");
        exit;
}
echo _("Device"), "<select name=geraet>";

$res=sql_query("SELECT room_name from mrbs_room where capacity>0 order by room_name");
while($zeile=mysql_fetch_row($res)){
        echo "<option value=\"",$zeile[0],"\">",$zeile[0],"</option>";
}
?>
</select><br>
<?php echo(_("Tutor")); ?>: <input type="text" name="dozent"><br>
<?php echo(_("Specials")); ?>: <textarea name="zubehoer"></textarea><br>
<?php echo(_("Name")); ?>: <input type="text" name="name"><br>
<?php echo(_("eMail")); ?>: <input type="text" name="email"><br>
<?php echo(_("Phone")); ?>: <input type="text" name="telefon"><br>
<?php echo(_("Date and time of pickup")); ?>: <input type="text" name="startdatum">, <input type="text" name="startzeit"><br>
<?php echo(_("Date and time of return")); ?>: <input type="text" name="enddatum">, <input type="text" name="endzeit"><br>
<input type="submit" value="<?php echo(_("Continue")); ?>">
</form>
</body></html>
Return current item: ARBS