cvs: php4 /pear/HTML Form.php

From: Date: Sat, 15 Sep 2001 08:57:12 +0000
Subject: cvs: php4 /pear/HTML Form.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-851@lists.php.net to get a copy of this message
mj Sat Sep 15 04:57:12 2001 EDT Modified files: /php4/pear/HTML Form.php Log: * also pass extra attributes to displaySelectRow() and returnSelectRow (proposed by Wolfram Kriesing) Index: php4/pear/HTML/Form.php diff -u php4/pear/HTML/Form.php:1.15 php4/pear/HTML/Form.php:1.16 --- php4/pear/HTML/Form.php:1.15 Sun Sep 2 00:42:20 2001 +++ php4/pear/HTML/Form.php Sat Sep 15 04:57:12 2001 @@ -17,7 +17,7 @@ // | Urs Gehrig <urs@circle.ch> | // +----------------------------------------------------------------------+ // -// $Id: Form.php,v 1.15 2001/09/02 04:42:20 ssb Exp $ +// $Id: Form.php,v 1.16 2001/09/15 08:57:12 mj Exp $ // // HTML form utility functions. // @@ -313,10 +313,10 @@ // {{{ displaySelectRow() function displaySelectRow($name, $title, &$entries, $default = '', - $size = 1, $blank = '', $multiple = false) + $size = 1, $blank = '', $multiple = false, $attribs = '') { print $this->returnSelectRow($name, $title, $entries, $default, $size, - $blank, $multiple); + $blank, $multiple, $attribs); } // }}} @@ -526,12 +526,12 @@ // {{{ returnSelectRow() function returnSelectRow($name, $title, &$entries, $default = '', $size = 1, - $blank = '', $multiple = false) + $blank = '', $multiple = false, $attribs = '') { $str = " <tr>\n"; $str .= " <th align=\"right\">$title:</th>\n"; $str .= " <td>\n"; - $str .= $this->returnSelect($name, &$entries, $default, $size, $blank, $multiple); + $str .= $this->returnSelect($name, &$entries, $default, $size, $blank, $multiple, $attribs); $str .= " </td>\n"; $str .= " </tr>\n";

« previous php.pear.cvs (#851) next »