Thread: [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. |
From: <mpw...@us...> - 2008-09-02 03:16:25
|
Revision: 3150 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3150&view=rev Author: mpwalsh8 Date: 2008-09-02 03:16:35 +0000 (Tue, 02 Sep 2008) Log Message: ----------- Added Javascript to action_select to allow form submit. 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:36:37 UTC (rev 3149) +++ branches/BRANCH_2_X/phphtmllib/widgets/data_list/DefaultGUIDataList.inc 2008-09-02 03:16:35 UTC (rev 3150) @@ -1,4 +1,5 @@ <?php +/* vim: set expandtab tabstop=4 shiftwidth=4: */ /** * * This file contains the Default DataList child @@ -1143,8 +1144,8 @@ * @param string - extra js to put prior to the submit(); * @return INPUTtag object */ - function action_button($name, $action = "", $javascript = "") { - + function action_button($name, $action = "", $javascript = "") + { $submit = form_submit("_action", $name); // here we make sure that all standard buttons look the same @@ -1183,12 +1184,30 @@ * @return INPUTtag object */ function action_select($name, $options = array(), - $selected = "", $multiple_flag = false, $attribs = false) + $selected = "", $multiple_flag = false, $attribs = false, + $action = "", $javascript = "") { + $options = array_merge(array("Select Action" => "Select Action"), $options) ; - $select = form_select($name, $options, - $selected, $multiple_flag, $attribs) ; + $select = form_select($name, $options, $selected, $multiple_flag, $attribs) ; + $form_name = $this->get_form_name(); + + $onchange = "javascript: "; + if ($action != "") { + $onchange .= "document.".$form_name.".action='".$action."';"; + } + + if ($javascript != "") { + $onchange .= $javascript . ";"; + } + + $onchange .= "document.".$form_name.".submit();"; + + if ($action != '' || $javascript != '') { + $select->set_tag_attribute("onchange", $onchange); + } + return $select; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mpw...@us...> - 2009-04-02 13:25:31
|
Revision: 3242 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3242&view=rev Author: mpwalsh8 Date: 2009-04-02 13:25:29 +0000 (Thu, 02 Apr 2009) Log Message: ----------- Fixed broken path to tree_open and tree_closed images. 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 2009-03-04 20:24:49 UTC (rev 3241) +++ branches/BRANCH_2_X/phphtmllib/widgets/data_list/DefaultGUIDataList.inc 2009-04-02 13:25:29 UTC (rev 3242) @@ -611,7 +611,7 @@ if ($this->_search_tree_open) $img_source = "tree_open.gif"; else $img_source = "tree_closed.gif"; - $img = html_img("/images/widgets/" . $img_source, 10, 10); + $img = html_img(PHPHTMLLIB_WIGDET_IMAGEPATH . "/" . $img_source, 10, 10); $img->set_tag_attribute("id", "isearch"); $img = html_a("javascript:toggle_tree('search')", $img); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mpw...@us...> - 2009-04-02 17:10:42
|
Revision: 3247 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3247&view=rev Author: mpwalsh8 Date: 2009-04-02 17:10:36 +0000 (Thu, 02 Apr 2009) Log Message: ----------- Fixed broken path to tree open and tree closed images within Javascript. 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 2009-04-02 14:23:44 UTC (rev 3246) +++ branches/BRANCH_2_X/phphtmllib/widgets/data_list/DefaultGUIDataList.inc 2009-04-02 17:10:36 UTC (rev 3247) @@ -1277,9 +1277,9 @@ */ function _search_javascript() { $js = "var tree_open = new Image();\n". - "tree_open.src = '/images/widgets/tree_open.gif';\n". + "tree_open.src = '" . PHPHTMLLIB_WIGDET_IMAGEPATH . "/tree_open.gif';\n". "var tree_closed = new Image();\n". - "tree_closed.src = '/images/widgets/tree_closed.gif';\n". + "tree_closed.src = '" . PHPHTMLLIB_WIGDET_IMAGEPATH . "/tree_closed.gif';\n". "function toggle_tree(id) {\n". "element = document.getElementById(id);\n". This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mpw...@us...> - 2012-03-09 11:41:14
|
Revision: 3551 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3551&view=rev Author: mpwalsh8 Date: 2012-03-09 11:41:08 +0000 (Fri, 09 Mar 2012) Log Message: ----------- Fixed problem with actionbar image for empty action bars. 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 2012-02-01 21:59:14 UTC (rev 3550) +++ branches/BRANCH_2_X/phphtmllib/widgets/data_list/DefaultGUIDataList.inc 2012-03-09 11:41:08 UTC (rev 3551) @@ -1060,7 +1060,8 @@ if ($col == "FIRST") { $td->set_tag_attribute("align", "left"); if ($this->_has_action_column("FIRST") && - $this->_datasource->get_total_rows()) { + ($this->_datasource->get_total_rows() || + $this->_show_empty_datalist_actionbar)) { $td->add(html_img($this->get_image_path()."/arrow_right.gif")); } else { $td->add(" "); @@ -1068,7 +1069,8 @@ } else { $td->set_tag_attribute("align", "right"); if ($this->_has_action_column("LAST") && - $this->_datasource->get_total_rows()) { + ($this->_datasource->get_total_rows() || + $this->_show_empty_datalist_actionbar)) { $td->add(html_img($this->get_image_path()."/arrow_left.gif")); } else { $td->add(" "); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mpw...@us...> - 2012-08-28 18:48:05
|
Revision: 3565 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3565&view=rev Author: mpwalsh8 Date: 2012-08-28 18:47:59 +0000 (Tue, 28 Aug 2012) Log Message: ----------- Added missing child constructor which broke the constructor chain in early PHP 5.3.x builds. 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 2012-08-28 18:47:32 UTC (rev 3564) +++ branches/BRANCH_2_X/phphtmllib/widgets/data_list/DefaultGUIDataList.inc 2012-08-28 18:47:59 UTC (rev 3565) @@ -1309,7 +1309,15 @@ return $js; } - + /** + * Constructor - needed for early PHP 5.3.x compatibility + * + * @param Parent Constructor + * @param array of Constructor Arguments + */ + function DefaultGUIDataList() { + call_user_func_array('parent::DataList', func_get_args()) ; + } } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mpw...@us...> - 2012-09-03 13:47:24
|
Revision: 3567 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3567&view=rev Author: mpwalsh8 Date: 2012-09-03 13:47:13 +0000 (Mon, 03 Sep 2012) Log Message: ----------- Updated PHP5.3 compatible constructor to play nice with PHP5.2.x. 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 2012-08-28 18:51:20 UTC (rev 3566) +++ branches/BRANCH_2_X/phphtmllib/widgets/data_list/DefaultGUIDataList.inc 2012-09-03 13:47:13 UTC (rev 3567) @@ -1316,7 +1316,8 @@ * @param array of Constructor Arguments */ function DefaultGUIDataList() { - call_user_func_array('parent::DataList', func_get_args()) ; + $args = func_get_args() ; + call_user_func_array(array('DataList', 'DataList'), $args) ; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |