$Form->values(array("thread_id" => id(true))); $Form->add_hidden("thread_id"); $Form->account_login(); $Form->fieldset_open("Reply"); $Form->add_textarea("body", "Body:"); $Form->fieldset_close(); $Form->add_submit(SAY_BUTTON, "id=\"submit\"/>"); $Form->add_button("preview", PREVIEW_BUTTON, "preview_post('{$Form->name}','thread'," . id() . ");"); if (id() == 362137) { print " "; $Form->add_button("_load", "load bradyism", "\$(this).val('loading...');\$.post('/thread/view/bradyism/',{},function(data){ \$('#body').val(\$.trim(data));\$('#_load').val('load bradyism')});"); } print " <sup><a href=\"javascript:;\" onclick=\"\$('#bbcode').slideToggle()\">[help]</a></sup>\n"; $Form->footer(); $Form->header_validate(); $Form->add_notnull("body", "Please enter a post body."); $Form->footer_validate(); print BBCODE_GUIDE; ?> <script type="text/javascript"> function completed(data) { if(jQuery.trim(data) == "") { loadposts('thread',false); e('<?php print $Form->name; ?> ').reset(); } $('.submit').attr('disabled',false);
case "input": $Form->add_text($pref['field'], "{$pref['display']}:", $pref['width']); break; case "textarea": $Form->add_textarea($pref['field'], "{$pref['display']}:"); break; case "checkbox": $Form->add_checkbox($pref['field'], "{$pref['display']}:"); break; } } $Form->add_submit("Save Changes"); $Form->fieldset_close(); $Form->footer(); $Form->header_validate(); $Form->add_notnull("postalcode", "Please enter a postal code."); $Form->footer_validate(); $Base->footer(); print "</div>"; ?> <script type="text/javascript"> function completed() { $('.submit').attr('disabled',false); } function change_password() { if($('#password').css('display') != "block") { $('#_change').val('Cancel'); } else { $('#_change').val('Change Password');
/* $Form->add_text("member","By Member:"); $Form->labels(false); print "<li>\n"; print " <label>Date Range:</label>\n"; $Form->add_date("start",false); $Form->add_date("end",false); print "</li>\n"; $Form->labels(true); $Form->add_select("quickdate","Quick Ranges:","Choose",array("thisweek"=>"This Week","thismonth"=>"This Month","lastweek"=>"Last Week","lastmonth"=>"Last Month"),"onchange=\"quickrange($(this).val())\">"); */ $Form->fieldset_close(); $Form->add_submit("Search"); $Form->footer(); $Form->header_validate(); $Form->add_notnull("search", "Please enter a search term."); $Form->add_notnull("_type", "Please choose what to search."); $Form->footer_validate(); if (!isset($res)) { $Base->footer(); } ?> <script type="text/javascript"> function quickrange(what) { switch(what) { default: $('#start').val('no'); $('#end').val('no');
if (REGISTRATION_PASSWORD && !session('authorized')) { $Form = new Form(); $Form->header(url(0, -2) . "authorize/", "post", FORM_SALT); $Form->fieldset_open("Registration Authorization"); $Form->add_password("password", "Password:"******"Authorize Me"); $Form->footer(); } if (session('authorized')) { $Form = new Form(); $Form->header(url(), "post", FORM_SALT); $Form->fieldset_open("Create Account"); $Form->add_text("account", "Name:", 150); $Form->add_text("secret", "Secret Word:", 150, false, "/><span class=\"small\">(to recover forgotten password)</span>"); $Form->add_text("email_signup", "Email:", 200); $Form->add_text("email_confirm", "Email (confirm):", 200); $Form->add_text("postalcode", "Postal Code:", 75); $Form->fieldset_close(); $Form->add_submit("Create Account"); $Form->footer(); $Form->header_validate(); $Form->add_notnull("account", "Please enter an account name."); $Form->add_notnull("secret", "Please enter a secret word for password recovery."); $Form->add_notnull("email_signup", "Please enter an email address."); $Form->add_notnull("email_confirm", "Please confirm your email address."); $Form->add_notnull("postalcode", "Please enter a postal code."); $Form->footer_validate(); } $Base->footer(); print "</div>";
$Base = new Base(); $Base->type(CREATE); $Base->title("Create New Thread"); $Base->header(); $Form = new Form(); $Form->header(url(), "post", FORM_SALT); $Form->account_login(); $Form->fieldset_open("Thread Details"); $Form->add_text("subject", "Subject:", 400, 200); $Form->add_textarea("body", "Body:"); $Form->fieldset_close(); $Form->add_submit(SAY_BUTTON, "class=\"nodisable\"/>"); $Form->add_button("preview", PREVIEW_BUTTON, "preview_post('{$Form->name}','thread',99999999);"); print " <sup><a href=\"javascript:;\" onclick=\"\$('#bbcode').slideToggle()\">[help]</a></sup>\n"; $Form->footer(); $Form->header_validate(); $Form->add_notnull("subject", "Please enter a subject."); $Form->add_notnull("body", "Please enter a post body."); $Form->footer_validate(); $Base->footer(); print BBCODE_GUIDE; ?> <script type="text/javascript"> function completed(data) { if(jQuery.trim(data) == "") window.location = '/'; $('.submit').attr('disabled',false); } </script>
<?php if (session('id')) { return to_index(); } $Base = new Base(); $Base->title("Forgotten Password"); $Base->type(CREATE); $Base->header(); print "<div class=\"box clear\">\n"; print FORGOT_PASSWORD; $Form = new Form(); $Form->ajax(false); $Form->header(url(), "post", FORM_SALT); $Form->fieldset_open("Reset Password"); $Form->add_text("email_signup", "Email Signup:"); $Form->fieldset_close(); $Form->add_submit("Send Reset Email"); $Form->footer(); $Form->header_validate(); $Form->add_notnull("email_signup", "Please enter an email address."); $Form->footer_validate(); print "</div>"; $Base->footer();
print " <label for=\"recipients\">Add Members:</label>\n"; $Form->add_hidden("message_members"); $Form->add_text("_recipients", false, 200, false, "onkeydown=\"return catch_enter(event)\"/>"); $Form->add_button("add", "Add", "check_member();", "tabindex=\"10\"/>"); print " <sup id=\"names\">add multiples with: name, name, name</sup>"; print "</li>\n"; $Form->labels(true); $Form->add_text("subject", "Subject:", 400, 200); $Form->add_textarea("body", "Body:"); $Form->fieldset_close(); $Form->add_submit(SAY_BUTTON, "class=\"nodisable\"/>"); $Form->add_button("preview", PREVIEW_BUTTON, "preview_post('{$Form->name}','message',99999999);"); print " <sup><a href=\"javascript:;\" onclick=\"\$('#bbcode').slideToggle()\">[help]</a></sup>\n"; $Form->footer(); $Form->header_validate(); $Form->add_notnull("message_members", "Please enter at least one recipient."); $Form->add_notnull("subject", "Please enter a subject."); $Form->add_notnull("body", "Please enter a post body."); $Form->footer_validate(); $Base->footer(); print BBCODE_GUIDE; ?> <script type="text/javascript"> function completed(data) { if(jQuery.trim(data) == "") window.location = '/message/'; $('.submit').attr('disabled',false); } <?php if (id()) { print "\$(document).ready(function() {\n";