Subversion Repositories Applications.papyrus

Rev

Rev 320 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 320 Rev 443
Line 15... Line 15...
15
// +----------------------------------------------------------------------+
15
// +----------------------------------------------------------------------+
16
// | Authors: Adam Daniel <adaniel1@eesus.jnj.com>                        |
16
// | Authors: Adam Daniel <adaniel1@eesus.jnj.com>                        |
17
// |          Bertrand Mansion <bmansion@mamasam.com>                     |
17
// |          Bertrand Mansion <bmansion@mamasam.com>                     |
18
// +----------------------------------------------------------------------+
18
// +----------------------------------------------------------------------+
19
//
19
//
20
// $Id: hiddenselect.php,v 1.1 2005-03-30 08:50:33 jpm Exp $
20
// $Id: hiddenselect.php,v 1.2 2005-09-20 17:01:22 ddelon Exp $
Line 21... Line 21...
21
 
21
 
Line 22... Line 22...
22
require_once('HTML/QuickForm/select.php');
22
require_once('HTML/QuickForm/select.php');
23
 
23
 
Line 77... Line 77...
77
        $strHtml = '';
77
        $strHtml = '';
Line 78... Line 78...
78
 
78
 
79
        foreach ($this->_values as $key => $val) {
79
        foreach ($this->_values as $key => $val) {
80
            for ($i = 0, $optCount = count($this->_options); $i < $optCount; $i++) {
80
            for ($i = 0, $optCount = count($this->_options); $i < $optCount; $i++) {
81
                if ($val == $this->_options[$i]['attr']['value']) {
81
                if ($val == $this->_options[$i]['attr']['value']) {
-
 
82
                    $strHtml .= $tabs . '<input' . $this->_getAttrString(array(
-
 
83
                        'type'  => 'hidden',
-
 
84
                        'name'  => $name,
-
 
85
                        'value' => $val
82
                    $strHtml .= $tabs . '<input type="hidden" name="' . $name . '" value="' . $val . '" />' . "\n";
86
                    )) . " />\n" ;
83
                }
87
                }
84
            }
88
            }
Line 85... Line 89...
85
        }
89
        }