[Phphtmllib-devel] SF.net SVN: phphtmllib:[3149] branches/BRANCH_2_X/phphtmllib/widgets/ data_list/
Status: Beta
Brought to you by:
hemna
From: <mpw...@us...> - 2008-08-31 11:36:30
|
Revision: 3149 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3149&view=rev Author: mpwalsh8 Date: 2008-08-31 11:36:37 +0000 (Sun, 31 Aug 2008) Log Message: ----------- Added actionbar select widget. Modified Paths: -------------- branches/BRANCH_2_X/phphtmllib/widgets/data_list/DefaultGUIDataList.inc Modified: branches/BRANCH_2_X/phphtmllib/widgets/data_list/DefaultGUIDataList.inc =================================================================== --- branches/BRANCH_2_X/phphtmllib/widgets/data_list/DefaultGUIDataList.inc 2008-08-31 11:35:16 UTC (rev 3148) +++ branches/BRANCH_2_X/phphtmllib/widgets/data_list/DefaultGUIDataList.inc 2008-08-31 11:36:37 UTC (rev 3149) @@ -1140,7 +1140,7 @@ * * @param string - the button name * @param string - the script that gets called. - * @param string - extra js to put prior to the submit(); + * @param string - extra js to put prior to the submit(); * @return INPUTtag object */ function action_button($name, $action = "", $javascript = "") { @@ -1172,6 +1172,27 @@ } /** + * This function builds an action select box that will + * be passed when a form action button is executed. + * + * @param string - the select name + * @param mixed - the select options + * @param mixed - selected - string for one, array for multiple + * @param boolean - multiple select + * @param mixed - additional attributes + * @return INPUTtag object + */ + function action_select($name, $options = array(), + $selected = "", $multiple_flag = false, $attribs = false) + { + + $select = form_select($name, $options, + $selected, $multiple_flag, $attribs) ; + + return $select; + } + + /** * This function returns any Javascript required * for this widget * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |