Example #1
0
$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 "&nbsp;<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->set_focus("subject");
$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>
Example #2
0
$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 "&nbsp;<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->set_focus("_recipients");
$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";
    print "  \$('#_recipients').val('" . htmlentities(id()) . "');";
    print "});\n";
Example #3
0
</div>
<?php 
$Form = new Form();
$Form->labels(false);
$Form->header("/chat/speak/", "post", FORM_SALT);
$Form->fieldset_open("Chat Panel");
$Form->add_text("chat", false, 400, false, "autocomplete=\"off\" onkeydown=\"return catch_enter(event)\"/>");
$Form->add_button("add", "say that shit", "speak();");
print "<br/>\n";
$Form->add_checkbox("stop", "pause scroll", "onclick=\"pause=pause?false:true\"/> pause scrolling");
//$Form->add_checkbox("disablemedia","disable media",(session('hidemedia')?' checked="yes" ':'') . "onclick=\"media=!media;lasthash='';update(false);\"/> disable media");
$Form->add_checkbox("enablemedia", "enable media", "onclick=\"media=!media;lasthash='';update(false);\"/> enable media");
$Form->fieldset_close();
$Form->footer();
$Form->header_validate();
$Form->set_focus('chat');
$Form->footer_validate();
$Base->footer();
?>
<script type="text/javascript">
var lasthash = '';
var pause = false;
var media = <?php 
print 'false';
?>
;
function speak()
{
  var text = $('#chat').val();
  $('#chat').val('');
  $('#add')[0].disabled = true;
Example #4
0
$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->set_focus("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');
      alert(what);