本文整理匯總了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>