From 1f98a73ae104b9d2460838e967ed28d6eda2234d Mon Sep 17 00:00:00 2001 From: hamidabbaszadeh Date: Mon, 4 May 2015 20:06:33 +0430 Subject: [PATCH] remove unneseccey --- dca/tl_catalog_type.php | 57 +++-------------------------------------- 1 file changed, 4 insertions(+), 53 deletions(-) diff --git a/dca/tl_catalog_type.php b/dca/tl_catalog_type.php index d055312..69a7ef6 100644 --- a/dca/tl_catalog_type.php +++ b/dca/tl_catalog_type.php @@ -100,15 +100,10 @@ // Palettes 'palettes' => array ( - '__selector__' => array('published'), - 'default' => '{title_legend},title,model,date;{image_legend},singleSRC;{spec_legend},spec;{description_legend:hide},description;{publish_legend},published' + 'default' => '{title_legend},title,model,date;{image_legend},singleSRC;{description_legend:hide},description;{publish_legend},published' ), - // Subpalettes - 'subpalettes' => array - ( - 'published' => 'start,stop' - ), + // Fields 'fields' => array @@ -162,34 +157,6 @@ 'eval' => array('rgxp'=>'date', 'doNotCopy'=>true, 'datepicker'=>true, 'tl_class'=>'w50 wizard'), 'sql' => "int(10) unsigned NOT NULL default '0'" ), - 'spec' => array - ( - 'label' => &$GLOBALS['TL_LANG']['tl_catalog_type']['spec'], - 'exclude' => true, - 'sorting' => true, - 'inputType' => 'multiColumnWizard', - 'eval' => array - ( - 'columnFields' => array - ( - 'spectitle' => array - ( - 'label' => &$GLOBALS['TL_LANG']['tl_catalog_type']['spectitle'], - 'exclude' => true, - 'inputType' => 'text', - 'eval' => array('style'=>'width:280px'), - ), - 'specvalue' => array - ( - 'label' => &$GLOBALS['TL_LANG']['tl_catalog_type']['specvalue'], - 'exclude' => true, - 'inputType' => 'text', - 'eval' => array('style'=>'width:280px'), - ) - ) - ), - 'sql' => "blob NULL", - ), 'singleSRC' => array ( 'label' => &$GLOBALS['TL_LANG']['tl_catalog_type']['singleSRC'], @@ -213,24 +180,8 @@ 'filter' => true, 'flag' => 1, 'inputType' => 'checkbox', - 'eval' => array('doNotCopy'=>true,'submitOnChange'=>true), + 'eval' => array('doNotCopy'=>true), 'sql' => "char(1) NOT NULL default ''" - ), - 'start' => array - ( - 'label' => &$GLOBALS['TL_LANG']['tl_catalog_type']['start'], - 'exclude' => true, - 'inputType' => 'text', - 'eval' => array('rgxp'=>'datim', 'datepicker'=>true, 'tl_class'=>'w50 wizard'), - 'sql' => "varchar(10) NOT NULL default ''" - ), - 'stop' => array - ( - 'label' => &$GLOBALS['TL_LANG']['tl_catalog_type']['stop'], - 'exclude' => true, - 'inputType' => 'text', - 'eval' => array('rgxp'=>'datim', 'datepicker'=>true, 'tl_class'=>'w50 wizard'), - 'sql' => "varchar(10) NOT NULL default ''" ) ) ); @@ -255,7 +206,7 @@ public function generateProductsRow($arrRow) $strImage = \Image::getHtml(\Image::get($objImage->path, '80', '60', 'center_center')); } - return '
'.$strImage.'
'. $arrRow['title'] . '
کد: ' . $arrRow['code'] . '
قیمت: '. number_format($arrRow[price]) .' ریال
'; + return '
'.$strImage.'
'. $arrRow['title'] . '
کد: ' . $arrRow['model'] . '
'; } public function toggleIcon($row, $href, $label, $title, $icon, $attributes)