2012-11-08 32 views

Trả lời

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

Với điều này, tôi có thể hỏi tôi làm cách nào để thêm nhiều ngày? Có thể một nút thêm nhỏ, sau đó thêm một ngày khác? Sơ đồ cơ sở dữ liệu, có thể giống như một mảng được tuần tự hóa? –

Các vấn đề liên quan