Calendar magento将日历日期选择器添加到管理中的自定义表单(自定义模块)
我已经从-Modulecreator创建了自定义模块。Calendar magento将日历日期选择器添加到管理中的自定义表单(自定义模块),calendar,magento,Calendar,Magento,我已经从-Modulecreator创建了自定义模块。现在我想在我的自定义表单中添加日历日期选择器字段-(在管理端)。类似于从日期到日期 从日期选择器中选择的值应在提交时添加到数据库中。谢谢。$fieldset->addField('date','date',array( $fieldset->addField('date', 'date', array( 'name' => 'date', 'label' =&g
现在我想在我的自定义表单中添加日历日期选择器字段-(在管理端)。
类似于
从日期
到日期
从日期选择器中选择的值应在提交时添加到数据库中。
谢谢。
$fieldset->addField('date','date',array(
$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') )
));
“名称”=>“日期”,
'label'=>Mage::helper('your_module_name')->(日期),
'after_element_html'=>'Comments',
“tabindex”=>1,
'image'=>this->getSkinUrl('images/grid cal.gif'),
'format'=>Mage::app()->getLocale()->getDateFormat(Mage\u Core\u Model\u Locale::format\u TYPE\u SHORT),
“值”=>date(Mage::app()->getLocale()->getDateStrFormat(Mage\u Core\u Model\u Locale::FORMAT\u TYPE\u SHORT),
strtotime(“下一个工作日”)
));
有了这些,我可以问一下如何添加多个日期吗?也许一个小小的“添加”按钮,然后添加另一个日期?数据库模式,可能类似于序列化数组?