Beispiel #1
0
    ?>
:</label>
                            <select name="var<?php 
    echo $i;
    ?>
" id="var<?php 
    echo $i;
    ?>
">
                                <?php 
    if ($i != 1) {
        echo '<option value="NONE">--------</option>';
    }
    while ($controller->hasMoreQuestions()) {
        $controller->moveNext();
        echo '<option value="' . $controller->getQuestionId() . '">' . $controller->getQuestionName() . '</option>';
    }
    $controller->backToStart();
    User::printPropertiesOptions();
    ?>
                            </select>
                            <br/>
                        <?php 
}
?>
                        </fieldset>
                        <input type="submit" class="button2" value="Publicar"/>
                    </form>
                </div>
            </div>
        </div>
Beispiel #2
0
echo '<h2 class="title">' . $controller->getQueryName() . '</h2>';
if ($_GET['commit'] == 'ok') {
    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>