Example #1
0
 /**
  * Create a checkbox for an array options field 
  * 
  * @param string $name field name
  * @param string $text field label
  * @param array $array 
  * @param integer $index
  */
 function bw_checkbox_arr($name, $text, $array, $index)
 {
     $name_index = $name . '[' . $index . ']';
     $value = bw_array_get($array, $index, NULL);
     bw_checkbox($name_index, $text, $value);
 }
Example #2
0
/**
 * Display the form to accept the input
 * 
 * to compare filter logic output
 */
function trac_29608_form($value)
{
    oik_require("bobbforms.inc");
    e("<!--notext:-->");
    bw_form();
    stag("table");
    bw_textarea("input_29608", 100, "Input", $value);
    bw_checkbox("autop", "Perform wpautop processing", trac_29608_get_field("autop"));
    bw_textfield("limit", 6, "Performance test iterations", trac_29608_get_field("limit"));
    etag("table");
    e(wp_nonce_field("_29608_form", "_29608_nonce", false));
    p(isubmit("_filter_29608", __("Filter")));
    etag("form");
    e("<!--dotext:-->");
}