当前位置: 首页>>代码示例>>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;未经允许,请勿转载。