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 16... Line 16...
16
// | Authors: Alexey Borzov <borz_off@cs.msu.su>                          |
16
// | Authors: Alexey Borzov <borz_off@cs.msu.su>                          |
17
// |          Bertrand Mansion <bmansion@mamasam.com>                     |
17
// |          Bertrand Mansion <bmansion@mamasam.com>                     |
18
// |          Thomas Schulz <ths@4bconsult.de>                            |
18
// |          Thomas Schulz <ths@4bconsult.de>                            |
19
// +----------------------------------------------------------------------+
19
// +----------------------------------------------------------------------+
20
//
20
//
21
// $Id: ArraySmarty.php,v 1.1 2005-03-30 08:50:33 jpm Exp $
21
// $Id: ArraySmarty.php,v 1.2 2005-09-20 17:01:22 ddelon Exp $
Line 22... Line 22...
22
 
22
 
Line 23... Line 23...
23
require_once 'HTML/QuickForm/Renderer/Array.php';
23
require_once 'HTML/QuickForm/Renderer/Array.php';
24
 
24
 
Line 169... Line 169...
169
        if ('group' == $ret['type']) {
169
        if ('group' == $ret['type']) {
170
            $ret['html'] = $element->toHtml();
170
            $ret['html'] = $element->toHtml();
171
            // we don't need the elements, see the array structure
171
            // we don't need the elements, see the array structure
172
            unset($ret['elements']);
172
            unset($ret['elements']);
173
        }
173
        }
174
        if (!empty($this->_required)){
174
        if (($required || $error) && !empty($this->_required)){
175
            $this->_renderRequired($ret['label'], $ret['html'], $required, $error);
175
            $this->_renderRequired($ret['label'], $ret['html'], $required, $error);
176
        }
176
        }
177
        if (!empty($this->_error)) {
177
        if ($error && !empty($this->_error)) {
178
            $this->_renderError($ret['label'], $ret['html'], $error);
178
            $this->_renderError($ret['label'], $ret['html'], $error);
179
            $ret['error'] = $error;
179
            $ret['error'] = $error;
180
        }
180
        }
181
        // create keys for elements grouped by native group or name
181
        // create keys for elements grouped by native group or name
182
        if (strstr($ret['name'], '[') or $this->_currentGroup) {
182
        if (strstr($ret['name'], '[') or $this->_currentGroup) {