예제 #1
0
        <?php 
//passwortprüfung:
if (checkPass($benutzername, $passwort, $unterkunft_id, $link)) {
    ?>
            <p class="ueberschrift"></p>
            <form action="../index.php" method="post" name="form1" target="_self" class="form-horizontal">
                <div class="form-group">
                    <label for="anrede"
                           class="col-sm-2 control-label"><?php 
    echo getUebersetzung("Anrede", $sprache, $link);
    ?>
</label>
                    <div class="col-sm-4">
                        <input name="anrede" type="text" id="anrede" readonly="readonly"
                               value="<?php 
    echo getGuestAnrede($gast_id, $link);
    ?>
" class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <label for="vorname" class="col-sm-2 control-label">
                        <?php 
    echo getUebersetzung("Vorname", $sprache, $link);
    ?>
*
                    </label>
                    <div class="col-sm-4">
                        <input name="vorname" type="text" id="vorname" readonly="readonly"
                               value="<?php 
    echo getGuestVorname($gast_id, $link);
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-4">
                                <label class="control-label">
                                    <?php 
                echo getUebersetzung("Anrede", $sprache, $link);
                ?>
                                </label>
                            </div>
                            <div class="col-sm-4">
                                <select name="anrede" id="select2" class="form-control">
                                    <?php 
                if (!empty($gast_id)) {
                    $anrede = getGuestAnrede($gast_id, $link);
                }
                ?>
                                    <option<?php 
                if (!empty($anrede) && $anrede == "Familie") {
                    echo " selected";
                }
                ?>
><?php 
                echo getUebersetzung("Familie", $sprache, $link);
                ?>
</option>
                                    <option<?php 
                if (!empty($anrede) && $anrede == "Frau") {
                    echo " selected";
                }