Ejemplo n.º 1
0
    echo '<p>Your answer has been registered. <a href="viewprofile.php?uid=' . $controller->getOwnerUid() . '">Go to results!</a><p>';
}
?>
                <div class="entry">
                    <form action="bridge.php?target=answers/answercommitcontroller" method="POST">
                    <input type="hidden" name="qid" value=<?php 
echo $_GET['qid'];
?>
 id="uid">
                    <?php 
while ($controller->hasMoreQuestions()) {
    $controller->nextQuestion();
    echo '<div>
                            <label  class="mylabelstyle" for="question' . $controller->getQuestionId() . '">' . $controller->getQuestionName() . '</label>
                            <select name="question' . $controller->getQuestionId() . '" id="question' . $controller->getQuestionId() . '">';
    while ($controller->hasMoreOptions()) {
        $controller->nextOption();
        echo '<option value="' . $controller->getOptionId() . '">' . $controller->getOptionText() . '</option>';
    }
    echo '</select>
                            </div>';
}
if ($_GET['commit'] == 'ok') {
    echo '<input   type="submit" class="button2" value="Register" disabled="disabled"/>';
} else {
    echo '<input type="submit"  class="button2" value="Register"/>';
}
?>
                    </form>
                </div>
            </div>