Exemplo n.º 1
0
    <body>
        <div class="container">
            <?php 
if (isset($_SESSION["loggedIn"])) {
    $form->renderStart("createSecret", "Secret Page Data");
    $form->renderTextbox("txtTitle", "Title for page", true, 50);
    $form->renderTextbox("txtMessage", "Secret Message (up to 500 characters)", true, 500);
    $form->renderTextbox("txtImagePath", "Image File Path (16KB image size max");
    $form->renderTextbox("txtChallengeQuestion_1", "Challenge Question", true, 140);
    echo "<div id = 'challenge'></div>";
    $form->renderTextbox("txtChallengeAnswer_1", "Challenge Answer", true, 50);
    echo "<div id = 'answer'></div>";
    $form->renderTextbox("txtEmail_1", "Recipient Email", false, 50);
    echo "<div id = 'email'></div>";
    echo "<button type='button' id='addButton' onClick='count++;addRecipient(count);' value='Add Recipients'>Add Recipients</button>";
    $form->renderSubmitResetRED("submitSecret", "Submit", "Cancel");
} else {
    $form->renderStart("createSecret", "Secret Page Data");
    $form->renderTextbox("txtTitle", "Title for page", false, 50);
    $form->renderTextbox("txtMessage", "Secret Message (up to 500 characters)", true, 500, "", "id=txtMessage");
    $form->renderTextbox("txtImagePath", "Image File Path (16KB image size max)");
    $form->renderTextbox("txtChallengeQuestion_1", "Challenge Question", true, 140, "", "id=txtChallenge");
    $form->renderTextbox("txtChallengeAnswer_1", "Challenge Answer", true, 50);
    $form->renderTextbox("txtEmail_1", "Recipient Email", false, 50);
    $form->renderSubmitResetRED("submitSecret", "Submit", "Cancel");
}
?>

        </div>
        <div id="toHome">
            <a href="index.php" >    <img id="logo1" alt ="classified logo" src="style\class.png"style="width:100px;height:80px"/></a>