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 .= ' ЧПУ: | ';
$output .= $this->url_item->show_form_field($_POST['url'], $this->prefix.$this->carusel_name, $id, $item['title']);
$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 .= ' '.$val.': | ';
$output .= ' |
';
continue;
}
// Выбор вида керамогранита
if($key == 'view_granite_id'){
$output .= ' '.$val.': | ';
$output .= ' |
';
continue;
}
// Выбор Фактуры
if($key == 'texture_id'){
$output .= ' '.$val.': | ';
$output .= ' |
';
continue;
}
// Выбор Страны
if($key == 'country_items_id'){
$output .= ' '.$val.': | ';
$output .= ' |
';
continue;
}
//Выбор цвета
if($key == 'color_id'){
$output .= ' '.$val.': | ';
$output .= ' ';
$colorer = ' ';
$color = ' ';
$color .= '';
}
$color .= ' |
';
continue;
}
// Раздeлитель
if($key == 'previous_owner') {
$output .= ''.$val.'
|
';
continue;
}
// Вспомогательные поля для храниения поискового индекса
if(($key == 'orm_search_name') || ($key == 'orm_search')) continue;
// Отступы SEO
if($key == 'seo_h1') $output .= 'SEO
|
';
if($key == 'img_alt') $output .= 'Изображение
|
';
if($item){
if($type){
$output .= ' '.$val.': | ';
$output .= self::getErrorForKey($key);
$output .= ' |
';
}else{
$output .= ' '.$val.': | ';
$output .= ' '.self::getErrorForKey($key).'';
$output .= ' |
';
}
}else{
if($type){
$output .= ' '.$val.': | ';
$output .= ' '.self::getErrorForKey($key);
$output .= ' |
';
}else{
$output .= ' '.$val.': | ';
$output .= ' '.self::getErrorForKey($key);
$output .= ' |
';
}
}
}
$output .= '
';
$output .= ' Изображение (Иделальный размер '.$this->img_ideal_width.' x '.$this->img_ideal_height.'):';
$output .= '