diff --git a/app/code/community/Magestore/Bannerslider/Block/Adminhtml/Banner/Edit/Tab/Form.php b/app/code/community/Magestore/Bannerslider/Block/Adminhtml/Banner/Edit/Tab/Form.php index f5c7b36..c6952a3 100644 --- a/app/code/community/Magestore/Bannerslider/Block/Adminhtml/Banner/Edit/Tab/Form.php +++ b/app/code/community/Magestore/Bannerslider/Block/Adminhtml/Banner/Edit/Tab/Form.php @@ -147,7 +147,21 @@ protected function _prepareForm() { 'name' => 'end_time', 'time' => true )); */ - + $fieldset->addField('mobile', 'select', array( + 'label' => 'Mobile', + 'class' => 'required-entry', + 'name' => 'mobile', + 'values' => array( + array( + 'value' => 'no', + 'label' => 'No', + ), + array( + 'value' => 'yes', + 'label' => 'Yes', + ), + ), + )); try { $data['start_time']=date('Y-m-d H:i:s',Mage::getModel('core/date')->timestamp(strtotime($data['start_time']))); $data['end_time']=date('Y-m-d H:i:s',Mage::getModel('core/date')->timestamp(strtotime($data['end_time']))); diff --git a/app/code/community/Magestore/Bannerslider/sql/bannerslider_setup/mysql4-install-3.0.0.php b/app/code/community/Magestore/Bannerslider/sql/bannerslider_setup/mysql4-install-3.0.0.php index 1f24694..b07e19b 100644 --- a/app/code/community/Magestore/Bannerslider/sql/bannerslider_setup/mysql4-install-3.0.0.php +++ b/app/code/community/Magestore/Bannerslider/sql/bannerslider_setup/mysql4-install-3.0.0.php @@ -71,6 +71,7 @@ `tartget` int(11) NULL default '0', `image` varchar(255) NULL, `image_alt` varchar(255) NULL, + `mobile` varchar(255) NULL, `width` float(10) NULL, `height` float(10) NULL, `start_time` datetime NULL,