?>
<form action="./tischAnlegen.php" method="post" name="tischAnlegen" target="_self">
	<table>
		<h2><?php 
echo getUebersetzung("Tisch anlegen");
?>
  	</h2>
	    <tr>
	    	<td><?php 
echo getUebersetzung("Raum");
?>
:&nbsp;
		      	<select name="raum_id" id="raum_id">
		          <?php 
//es muss ein raum zum tisch ausgewählt werden:
$res = getRaeume($gastro_id);
$first = true;
while ($d = $res->FetchNextObject()) {
    $ziArt = getUebersetzungGastro($d->BEZEICHNUNG, $sprache, $gastro_id);
    ?>
						<option value="<?php 
    echo $d->RAUM_ID;
    ?>
" <?php 
    if ($first) {
        ?>
								selected="selected"	<?php 
        $first = false;
    }
    ?>
							><?php 
<?php

/**
 * Created on 22.01.2007
 *
 * @author coster alpstein-austria
 * 
 * zeigt alle raeume als karteireiter an
 */
//alle raeume aus der datenbank holen:
$rooms = getRaeume($gastro_id);
?>
<!-- tabs fuer raeume anzeigen -->
<div id="roomtabs" class="yui-navset">
	<ul class="yui-nav">
			<?php 
while ($o = $rooms->FetchNextObject()) {
    $bezeichnung = $o->BEZEICHNUNG;
    $id = $o->RAUM_ID;
    ?>
			    <li <?php 
    if ($mietobjekt_id == $id) {
        ?>
class="selected"<?php 
    }
    ?>
>
			    	<a href="<?php 
    echo $root;
    ?>
/index.php?mietobjekt_id=<?php 
$enddatumDP = $startdatumDP;
?>
			<form action="./buchungseinschraenkungHinzufuegen.inc.php" method="post" target="_self">
	  		<input type="hidden" name="typ" value="<?php 
echo $typ;
?>
" />
  			<tr>
  				<td>
					<select name="moId" id="moId">
							<option value="alle"><?php 
echo getUebersetzung("alle");
?>
</option>
							<?php 
$raum_res = getRaeume($gastro_id);
while ($l = $raum_res->FetchNextObject()) {
    $raum_bez = $l->BEZEICHNUNG;
    $raum_id = $l->RAUM_ID;
    $tisch_res = getTische($raum_id);
    while ($t = $tisch_res->FetchNextObject()) {
        $tisch_id = $t->TISCHNUMMER;
        $raum_tisch = $raum_bez . "/" . $tisch_id;
        ?>
									<option value="<?php 
        echo $tisch_id;
        ?>
"><?php 
        echo $raum_tisch;
        ?>
</option>