當前位置: 首頁>>代碼示例>>PHP>>正文


PHP HtmlForm::renderSubmitResetRED方法代碼示例

本文整理匯總了PHP中HtmlForm::renderSubmitResetRED方法的典型用法代碼示例。如果您正苦於以下問題:PHP HtmlForm::renderSubmitResetRED方法的具體用法?PHP HtmlForm::renderSubmitResetRED怎麽用?PHP HtmlForm::renderSubmitResetRED使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在HtmlForm的用法示例。


在下文中一共展示了HtmlForm::renderSubmitResetRED方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Message

    <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>
開發者ID:BethelH,項目名稱:CWEB280-FinalProject,代碼行數:31,代碼來源:CreateSecret.php


注:本文中的HtmlForm::renderSubmitResetRED方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。