Esempio n. 1
0
 /**
  * Print the HTML for a normal element
  * Called by {@link show_form}.  Part of the display phase.
  * @param string $element_name Name of the element
  * @param defaultType $element The actual element object
  * @param mixed $b box class (passed by reference)
  */
 function show_normal_element($element_name, $element, &$b)
 {
     $b->row_open($this->get_display_name($element_name), $this->is_required($element_name), $this->has_error($element_name), $element_name, $this->get_element_property($element_name, 'use_display_name'));
     // drop in a named anchor for error jumping
     echo '<a name="' . $element_name . '_error"></a>' . "\n";
     // show the comments that were placed above the element
     $element->echo_comments('before');
     // always display element
     $element->display();
     // show the comments that were placed below the element
     $element->echo_comments();
     $b->row_close();
 }