/[cvs]/nfo/php/libs/com.newsblob.phphtmllib/form/form_elements/FEListBox.inc
ViewVC logotype

Diff of /nfo/php/libs/com.newsblob.phphtmllib/form/form_elements/FEListBox.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by jonen, Sat Feb 22 21:07:48 2003 UTC revision 1.2 by jonen, Sat Sep 20 00:20:15 2003 UTC
# Line 58  class FEListBox extends FEDataList { Line 58  class FEListBox extends FEDataList {
58  }  }
59    
60  /**  /**
61     * Build a Yes/No Select box
62     *
63     * @author Walter A. Boring IV <waboring@buildabetterweb.com>
64     * @author Suren Markossian <suren@bcsweb.com>
65     * @package phpHtmlLib
66     * @subpackage FormProcessing
67     *
68     * @copyright LGPL - See LICENCE
69     */
70    class FEYesNoListBox extends FEListBox {
71    
72        /**
73         * The Constructor
74         *
75         * @param label string - text label for the element
76         * @param bool required - is this a required element
77         * @param array data_list - list of data elements (name=>value)
78         * @param int required - element width in characters, pixels (px), percentage (%) or elements (em)
79         * @param string - the value to use for the 'yes' radio
80         *                 NOTE: default is 'yes'
81         * @param string - the value to use for the 'no' radio
82         *                 NOTE: default is 'no'
83         */
84        function FEYesNoListBox($label, $required = TRUE, $width = NULL, $height = NULL,
85                                $yes_value="yes", $no_value="no") {
86            $options = array("Yes" => $yes_value, "No" => $no_value);
87            $this->FEListBox($label, $required, $width, $height, $options);
88        }
89    }
90    
91    
92    /**
93   * This is the MultiListBox FormElement which builds a   * This is the MultiListBox FormElement which builds a
94   * select field with all of its options.  It enables   * select field with all of its options.  It enables
95   * the ability to have multiple selections.   * the ability to have multiple selections.

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed