Пример #1
0
 /**
  * Create a textarea for an array options field
  *
  * @param string $name field name
  * @param string $text field label
  * @param array $array 
  * @param integer $index
  * @param integer $len
  * @param integer $rows 
  */
 function bw_textarea_arr($name, $text, $array, $index, $len, $rows = 5)
 {
     $name_index = $name . '[' . $index . ']';
     $value = bw_array_get($array, $index, NULL);
     bw_textarea($name_index, $len, $text, $value, $rows);
 }
Пример #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:-->");
}