2012-11-08 7 views

Odpowiedz

18
$fieldset->addField('date', 'date', array(
    'name'    => 'date', 
    'label'    => Mage::helper('your_module_name')->__('Date'), 
    'after_element_html' => '<small>Comments</small>', 
    'tabindex'   => 1, 
    'image'    => $this->getSkinUrl('images/grid-cal.gif'), 
    'format'    => Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT) , 
    'value'    => date(Mage::app()->getLocale()->getDateStrFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT), 
            strtotime('next weekday')) 
)); 
+0

Czy mogę zapytać, w jaki sposób mogę dodać wiele dat? Może trochę dodać przycisk, aby następnie dodać inną datę? Schemat bazy danych, może coś w rodzaju szeregowanej tablicy? –

Powiązane problemy