Changeset 3610
- Timestamp:
- 01/22/07 01:42:07 (6 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/quickform/amp_conf/htdocs/admin/common/HTML/QuickForm/Renderer/Tableless.php
r3578 r3610 136 136 $name = $header->getName(); 137 137 $id = empty($name) ? '' : ' id="' . $name . '"'; 138 $title = $header->toHtml(); 138 139 if (!empty($name) && isset($this->_templates[$name])) { 139 $header_html = str_replace('{header}', $ header->toHtml(), $this->_templates[$name]);140 } else { 141 $header_html = str_replace('{header}', $ header->toHtml(), $this->_headerTemplate);140 $header_html = str_replace('{header}', $title, $this->_templates[$name]); 141 } else { 142 $header_html = str_replace('{header}', $title, $this->_headerTemplate); 142 143 } 143 144 if ($this->_fieldsetsOpen > 0) { … … 145 146 $this->_fieldsetsOpen--; 146 147 } 147 $openFieldsetTemplate = str_replace('{id}', $id, $this->_openFieldsetTemplate); 148 $this->_html .= $openFieldsetTemplate . $header_html; 148 if (empty($title)) { 149 $this->_html .= $this->_openHiddenFieldsetTemplate; 150 } else { 151 $openFieldsetTemplate = str_replace('{id}', $id, $this->_openFieldsetTemplate); 152 $this->_html .= $openFieldsetTemplate . $header_html; 153 } 149 154 $this->_fieldsetsOpen++; 150 155 } // end func renderHeader
