Пример #1
0
 public function renderAttribute($item, Fields $field)
 {
     $fieldName = preg_replace('/^formItem_/u', '', $item['name']);
     $html = X2Html::openTag('div', array('class' => "formInputBox"));
     if (isset($this->idArray)) {
         $html .= X2Model::renderMergeInput($this->modelName, $this->idArray, $field);
     } else {
         if (isset($this->specialFields[$fieldName])) {
             $html .= $this->specialFields[$fieldName];
         } else {
             $html .= $this->model->renderInput($fieldName, array('tabindex' => $item['tabindex'], 'disabled' => $item['readOnly'], 'style' => $item['height'], 'id' => $this->namespace . X2Html::resolveId($this->model, $fieldName)));
         }
     }
     $html .= '</div>';
     $html .= $this->renderExtra($field);
     return $html;
 }