function show_form($item = null, $output = '', $id = null){ $output .= ' '; $output .= ' '; //Генерация Url if($this->url_item && $id && $item['title']){ $url = $this->url_item->getUrlForModuleAndModuleId($this->prefix.$this->carusel_name, $id); $output .= ' '; $output .= ''; } foreach($this->date_arr as $key=>$val){ $class_input = ' class="span12" '; if( in_array($key, array("longtxt1", "longtxt2", "longtxt2", "owner_completeness", "owner_descr"))) $class_input = ' class="ckeditor" '; $type = ''; $create_val = ''; if( in_array($key, array("color"))) { $type = 'color'; $create_val = '#acb1b4';} if( in_array($key, array("date", "owner_date"))) { $type = 'date'; } if( in_array($key, array("price"))){ $type = 'text'; $class_input = ' class="span3 price_input" '; $create_val = 0;} if( in_array($key, array("oldprice"))){ $type = 'text'; $class_input = ' class="span3" '; $create_val = 0; } if( in_array($key, array("article", "title", "certificate"))) { $type = 'text'; } // Дерево категорий if($key == 'cat_id'){ $output .= ' '; $output .= ' '; continue; } // Выбор вида керамогранита if($key == 'view_granite_id'){ $output .= ' '; $output .= ' '; continue; } // Выбор Фактуры if($key == 'texture_id'){ $output .= ' '; $output .= ' '; continue; } // Выбор Страны if($key == 'country_items_id'){ $output .= ' '; $output .= ' '; continue; } //Выбор цвета if($key == 'color_id'){ $output .= ' '; $output .= ' '; continue; } // Раздeлитель if($key == 'previous_owner') { $output .= ''; continue; } // Вспомогательные поля для храниения поискового индекса if(($key == 'orm_search_name') || ($key == 'orm_search')) continue; // Отступы SEO if($key == 'seo_h1') $output .= ''; if($key == 'img_alt') $output .= ''; if($item){ if($type){ $output .= ' '; $output .= self::getErrorForKey($key); $output .= ' '; }else{ $output .= ' '; $output .= ' '; } }else{ if($type){ $output .= ' '; $output .= ' '; }else{ $output .= ' '; $output .= ' '; } } } $output .= '
Посмотреть на сайте
ЧПУ: '; $output .= $this->url_item->show_form_field($_POST['url'], $this->prefix.$this->carusel_name, $id, $item['title']); $output .= '
'.$val.':
'.$val.':
'.$val.':
'.$val.':
'.$val.': '; $colorer = '
'; $color = ''; $colorer .= "
"; $colorer .= ' '; $output .= $color; $output .= $colorer; $output .= '
'.$val.'
SEO
Изображение
'.$val.':
'.$val.': '.self::getErrorForKey($key).''; $output .= '
'.$val.': '.self::getErrorForKey($key); $output .= '
'.$val.': '.self::getErrorForKey($key); $output .= '
'; $output .= ' Изображение (Иделальный размер '.$this->img_ideal_width.' x '.$this->img_ideal_height.'):'; $output .= '

'; return $output;