Skip to content

Commit

Permalink
remove unneseccey
Browse files Browse the repository at this point in the history
  • Loading branch information
hamidpeywasti committed May 4, 2015
1 parent ead20ab commit 1f98a73
Showing 1 changed file with 4 additions and 53 deletions.
57 changes: 4 additions & 53 deletions dca/tl_catalog_type.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'],
Expand All @@ -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 ''"
)
)
);
Expand All @@ -255,7 +206,7 @@ public function generateProductsRow($arrRow)
$strImage = \Image::getHtml(\Image::get($objImage->path, '80', '60', 'center_center'));
}

return '<div><div style="float:left; margin-right:10px;">'.$strImage.'</div>'. $arrRow['title'] . '<br /><span style="padding-left:3px;color:#b3b3b3;">کد: ' . $arrRow['code'] . '<br>قیمت: '. number_format($arrRow[price]) .' ریال</span></div>';
return '<div><div style="float:left; margin-right:10px;">'.$strImage.'</div>'. $arrRow['title'] . '<br /><span style="padding-left:3px;color:#b3b3b3;">کد: ' . $arrRow['model'] . '</span></div>';
}

public function toggleIcon($row, $href, $label, $title, $icon, $attributes)
Expand Down

0 comments on commit 1f98a73

Please sign in to comment.