Mks_Responsivebannerslider - Version 8.1.2

Version Notes

Solved jQuery conflict issue.

Download this release

Release Info

Developer mukesh kumar saini
Extension Mks_Responsivebannerslider
Version 8.1.2
Comparing to
See all releases


Code changes from version 8.1.1 to 8.1.2

Files changed (72) hide show
  1. app/code/community/Mks/Allreviews/Block/Index.php +57 -0
  2. app/code/community/Mks/Allreviews/Helper/Data.php +5 -0
  3. app/code/community/Mks/Allreviews/controllers/IndexController.php +22 -0
  4. app/code/community/Mks/Allreviews/etc/adminhtml.xml +23 -0
  5. app/code/community/Mks/Allreviews/etc/config.xml +38 -0
  6. app/code/community/Mks/Allreviews/etc/system.xml +152 -0
  7. app/code/community/Mks/Bannerslider/Block/Adminhtml/Bannersliderbackend.php +5 -0
  8. app/code/community/Mks/Bannerslider/Block/Adminhtml/Imagegallery.php +17 -0
  9. app/code/community/Mks/Bannerslider/Block/Adminhtml/Imagegallery/Edit.php +44 -0
  10. app/code/community/Mks/Bannerslider/Block/Adminhtml/Imagegallery/Edit/Form.php +17 -0
  11. app/code/community/Mks/Bannerslider/Block/Adminhtml/Imagegallery/Edit/Tab/Form.php +48 -0
  12. app/code/community/Mks/Bannerslider/Block/Adminhtml/Imagegallery/Edit/Tabs.php +21 -0
  13. app/code/community/Mks/Bannerslider/Block/Adminhtml/Imagegallery/Grid.php +90 -0
  14. app/code/community/Mks/Bannerslider/Block/Index.php +22 -0
  15. app/code/community/Mks/Bannerslider/Helper/Data.php +5 -0
  16. app/code/community/Mks/Bannerslider/Model/Imagegallery.php +12 -0
  17. app/code/community/Mks/Bannerslider/Model/Mysql4/Imagegallery.php +8 -0
  18. app/code/community/Mks/Bannerslider/Model/Mysql4/Imagegallery/Collection.php +12 -0
  19. app/code/community/Mks/Bannerslider/controllers/Adminhtml/BannersliderbackendController.php +10 -0
  20. app/code/community/Mks/Bannerslider/controllers/Adminhtml/ImagegalleryController.php +209 -0
  21. app/code/community/Mks/Bannerslider/controllers/IndexController.php +22 -0
  22. app/code/community/Mks/Bannerslider/etc/adminhtml.xml +23 -0
  23. app/code/community/Mks/Bannerslider/etc/config.xml +134 -0
  24. app/code/community/Mks/Bannerslider/etc/system.xml +59 -0
  25. app/code/community/Mks/Bannerslider/sql/bannerslider_setup/mysql4-install-8.1.1.php +37 -0
  26. app/code/community/Mks/OrderCancel/Block/Order/History.php +34 -0
  27. app/code/community/Mks/OrderCancel/Block/Order/History.php~ +34 -0
  28. app/code/community/Mks/OrderCancel/Data.php +20 -0
  29. app/code/community/Mks/OrderCancel/Data/Data.php +20 -0
  30. app/code/community/Mks/OrderCancel/Data/Data.php~ +20 -0
  31. app/code/community/Mks/OrderCancel/controllers/OrderController.php +40 -0
  32. app/code/community/Mks/OrderCancel/controllers/OrderController.php~ +40 -0
  33. app/code/community/Mks/OrderCancel/etc/config.xml +61 -0
  34. app/code/community/Mks/OrderCancel/etc/config.xml~ +61 -0
  35. app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproduct.php +17 -0
  36. app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproduct/Edit.php +44 -0
  37. app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproduct/Edit/Form.php +17 -0
  38. app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproduct/Edit/Tab/Form.php +56 -0
  39. app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproduct/Edit/Tabs.php +21 -0
  40. app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproduct/Grid.php +94 -0
  41. app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproductbackend.php +5 -0
  42. app/code/community/Mks/Rotateproduct/Helper/Data.php +5 -0
  43. app/code/community/Mks/Rotateproduct/Model/Mysql4/Rotateproduct.php +8 -0
  44. app/code/community/Mks/Rotateproduct/Model/Mysql4/Rotateproduct/Collection.php +12 -0
  45. app/code/community/Mks/Rotateproduct/Model/Rotateproduct.php +12 -0
  46. app/code/community/Mks/Rotateproduct/controllers/Adminhtml/RotateproductController.php +209 -0
  47. app/code/community/Mks/Rotateproduct/controllers/Adminhtml/RotateproductbackendController.php +10 -0
  48. app/code/community/Mks/Rotateproduct/etc/adminhtml.xml +23 -0
  49. app/code/community/Mks/Rotateproduct/etc/config.xml +116 -0
  50. app/code/community/Mks/Rotateproduct/etc/system.xml +78 -0
  51. app/code/community/Mks/Rotateproduct/sql/rotateproduct_setup/mysql4-install-8.1.1.php +14 -0
  52. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator.php +17 -0
  53. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit.php +44 -0
  54. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit/Form.php +17 -0
  55. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit/Tab/Form.php +111 -0
  56. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit/Tabs.php +21 -0
  57. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Grid.php +130 -0
  58. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocatorbackend.php +5 -0
  59. app/code/community/Mks/Storelocator/Block/Index.php +60 -0
  60. app/code/community/Mks/Storelocator/Helper/Data.php +5 -0
  61. app/code/community/Mks/Storelocator/Model/Mysql4/Storelocator.php +8 -0
  62. app/code/community/Mks/Storelocator/Model/Mysql4/Storelocator/Collection.php +12 -0
  63. app/code/community/Mks/Storelocator/Model/Storelocator.php +12 -0
  64. app/code/community/Mks/Storelocator/controllers/Adminhtml/StorelocatorController.php +209 -0
  65. app/code/community/Mks/Storelocator/controllers/Adminhtml/StorelocatorbackendController.php +10 -0
  66. app/code/community/Mks/Storelocator/controllers/IndexController.php +22 -0
  67. app/code/community/Mks/Storelocator/etc/adminhtml.xml +23 -0
  68. app/code/community/Mks/Storelocator/etc/config.xml +134 -0
  69. app/code/community/Mks/Storelocator/etc/system.xml +159 -0
  70. app/code/community/Mks/Storelocator/sql/storelocator_setup/mysql4-install-8.1.1.php +21 -0
  71. app/design/frontend/base/default/template/responsivebannerslider/index.phtml +11 -7
  72. package.xml +5 -8
app/code/community/Mks/Allreviews/Block/Index.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Allreviews_Block_Index extends Mage_Core_Block_Template{
3
+
4
+
5
+ public function getAllreviewsStatus()
6
+ {
7
+ return Mage::getStoreConfig('reviewssection/reviewsgroup/status',Mage::app()->getStore());
8
+ }
9
+
10
+ public function getAllreviewsNumberofreviews()
11
+ {
12
+ return Mage::getStoreConfig('reviewssection/reviewsgroupsetting/numberofreviews',Mage::app()->getStore());
13
+ }
14
+ public function getAllreviewsNumberofcolumns()
15
+ {
16
+ return Mage::getStoreConfig('reviewssection/reviewsgroupsetting/numberofcolumns',Mage::app()->getStore());
17
+ }
18
+ public function getAllreviewsDisplayproductimages()
19
+ {
20
+ return Mage::getStoreConfig('reviewssection/reviewsgroupsetting/displayproductimages',Mage::app()->getStore());
21
+ }
22
+ public function getAllreviewsEnableproducturl()
23
+ {
24
+ return Mage::getStoreConfig('reviewssection/reviewsgroupsetting/enableproducturl',Mage::app()->getStore());
25
+ }
26
+ public function getAllreviewsDisplayreviewstitle()
27
+ {
28
+ return Mage::getStoreConfig('reviewssection/reviewsgroupsetting/displayreviewstitle',Mage::app()->getStore());
29
+ }
30
+ public function getAllreviewsDisplayreviewsdate()
31
+ {
32
+ return Mage::getStoreConfig('reviewssection/reviewsgroupsetting/displayreviewsdate',Mage::app()->getStore());
33
+ }
34
+ public function getAllreviewsDisplayreviewsstars()
35
+ {
36
+ return Mage::getStoreConfig('reviewssection/reviewsgroupsetting/displayreviewsstars',Mage::app()->getStore());
37
+ }
38
+ public function getAllreviewsDisplayreviewscomments()
39
+ {
40
+ return Mage::getStoreConfig('reviewssection/reviewsgroupsetting/displayreviewscomments',Mage::app()->getStore());
41
+ }
42
+ public function getAllreviewsFilteringtab()
43
+ {
44
+ return Mage::getStoreConfig('reviewssection/reviewsgroupsetting/filteringtab',Mage::app()->getStore());
45
+ }
46
+
47
+ public function getAllreviewsshowreview()
48
+ {
49
+ return Mage::getStoreConfig('reviewssection/reviewsgroupsetting/showreview',Mage::app()->getStore());
50
+ }
51
+ public function getAllreviewsdisplaynickname()
52
+ {
53
+ return Mage::getStoreConfig('reviewssection/reviewsgroupsetting/displaynickname',Mage::app()->getStore());
54
+ }
55
+
56
+
57
+ }
app/code/community/Mks/Allreviews/Helper/Data.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+ class Mks_Allreviews_Helper_Data extends Mage_Core_Helper_Abstract
3
+ {
4
+ }
5
+
app/code/community/Mks/Allreviews/controllers/IndexController.php ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Allreviews_IndexController extends Mage_Core_Controller_Front_Action{
3
+ public function IndexAction() {
4
+
5
+ $this->loadLayout();
6
+ $this->getLayout()->getBlock("head")->setTitle($this->__("Reviews"));
7
+ $breadcrumbs = $this->getLayout()->getBlock("breadcrumbs");
8
+ $breadcrumbs->addCrumb("home", array(
9
+ "label" => $this->__("Home Page"),
10
+ "title" => $this->__("Home Page"),
11
+ "link" => Mage::getBaseUrl()
12
+ ));
13
+
14
+ $breadcrumbs->addCrumb("reviews", array(
15
+ "label" => $this->__("Reviews"),
16
+ "title" => $this->__("Reviews")
17
+ ));
18
+
19
+ $this->renderLayout();
20
+
21
+ }
22
+ }
app/code/community/Mks/Allreviews/etc/adminhtml.xml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <acl>
4
+ <resources>
5
+ <admin>
6
+ <children>
7
+ <system>
8
+ <children>
9
+ <config>
10
+ <children>
11
+ <reviewssection translate="title" module="allreviews">
12
+ <title>General Setting Section</title>
13
+ <sort_order>0</sort_order>
14
+ </reviewssection>
15
+ </children>
16
+ </config>
17
+ </children>
18
+ </system>
19
+ </children>
20
+ </admin>
21
+ </resources>
22
+ </acl>
23
+ </config>
app/code/community/Mks/Allreviews/etc/config.xml ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Mks_Allreviews>
5
+ <version>8.1.1</version>
6
+ </Mks_Allreviews>
7
+ </modules>
8
+ <frontend>
9
+ <routers>
10
+ <allreviews>
11
+ <use>standard</use>
12
+ <args>
13
+ <module>Mks_Allreviews</module>
14
+ <frontName>allreviews</frontName>
15
+ </args>
16
+ </allreviews>
17
+ </routers>
18
+ <layout>
19
+ <updates>
20
+ <allreviews>
21
+ <file>allreviews.xml</file>
22
+ </allreviews>
23
+ </updates>
24
+ </layout>
25
+ </frontend>
26
+ <global>
27
+ <helpers>
28
+ <allreviews>
29
+ <class>Mks_Allreviews_Helper</class>
30
+ </allreviews>
31
+ </helpers>
32
+ <blocks>
33
+ <allreviews>
34
+ <class>Mks_Allreviews_Block</class>
35
+ </allreviews>
36
+ </blocks>
37
+ </global>
38
+ </config>
app/code/community/Mks/Allreviews/etc/system.xml ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <reviewstab translate="label" module="allreviews">
5
+ <label>Mks All Reviews </label>
6
+ <sort_order>0</sort_order>
7
+ </reviewstab>
8
+ </tabs>
9
+ <sections>
10
+ <reviewssection translate="label" module="allreviews">
11
+ <label>General Setting</label>
12
+ <tab>reviewstab</tab>
13
+ <frontend_type>text</frontend_type>
14
+ <sort_order>0</sort_order>
15
+ <show_in_default>1</show_in_default>
16
+ <show_in_website>1</show_in_website>
17
+ <show_in_store>1</show_in_store>
18
+ <groups>
19
+ <reviewsgroup translate="label">
20
+ <label>Status Setting</label>
21
+ <frontend_type>text</frontend_type>
22
+ <sort_order>0</sort_order>
23
+ <show_in_default>1</show_in_default>
24
+ <show_in_website>1</show_in_website>
25
+ <show_in_store>1</show_in_store>
26
+ <fields>
27
+ <status translate="label">
28
+ <label>Status</label>
29
+ <frontend_type>select</frontend_type>
30
+ <source_model>adminhtml/system_config_source_yesno</source_model>
31
+ <sort_order>0</sort_order>
32
+ <show_in_default>1</show_in_default>
33
+ <show_in_website>1</show_in_website>
34
+ <show_in_store>1</show_in_store>
35
+ </status>
36
+ </fields>
37
+ </reviewsgroup>
38
+ <reviewsgroupsetting translate="label">
39
+ <label>Configuration Setting</label>
40
+ <frontend_type>text</frontend_type>
41
+ <sort_order>1</sort_order>
42
+ <show_in_default>1</show_in_default>
43
+ <show_in_website>1</show_in_website>
44
+ <show_in_store>1</show_in_store>
45
+ <fields>
46
+ <numberofreviews translate="label">
47
+ <label>Number of reviews</label>
48
+ <frontend_type>text</frontend_type>
49
+ <sort_order>0</sort_order>
50
+ <show_in_default>1</show_in_default>
51
+ <show_in_website>1</show_in_website>
52
+ <show_in_store>1</show_in_store>
53
+ <comment>Example :- 12,15,18,21,24.....</comment>
54
+ </numberofreviews>
55
+ <numberofcolumns translate="label">
56
+ <label>Number of columns</label>
57
+ <frontend_type>text</frontend_type>
58
+ <sort_order>1</sort_order>
59
+ <show_in_default>1</show_in_default>
60
+ <show_in_website>1</show_in_website>
61
+ <show_in_store>1</show_in_store>
62
+ <comment>Example :- 3,4,5,6.......</comment>
63
+ </numberofcolumns>
64
+ <displayproductimages translate="label">
65
+ <label>Display Product Images</label>
66
+ <frontend_type>select</frontend_type>
67
+ <source_model>adminhtml/system_config_source_yesno</source_model>
68
+ <sort_order>2</sort_order>
69
+ <show_in_default>1</show_in_default>
70
+ <show_in_website>1</show_in_website>
71
+ <show_in_store>1</show_in_store>
72
+ </displayproductimages>
73
+ <enableproducturl translate="label">
74
+ <label>Enable Product URL</label>
75
+ <frontend_type>select</frontend_type>
76
+ <source_model>adminhtml/system_config_source_yesno</source_model>
77
+ <sort_order>3</sort_order>
78
+ <show_in_default>1</show_in_default>
79
+ <show_in_website>1</show_in_website>
80
+ <show_in_store>1</show_in_store>
81
+ </enableproducturl>
82
+ <displayreviewstitle translate="label">
83
+ <label>Display Reviews Title</label>
84
+ <frontend_type>select</frontend_type>
85
+ <source_model>adminhtml/system_config_source_yesno</source_model>
86
+ <sort_order>4</sort_order>
87
+ <show_in_default>1</show_in_default>
88
+ <show_in_website>1</show_in_website>
89
+ <show_in_store>1</show_in_store>
90
+ </displayreviewstitle>
91
+ <displayreviewsdate translate="label">
92
+ <label>Display Reviews Date</label>
93
+ <frontend_type>select</frontend_type>
94
+ <source_model>adminhtml/system_config_source_yesno</source_model>
95
+ <sort_order>5</sort_order>
96
+ <show_in_default>1</show_in_default>
97
+ <show_in_website>1</show_in_website>
98
+ <show_in_store>1</show_in_store>
99
+ </displayreviewsdate>
100
+ <displayreviewsstars translate="label">
101
+ <label>Display Reviews Stars</label>
102
+ <frontend_type>select</frontend_type>
103
+ <source_model>adminhtml/system_config_source_yesno</source_model>
104
+ <sort_order>6</sort_order>
105
+ <show_in_default>1</show_in_default>
106
+ <show_in_website>1</show_in_website>
107
+ <show_in_store>1</show_in_store>
108
+ </displayreviewsstars>
109
+ <displayreviewscomments translate="label">
110
+ <label>Display Reviews Comment's</label>
111
+ <frontend_type>select</frontend_type>
112
+ <source_model>adminhtml/system_config_source_yesno</source_model>
113
+ <sort_order>7</sort_order>
114
+ <show_in_default>1</show_in_default>
115
+ <show_in_website>1</show_in_website>
116
+ <show_in_store>1</show_in_store>
117
+ </displayreviewscomments>
118
+ <displaynickname translate="label">
119
+ <label>Display Reviews Nickname</label>
120
+ <frontend_type>select</frontend_type>
121
+ <source_model>adminhtml/system_config_source_yesno</source_model>
122
+ <sort_order>8</sort_order>
123
+ <show_in_default>1</show_in_default>
124
+ <show_in_website>1</show_in_website>
125
+ <show_in_store>1</show_in_store>
126
+ </displaynickname>
127
+ <filteringtab translate="label">
128
+ <label>Filtering Tab</label>
129
+ <frontend_type>select</frontend_type>
130
+ <source_model>adminhtml/system_config_source_yesno</source_model>
131
+ <sort_order>9</sort_order>
132
+ <show_in_default>1</show_in_default>
133
+ <show_in_website>1</show_in_website>
134
+ <show_in_store>1</show_in_store>
135
+ </filteringtab>
136
+
137
+
138
+ <showreview translate="label">
139
+ <label>Show Review </label>
140
+ <frontend_type>text</frontend_type>
141
+ <sort_order>10</sort_order>
142
+ <show_in_default>1</show_in_default>
143
+ <show_in_website>1</show_in_website>
144
+ <show_in_store>1</show_in_store>
145
+ <comment>Example :- Average,Individual</comment>
146
+ </showreview>
147
+ </fields>
148
+ </reviewsgroupsetting>
149
+ </groups>
150
+ </reviewssection>
151
+ </sections>
152
+ </config>
app/code/community/Mks/Bannerslider/Block/Adminhtml/Bannersliderbackend.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+
3
+ class Mks_Bannerslider_Block_Adminhtml_Bannersliderbackend extends Mage_Adminhtml_Block_Template {
4
+
5
+ }
app/code/community/Mks/Bannerslider/Block/Adminhtml/Imagegallery.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ class Mks_Bannerslider_Block_Adminhtml_Imagegallery extends Mage_Adminhtml_Block_Widget_Grid_Container{
5
+
6
+ public function __construct()
7
+ {
8
+
9
+ $this->_controller = "adminhtml_imagegallery";
10
+ $this->_blockGroup = "bannerslider";
11
+ $this->_headerText = Mage::helper("bannerslider")->__("Imagegallery Manager");
12
+ $this->_addButtonLabel = Mage::helper("bannerslider")->__("Add New Item");
13
+ parent::__construct();
14
+
15
+ }
16
+
17
+ }
app/code/community/Mks/Bannerslider/Block/Adminhtml/Imagegallery/Edit.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Mks_Bannerslider_Block_Adminhtml_Imagegallery_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
4
+ {
5
+ public function __construct()
6
+ {
7
+
8
+ parent::__construct();
9
+ $this->_objectId = "id";
10
+ $this->_blockGroup = "bannerslider";
11
+ $this->_controller = "adminhtml_imagegallery";
12
+ $this->_updateButton("save", "label", Mage::helper("bannerslider")->__("Save Item"));
13
+ $this->_updateButton("delete", "label", Mage::helper("bannerslider")->__("Delete Item"));
14
+
15
+ $this->_addButton("saveandcontinue", array(
16
+ "label" => Mage::helper("bannerslider")->__("Save And Continue Edit"),
17
+ "onclick" => "saveAndContinueEdit()",
18
+ "class" => "save",
19
+ ), -100);
20
+
21
+
22
+
23
+ $this->_formScripts[] = "
24
+
25
+ function saveAndContinueEdit(){
26
+ editForm.submit($('edit_form').action+'back/edit/');
27
+ }
28
+ ";
29
+ }
30
+
31
+ public function getHeaderText()
32
+ {
33
+ if( Mage::registry("imagegallery_data") && Mage::registry("imagegallery_data")->getId() ){
34
+
35
+ return Mage::helper("bannerslider")->__("Edit Item '%s'", $this->htmlEscape(Mage::registry("imagegallery_data")->getId()));
36
+
37
+ }
38
+ else{
39
+
40
+ return Mage::helper("bannerslider")->__("Add Item");
41
+
42
+ }
43
+ }
44
+ }
app/code/community/Mks/Bannerslider/Block/Adminhtml/Imagegallery/Edit/Form.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Bannerslider_Block_Adminhtml_Imagegallery_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
3
+ {
4
+ protected function _prepareForm()
5
+ {
6
+ $form = new Varien_Data_Form(array(
7
+ "id" => "edit_form",
8
+ "action" => $this->getUrl("*/*/save", array("id" => $this->getRequest()->getParam("id"))),
9
+ "method" => "post",
10
+ "enctype" =>"multipart/form-data",
11
+ )
12
+ );
13
+ $form->setUseContainer(true);
14
+ $this->setForm($form);
15
+ return parent::_prepareForm();
16
+ }
17
+ }
app/code/community/Mks/Bannerslider/Block/Adminhtml/Imagegallery/Edit/Tab/Form.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Bannerslider_Block_Adminhtml_Imagegallery_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
3
+ {
4
+ protected function _prepareForm()
5
+ {
6
+
7
+ $form = new Varien_Data_Form();
8
+ $this->setForm($form);
9
+ $fieldset = $form->addFieldset("bannerslider_form", array("legend"=>Mage::helper("bannerslider")->__("Item information")));
10
+
11
+
12
+ $fieldset->addField("title", "text", array(
13
+ "label" => Mage::helper("bannerslider")->__("Title"),
14
+ "name" => "title",
15
+ ));
16
+
17
+ $fieldset->addField('image', 'image', array(
18
+ 'label' => Mage::helper('bannerslider')->__('Image'),
19
+ 'name' => 'image',
20
+ 'note' => '(*.jpg, *.png, *.gif)',
21
+ ));
22
+ $fieldset->addField("url", "text", array(
23
+ "label" => Mage::helper("bannerslider")->__("URL"),
24
+ "name" => "url",
25
+ ));
26
+
27
+ $fieldset->addField("description", "textarea", array(
28
+ "label" => Mage::helper("bannerslider")->__("Description"),
29
+ "name" => "description",
30
+ ));
31
+
32
+ $fieldset->addField('status', 'select', array(
33
+ 'label' => Mage::helper('bannerslider')->__('Status'),
34
+ 'values' => Mks_Bannerslider_Block_Adminhtml_Imagegallery_Grid::getValueArray4(),
35
+ 'name' => 'status',
36
+ ));
37
+
38
+ if (Mage::getSingleton("adminhtml/session")->getImagegalleryData())
39
+ {
40
+ $form->setValues(Mage::getSingleton("adminhtml/session")->getImagegalleryData());
41
+ Mage::getSingleton("adminhtml/session")->setImagegalleryData(null);
42
+ }
43
+ elseif(Mage::registry("imagegallery_data")) {
44
+ $form->setValues(Mage::registry("imagegallery_data")->getData());
45
+ }
46
+ return parent::_prepareForm();
47
+ }
48
+ }
app/code/community/Mks/Bannerslider/Block/Adminhtml/Imagegallery/Edit/Tabs.php ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Bannerslider_Block_Adminhtml_Imagegallery_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
3
+ {
4
+ public function __construct()
5
+ {
6
+ parent::__construct();
7
+ $this->setId("imagegallery_tabs");
8
+ $this->setDestElementId("edit_form");
9
+ $this->setTitle(Mage::helper("bannerslider")->__("Item Information"));
10
+ }
11
+ protected function _beforeToHtml()
12
+ {
13
+ $this->addTab("form_section", array(
14
+ "label" => Mage::helper("bannerslider")->__("Item Information"),
15
+ "title" => Mage::helper("bannerslider")->__("Item Information"),
16
+ "content" => $this->getLayout()->createBlock("bannerslider/adminhtml_imagegallery_edit_tab_form")->toHtml(),
17
+ ));
18
+ return parent::_beforeToHtml();
19
+ }
20
+
21
+ }
app/code/community/Mks/Bannerslider/Block/Adminhtml/Imagegallery/Grid.php ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Mks_Bannerslider_Block_Adminhtml_Imagegallery_Grid extends Mage_Adminhtml_Block_Widget_Grid
4
+ {
5
+
6
+ public function __construct()
7
+ {
8
+ parent::__construct();
9
+ $this->setId("imagegalleryGrid");
10
+ $this->setDefaultSort("id");
11
+ $this->setDefaultDir("DESC");
12
+ $this->setSaveParametersInSession(true);
13
+ }
14
+
15
+ protected function _prepareCollection()
16
+ {
17
+ $collection = Mage::getModel("bannerslider/imagegallery")->getCollection();
18
+ $this->setCollection($collection);
19
+ return parent::_prepareCollection();
20
+ }
21
+ protected function _prepareColumns()
22
+ {
23
+ $this->addColumn("id", array(
24
+ "header" => Mage::helper("bannerslider")->__("ID"),
25
+ "align" =>"right",
26
+ "width" => "50px",
27
+ "type" => "number",
28
+ "index" => "id",
29
+ ));
30
+
31
+ $this->addColumn("title", array(
32
+ "header" => Mage::helper("bannerslider")->__("Title"),
33
+ "index" => "title",
34
+ ));
35
+ $this->addColumn("url", array(
36
+ "header" => Mage::helper("bannerslider")->__("URL"),
37
+ "index" => "url",
38
+ ));
39
+ $this->addColumn('status', array(
40
+ 'header' => Mage::helper('bannerslider')->__('Status'),
41
+ 'index' => 'status',
42
+ 'type' => 'options',
43
+ 'options'=>Mks_Bannerslider_Block_Adminhtml_Imagegallery_Grid::getOptionArray4(),
44
+ ));
45
+
46
+ $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
47
+ $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel'));
48
+
49
+ return parent::_prepareColumns();
50
+ }
51
+
52
+ public function getRowUrl($row)
53
+ {
54
+ return $this->getUrl("*/*/edit", array("id" => $row->getId()));
55
+ }
56
+
57
+
58
+
59
+ protected function _prepareMassaction()
60
+ {
61
+ $this->setMassactionIdField('id');
62
+ $this->getMassactionBlock()->setFormFieldName('ids');
63
+ $this->getMassactionBlock()->setUseSelectAll(true);
64
+ $this->getMassactionBlock()->addItem('remove_imagegallery', array(
65
+ 'label'=> Mage::helper('bannerslider')->__('Remove Imagegallery'),
66
+ 'url' => $this->getUrl('*/adminhtml_imagegallery/massRemove'),
67
+ 'confirm' => Mage::helper('bannerslider')->__('Are you sure?')
68
+ ));
69
+ return $this;
70
+ }
71
+
72
+ static public function getOptionArray4()
73
+ {
74
+ $data_array=array();
75
+ $data_array[0]='Yes';
76
+ $data_array[1]='No';
77
+ return($data_array);
78
+ }
79
+ static public function getValueArray4()
80
+ {
81
+ $data_array=array();
82
+ foreach(Mks_Bannerslider_Block_Adminhtml_Imagegallery_Grid::getOptionArray4() as $k=>$v){
83
+ $data_array[]=array('value'=>$k,'label'=>$v);
84
+ }
85
+ return($data_array);
86
+
87
+ }
88
+
89
+
90
+ }
app/code/community/Mks/Bannerslider/Block/Index.php ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Bannerslider_Block_Index extends Mage_Core_Block_Template{
3
+
4
+
5
+ public function getImagegalleryEnabled()
6
+ {
7
+ return Mage::getStoreConfig('imagegallerysection/imagegallerygroup/enable',Mage::app()->getStore());
8
+ }
9
+
10
+ public function getImagegalleryPaggingstart()
11
+ {
12
+ return Mage::getStoreConfig('imagegallerysection/imagegallerygroup/paggingstart',Mage::app()->getStore());
13
+ }
14
+
15
+ public function getImagegalleryRowitem()
16
+ {
17
+ return Mage::getStoreConfig('imagegallerysection/imagegallerygroup/rowitem',Mage::app()->getStore());
18
+ }
19
+
20
+
21
+
22
+ }
app/code/community/Mks/Bannerslider/Helper/Data.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+ class Mks_Bannerslider_Helper_Data extends Mage_Core_Helper_Abstract
3
+ {
4
+ }
5
+
app/code/community/Mks/Bannerslider/Model/Imagegallery.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Mks_Bannerslider_Model_Imagegallery extends Mage_Core_Model_Abstract
4
+ {
5
+ protected function _construct(){
6
+
7
+ $this->_init("bannerslider/imagegallery");
8
+
9
+ }
10
+
11
+ }
12
+
app/code/community/Mks/Bannerslider/Model/Mysql4/Imagegallery.php ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Bannerslider_Model_Mysql4_Imagegallery extends Mage_Core_Model_Mysql4_Abstract
3
+ {
4
+ protected function _construct()
5
+ {
6
+ $this->_init("bannerslider/imagegallery", "id");
7
+ }
8
+ }
app/code/community/Mks/Bannerslider/Model/Mysql4/Imagegallery/Collection.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Bannerslider_Model_Mysql4_Imagegallery_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
3
+ {
4
+
5
+ public function _construct(){
6
+ $this->_init("bannerslider/imagegallery");
7
+ }
8
+
9
+
10
+
11
+ }
12
+
app/code/community/Mks/Bannerslider/controllers/Adminhtml/BannersliderbackendController.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Bannerslider_Adminhtml_BannersliderbackendController extends Mage_Adminhtml_Controller_Action
3
+ {
4
+ public function indexAction()
5
+ {
6
+ $this->loadLayout();
7
+ $this->_title($this->__("About us"));
8
+ $this->renderLayout();
9
+ }
10
+ }
app/code/community/Mks/Bannerslider/controllers/Adminhtml/ImagegalleryController.php ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Mks_Bannerslider_Adminhtml_ImagegalleryController extends Mage_Adminhtml_Controller_Action
4
+ {
5
+ protected function _initAction()
6
+ {
7
+ $this->loadLayout()->_setActiveMenu("bannerslider/imagegallery")->_addBreadcrumb(Mage::helper("adminhtml")->__("Imagegallery Manager"),Mage::helper("adminhtml")->__("Imagegallery Manager"));
8
+ return $this;
9
+ }
10
+ public function indexAction()
11
+ {
12
+ $this->_title($this->__("Bannerslider"));
13
+ $this->_title($this->__("Manager Imagegallery"));
14
+
15
+ $this->_initAction();
16
+ $this->renderLayout();
17
+ }
18
+ public function editAction()
19
+ {
20
+ $this->_title($this->__("Bannerslider"));
21
+ $this->_title($this->__("Imagegallery"));
22
+ $this->_title($this->__("Edit Item"));
23
+
24
+ $id = $this->getRequest()->getParam("id");
25
+ $model = Mage::getModel("bannerslider/imagegallery")->load($id);
26
+ if ($model->getId()) {
27
+ Mage::register("imagegallery_data", $model);
28
+ $this->loadLayout();
29
+ $this->_setActiveMenu("bannerslider/imagegallery");
30
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Imagegallery Manager"), Mage::helper("adminhtml")->__("Imagegallery Manager"));
31
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Imagegallery Description"), Mage::helper("adminhtml")->__("Imagegallery Description"));
32
+ $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
33
+ $this->_addContent($this->getLayout()->createBlock("bannerslider/adminhtml_imagegallery_edit"))->_addLeft($this->getLayout()->createBlock("bannerslider/adminhtml_imagegallery_edit_tabs"));
34
+ $this->renderLayout();
35
+ }
36
+ else {
37
+ Mage::getSingleton("adminhtml/session")->addError(Mage::helper("bannerslider")->__("Item does not exist."));
38
+ $this->_redirect("*/*/");
39
+ }
40
+ }
41
+
42
+ public function newAction()
43
+ {
44
+
45
+ $this->_title($this->__("Bannerslider"));
46
+ $this->_title($this->__("Imagegallery"));
47
+ $this->_title($this->__("New Item"));
48
+
49
+ $id = $this->getRequest()->getParam("id");
50
+ $model = Mage::getModel("bannerslider/imagegallery")->load($id);
51
+
52
+ $data = Mage::getSingleton("adminhtml/session")->getFormData(true);
53
+ if (!empty($data)) {
54
+ $model->setData($data);
55
+ }
56
+
57
+ Mage::register("imagegallery_data", $model);
58
+
59
+ $this->loadLayout();
60
+ $this->_setActiveMenu("bannerslider/imagegallery");
61
+
62
+ $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
63
+
64
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Imagegallery Manager"), Mage::helper("adminhtml")->__("Imagegallery Manager"));
65
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Imagegallery Description"), Mage::helper("adminhtml")->__("Imagegallery Description"));
66
+
67
+
68
+ $this->_addContent($this->getLayout()->createBlock("bannerslider/adminhtml_imagegallery_edit"))->_addLeft($this->getLayout()->createBlock("bannerslider/adminhtml_imagegallery_edit_tabs"));
69
+
70
+ $this->renderLayout();
71
+
72
+ }
73
+ public function saveAction()
74
+ {
75
+
76
+ $post_data=$this->getRequest()->getPost();
77
+
78
+
79
+ if ($post_data) {
80
+
81
+ try {
82
+
83
+
84
+ //save image
85
+ try{
86
+
87
+ if((bool)$post_data['image']['delete']==1) {
88
+
89
+ $post_data['image']='';
90
+
91
+ }
92
+ else {
93
+
94
+ unset($post_data['image']);
95
+
96
+ if (isset($_FILES)){
97
+
98
+ if ($_FILES['image']['name']) {
99
+
100
+ if($this->getRequest()->getParam("id")){
101
+ $model = Mage::getModel("bannerslider/imagegallery")->load($this->getRequest()->getParam("id"));
102
+ if($model->getData('image')){
103
+ $io = new Varien_Io_File();
104
+ $io->rm(Mage::getBaseDir('media').DS.implode(DS,explode('/',$model->getData('image'))));
105
+ }
106
+ }
107
+ $path = Mage::getBaseDir('media') . DS . 'bannerslider' . DS .'imagegallery'.DS;
108
+ $uploader = new Varien_File_Uploader('image');
109
+ $uploader->setAllowedExtensions(array('jpg','png','gif'));
110
+ $uploader->setAllowRenameFiles(false);
111
+ $uploader->setFilesDispersion(false);
112
+ $destFile = $path.$_FILES['image']['name'];
113
+ $filename = $uploader->getNewFileName($destFile);
114
+ $uploader->save($path, $filename);
115
+
116
+ $post_data['image']='bannerslider/imagegallery/'.$filename;
117
+ }
118
+ }
119
+ }
120
+
121
+ } catch (Exception $e) {
122
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
123
+ $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
124
+ return;
125
+ }
126
+ //save image
127
+
128
+
129
+ $model = Mage::getModel("bannerslider/imagegallery")
130
+ ->addData($post_data)
131
+ ->setId($this->getRequest()->getParam("id"))
132
+ ->save();
133
+
134
+ Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Imagegallery was successfully saved"));
135
+ Mage::getSingleton("adminhtml/session")->setImagegalleryData(false);
136
+
137
+ if ($this->getRequest()->getParam("back")) {
138
+ $this->_redirect("*/*/edit", array("id" => $model->getId()));
139
+ return;
140
+ }
141
+ $this->_redirect("*/*/");
142
+ return;
143
+ }
144
+ catch (Exception $e) {
145
+ Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
146
+ Mage::getSingleton("adminhtml/session")->setImagegalleryData($this->getRequest()->getPost());
147
+ $this->_redirect("*/*/edit", array("id" => $this->getRequest()->getParam("id")));
148
+ return;
149
+ }
150
+
151
+ }
152
+ $this->_redirect("*/*/");
153
+ }
154
+
155
+
156
+
157
+ public function deleteAction()
158
+ {
159
+ if( $this->getRequest()->getParam("id") > 0 ) {
160
+ try {
161
+ $model = Mage::getModel("bannerslider/imagegallery");
162
+ $model->setId($this->getRequest()->getParam("id"))->delete();
163
+ Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Item was successfully deleted"));
164
+ $this->_redirect("*/*/");
165
+ }
166
+ catch (Exception $e) {
167
+ Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
168
+ $this->_redirect("*/*/edit", array("id" => $this->getRequest()->getParam("id")));
169
+ }
170
+ }
171
+ $this->_redirect("*/*/");
172
+ }
173
+
174
+
175
+ public function massRemoveAction()
176
+ {
177
+ try {
178
+ $ids = $this->getRequest()->getPost('ids', array());
179
+ foreach ($ids as $id) {
180
+ $model = Mage::getModel("bannerslider/imagegallery");
181
+ $model->setId($id)->delete();
182
+ }
183
+ Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Item(s) was successfully removed"));
184
+ }
185
+ catch (Exception $e) {
186
+ Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
187
+ }
188
+ $this->_redirect('*/*/');
189
+ }
190
+
191
+ /**
192
+ * Export order grid to CSV format
193
+ */
194
+ public function exportCsvAction()
195
+ {
196
+ $fileName = 'imagegallery.csv';
197
+ $grid = $this->getLayout()->createBlock('bannerslider/adminhtml_imagegallery_grid');
198
+ $this->_prepareDownloadResponse($fileName, $grid->getCsvFile());
199
+ }
200
+ /**
201
+ * Export order grid to Excel XML format
202
+ */
203
+ public function exportExcelAction()
204
+ {
205
+ $fileName = 'imagegallery.xml';
206
+ $grid = $this->getLayout()->createBlock('bannerslider/adminhtml_imagegallery_grid');
207
+ $this->_prepareDownloadResponse($fileName, $grid->getExcelFile($fileName));
208
+ }
209
+ }
app/code/community/Mks/Bannerslider/controllers/IndexController.php ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Bannerslider_IndexController extends Mage_Core_Controller_Front_Action{
3
+ public function IndexAction() {
4
+
5
+ $this->loadLayout();
6
+ $this->getLayout()->getBlock("head")->setTitle($this->__("Bannerslider"));
7
+ $breadcrumbs = $this->getLayout()->getBlock("breadcrumbs");
8
+ $breadcrumbs->addCrumb("home", array(
9
+ "label" => $this->__("Home Page"),
10
+ "title" => $this->__("Home Page"),
11
+ "link" => Mage::getBaseUrl()
12
+ ));
13
+
14
+ $breadcrumbs->addCrumb("bannerslider", array(
15
+ "label" => $this->__("Bannerslider"),
16
+ "title" => $this->__("Bannerslider")
17
+ ));
18
+
19
+ $this->renderLayout();
20
+
21
+ }
22
+ }
app/code/community/Mks/Bannerslider/etc/adminhtml.xml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <acl>
4
+ <resources>
5
+ <admin>
6
+ <children>
7
+ <system>
8
+ <children>
9
+ <config>
10
+ <children>
11
+ <imagegallerysection translate="title" module="bannerslider">
12
+ <title>General Setting Section</title>
13
+ <sort_order>0</sort_order>
14
+ </imagegallerysection>
15
+ </children>
16
+ </config>
17
+ </children>
18
+ </system>
19
+ </children>
20
+ </admin>
21
+ </resources>
22
+ </acl>
23
+ </config>
app/code/community/Mks/Bannerslider/etc/config.xml ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Mks_Bannerslider>
5
+ <version>8.1.1</version>
6
+ </Mks_Bannerslider>
7
+ </modules>
8
+ <frontend>
9
+ <routers>
10
+ <bannerslider>
11
+ <use>standard</use>
12
+ <args>
13
+ <module>Mks_Bannerslider</module>
14
+ <frontName>bannerslider</frontName>
15
+ </args>
16
+ </bannerslider>
17
+ </routers>
18
+ <layout>
19
+ <updates>
20
+ <bannerslider>
21
+ <file>bannerslider.xml</file>
22
+ </bannerslider>
23
+ </updates>
24
+ </layout>
25
+ </frontend>
26
+ <global>
27
+ <helpers>
28
+ <bannerslider>
29
+ <class>Mks_Bannerslider_Helper</class>
30
+ </bannerslider>
31
+ </helpers>
32
+ <blocks>
33
+ <bannerslider>
34
+ <class>Mks_Bannerslider_Block</class>
35
+ </bannerslider>
36
+ </blocks>
37
+ <models>
38
+ <bannerslider>
39
+ <class>Mks_Bannerslider_Model</class>
40
+ <resourceModel>bannerslider_mysql4</resourceModel>
41
+ </bannerslider>
42
+ <bannerslider_mysql4>
43
+ <class>Mks_Bannerslider_Model_Mysql4</class>
44
+ <entities>
45
+ <imagegallery>
46
+ <table>popupgalleryslider</table>
47
+ </imagegallery>
48
+ </entities>
49
+ </bannerslider_mysql4>
50
+ </models>
51
+ <resources>
52
+ <bannerslider_setup>
53
+ <setup>
54
+ <module>Mks_Bannerslider</module>
55
+ </setup>
56
+ <connection>
57
+ <use>core_setup</use>
58
+ </connection>
59
+ </bannerslider_setup>
60
+ <bannerslider_write>
61
+ <connection>
62
+ <use>core_write</use>
63
+ </connection>
64
+ </bannerslider_write>
65
+ <bannerslider_read>
66
+ <connection>
67
+ <use>core_read</use>
68
+ </connection>
69
+ </bannerslider_read>
70
+ </resources>
71
+ </global>
72
+ <admin>
73
+ <routers>
74
+ <bannerslider>
75
+ <use>admin</use>
76
+ <args>
77
+ <module>Mks_Bannerslider</module>
78
+ <frontName>bannerslider</frontName>
79
+ </args>
80
+ </bannerslider>
81
+ </routers>
82
+ </admin>
83
+ <adminhtml>
84
+ <menu>
85
+ <bannerslider module="bannerslider">
86
+ <title>Bannerslider</title>
87
+ <sort_order>100</sort_order>
88
+ <children>
89
+ <bannersliderbackend module="bannerslider">
90
+ <title>About us</title>
91
+ <sort_order>0</sort_order>
92
+ <action>bannerslider/adminhtml_bannersliderbackend</action>
93
+ </bannersliderbackend>
94
+ <imagegallery module="bannerslider">
95
+ <title>Manage Imagegallery</title>
96
+ <sort_order>0</sort_order>
97
+ <action>bannerslider/adminhtml_imagegallery</action>
98
+ </imagegallery>
99
+ </children>
100
+ </bannerslider>
101
+ </menu>
102
+ <acl>
103
+ <resources>
104
+ <all>
105
+ <title>Allow Everything</title>
106
+ </all>
107
+ <admin>
108
+ <children>
109
+ <bannerslider translate="title" module="bannerslider">
110
+ <title>Bannerslider</title>
111
+ <sort_order>1000</sort_order>
112
+ <children>
113
+ <bannersliderbackend translate="title">
114
+ <title>About us</title>
115
+ </bannersliderbackend>
116
+ <imagegallery translate="title">
117
+ <title>Manage Imagegallery</title>
118
+ <sort_order>0</sort_order>
119
+ </imagegallery>
120
+ </children>
121
+ </bannerslider>
122
+ </children>
123
+ </admin>
124
+ </resources>
125
+ </acl>
126
+ <layout>
127
+ <updates>
128
+ <bannerslider>
129
+ <file>bannerslider.xml</file>
130
+ </bannerslider>
131
+ </updates>
132
+ </layout>
133
+ </adminhtml>
134
+ </config>
app/code/community/Mks/Bannerslider/etc/system.xml ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <imagegallerytab translate="label" module="bannerslider">
5
+ <label>Mks Image gallery (Pop Up)</label>
6
+ <sort_order>0</sort_order>
7
+ </imagegallerytab>
8
+ </tabs>
9
+ <sections>
10
+ <imagegallerysection translate="label" module="bannerslider">
11
+ <label>General Setting</label>
12
+ <tab>imagegallerytab</tab>
13
+ <frontend_type>text</frontend_type>
14
+ <sort_order>0</sort_order>
15
+ <show_in_default>1</show_in_default>
16
+ <show_in_website>1</show_in_website>
17
+ <show_in_store>1</show_in_store>
18
+ <groups>
19
+ <imagegallerygroup translate="label">
20
+ <label>Gallery Setting</label>
21
+ <frontend_type>text</frontend_type>
22
+ <sort_order>0</sort_order>
23
+ <show_in_default>1</show_in_default>
24
+ <show_in_website>1</show_in_website>
25
+ <show_in_store>1</show_in_store>
26
+ <fields>
27
+ <enable translate="label">
28
+ <label>Enable</label>
29
+ <frontend_type>select</frontend_type>
30
+ <source_model>adminhtml/system_config_source_yesno</source_model>
31
+ <sort_order>0</sort_order>
32
+ <show_in_default>1</show_in_default>
33
+ <show_in_website>1</show_in_website>
34
+ <show_in_store>1</show_in_store>
35
+ </enable>
36
+ <paggingstart translate="label">
37
+ <label>After Pagging Start</label>
38
+ <frontend_type>text</frontend_type>
39
+ <sort_order>0</sort_order>
40
+ <show_in_default>1</show_in_default>
41
+ <show_in_website>1</show_in_website>
42
+ <show_in_store>1</show_in_store>
43
+ <comment>5,10,15,20,25,30.....Default (12)</comment>
44
+ </paggingstart>
45
+ <rowitem translate="label">
46
+ <label>Number Of Row item</label>
47
+ <frontend_type>text</frontend_type>
48
+ <sort_order>0</sort_order>
49
+ <show_in_default>1</show_in_default>
50
+ <show_in_website>1</show_in_website>
51
+ <show_in_store>1</show_in_store>
52
+ <comment>3,4,5,6,7.......Default (4)</comment>
53
+ </rowitem>
54
+ </fields>
55
+ </imagegallerygroup>
56
+ </groups>
57
+ </imagegallerysection>
58
+ </sections>
59
+ </config>
app/code/community/Mks/Bannerslider/sql/bannerslider_setup/mysql4-install-8.1.1.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $installer = $this;
3
+ $installer->startSetup();
4
+ $sql=<<<SQLTEXT
5
+ create table {$this->getTable('popupgalleryslider')}(id int not null auto_increment, title varchar(255), image varchar(255), url varchar(255), description varchar(255), status varchar(100), primary key(id));
6
+
7
+
8
+ insert into {$this->getTable('popupgalleryslider')} (`title`,`image`,`description`,`url`,`status`) VALUES
9
+ ('Image gallery 1','bannerslider/imagegallery/3.jpg','Image gallery 1','www.google.com','0'),
10
+ ('Image gallery 2','bannerslider/imagegallery/4.jpg','Image gallery 2','www.google.com','0'),
11
+ ('Image gallery 3','bannerslider/imagegallery/5.jpg','Image gallery 3','www.google.com','0'),
12
+ ('Image gallery 4','bannerslider/imagegallery/6.jpg','Image gallery 4','www.google.com','0'),
13
+ ('Image gallery 5','bannerslider/imagegallery/7.jpg','Image gallery 5','www.google.com','0'),
14
+ ('Image gallery 6','bannerslider/imagegallery/8.jpg','Image gallery 6','www.google.com','0'),
15
+ ('Image gallery 7','bannerslider/imagegallery/9.jpg','Image gallery 7','www.google.com','0'),
16
+ ('Image gallery 8','bannerslider/imagegallery/10.jpg','Image gallery 8','www.google.com','0'),
17
+ ('Image gallery 9','bannerslider/imagegallery/11.jpg','Image gallery 9','www.google.com','0'),
18
+ ('Image gallery 10','bannerslider/imagegallery/2.jpg','Image gallery 10','www.google.com','0'),
19
+ ('Image gallery 11','bannerslider/imagegallery/3.jpg','Image gallery 11','www.google.com','0'),
20
+ ('Image gallery 12','bannerslider/imagegallery/4.jpg','Image gallery 12','www.google.com','0'),
21
+ ('Image gallery 13','bannerslider/imagegallery/5.jpg','Image gallery 13','www.google.com','0'),
22
+ ('Image gallery 14','bannerslider/imagegallery/6.jpg','Image gallery 14','www.google.com','0'),
23
+ ('Image gallery 15','bannerslider/imagegallery/7.jpg','Image gallery 15','www.google.com','0'),
24
+ ('Image gallery 16','bannerslider/imagegallery/8.jpg','Image gallery 16','www.google.com','0'),
25
+ ('Image gallery 17','bannerslider/imagegallery/9.jpg','Image gallery 17','www.google.com','0'),
26
+ ('Image gallery 18','bannerslider/imagegallery/10.jpg','Image gallery 18','www.google.com','0'),
27
+ ('Image gallery 19','bannerslider/imagegallery/11.jpg','Image gallery 19','www.google.com','0'),
28
+ ('Image gallery 20','bannerslider/imagegallery/2.jpg','Image gallery 20','www.google.com','0');
29
+
30
+ SQLTEXT;
31
+
32
+ $installer->run($sql);
33
+ //demo
34
+ //Mage::getModel('core/url_rewrite')->setId(null);
35
+ //demo
36
+ $installer->endSetup();
37
+
app/code/community/Mks/OrderCancel/Block/Order/History.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Mks Soft
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * It is available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category Mks
13
+ * @package Mks_OrderCancel
14
+ * @copyright Copyright (c) 2011 Mks Soft (Mks.soft@gmail.com)
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+
18
+ /**
19
+ * Orders history block
20
+ *
21
+ * @author Mks Soft <Mks.soft@gmail.com>
22
+ * @see Mage_Sales_Block_Order_History
23
+ */
24
+ class Mks_OrderCancel_Block_Order_History extends Mage_Sales_Block_Order_History
25
+ {
26
+ public function __construct()
27
+ {
28
+ parent::__construct();
29
+
30
+ // Replace default template
31
+ $this->setTemplate('ordercancel/sales/order/history.phtml');
32
+ }
33
+
34
+ }
app/code/community/Mks/OrderCancel/Block/Order/History.php~ ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Mks Soft
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * It is available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category Mks
13
+ * @package Mks_OrderCancel
14
+ * @copyright Copyright (c) 2011 Mks Soft (Mks.soft@gmail.com)
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+
18
+ /**
19
+ * Orders history block
20
+ *
21
+ * @author Mks Soft <Mks.soft@gmail.com>
22
+ * @see Mage_Sales_Block_Order_History
23
+ */
24
+ class Mks_OrderCancel_Block_Order_History extends Mage_Sales_Block_Order_History
25
+ {
26
+ public function __construct()
27
+ {
28
+ parent::__construct();
29
+
30
+ // Replace default template
31
+ $this->setTemplate('ordercancel/sales/order/history.phtml');
32
+ }
33
+
34
+ }
app/code/community/Mks/OrderCancel/Data.php ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Mks Soft
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * It is available through the world-wide-web at this URL:
9
+ * http://opensource.org/licenses/osl-3.0.php
10
+ *
11
+ * @category Mks
12
+ * @package Mks_OrderCancel
13
+ * @copyright Copyright (c) 2011 Mks Soft (mks.soft@gmail.com)
14
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
15
+ */
16
+
17
+ class Mks_OrderCanecl_Helper_Data extends Mage_Core_Helper_Abstract
18
+ {
19
+ // Do nothing
20
+ }
app/code/community/Mks/OrderCancel/Data/Data.php ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Mks Soft
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * It is available through the world-wide-web at this URL:
9
+ * http://opensource.org/licenses/osl-3.0.php
10
+ *
11
+ * @category Mks
12
+ * @package Mks_OrderCancel
13
+ * @copyright Copyright (c) 2011 Mks Soft (mks.soft@gmail.com)
14
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
15
+ */
16
+
17
+ class Mks_OrderCanecl_Helper_Data extends Mage_Core_Helper_Abstract
18
+ {
19
+ // Do nothing
20
+ }
app/code/community/Mks/OrderCancel/Data/Data.php~ ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Mks Soft
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * It is available through the world-wide-web at this URL:
9
+ * http://opensource.org/licenses/osl-3.0.php
10
+ *
11
+ * @category Mks
12
+ * @package Mks_OrderCancel
13
+ * @copyright Copyright (c) 2011 Mks Soft (mks.soft@gmail.com)
14
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
15
+ */
16
+
17
+ class Mks_OrderCanecl_Helper_Data extends Mage_Core_Helper_Abstract
18
+ {
19
+ // Do nothing
20
+ }
app/code/community/Mks/OrderCancel/controllers/OrderController.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Mks Soft
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * It is available through the world-wide-web at this URL:
9
+ * http://opensource.org/licenses/osl-3.0.php
10
+ *
11
+ * @category Mks
12
+ * @package Mks_OrderCancel
13
+ * @copyright Copyright (c) 2011 Mks Soft (mks.soft@gmail.com)
14
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
15
+ */
16
+
17
+ /**
18
+ * OrderCancel controller class
19
+ */
20
+ class Mks_OrderCancel_OrderController extends Mage_Core_Controller_Front_Action
21
+ {
22
+ /**
23
+ * Handles cancel order action
24
+ */
25
+ public function cancelAction()
26
+ {
27
+ $orderId = $this->getRequest()->get('order_id');
28
+
29
+ // Load order
30
+ if(!empty($orderId)) {
31
+ $order = Mage::getModel('sales/order')->load($orderId);
32
+ $order->cancel();
33
+ $order->save();
34
+ Mage::getSingleton('core/session')->addSuccess($this->__("Order was successfully cancelled."));
35
+ }
36
+
37
+ // Redirect back to orders list
38
+ $this->_redirect('sales/order/history/');
39
+ }
40
+ }
app/code/community/Mks/OrderCancel/controllers/OrderController.php~ ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Mks Soft
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * It is available through the world-wide-web at this URL:
9
+ * http://opensource.org/licenses/osl-3.0.php
10
+ *
11
+ * @category Mks
12
+ * @package Mks_OrderCancel
13
+ * @copyright Copyright (c) 2011 Mks Soft (mks.soft@gmail.com)
14
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
15
+ */
16
+
17
+ /**
18
+ * OrderCancel controller class
19
+ */
20
+ class Mks_OrderCancel_OrderController extends Mage_Core_Controller_Front_Action
21
+ {
22
+ /**
23
+ * Handles cancel order action
24
+ */
25
+ public function cancelAction()
26
+ {
27
+ $orderId = $this->getRequest()->get('order_id');
28
+
29
+ // Load order
30
+ if(!empty($orderId)) {
31
+ $order = Mage::getModel('sales/order')->load($orderId);
32
+ $order->cancel();
33
+ $order->save();
34
+ Mage::getSingleton('core/session')->addSuccess($this->__("Order was successfully cancelled."));
35
+ }
36
+
37
+ // Redirect back to orders list
38
+ $this->_redirect('sales/order/history/');
39
+ }
40
+ }
app/code/community/Mks/OrderCancel/etc/config.xml ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Mks Soft
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * It is available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category Mks
13
+ * @package Mks_OrderCancel
14
+ * @copyright Copyright (c) 2011 Mks Soft (mks.soft@gmail.com)
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+ -->
18
+ <config>
19
+ <modules>
20
+ <Mks_OrderCancel>
21
+ <version>0.1.0</version>
22
+ </Mks_OrderCancel>
23
+ </modules>
24
+ <frontend>
25
+ <routers>
26
+ <ordercancel>
27
+ <use>standard</use>
28
+ <args>
29
+ <module>Mks_OrderCancel</module>
30
+ <frontName>ordercancel</frontName>
31
+ </args>
32
+ </ordercancel>
33
+ </routers>
34
+ <layout>
35
+ <updates>
36
+ <ordercancel>
37
+ <file>ordercancel.xml</file>
38
+ </ordercancel>
39
+ </updates>
40
+ </layout>
41
+ </frontend>
42
+ <global>
43
+ <blocks>
44
+ <ordercancel>
45
+ <class>Mks_OrderCancel_Block</class>
46
+ </ordercancel>
47
+ <sales>
48
+ <rewrite>
49
+ <order_history>Mks_OrderCancel_Block_Order_History</order_history>
50
+ </rewrite>
51
+ </sales>
52
+ </blocks>
53
+ <rewrite>
54
+ <mks_ordercancel>
55
+ <!-- be sure to have only # at the end or the source -->
56
+ <from><![CDATA[#^/sales/order/cancel/(.*)#]]></from>
57
+ <to><![CDATA[/ordercancel/order/cancel/$1]]></to>
58
+ </mks_ordercancel>
59
+ </rewrite>
60
+ </global>
61
+ </config>
app/code/community/Mks/OrderCancel/etc/config.xml~ ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Mks Soft
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * It is available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category Mks
13
+ * @package Mks_OrderCancel
14
+ * @copyright Copyright (c) 2011 Mks Soft (mks.soft@gmail.com)
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+ -->
18
+ <config>
19
+ <modules>
20
+ <Mks_OrderCancel>
21
+ <version>0.1.0</version>
22
+ </Mks_OrderCancel>
23
+ </modules>
24
+ <frontend>
25
+ <routers>
26
+ <ordercancel>
27
+ <use>standard</use>
28
+ <args>
29
+ <module>Mks_OrderCancel</module>
30
+ <frontName>ordercancel</frontName>
31
+ </args>
32
+ </ordercancel>
33
+ </routers>
34
+ <layout>
35
+ <updates>
36
+ <ordercancel>
37
+ <file>ordercancel.xml</file>
38
+ </ordercancel>
39
+ </updates>
40
+ </layout>
41
+ </frontend>
42
+ <global>
43
+ <blocks>
44
+ <ordercancel>
45
+ <class>Mks_OrderCancel_Block</class>
46
+ </ordercancel>
47
+ <sales>
48
+ <rewrite>
49
+ <order_history>Mks_OrderCancel_Block_Order_History</order_history>
50
+ </rewrite>
51
+ </sales>
52
+ </blocks>
53
+ <rewrite>
54
+ <mks_ordercancel>
55
+ <!-- be sure to have only # at the end or the source -->
56
+ <from><![CDATA[#^/sales/order/cancel/(.*)#]]></from>
57
+ <to><![CDATA[/ordercancel/order/cancel/$1]]></to>
58
+ </mks_ordercancel>
59
+ </rewrite>
60
+ </global>
61
+ </config>
app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproduct.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ class Mks_Rotateproduct_Block_Adminhtml_Rotateproduct extends Mage_Adminhtml_Block_Widget_Grid_Container{
5
+
6
+ public function __construct()
7
+ {
8
+
9
+ $this->_controller = "adminhtml_rotateproduct";
10
+ $this->_blockGroup = "rotateproduct";
11
+ $this->_headerText = Mage::helper("rotateproduct")->__("Rotateproduct Manager");
12
+ $this->_addButtonLabel = Mage::helper("rotateproduct")->__("Add New Item");
13
+ parent::__construct();
14
+
15
+ }
16
+
17
+ }
app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproduct/Edit.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Mks_Rotateproduct_Block_Adminhtml_Rotateproduct_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
4
+ {
5
+ public function __construct()
6
+ {
7
+
8
+ parent::__construct();
9
+ $this->_objectId = "id";
10
+ $this->_blockGroup = "rotateproduct";
11
+ $this->_controller = "adminhtml_rotateproduct";
12
+ $this->_updateButton("save", "label", Mage::helper("rotateproduct")->__("Save Item"));
13
+ $this->_updateButton("delete", "label", Mage::helper("rotateproduct")->__("Delete Item"));
14
+
15
+ $this->_addButton("saveandcontinue", array(
16
+ "label" => Mage::helper("rotateproduct")->__("Save And Continue Edit"),
17
+ "onclick" => "saveAndContinueEdit()",
18
+ "class" => "save",
19
+ ), -100);
20
+
21
+
22
+
23
+ $this->_formScripts[] = "
24
+
25
+ function saveAndContinueEdit(){
26
+ editForm.submit($('edit_form').action+'back/edit/');
27
+ }
28
+ ";
29
+ }
30
+
31
+ public function getHeaderText()
32
+ {
33
+ if( Mage::registry("rotateproduct_data") && Mage::registry("rotateproduct_data")->getId() ){
34
+
35
+ return Mage::helper("rotateproduct")->__("Edit Item '%s'", $this->htmlEscape(Mage::registry("rotateproduct_data")->getId()));
36
+
37
+ }
38
+ else{
39
+
40
+ return Mage::helper("rotateproduct")->__("Add Item");
41
+
42
+ }
43
+ }
44
+ }
app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproduct/Edit/Form.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Rotateproduct_Block_Adminhtml_Rotateproduct_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
3
+ {
4
+ protected function _prepareForm()
5
+ {
6
+ $form = new Varien_Data_Form(array(
7
+ "id" => "edit_form",
8
+ "action" => $this->getUrl("*/*/save", array("id" => $this->getRequest()->getParam("id"))),
9
+ "method" => "post",
10
+ "enctype" =>"multipart/form-data",
11
+ )
12
+ );
13
+ $form->setUseContainer(true);
14
+ $this->setForm($form);
15
+ return parent::_prepareForm();
16
+ }
17
+ }
app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproduct/Edit/Tab/Form.php ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Rotateproduct_Block_Adminhtml_Rotateproduct_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
3
+ {
4
+ protected function _prepareForm()
5
+ {
6
+
7
+ $form = new Varien_Data_Form();
8
+ $this->setForm($form);
9
+ $fieldset = $form->addFieldset("rotateproduct_form", array("legend"=>Mage::helper("rotateproduct")->__("Item information")));
10
+
11
+
12
+ $fieldset->addField("productid", "text", array(
13
+ "label" => Mage::helper("rotateproduct")->__("Product Id"),
14
+ "class" => "required-entry",
15
+ "required" => true,
16
+ "name" => "productid",
17
+ ));
18
+
19
+ $fieldset->addField("imagename", "text", array(
20
+ "label" => Mage::helper("rotateproduct")->__("Image Name"),
21
+ "class" => "required-entry",
22
+ "required" => true,
23
+ "name" => "imagename",
24
+ ));
25
+
26
+ $fieldset->addField('productimage', 'image', array(
27
+ 'label' => Mage::helper('rotateproduct')->__('Product Image'),
28
+ 'name' => 'productimage',
29
+ 'note' => '(*.jpg, *.png, *.gif)',
30
+ ));
31
+ $fieldset->addField("imageorder", "text", array(
32
+ "label" => Mage::helper("rotateproduct")->__("Image Order"),
33
+ "class" => "required-entry",
34
+ "required" => true,
35
+ "name" => "imageorder",
36
+ ));
37
+
38
+ $fieldset->addField('status', 'select', array(
39
+ 'label' => Mage::helper('rotateproduct')->__('Status'),
40
+ 'values' => Mks_Rotateproduct_Block_Adminhtml_Rotateproduct_Grid::getValueArray4(),
41
+ 'name' => 'status',
42
+ "class" => "required-entry",
43
+ "required" => true,
44
+ ));
45
+
46
+ if (Mage::getSingleton("adminhtml/session")->getRotateproductData())
47
+ {
48
+ $form->setValues(Mage::getSingleton("adminhtml/session")->getRotateproductData());
49
+ Mage::getSingleton("adminhtml/session")->setRotateproductData(null);
50
+ }
51
+ elseif(Mage::registry("rotateproduct_data")) {
52
+ $form->setValues(Mage::registry("rotateproduct_data")->getData());
53
+ }
54
+ return parent::_prepareForm();
55
+ }
56
+ }
app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproduct/Edit/Tabs.php ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Rotateproduct_Block_Adminhtml_Rotateproduct_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
3
+ {
4
+ public function __construct()
5
+ {
6
+ parent::__construct();
7
+ $this->setId("rotateproduct_tabs");
8
+ $this->setDestElementId("edit_form");
9
+ $this->setTitle(Mage::helper("rotateproduct")->__("Item Information"));
10
+ }
11
+ protected function _beforeToHtml()
12
+ {
13
+ $this->addTab("form_section", array(
14
+ "label" => Mage::helper("rotateproduct")->__("Item Information"),
15
+ "title" => Mage::helper("rotateproduct")->__("Item Information"),
16
+ "content" => $this->getLayout()->createBlock("rotateproduct/adminhtml_rotateproduct_edit_tab_form")->toHtml(),
17
+ ));
18
+ return parent::_beforeToHtml();
19
+ }
20
+
21
+ }
app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproduct/Grid.php ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Mks_Rotateproduct_Block_Adminhtml_Rotateproduct_Grid extends Mage_Adminhtml_Block_Widget_Grid
4
+ {
5
+
6
+ public function __construct()
7
+ {
8
+ parent::__construct();
9
+ $this->setId("rotateproductGrid");
10
+ $this->setDefaultSort("id");
11
+ $this->setDefaultDir("DESC");
12
+ $this->setSaveParametersInSession(true);
13
+ }
14
+
15
+ protected function _prepareCollection()
16
+ {
17
+ $collection = Mage::getModel("rotateproduct/rotateproduct")->getCollection();
18
+ $this->setCollection($collection);
19
+ return parent::_prepareCollection();
20
+ }
21
+ protected function _prepareColumns()
22
+ {
23
+ $this->addColumn("id", array(
24
+ "header" => Mage::helper("rotateproduct")->__("ID"),
25
+ "align" =>"right",
26
+ "width" => "50px",
27
+ "type" => "number",
28
+ "index" => "id",
29
+ ));
30
+
31
+ $this->addColumn("productid", array(
32
+ "header" => Mage::helper("rotateproduct")->__("Product Id"),
33
+ "index" => "productid",
34
+ ));
35
+ $this->addColumn("imagename", array(
36
+ "header" => Mage::helper("rotateproduct")->__("Image Name"),
37
+ "index" => "imagename",
38
+ ));
39
+ $this->addColumn("imageorder", array(
40
+ "header" => Mage::helper("rotateproduct")->__("Image Order"),
41
+ "index" => "imageorder",
42
+ ));
43
+ $this->addColumn('status', array(
44
+ 'header' => Mage::helper('rotateproduct')->__('Status'),
45
+ 'index' => 'status',
46
+ 'type' => 'options',
47
+ 'options'=>Mks_Rotateproduct_Block_Adminhtml_Rotateproduct_Grid::getOptionArray4(),
48
+ ));
49
+
50
+ $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
51
+ $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel'));
52
+
53
+ return parent::_prepareColumns();
54
+ }
55
+
56
+ public function getRowUrl($row)
57
+ {
58
+ return $this->getUrl("*/*/edit", array("id" => $row->getId()));
59
+ }
60
+
61
+
62
+
63
+ protected function _prepareMassaction()
64
+ {
65
+ $this->setMassactionIdField('id');
66
+ $this->getMassactionBlock()->setFormFieldName('ids');
67
+ $this->getMassactionBlock()->setUseSelectAll(true);
68
+ $this->getMassactionBlock()->addItem('remove_rotateproduct', array(
69
+ 'label'=> Mage::helper('rotateproduct')->__('Remove Rotateproduct'),
70
+ 'url' => $this->getUrl('*/adminhtml_rotateproduct/massRemove'),
71
+ 'confirm' => Mage::helper('rotateproduct')->__('Are you sure?')
72
+ ));
73
+ return $this;
74
+ }
75
+
76
+ static public function getOptionArray4()
77
+ {
78
+ $data_array=array();
79
+ $data_array[0]='Yes';
80
+ $data_array[1]='No';
81
+ return($data_array);
82
+ }
83
+ static public function getValueArray4()
84
+ {
85
+ $data_array=array();
86
+ foreach(Mks_Rotateproduct_Block_Adminhtml_Rotateproduct_Grid::getOptionArray4() as $k=>$v){
87
+ $data_array[]=array('value'=>$k,'label'=>$v);
88
+ }
89
+ return($data_array);
90
+
91
+ }
92
+
93
+
94
+ }
app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproductbackend.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+
3
+ class Mks_Rotateproduct_Block_Adminhtml_Rotateproductbackend extends Mage_Adminhtml_Block_Template {
4
+
5
+ }
app/code/community/Mks/Rotateproduct/Helper/Data.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+ class Mks_Rotateproduct_Helper_Data extends Mage_Core_Helper_Abstract
3
+ {
4
+ }
5
+
app/code/community/Mks/Rotateproduct/Model/Mysql4/Rotateproduct.php ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Rotateproduct_Model_Mysql4_Rotateproduct extends Mage_Core_Model_Mysql4_Abstract
3
+ {
4
+ protected function _construct()
5
+ {
6
+ $this->_init("rotateproduct/rotateproduct", "id");
7
+ }
8
+ }
app/code/community/Mks/Rotateproduct/Model/Mysql4/Rotateproduct/Collection.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Rotateproduct_Model_Mysql4_Rotateproduct_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
3
+ {
4
+
5
+ public function _construct(){
6
+ $this->_init("rotateproduct/rotateproduct");
7
+ }
8
+
9
+
10
+
11
+ }
12
+
app/code/community/Mks/Rotateproduct/Model/Rotateproduct.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Mks_Rotateproduct_Model_Rotateproduct extends Mage_Core_Model_Abstract
4
+ {
5
+ protected function _construct(){
6
+
7
+ $this->_init("rotateproduct/rotateproduct");
8
+
9
+ }
10
+
11
+ }
12
+
app/code/community/Mks/Rotateproduct/controllers/Adminhtml/RotateproductController.php ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Mks_Rotateproduct_Adminhtml_RotateproductController extends Mage_Adminhtml_Controller_Action
4
+ {
5
+ protected function _initAction()
6
+ {
7
+ $this->loadLayout()->_setActiveMenu("rotateproduct/rotateproduct")->_addBreadcrumb(Mage::helper("adminhtml")->__("Rotateproduct Manager"),Mage::helper("adminhtml")->__("Rotateproduct Manager"));
8
+ return $this;
9
+ }
10
+ public function indexAction()
11
+ {
12
+ $this->_title($this->__("Rotateproduct"));
13
+ $this->_title($this->__("Manager Rotateproduct"));
14
+
15
+ $this->_initAction();
16
+ $this->renderLayout();
17
+ }
18
+ public function editAction()
19
+ {
20
+ $this->_title($this->__("Rotateproduct"));
21
+ $this->_title($this->__("Rotateproduct"));
22
+ $this->_title($this->__("Edit Item"));
23
+
24
+ $id = $this->getRequest()->getParam("id");
25
+ $model = Mage::getModel("rotateproduct/rotateproduct")->load($id);
26
+ if ($model->getId()) {
27
+ Mage::register("rotateproduct_data", $model);
28
+ $this->loadLayout();
29
+ $this->_setActiveMenu("rotateproduct/rotateproduct");
30
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Rotateproduct Manager"), Mage::helper("adminhtml")->__("Rotateproduct Manager"));
31
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Rotateproduct Description"), Mage::helper("adminhtml")->__("Rotateproduct Description"));
32
+ $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
33
+ $this->_addContent($this->getLayout()->createBlock("rotateproduct/adminhtml_rotateproduct_edit"))->_addLeft($this->getLayout()->createBlock("rotateproduct/adminhtml_rotateproduct_edit_tabs"));
34
+ $this->renderLayout();
35
+ }
36
+ else {
37
+ Mage::getSingleton("adminhtml/session")->addError(Mage::helper("rotateproduct")->__("Item does not exist."));
38
+ $this->_redirect("*/*/");
39
+ }
40
+ }
41
+
42
+ public function newAction()
43
+ {
44
+
45
+ $this->_title($this->__("Rotateproduct"));
46
+ $this->_title($this->__("Rotateproduct"));
47
+ $this->_title($this->__("New Item"));
48
+
49
+ $id = $this->getRequest()->getParam("id");
50
+ $model = Mage::getModel("rotateproduct/rotateproduct")->load($id);
51
+
52
+ $data = Mage::getSingleton("adminhtml/session")->getFormData(true);
53
+ if (!empty($data)) {
54
+ $model->setData($data);
55
+ }
56
+
57
+ Mage::register("rotateproduct_data", $model);
58
+
59
+ $this->loadLayout();
60
+ $this->_setActiveMenu("rotateproduct/rotateproduct");
61
+
62
+ $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
63
+
64
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Rotateproduct Manager"), Mage::helper("adminhtml")->__("Rotateproduct Manager"));
65
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Rotateproduct Description"), Mage::helper("adminhtml")->__("Rotateproduct Description"));
66
+
67
+
68
+ $this->_addContent($this->getLayout()->createBlock("rotateproduct/adminhtml_rotateproduct_edit"))->_addLeft($this->getLayout()->createBlock("rotateproduct/adminhtml_rotateproduct_edit_tabs"));
69
+
70
+ $this->renderLayout();
71
+
72
+ }
73
+ public function saveAction()
74
+ {
75
+
76
+ $post_data=$this->getRequest()->getPost();
77
+
78
+
79
+ if ($post_data) {
80
+
81
+ try {
82
+
83
+
84
+ //save image
85
+ try{
86
+
87
+ if((bool)$post_data['productimage']['delete']==1) {
88
+
89
+ $post_data['productimage']='';
90
+
91
+ }
92
+ else {
93
+
94
+ unset($post_data['productimage']);
95
+
96
+ if (isset($_FILES)){
97
+
98
+ if ($_FILES['productimage']['name']) {
99
+
100
+ if($this->getRequest()->getParam("id")){
101
+ $model = Mage::getModel("rotateproduct/rotateproduct")->load($this->getRequest()->getParam("id"));
102
+ if($model->getData('productimage')){
103
+ $io = new Varien_Io_File();
104
+ $io->rm(Mage::getBaseDir('media').DS.implode(DS,explode('/',$model->getData('productimage'))));
105
+ }
106
+ }
107
+ $path = Mage::getBaseDir('media') . DS . 'rotateproduct' . DS .'rotateproduct'.DS;
108
+ $uploader = new Varien_File_Uploader('productimage');
109
+ $uploader->setAllowedExtensions(array('jpg','png','gif'));
110
+ $uploader->setAllowRenameFiles(false);
111
+ $uploader->setFilesDispersion(false);
112
+ $destFile = $path.$_FILES['productimage']['name'];
113
+ $filename = $uploader->getNewFileName($destFile);
114
+ $uploader->save($path, $filename);
115
+
116
+ $post_data['productimage']='rotateproduct/rotateproduct/'.$filename;
117
+ }
118
+ }
119
+ }
120
+
121
+ } catch (Exception $e) {
122
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
123
+ $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
124
+ return;
125
+ }
126
+ //save image
127
+
128
+
129
+ $model = Mage::getModel("rotateproduct/rotateproduct")
130
+ ->addData($post_data)
131
+ ->setId($this->getRequest()->getParam("id"))
132
+ ->save();
133
+
134
+ Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Rotateproduct was successfully saved"));
135
+ Mage::getSingleton("adminhtml/session")->setRotateproductData(false);
136
+
137
+ if ($this->getRequest()->getParam("back")) {
138
+ $this->_redirect("*/*/edit", array("id" => $model->getId()));
139
+ return;
140
+ }
141
+ $this->_redirect("*/*/");
142
+ return;
143
+ }
144
+ catch (Exception $e) {
145
+ Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
146
+ Mage::getSingleton("adminhtml/session")->setRotateproductData($this->getRequest()->getPost());
147
+ $this->_redirect("*/*/edit", array("id" => $this->getRequest()->getParam("id")));
148
+ return;
149
+ }
150
+
151
+ }
152
+ $this->_redirect("*/*/");
153
+ }
154
+
155
+
156
+
157
+ public function deleteAction()
158
+ {
159
+ if( $this->getRequest()->getParam("id") > 0 ) {
160
+ try {
161
+ $model = Mage::getModel("rotateproduct/rotateproduct");
162
+ $model->setId($this->getRequest()->getParam("id"))->delete();
163
+ Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Item was successfully deleted"));
164
+ $this->_redirect("*/*/");
165
+ }
166
+ catch (Exception $e) {
167
+ Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
168
+ $this->_redirect("*/*/edit", array("id" => $this->getRequest()->getParam("id")));
169
+ }
170
+ }
171
+ $this->_redirect("*/*/");
172
+ }
173
+
174
+
175
+ public function massRemoveAction()
176
+ {
177
+ try {
178
+ $ids = $this->getRequest()->getPost('ids', array());
179
+ foreach ($ids as $id) {
180
+ $model = Mage::getModel("rotateproduct/rotateproduct");
181
+ $model->setId($id)->delete();
182
+ }
183
+ Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Item(s) was successfully removed"));
184
+ }
185
+ catch (Exception $e) {
186
+ Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
187
+ }
188
+ $this->_redirect('*/*/');
189
+ }
190
+
191
+ /**
192
+ * Export order grid to CSV format
193
+ */
194
+ public function exportCsvAction()
195
+ {
196
+ $fileName = 'rotateproduct.csv';
197
+ $grid = $this->getLayout()->createBlock('rotateproduct/adminhtml_rotateproduct_grid');
198
+ $this->_prepareDownloadResponse($fileName, $grid->getCsvFile());
199
+ }
200
+ /**
201
+ * Export order grid to Excel XML format
202
+ */
203
+ public function exportExcelAction()
204
+ {
205
+ $fileName = 'rotateproduct.xml';
206
+ $grid = $this->getLayout()->createBlock('rotateproduct/adminhtml_rotateproduct_grid');
207
+ $this->_prepareDownloadResponse($fileName, $grid->getExcelFile($fileName));
208
+ }
209
+ }
app/code/community/Mks/Rotateproduct/controllers/Adminhtml/RotateproductbackendController.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Rotateproduct_Adminhtml_RotateproductbackendController extends Mage_Adminhtml_Controller_Action
3
+ {
4
+ public function indexAction()
5
+ {
6
+ $this->loadLayout();
7
+ $this->_title($this->__("About Us"));
8
+ $this->renderLayout();
9
+ }
10
+ }
app/code/community/Mks/Rotateproduct/etc/adminhtml.xml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <acl>
4
+ <resources>
5
+ <admin>
6
+ <children>
7
+ <system>
8
+ <children>
9
+ <config>
10
+ <children>
11
+ <rotateproductsection translate="title" module="rotateproduct">
12
+ <title>Genaral Setting Section</title>
13
+ <sort_order>0</sort_order>
14
+ </rotateproductsection>
15
+ </children>
16
+ </config>
17
+ </children>
18
+ </system>
19
+ </children>
20
+ </admin>
21
+ </resources>
22
+ </acl>
23
+ </config>
app/code/community/Mks/Rotateproduct/etc/config.xml ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Mks_Rotateproduct>
5
+ <version>8.1.1</version>
6
+ </Mks_Rotateproduct>
7
+ </modules>
8
+ <global>
9
+ <helpers>
10
+ <rotateproduct>
11
+ <class>Mks_Rotateproduct_Helper</class>
12
+ </rotateproduct>
13
+ </helpers>
14
+ <blocks>
15
+ <rotateproduct>
16
+ <class>Mks_Rotateproduct_Block</class>
17
+ </rotateproduct>
18
+ </blocks>
19
+ <models>
20
+ <rotateproduct>
21
+ <class>Mks_Rotateproduct_Model</class>
22
+ <resourceModel>rotateproduct_mysql4</resourceModel>
23
+ </rotateproduct>
24
+ <rotateproduct_mysql4>
25
+ <class>Mks_Rotateproduct_Model_Mysql4</class>
26
+ <entities>
27
+ <rotateproduct>
28
+ <table>mksrotatedegree</table>
29
+ </rotateproduct>
30
+ </entities>
31
+ </rotateproduct_mysql4>
32
+ </models>
33
+ <resources>
34
+ <rotateproduct_setup>
35
+ <setup>
36
+ <module>Mks_Rotateproduct</module>
37
+ </setup>
38
+ <connection>
39
+ <use>core_setup</use>
40
+ </connection>
41
+ </rotateproduct_setup>
42
+ <rotateproduct_write>
43
+ <connection>
44
+ <use>core_write</use>
45
+ </connection>
46
+ </rotateproduct_write>
47
+ <rotateproduct_read>
48
+ <connection>
49
+ <use>core_read</use>
50
+ </connection>
51
+ </rotateproduct_read>
52
+ </resources>
53
+ </global>
54
+ <admin>
55
+ <routers>
56
+ <rotateproduct>
57
+ <use>admin</use>
58
+ <args>
59
+ <module>Mks_Rotateproduct</module>
60
+ <frontName>rotateproduct</frontName>
61
+ </args>
62
+ </rotateproduct>
63
+ </routers>
64
+ </admin>
65
+ <adminhtml>
66
+ <menu>
67
+ <rotateproduct module="rotateproduct">
68
+ <title>Rotateproduct</title>
69
+ <sort_order>100</sort_order>
70
+ <children>
71
+ <rotateproductbackend module="rotateproduct">
72
+ <title>About Us</title>
73
+ <sort_order>0</sort_order>
74
+ <action>rotateproduct/adminhtml_rotateproductbackend</action>
75
+ </rotateproductbackend>
76
+ <rotateproduct module="rotateproduct">
77
+ <title>Manage Rotateproduct</title>
78
+ <sort_order>0</sort_order>
79
+ <action>rotateproduct/adminhtml_rotateproduct</action>
80
+ </rotateproduct>
81
+ </children>
82
+ </rotateproduct>
83
+ </menu>
84
+ <acl>
85
+ <resources>
86
+ <all>
87
+ <title>Allow Everything</title>
88
+ </all>
89
+ <admin>
90
+ <children>
91
+ <rotateproduct translate="title" module="rotateproduct">
92
+ <title>Rotateproduct</title>
93
+ <sort_order>1000</sort_order>
94
+ <children>
95
+ <rotateproductbackend translate="title">
96
+ <title>About Us</title>
97
+ </rotateproductbackend>
98
+ <rotateproduct translate="title">
99
+ <title>Manage Rotateproduct</title>
100
+ <sort_order>0</sort_order>
101
+ </rotateproduct>
102
+ </children>
103
+ </rotateproduct>
104
+ </children>
105
+ </admin>
106
+ </resources>
107
+ </acl>
108
+ <layout>
109
+ <updates>
110
+ <rotateproduct>
111
+ <file>rotateproduct.xml</file>
112
+ </rotateproduct>
113
+ </updates>
114
+ </layout>
115
+ </adminhtml>
116
+ </config>
app/code/community/Mks/Rotateproduct/etc/system.xml ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <rotateproducttab translate="label" module="rotateproduct">
5
+ <label>MKS 360 Degree Rotate</label>
6
+ <sort_order>0</sort_order>
7
+ </rotateproducttab>
8
+ </tabs>
9
+ <sections>
10
+ <rotateproductsection translate="label" module="rotateproduct">
11
+ <label>Genaral Setting</label>
12
+ <tab>rotateproducttab</tab>
13
+ <frontend_type>text</frontend_type>
14
+ <sort_order>0</sort_order>
15
+ <show_in_default>1</show_in_default>
16
+ <show_in_website>1</show_in_website>
17
+ <show_in_store>1</show_in_store>
18
+ <groups>
19
+ <rotateproductgroup translate="label">
20
+ <label>Configuration Setting</label>
21
+ <frontend_type>text</frontend_type>
22
+ <sort_order>0</sort_order>
23
+ <show_in_default>1</show_in_default>
24
+ <show_in_website>1</show_in_website>
25
+ <show_in_store>1</show_in_store>
26
+ <fields>
27
+ <viewerwidth translate="label">
28
+ <label>Viewer Width (px)</label>
29
+ <frontend_type>text</frontend_type>
30
+ <sort_order>0</sort_order>
31
+ <show_in_default>1</show_in_default>
32
+ <show_in_website>1</show_in_website>
33
+ <show_in_store>1</show_in_store>
34
+ <comment>Example :- 280</comment>
35
+ </viewerwidth>
36
+ <viewerheight translate="label">
37
+ <label>Viewer Height (px)</label>
38
+ <frontend_type>text</frontend_type>
39
+ <sort_order>0</sort_order>
40
+ <show_in_default>1</show_in_default>
41
+ <show_in_website>1</show_in_website>
42
+ <show_in_store>1</show_in_store>
43
+ <comment>Example :- 280</comment>
44
+ </viewerheight>
45
+ <licensekey translate="label">
46
+ <label>License key</label>
47
+ <frontend_type>text</frontend_type>
48
+ <sort_order>0</sort_order>
49
+ <show_in_default>1</show_in_default>
50
+ <show_in_website>1</show_in_website>
51
+ <show_in_store>1</show_in_store>
52
+ <comment>mks16464df44%445664*4444%4445#566+58</comment>
53
+ </licensekey>
54
+ </fields>
55
+ </rotateproductgroup>
56
+ <rotateproductgroupstatus translate="label">
57
+ <label>Configuration Status</label>
58
+ <frontend_type>text</frontend_type>
59
+ <sort_order>0</sort_order>
60
+ <show_in_default>1</show_in_default>
61
+ <show_in_website>1</show_in_website>
62
+ <show_in_store>1</show_in_store>
63
+ <fields>
64
+ <status translate="label">
65
+ <label>Status</label>
66
+ <frontend_type>select</frontend_type>
67
+ <source_model>adminhtml/system_config_source_yesno</source_model>
68
+ <sort_order>0</sort_order>
69
+ <show_in_default>1</show_in_default>
70
+ <show_in_website>1</show_in_website>
71
+ <show_in_store>1</show_in_store>
72
+ </status>
73
+ </fields>
74
+ </rotateproductgroupstatus>
75
+ </groups>
76
+ </rotateproductsection>
77
+ </sections>
78
+ </config>
app/code/community/Mks/Rotateproduct/sql/rotateproduct_setup/mysql4-install-8.1.1.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $installer = $this;
3
+ $installer->startSetup();
4
+ $sql=<<<SQLTEXT
5
+ create table mksrotatedegree(id int not null auto_increment, productid varchar(255), productimage varchar(255), imagename varchar(255), imageorder varchar(255), status varchar(100), primary key(id));
6
+
7
+ SQLTEXT;
8
+
9
+ $installer->run($sql);
10
+ //demo
11
+ //Mage::getModel('core/url_rewrite')->setId(null);
12
+ //demo
13
+ $installer->endSetup();
14
+
app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ class Mks_Storelocator_Block_Adminhtml_Storelocator extends Mage_Adminhtml_Block_Widget_Grid_Container{
5
+
6
+ public function __construct()
7
+ {
8
+
9
+ $this->_controller = "adminhtml_storelocator";
10
+ $this->_blockGroup = "storelocator";
11
+ $this->_headerText = Mage::helper("storelocator")->__("Storelocator Manager");
12
+ $this->_addButtonLabel = Mage::helper("storelocator")->__("Add New Item");
13
+ parent::__construct();
14
+
15
+ }
16
+
17
+ }
app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Mks_Storelocator_Block_Adminhtml_Storelocator_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
4
+ {
5
+ public function __construct()
6
+ {
7
+
8
+ parent::__construct();
9
+ $this->_objectId = "id";
10
+ $this->_blockGroup = "storelocator";
11
+ $this->_controller = "adminhtml_storelocator";
12
+ $this->_updateButton("save", "label", Mage::helper("storelocator")->__("Save Item"));
13
+ $this->_updateButton("delete", "label", Mage::helper("storelocator")->__("Delete Item"));
14
+
15
+ $this->_addButton("saveandcontinue", array(
16
+ "label" => Mage::helper("storelocator")->__("Save And Continue Edit"),
17
+ "onclick" => "saveAndContinueEdit()",
18
+ "class" => "save",
19
+ ), -100);
20
+
21
+
22
+
23
+ $this->_formScripts[] = "
24
+
25
+ function saveAndContinueEdit(){
26
+ editForm.submit($('edit_form').action+'back/edit/');
27
+ }
28
+ ";
29
+ }
30
+
31
+ public function getHeaderText()
32
+ {
33
+ if( Mage::registry("storelocator_data") && Mage::registry("storelocator_data")->getId() ){
34
+
35
+ return Mage::helper("storelocator")->__("Edit Item '%s'", $this->htmlEscape(Mage::registry("storelocator_data")->getId()));
36
+
37
+ }
38
+ else{
39
+
40
+ return Mage::helper("storelocator")->__("Add Item");
41
+
42
+ }
43
+ }
44
+ }
app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit/Form.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Storelocator_Block_Adminhtml_Storelocator_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
3
+ {
4
+ protected function _prepareForm()
5
+ {
6
+ $form = new Varien_Data_Form(array(
7
+ "id" => "edit_form",
8
+ "action" => $this->getUrl("*/*/save", array("id" => $this->getRequest()->getParam("id"))),
9
+ "method" => "post",
10
+ "enctype" =>"multipart/form-data",
11
+ )
12
+ );
13
+ $form->setUseContainer(true);
14
+ $this->setForm($form);
15
+ return parent::_prepareForm();
16
+ }
17
+ }
app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit/Tab/Form.php ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Storelocator_Block_Adminhtml_Storelocator_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
3
+ {
4
+ protected function _prepareForm()
5
+ {
6
+
7
+ $form = new Varien_Data_Form();
8
+ $this->setForm($form);
9
+ $fieldset = $form->addFieldset("storelocator_form", array("legend"=>Mage::helper("storelocator")->__("Item information")));
10
+
11
+
12
+ $fieldset->addField("name", "text", array(
13
+ "label" => Mage::helper("storelocator")->__("Name"),
14
+ "class" => "required-entry",
15
+ "required" => true,
16
+ "name" => "name",
17
+ ));
18
+
19
+ $fieldset->addField("address", "textarea", array(
20
+ "label" => Mage::helper("storelocator")->__("Address"),
21
+ "name" => "address",
22
+ ));
23
+
24
+ $fieldset->addField("zipcode", "text", array(
25
+ "label" => Mage::helper("storelocator")->__("Zipcode"),
26
+ "name" => "zipcode",
27
+ ));
28
+
29
+ $fieldset->addField("city", "text", array(
30
+ "label" => Mage::helper("storelocator")->__("City"),
31
+ "name" => "city",
32
+ ));
33
+
34
+ $fieldset->addField("country_id", "text", array(
35
+ "label" => Mage::helper("storelocator")->__("Country"),
36
+ "name" => "country_id",
37
+ ));
38
+
39
+ $fieldset->addField("phone", "text", array(
40
+ "label" => Mage::helper("storelocator")->__("Phone"),
41
+ "name" => "phone",
42
+ ));
43
+
44
+ $fieldset->addField("fax", "text", array(
45
+ "label" => Mage::helper("storelocator")->__("Fax"),
46
+ "name" => "fax",
47
+ ));
48
+
49
+ $fieldset->addField("description", "textarea", array(
50
+ "label" => Mage::helper("storelocator")->__("Description"),
51
+ "name" => "description",
52
+ ));
53
+
54
+ $fieldset->addField("store_url", "text", array(
55
+ "label" => Mage::helper("storelocator")->__("Store Url"),
56
+ "name" => "store_url",
57
+ ));
58
+
59
+ $fieldset->addField("email", "text", array(
60
+ "label" => Mage::helper("storelocator")->__("Email"),
61
+ "name" => "email",
62
+ ));
63
+
64
+ $fieldset->addField("tradinghours", "text", array(
65
+ "label" => Mage::helper("storelocator")->__("Trading Hours"),
66
+ "name" => "tradinghours",
67
+ ));
68
+
69
+ $fieldset->addField("radius", "text", array(
70
+ "label" => Mage::helper("storelocator")->__("Radius"),
71
+ "class" => "required-entry",
72
+ "required" => true,
73
+ "name" => "radius",
74
+ ));
75
+
76
+ $fieldset->addField('image', 'image', array(
77
+ 'label' => Mage::helper('storelocator')->__('Store Image'),
78
+ 'name' => 'image',
79
+ 'note' => '(*.jpg, *.png, *.gif)',
80
+ ));
81
+ $fieldset->addField("lat", "text", array(
82
+ "label" => Mage::helper("storelocator")->__("Latitude"),
83
+ "class" => "required-entry",
84
+ "required" => true,
85
+ "name" => "lat",
86
+ ));
87
+
88
+ $fieldset->addField("longt", "text", array(
89
+ "label" => Mage::helper("storelocator")->__("Longitude"),
90
+ "class" => "required-entry",
91
+ "required" => true,
92
+ "name" => "longt",
93
+ ));
94
+
95
+ $fieldset->addField('status', 'select', array(
96
+ 'label' => Mage::helper('storelocator')->__('Status'),
97
+ 'values' => Mks_Storelocator_Block_Adminhtml_Storelocator_Grid::getValueArray15(),
98
+ 'name' => 'status',
99
+ ));
100
+
101
+ if (Mage::getSingleton("adminhtml/session")->getStorelocatorData())
102
+ {
103
+ $form->setValues(Mage::getSingleton("adminhtml/session")->getStorelocatorData());
104
+ Mage::getSingleton("adminhtml/session")->setStorelocatorData(null);
105
+ }
106
+ elseif(Mage::registry("storelocator_data")) {
107
+ $form->setValues(Mage::registry("storelocator_data")->getData());
108
+ }
109
+ return parent::_prepareForm();
110
+ }
111
+ }
app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit/Tabs.php ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Storelocator_Block_Adminhtml_Storelocator_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
3
+ {
4
+ public function __construct()
5
+ {
6
+ parent::__construct();
7
+ $this->setId("storelocator_tabs");
8
+ $this->setDestElementId("edit_form");
9
+ $this->setTitle(Mage::helper("storelocator")->__("Item Information"));
10
+ }
11
+ protected function _beforeToHtml()
12
+ {
13
+ $this->addTab("form_section", array(
14
+ "label" => Mage::helper("storelocator")->__("Item Information"),
15
+ "title" => Mage::helper("storelocator")->__("Item Information"),
16
+ "content" => $this->getLayout()->createBlock("storelocator/adminhtml_storelocator_edit_tab_form")->toHtml(),
17
+ ));
18
+ return parent::_beforeToHtml();
19
+ }
20
+
21
+ }
app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Grid.php ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Mks_Storelocator_Block_Adminhtml_Storelocator_Grid extends Mage_Adminhtml_Block_Widget_Grid
4
+ {
5
+
6
+ public function __construct()
7
+ {
8
+ parent::__construct();
9
+ $this->setId("storelocatorGrid");
10
+ $this->setDefaultSort("id");
11
+ $this->setDefaultDir("DESC");
12
+ $this->setSaveParametersInSession(true);
13
+ }
14
+
15
+ protected function _prepareCollection()
16
+ {
17
+ $collection = Mage::getModel("storelocator/storelocator")->getCollection();
18
+ $this->setCollection($collection);
19
+ return parent::_prepareCollection();
20
+ }
21
+ protected function _prepareColumns()
22
+ {
23
+ $this->addColumn("id", array(
24
+ "header" => Mage::helper("storelocator")->__("ID"),
25
+ "align" =>"right",
26
+ "width" => "50px",
27
+ "type" => "number",
28
+ "index" => "id",
29
+ ));
30
+
31
+ $this->addColumn("name", array(
32
+ "header" => Mage::helper("storelocator")->__("Name"),
33
+ "index" => "name",
34
+ ));
35
+ $this->addColumn("zipcode", array(
36
+ "header" => Mage::helper("storelocator")->__("Zipcode"),
37
+ "index" => "zipcode",
38
+ ));
39
+ $this->addColumn("city", array(
40
+ "header" => Mage::helper("storelocator")->__("City"),
41
+ "index" => "city",
42
+ ));
43
+ $this->addColumn("country_id", array(
44
+ "header" => Mage::helper("storelocator")->__("Country"),
45
+ "index" => "country_id",
46
+ ));
47
+ $this->addColumn("phone", array(
48
+ "header" => Mage::helper("storelocator")->__("Phone"),
49
+ "index" => "phone",
50
+ ));
51
+ $this->addColumn("fax", array(
52
+ "header" => Mage::helper("storelocator")->__("Fax"),
53
+ "index" => "fax",
54
+ ));
55
+ $this->addColumn("store_url", array(
56
+ "header" => Mage::helper("storelocator")->__("Store Url"),
57
+ "index" => "store_url",
58
+ ));
59
+ $this->addColumn("email", array(
60
+ "header" => Mage::helper("storelocator")->__("Email"),
61
+ "index" => "email",
62
+ ));
63
+ $this->addColumn("tradinghours", array(
64
+ "header" => Mage::helper("storelocator")->__("Trading Hours"),
65
+ "index" => "tradinghours",
66
+ ));
67
+ $this->addColumn("radius", array(
68
+ "header" => Mage::helper("storelocator")->__("Radius"),
69
+ "index" => "radius",
70
+ ));
71
+ $this->addColumn("lat", array(
72
+ "header" => Mage::helper("storelocator")->__("Latitude"),
73
+ "index" => "lat",
74
+ ));
75
+ $this->addColumn("longt", array(
76
+ "header" => Mage::helper("storelocator")->__("Longitude"),
77
+ "index" => "longt",
78
+ ));
79
+ $this->addColumn('status', array(
80
+ 'header' => Mage::helper('storelocator')->__('Status'),
81
+ 'index' => 'status',
82
+ 'type' => 'options',
83
+ 'options'=>Mks_Storelocator_Block_Adminhtml_Storelocator_Grid::getOptionArray15(),
84
+ ));
85
+
86
+ $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
87
+ $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel'));
88
+
89
+ return parent::_prepareColumns();
90
+ }
91
+
92
+ public function getRowUrl($row)
93
+ {
94
+ return $this->getUrl("*/*/edit", array("id" => $row->getId()));
95
+ }
96
+
97
+
98
+
99
+ protected function _prepareMassaction()
100
+ {
101
+ $this->setMassactionIdField('id');
102
+ $this->getMassactionBlock()->setFormFieldName('ids');
103
+ $this->getMassactionBlock()->setUseSelectAll(true);
104
+ $this->getMassactionBlock()->addItem('remove_storelocator', array(
105
+ 'label'=> Mage::helper('storelocator')->__('Remove Storelocator'),
106
+ 'url' => $this->getUrl('*/adminhtml_storelocator/massRemove'),
107
+ 'confirm' => Mage::helper('storelocator')->__('Are you sure?')
108
+ ));
109
+ return $this;
110
+ }
111
+
112
+ static public function getOptionArray15()
113
+ {
114
+ $data_array=array();
115
+ $data_array[0]='Enable';
116
+ $data_array[1]='Disasble';
117
+ return($data_array);
118
+ }
119
+ static public function getValueArray15()
120
+ {
121
+ $data_array=array();
122
+ foreach(Mks_Storelocator_Block_Adminhtml_Storelocator_Grid::getOptionArray15() as $k=>$v){
123
+ $data_array[]=array('value'=>$k,'label'=>$v);
124
+ }
125
+ return($data_array);
126
+
127
+ }
128
+
129
+
130
+ }
app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocatorbackend.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+
3
+ class Mks_Storelocator_Block_Adminhtml_Storelocatorbackend extends Mage_Adminhtml_Block_Template {
4
+
5
+ }
app/code/community/Mks/Storelocator/Block/Index.php ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Storelocator_Block_Index extends Mage_Core_Block_Template{
3
+
4
+
5
+
6
+ public function getStorelocatorEnabled()
7
+ {
8
+ return Mage::getStoreConfig('storelocatorcode/storeloactorsetting/enable',Mage::app()->getStore());
9
+ }
10
+ public function getStorelocatorName()
11
+ {
12
+ return Mage::getStoreConfig('storelocatorcode/storeloactorfields/name',Mage::app()->getStore());
13
+ }
14
+ public function getStorelocatorAddress()
15
+ {
16
+ return Mage::getStoreConfig('storelocatorcode/storeloactorfields/address',Mage::app()->getStore());
17
+ }
18
+ public function getStorelocatorZipcode()
19
+ {
20
+ return Mage::getStoreConfig('storelocatorcode/storeloactorfields/zipcode',Mage::app()->getStore());
21
+ }
22
+ public function getStorelocatorCity()
23
+ {
24
+ return Mage::getStoreConfig('storelocatorcode/storeloactorfields/city',Mage::app()->getStore());
25
+ }
26
+ public function getStorelocatorCountry()
27
+ {
28
+ return Mage::getStoreConfig('storelocatorcode/storeloactorfields/Country',Mage::app()->getStore());
29
+ }
30
+ public function getStorelocatorPhone()
31
+ {
32
+ return Mage::getStoreConfig('storelocatorcode/storeloactorfields/phone',Mage::app()->getStore());
33
+ }
34
+ public function getStorelocatorFax()
35
+ {
36
+ return Mage::getStoreConfig('storelocatorcode/storeloactorfields/fax',Mage::app()->getStore());
37
+ }
38
+ public function getStorelocatorDescription()
39
+ {
40
+ return Mage::getStoreConfig('storelocatorcode/storeloactorfields/description',Mage::app()->getStore());
41
+ }
42
+ public function getStorelocatorStoreurl()
43
+ {
44
+ return Mage::getStoreConfig('storelocatorcode/storeloactorfields/storeurl',Mage::app()->getStore());
45
+ }
46
+ public function getStorelocatorEmail()
47
+ {
48
+ return Mage::getStoreConfig('storelocatorcode/storeloactorfields/email',Mage::app()->getStore());
49
+ }
50
+ public function getStorelocatorTradinghours()
51
+ {
52
+ return Mage::getStoreConfig('storelocatorcode/storeloactorfields/tradinghours',Mage::app()->getStore());
53
+ }
54
+ public function getStorelocatorImage()
55
+ {
56
+ return Mage::getStoreConfig('storelocatorcode/storeloactorfields/image',Mage::app()->getStore());
57
+ }
58
+
59
+
60
+ }
app/code/community/Mks/Storelocator/Helper/Data.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+ class Mks_Storelocator_Helper_Data extends Mage_Core_Helper_Abstract
3
+ {
4
+ }
5
+
app/code/community/Mks/Storelocator/Model/Mysql4/Storelocator.php ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Storelocator_Model_Mysql4_Storelocator extends Mage_Core_Model_Mysql4_Abstract
3
+ {
4
+ protected function _construct()
5
+ {
6
+ $this->_init("storelocator/storelocator", "id");
7
+ }
8
+ }
app/code/community/Mks/Storelocator/Model/Mysql4/Storelocator/Collection.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Storelocator_Model_Mysql4_Storelocator_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
3
+ {
4
+
5
+ public function _construct(){
6
+ $this->_init("storelocator/storelocator");
7
+ }
8
+
9
+
10
+
11
+ }
12
+
app/code/community/Mks/Storelocator/Model/Storelocator.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Mks_Storelocator_Model_Storelocator extends Mage_Core_Model_Abstract
4
+ {
5
+ protected function _construct(){
6
+
7
+ $this->_init("storelocator/storelocator");
8
+
9
+ }
10
+
11
+ }
12
+
app/code/community/Mks/Storelocator/controllers/Adminhtml/StorelocatorController.php ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Mks_Storelocator_Adminhtml_StorelocatorController extends Mage_Adminhtml_Controller_Action
4
+ {
5
+ protected function _initAction()
6
+ {
7
+ $this->loadLayout()->_setActiveMenu("storelocator/storelocator")->_addBreadcrumb(Mage::helper("adminhtml")->__("Storelocator Manager"),Mage::helper("adminhtml")->__("Storelocator Manager"));
8
+ return $this;
9
+ }
10
+ public function indexAction()
11
+ {
12
+ $this->_title($this->__("Storelocator"));
13
+ $this->_title($this->__("Manager Storelocator"));
14
+
15
+ $this->_initAction();
16
+ $this->renderLayout();
17
+ }
18
+ public function editAction()
19
+ {
20
+ $this->_title($this->__("Storelocator"));
21
+ $this->_title($this->__("Storelocator"));
22
+ $this->_title($this->__("Edit Item"));
23
+
24
+ $id = $this->getRequest()->getParam("id");
25
+ $model = Mage::getModel("storelocator/storelocator")->load($id);
26
+ if ($model->getId()) {
27
+ Mage::register("storelocator_data", $model);
28
+ $this->loadLayout();
29
+ $this->_setActiveMenu("storelocator/storelocator");
30
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Storelocator Manager"), Mage::helper("adminhtml")->__("Storelocator Manager"));
31
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Storelocator Description"), Mage::helper("adminhtml")->__("Storelocator Description"));
32
+ $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
33
+ $this->_addContent($this->getLayout()->createBlock("storelocator/adminhtml_storelocator_edit"))->_addLeft($this->getLayout()->createBlock("storelocator/adminhtml_storelocator_edit_tabs"));
34
+ $this->renderLayout();
35
+ }
36
+ else {
37
+ Mage::getSingleton("adminhtml/session")->addError(Mage::helper("storelocator")->__("Item does not exist."));
38
+ $this->_redirect("*/*/");
39
+ }
40
+ }
41
+
42
+ public function newAction()
43
+ {
44
+
45
+ $this->_title($this->__("Storelocator"));
46
+ $this->_title($this->__("Storelocator"));
47
+ $this->_title($this->__("New Item"));
48
+
49
+ $id = $this->getRequest()->getParam("id");
50
+ $model = Mage::getModel("storelocator/storelocator")->load($id);
51
+
52
+ $data = Mage::getSingleton("adminhtml/session")->getFormData(true);
53
+ if (!empty($data)) {
54
+ $model->setData($data);
55
+ }
56
+
57
+ Mage::register("storelocator_data", $model);
58
+
59
+ $this->loadLayout();
60
+ $this->_setActiveMenu("storelocator/storelocator");
61
+
62
+ $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
63
+
64
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Storelocator Manager"), Mage::helper("adminhtml")->__("Storelocator Manager"));
65
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Storelocator Description"), Mage::helper("adminhtml")->__("Storelocator Description"));
66
+
67
+
68
+ $this->_addContent($this->getLayout()->createBlock("storelocator/adminhtml_storelocator_edit"))->_addLeft($this->getLayout()->createBlock("storelocator/adminhtml_storelocator_edit_tabs"));
69
+
70
+ $this->renderLayout();
71
+
72
+ }
73
+ public function saveAction()
74
+ {
75
+
76
+ $post_data=$this->getRequest()->getPost();
77
+
78
+
79
+ if ($post_data) {
80
+
81
+ try {
82
+
83
+
84
+ //save image
85
+ try{
86
+
87
+ if((bool)$post_data['image']['delete']==1) {
88
+
89
+ $post_data['image']='';
90
+
91
+ }
92
+ else {
93
+
94
+ unset($post_data['image']);
95
+
96
+ if (isset($_FILES)){
97
+
98
+ if ($_FILES['image']['name']) {
99
+
100
+ if($this->getRequest()->getParam("id")){
101
+ $model = Mage::getModel("storelocator/storelocator")->load($this->getRequest()->getParam("id"));
102
+ if($model->getData('image')){
103
+ $io = new Varien_Io_File();
104
+ $io->rm(Mage::getBaseDir('media').DS.implode(DS,explode('/',$model->getData('image'))));
105
+ }
106
+ }
107
+ $path = Mage::getBaseDir('media') . DS . 'storelocator' . DS .'storelocator'.DS;
108
+ $uploader = new Varien_File_Uploader('image');
109
+ $uploader->setAllowedExtensions(array('jpg','png','gif'));
110
+ $uploader->setAllowRenameFiles(false);
111
+ $uploader->setFilesDispersion(false);
112
+ $destFile = $path.$_FILES['image']['name'];
113
+ $filename = $uploader->getNewFileName($destFile);
114
+ $uploader->save($path, $filename);
115
+
116
+ $post_data['image']='storelocator/storelocator/'.$filename;
117
+ }
118
+ }
119
+ }
120
+
121
+ } catch (Exception $e) {
122
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
123
+ $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
124
+ return;
125
+ }
126
+ //save image
127
+
128
+
129
+ $model = Mage::getModel("storelocator/storelocator")
130
+ ->addData($post_data)
131
+ ->setId($this->getRequest()->getParam("id"))
132
+ ->save();
133
+
134
+ Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Storelocator was successfully saved"));
135
+ Mage::getSingleton("adminhtml/session")->setStorelocatorData(false);
136
+
137
+ if ($this->getRequest()->getParam("back")) {
138
+ $this->_redirect("*/*/edit", array("id" => $model->getId()));
139
+ return;
140
+ }
141
+ $this->_redirect("*/*/");
142
+ return;
143
+ }
144
+ catch (Exception $e) {
145
+ Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
146
+ Mage::getSingleton("adminhtml/session")->setStorelocatorData($this->getRequest()->getPost());
147
+ $this->_redirect("*/*/edit", array("id" => $this->getRequest()->getParam("id")));
148
+ return;
149
+ }
150
+
151
+ }
152
+ $this->_redirect("*/*/");
153
+ }
154
+
155
+
156
+
157
+ public function deleteAction()
158
+ {
159
+ if( $this->getRequest()->getParam("id") > 0 ) {
160
+ try {
161
+ $model = Mage::getModel("storelocator/storelocator");
162
+ $model->setId($this->getRequest()->getParam("id"))->delete();
163
+ Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Item was successfully deleted"));
164
+ $this->_redirect("*/*/");
165
+ }
166
+ catch (Exception $e) {
167
+ Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
168
+ $this->_redirect("*/*/edit", array("id" => $this->getRequest()->getParam("id")));
169
+ }
170
+ }
171
+ $this->_redirect("*/*/");
172
+ }
173
+
174
+
175
+ public function massRemoveAction()
176
+ {
177
+ try {
178
+ $ids = $this->getRequest()->getPost('ids', array());
179
+ foreach ($ids as $id) {
180
+ $model = Mage::getModel("storelocator/storelocator");
181
+ $model->setId($id)->delete();
182
+ }
183
+ Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Item(s) was successfully removed"));
184
+ }
185
+ catch (Exception $e) {
186
+ Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
187
+ }
188
+ $this->_redirect('*/*/');
189
+ }
190
+
191
+ /**
192
+ * Export order grid to CSV format
193
+ */
194
+ public function exportCsvAction()
195
+ {
196
+ $fileName = 'storelocator.csv';
197
+ $grid = $this->getLayout()->createBlock('storelocator/adminhtml_storelocator_grid');
198
+ $this->_prepareDownloadResponse($fileName, $grid->getCsvFile());
199
+ }
200
+ /**
201
+ * Export order grid to Excel XML format
202
+ */
203
+ public function exportExcelAction()
204
+ {
205
+ $fileName = 'storelocator.xml';
206
+ $grid = $this->getLayout()->createBlock('storelocator/adminhtml_storelocator_grid');
207
+ $this->_prepareDownloadResponse($fileName, $grid->getExcelFile($fileName));
208
+ }
209
+ }
app/code/community/Mks/Storelocator/controllers/Adminhtml/StorelocatorbackendController.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Storelocator_Adminhtml_StorelocatorbackendController extends Mage_Adminhtml_Controller_Action
3
+ {
4
+ public function indexAction()
5
+ {
6
+ $this->loadLayout();
7
+ $this->_title($this->__("About Us"));
8
+ $this->renderLayout();
9
+ }
10
+ }
app/code/community/Mks/Storelocator/controllers/IndexController.php ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Storelocator_IndexController extends Mage_Core_Controller_Front_Action{
3
+ public function IndexAction() {
4
+
5
+ $this->loadLayout();
6
+ $this->getLayout()->getBlock("head")->setTitle($this->__("Store locator"));
7
+ $breadcrumbs = $this->getLayout()->getBlock("breadcrumbs");
8
+ $breadcrumbs->addCrumb("home", array(
9
+ "label" => $this->__("Home Page"),
10
+ "title" => $this->__("Home Page"),
11
+ "link" => Mage::getBaseUrl()
12
+ ));
13
+
14
+ $breadcrumbs->addCrumb("store locator", array(
15
+ "label" => $this->__("Store locator"),
16
+ "title" => $this->__("Store locator")
17
+ ));
18
+
19
+ $this->renderLayout();
20
+
21
+ }
22
+ }
app/code/community/Mks/Storelocator/etc/adminhtml.xml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <acl>
4
+ <resources>
5
+ <admin>
6
+ <children>
7
+ <system>
8
+ <children>
9
+ <config>
10
+ <children>
11
+ <storelocatorcode translate="title" module="storelocator">
12
+ <title>General Setting Section</title>
13
+ <sort_order>0</sort_order>
14
+ </storelocatorcode>
15
+ </children>
16
+ </config>
17
+ </children>
18
+ </system>
19
+ </children>
20
+ </admin>
21
+ </resources>
22
+ </acl>
23
+ </config>
app/code/community/Mks/Storelocator/etc/config.xml ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Mks_Storelocator>
5
+ <version>8.1.1</version>
6
+ </Mks_Storelocator>
7
+ </modules>
8
+ <frontend>
9
+ <routers>
10
+ <storelocator>
11
+ <use>standard</use>
12
+ <args>
13
+ <module>Mks_Storelocator</module>
14
+ <frontName>storelocator</frontName>
15
+ </args>
16
+ </storelocator>
17
+ </routers>
18
+ <layout>
19
+ <updates>
20
+ <storelocator>
21
+ <file>storelocator.xml</file>
22
+ </storelocator>
23
+ </updates>
24
+ </layout>
25
+ </frontend>
26
+ <global>
27
+ <helpers>
28
+ <storelocator>
29
+ <class>Mks_Storelocator_Helper</class>
30
+ </storelocator>
31
+ </helpers>
32
+ <blocks>
33
+ <storelocator>
34
+ <class>Mks_Storelocator_Block</class>
35
+ </storelocator>
36
+ </blocks>
37
+ <models>
38
+ <storelocator>
39
+ <class>Mks_Storelocator_Model</class>
40
+ <resourceModel>storelocator_mysql4</resourceModel>
41
+ </storelocator>
42
+ <storelocator_mysql4>
43
+ <class>Mks_Storelocator_Model_Mysql4</class>
44
+ <entities>
45
+ <storelocator>
46
+ <table>mksstorelocator</table>
47
+ </storelocator>
48
+ </entities>
49
+ </storelocator_mysql4>
50
+ </models>
51
+ <resources>
52
+ <storelocator_setup>
53
+ <setup>
54
+ <module>Mks_Storelocator</module>
55
+ </setup>
56
+ <connection>
57
+ <use>core_setup</use>
58
+ </connection>
59
+ </storelocator_setup>
60
+ <storelocator_write>
61
+ <connection>
62
+ <use>core_write</use>
63
+ </connection>
64
+ </storelocator_write>
65
+ <storelocator_read>
66
+ <connection>
67
+ <use>core_read</use>
68
+ </connection>
69
+ </storelocator_read>
70
+ </resources>
71
+ </global>
72
+ <admin>
73
+ <routers>
74
+ <storelocator>
75
+ <use>admin</use>
76
+ <args>
77
+ <module>Mks_Storelocator</module>
78
+ <frontName>storelocator</frontName>
79
+ </args>
80
+ </storelocator>
81
+ </routers>
82
+ </admin>
83
+ <adminhtml>
84
+ <menu>
85
+ <storelocator module="storelocator">
86
+ <title>Storelocator</title>
87
+ <sort_order>100</sort_order>
88
+ <children>
89
+ <storelocatorbackend module="storelocator">
90
+ <title> CSV Import / Export </title>
91
+ <sort_order>0</sort_order>
92
+ <action>storelocator/adminhtml_storelocatorbackend</action>
93
+ </storelocatorbackend>
94
+ <storelocator module="storelocator">
95
+ <title>Manage Storelocator</title>
96
+ <sort_order>0</sort_order>
97
+ <action>storelocator/adminhtml_storelocator</action>
98
+ </storelocator>
99
+ </children>
100
+ </storelocator>
101
+ </menu>
102
+ <acl>
103
+ <resources>
104
+ <all>
105
+ <title>Allow Everything</title>
106
+ </all>
107
+ <admin>
108
+ <children>
109
+ <storelocator translate="title" module="storelocator">
110
+ <title>Storelocator</title>
111
+ <sort_order>1000</sort_order>
112
+ <children>
113
+ <storelocatorbackend translate="title">
114
+ <title>About Us</title>
115
+ </storelocatorbackend>
116
+ <storelocator translate="title">
117
+ <title>Manage Storelocator</title>
118
+ <sort_order>0</sort_order>
119
+ </storelocator>
120
+ </children>
121
+ </storelocator>
122
+ </children>
123
+ </admin>
124
+ </resources>
125
+ </acl>
126
+ <layout>
127
+ <updates>
128
+ <storelocator>
129
+ <file>storelocator.xml</file>
130
+ </storelocator>
131
+ </updates>
132
+ </layout>
133
+ </adminhtml>
134
+ </config>
app/code/community/Mks/Storelocator/etc/system.xml ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <storeloactortab translate="label" module="storelocator">
5
+ <label>Mks Store Locator</label>
6
+ <sort_order>0</sort_order>
7
+ </storeloactortab>
8
+ </tabs>
9
+ <sections>
10
+ <storelocatorcode translate="label" module="storelocator">
11
+ <label>General Setting</label>
12
+ <tab>storeloactortab</tab>
13
+ <frontend_type>text</frontend_type>
14
+ <sort_order>0</sort_order>
15
+ <show_in_default>1</show_in_default>
16
+ <show_in_website>1</show_in_website>
17
+ <show_in_store>1</show_in_store>
18
+ <groups>
19
+ <storeloactorfields translate="label">
20
+ <label>Frontend end Fileds to show</label>
21
+ <frontend_type>text</frontend_type>
22
+ <sort_order>1</sort_order>
23
+ <show_in_default>1</show_in_default>
24
+ <show_in_website>1</show_in_website>
25
+ <show_in_store>1</show_in_store>
26
+ <fields>
27
+ <name translate="label">
28
+ <label>Name</label>
29
+ <frontend_type>select</frontend_type>
30
+ <source_model>adminhtml/system_config_source_yesno</source_model>
31
+ <sort_order>0</sort_order>
32
+ <show_in_default>1</show_in_default>
33
+ <show_in_website>1</show_in_website>
34
+ <show_in_store>1</show_in_store>
35
+ </name>
36
+ <address translate="label">
37
+ <label>Address</label>
38
+ <frontend_type>select</frontend_type>
39
+ <source_model>adminhtml/system_config_source_yesno</source_model>
40
+ <sort_order>1</sort_order>
41
+ <show_in_default>1</show_in_default>
42
+ <show_in_website>1</show_in_website>
43
+ <show_in_store>1</show_in_store>
44
+ </address>
45
+ <zipcode translate="label">
46
+ <label>Zipcode</label>
47
+ <frontend_type>select</frontend_type>
48
+ <source_model>adminhtml/system_config_source_yesno</source_model>
49
+ <sort_order>2</sort_order>
50
+ <show_in_default>1</show_in_default>
51
+ <show_in_website>1</show_in_website>
52
+ <show_in_store>1</show_in_store>
53
+ </zipcode>
54
+ <city translate="label">
55
+ <label>City</label>
56
+ <frontend_type>select</frontend_type>
57
+ <source_model>adminhtml/system_config_source_yesno</source_model>
58
+ <sort_order>3</sort_order>
59
+ <show_in_default>1</show_in_default>
60
+ <show_in_website>1</show_in_website>
61
+ <show_in_store>1</show_in_store>
62
+ </city>
63
+ <country translate="label">
64
+ <label>Country</label>
65
+ <frontend_type>select</frontend_type>
66
+ <source_model>adminhtml/system_config_source_yesno</source_model>
67
+ <sort_order>4</sort_order>
68
+ <show_in_default>1</show_in_default>
69
+ <show_in_website>1</show_in_website>
70
+ <show_in_store>1</show_in_store>
71
+ </country>
72
+ <phone translate="label">
73
+ <label>Phone</label>
74
+ <frontend_type>select</frontend_type>
75
+ <source_model>adminhtml/system_config_source_yesno</source_model>
76
+ <sort_order>5</sort_order>
77
+ <show_in_default>1</show_in_default>
78
+ <show_in_website>1</show_in_website>
79
+ <show_in_store>1</show_in_store>
80
+ </phone>
81
+ <fax translate="label">
82
+ <label>Fax</label>
83
+ <frontend_type>select</frontend_type>
84
+ <source_model>adminhtml/system_config_source_yesno</source_model>
85
+ <sort_order>6</sort_order>
86
+ <show_in_default>1</show_in_default>
87
+ <show_in_website>1</show_in_website>
88
+ <show_in_store>1</show_in_store>
89
+ </fax>
90
+ <description translate="label">
91
+ <label>Description</label>
92
+ <frontend_type>select</frontend_type>
93
+ <source_model>adminhtml/system_config_source_yesno</source_model>
94
+ <sort_order>7</sort_order>
95
+ <show_in_default>1</show_in_default>
96
+ <show_in_website>1</show_in_website>
97
+ <show_in_store>1</show_in_store>
98
+ </description>
99
+ <storeurl translate="label">
100
+ <label>Store URL</label>
101
+ <frontend_type>select</frontend_type>
102
+ <source_model>adminhtml/system_config_source_yesno</source_model>
103
+ <sort_order>8</sort_order>
104
+ <show_in_default>1</show_in_default>
105
+ <show_in_website>1</show_in_website>
106
+ <show_in_store>1</show_in_store>
107
+ </storeurl>
108
+ <email translate="label">
109
+ <label>Email</label>
110
+ <frontend_type>select</frontend_type>
111
+ <source_model>adminhtml/system_config_source_yesno</source_model>
112
+ <sort_order>9</sort_order>
113
+ <show_in_default>1</show_in_default>
114
+ <show_in_website>1</show_in_website>
115
+ <show_in_store>1</show_in_store>
116
+ </email>
117
+ <tradinghours translate="label">
118
+ <label>Trading Hours</label>
119
+ <frontend_type>select</frontend_type>
120
+ <source_model>adminhtml/system_config_source_yesno</source_model>
121
+ <sort_order>10</sort_order>
122
+ <show_in_default>1</show_in_default>
123
+ <show_in_website>1</show_in_website>
124
+ <show_in_store>1</show_in_store>
125
+ </tradinghours>
126
+ <image translate="label">
127
+ <label>Image</label>
128
+ <frontend_type>select</frontend_type>
129
+ <source_model>adminhtml/system_config_source_yesno</source_model>
130
+ <sort_order>11</sort_order>
131
+ <show_in_default>1</show_in_default>
132
+ <show_in_website>1</show_in_website>
133
+ <show_in_store>1</show_in_store>
134
+ </image>
135
+ </fields>
136
+ </storeloactorfields>
137
+ <storeloactorsetting translate="label">
138
+ <label>Setting </label>
139
+ <frontend_type>text</frontend_type>
140
+ <sort_order>0</sort_order>
141
+ <show_in_default>1</show_in_default>
142
+ <show_in_website>1</show_in_website>
143
+ <show_in_store>1</show_in_store>
144
+ <fields>
145
+ <enable translate="label">
146
+ <label>Staus</label>
147
+ <frontend_type>select</frontend_type>
148
+ <source_model>adminhtml/system_config_source_enabledisable</source_model>
149
+ <sort_order>0</sort_order>
150
+ <show_in_default>1</show_in_default>
151
+ <show_in_website>1</show_in_website>
152
+ <show_in_store>1</show_in_store>
153
+ </enable>
154
+ </fields>
155
+ </storeloactorsetting>
156
+ </groups>
157
+ </storelocatorcode>
158
+ </sections>
159
+ </config>
app/code/community/Mks/Storelocator/sql/storelocator_setup/mysql4-install-8.1.1.php ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $installer = $this;
3
+ $installer->startSetup();
4
+ $sql=<<<SQLTEXT
5
+ create table {$this->getTable('mksstorelocator')} (id int not null auto_increment, name varchar(100), address varchar(255),zipcode varchar(100),city varchar(100),country_id varchar(100),phone varchar(100),fax varchar(100),description varchar(255),store_url varchar(100),email varchar(100),tradinghours varchar(100),radius varchar(100),image varchar(100),lat varchar(100),longt varchar(100),status varchar(100),primary key(id));
6
+
7
+
8
+ INSERT INTO {$this->getTable('mksstorelocator')} (`name`, `address`, `zipcode`, `city`, `country_id`, `phone`, `fax`, `description`, `store_url`, `image`, `tradinghours`, `radius`, `lat`, `longt`, `status`) VALUES
9
+ ('Malviya Nagar','Malviya Nagar Rajasthan (India)','302018','jaipur','india','8764226568','xxxxx','Malviya Nagar Rajasthan (India) ','http://www.magentocommerce.com/magento-connect/developer/mukeshsaini','storelocator/storelocator/map1.jpg','7:00 To 8:00PM', '200','26.857126400000000000','75.812719900000050000','0'),
10
+ ('Karachi Sindh','Karachi Sindh Pakistan','302018','Karachi','Pakistan','8764226568','xxxxx','Karachi Sindh Pakistan ','http://www.magentocommerce.com/magento-connect/developer/mukeshsaini','storelocator/storelocator/map2.jpg','7:00 To 8:00PM', '200','24.893379000000000000','67.028060900000010000','0'),
11
+ ('New York NY','New York NY United States','302018','New York','United States','8764226568','xxxxx','New York NY United States ','http://www.magentocommerce.com/magento-connect/developer/mukeshsaini','storelocator/storelocator/map3.jpg','7:00 To 8:00PM', '250','40.714352800000000000','-74.005973100000000000','0'),
12
+ ('Malviya Nagar','Malviya Nagar Rajasthan (India)','302018','jaipur','india','8764226568','xxxxx','Malviya Nagar Rajasthan (India) ','http://www.magentocommerce.com/magento-connect/developer/mukeshsaini','storelocator/storelocator/map1.jpg','7:00 To 8:00PM', '200','26.857126400000000000','75.812719900000050000','0');
13
+
14
+ SQLTEXT;
15
+
16
+ $installer->run($sql);
17
+ //demo
18
+ //Mage::getModel('core/url_rewrite')->setId(null);
19
+ //demo
20
+ $installer->endSetup();
21
+
app/design/frontend/base/default/template/responsivebannerslider/index.phtml CHANGED
@@ -18,8 +18,6 @@ if($slide_type=='1'){ ?>
18
 
19
 
20
 
21
-
22
-
23
  <?php $cssurl = str_replace('index.php/','',$this->getUrl());?>
24
  <link rel="stylesheet" type="text/css" href="<?php echo $cssurl.'skin/frontend/base/default/responsiveslider/css/generic-nav.css'; ?>" media="all">
25
  <link rel="stylesheet" type="text/css" href="<?php echo $cssurl.'skin/frontend/base/default/responsiveslider/css/grid12.css'; ?>" media="all">
@@ -71,8 +69,9 @@ $url = $row1["url"];
71
  <script type="text/javascript">
72
  //<![CDATA[
73
  //jQuery(function($) {
74
- jQuery(window).load(function(){
75
- jQuery('.the-slideshow').flexslider({
 
76
  namespace:"",
77
  animation:'fade',
78
  easing:'easeInOutCirc',
@@ -139,6 +138,10 @@ $url = $row1["url"];
139
  </div>
140
  </a></li>
141
 
 
 
 
 
142
  <?php } ?>
143
  </ul>
144
  </div>
@@ -146,8 +149,9 @@ $url = $row1["url"];
146
  <script type="text/javascript">
147
  //<![CDATA[
148
  //jQuery(function($) {
149
- jQuery(window).load(function(){
150
- jQuery('.the-slideshow').flexslider({
 
151
  namespace:"",
152
  animation:'slide',
153
  easing:'easeInOutCirc',
@@ -174,7 +178,7 @@ pauseOnHover:<?php echo $slide_PauseOnhover; ?>
174
 
175
  <?php } else { ?>
176
 
177
- <h1 style="color:red;">Enable ( Responsive banner) Module via Admin = System -> Configuration-> General Setting </h1>
178
 
179
  <?php } ?>
180
 
18
 
19
 
20
 
 
 
21
  <?php $cssurl = str_replace('index.php/','',$this->getUrl());?>
22
  <link rel="stylesheet" type="text/css" href="<?php echo $cssurl.'skin/frontend/base/default/responsiveslider/css/generic-nav.css'; ?>" media="all">
23
  <link rel="stylesheet" type="text/css" href="<?php echo $cssurl.'skin/frontend/base/default/responsiveslider/css/grid12.css'; ?>" media="all">
69
  <script type="text/javascript">
70
  //<![CDATA[
71
  //jQuery(function($) {
72
+ responsivemks = jQuery.noConflict();
73
+ responsivemks(window).load(function(){
74
+ responsivemks('.the-slideshow').flexslider({
75
  namespace:"",
76
  animation:'fade',
77
  easing:'easeInOutCirc',
138
  </div>
139
  </a></li>
140
 
141
+
142
+
143
+
144
+
145
  <?php } ?>
146
  </ul>
147
  </div>
149
  <script type="text/javascript">
150
  //<![CDATA[
151
  //jQuery(function($) {
152
+ responsivemks = jQuery.noConflict();
153
+ responsivemks(window).load(function(){
154
+ responsivemks('.the-slideshow').flexslider({
155
  namespace:"",
156
  animation:'slide',
157
  easing:'easeInOutCirc',
178
 
179
  <?php } else { ?>
180
 
181
+ <h1 style="color:red;">Enable ( Responsive banner ) Module via Admin = System -> Configuration-> MKS RESPONSIVE BANNER-> General Setting </h1>
182
 
183
  <?php } ?>
184
 
package.xml CHANGED
@@ -1,21 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mks_Responsivebannerslider</name>
4
- <version>8.1.1</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Responsive Banner slider without any jQuery conflict issue Responsive Banner slider . Always use Responsive Banner slider.</summary>
10
  <description>Responsive Banner slider without any jQuery conflict issue Responsive Banner slider . Always use Responsive Banner slider.</description>
11
- <notes>New Features :-&#xD;
12
- 1. Add Banner Setting (Left Side)&#xD;
13
- 2. Add Banner Effect (slide , fade)&#xD;
14
- 3. User-friendly admin</notes>
15
  <authors><author><name>Mukesh Kumar saini</name><user>mukeshbagri</user><email>in.mukeshsaini@gmail.com</email></author></authors>
16
- <date>2014-03-20</date>
17
- <time>09:58:40</time>
18
- <contents><target name="mageetc"><dir name="modules"><file name="Mks_Responsivebannerslider.xml" hash="7934db607862763725fa014027f697a3"/></dir></target><target name="magecommunity"><dir name="Mks"><dir name="Responsivebannerslider"><dir name="Block"><dir name="Adminhtml"><dir name="Responsivebanner"><dir name="Edit"><file name="Form.php" hash="c36517d5197a80c1399baab97e8ed4b0"/><dir name="Tab"><file name="Form.php" hash="7f316ecdce6f39efb44e02544aef5691"/></dir><file name="Tabs.php" hash="e5ba328e7f140e0d3dfe7ef49dc0d150"/></dir><file name="Edit.php" hash="6b7baf576089d1342863c52f0e36cb3f"/><file name="Grid.php" hash="ca5863ccd3369c37faa0d07fc7e47710"/></dir><file name="Responsivebanner.php" hash="29896ed5c7e1b8fd852cb2d9cbe674a5"/><file name="Responsivebannersliderbackend.php" hash="492c6c1c9897c51b987a1acadcc42a5c"/></dir><file name="Index.php" hash="6e09dc15f07c2d1e67e8e392c99bcf99"/></dir><dir name="Helper"><file name="Data.php" hash="54fb6015b45224292e5e47f0004633b6"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Responsivebanner"><file name="Collection.php" hash="56fc94a43c440a6288b5af96677c2378"/></dir><file name="Responsivebanner.php" hash="a957dbcb9c5b5da89edf852408d7337b"/></dir><file name="Responsivebanner.php" hash="2ad733a5835ead201a3ea4de2b4fd323"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ResponsivebannerController.php" hash="e69a844949bb59be3dddffb5ac9064e4"/><file name="ResponsivebannersliderbackendController.php" hash="f095780b42f66f229d8bb76b69bb8f08"/><dir name="Rss"><file name="RssController.php" hash="fd0ab6a5a32d695d99717dda4e17a8cd"/></dir></dir><file name="IndexController.php" hash="2e6b22c241781739abdddefb77df2f6c"/></dir><dir name="etc"><file name="adminhtml.xml" hash="c44d2173a50ace0dd8b6e8dc6788d5e6"/><file name="config.xml" hash="736654b55517ac27ea7b14e578080aed"/><file name="system.xml" hash="db2c6269ebfc2daa7f8e025d2f71fcbb"/></dir><dir name="sql"><dir name="responsivebannerslider_setup"><file name="mysql4-install-8.1.1.php" hash="1b2373663fd4f14bc95306d3b1c946d5"/></dir></dir></dir></dir><dir name="Mage"><dir name="Adminhtml"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Diyoptions13952315961.php" hash="0334b0ac856f7daf0be12112ab9fa828"/></dir></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="responsivebannerslider"><file name="responsivebannersliderbackend.phtml" hash="6c2fb1e215cc27abe96e1d5a2b006a04"/></dir></dir><dir name="layout"><file name="responsivebannerslider.xml" hash="1b43a794981409d62750bb583ce52a58"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="responsivebannerslider"><file name="index.phtml" hash="74310b5e4a746f531caacb1ff8867826"/></dir></dir><dir name="layout"><file name="responsivebannerslider.xml" hash="0c38a2da33a0b42e71b614be4fc1ec2a"/></dir></dir></dir></dir></target><target name="magemedia"><dir name="responsivebannerslider"><dir name="bannerslider"><file name="banner-1.jpg" hash="973491deb872911a69f7bb1f6138036b"/><file name="banner-2.jpg" hash="92372dc0f2a9454851bed073a3d164a4"/><file name="banner-3.jpg" hash="f0b4946e792dc573b8b76b5aa8935d3d"/></dir><dir name="responsivebannerslider"><file name="mukesh_saini.JPG" hash="8e9ebfdf91ad4b977d07ff2bdda56b67"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="responsiveslider"><dir name="css"><file name="generic-nav.css" hash="f0ea48a8ce441ad10e5c631da5b0ae46"/><file name="grid12.css" hash="4cf760c5e87d6ff6e85f653928cbed07"/><file name="styles-banner.css" hash="5f54dc753c338cd41b1a4df180884a4f"/><file name="styles.css" hash="8e45917ed2dd5d388e76b9147ae6a2eb"/><file name="ultra-slideshow.css" hash="d63a04686f1a3b9652053841dcd7ac9a"/></dir><dir name="img"><file name="01.jpg" hash="49dcb5cee2b86a14b80b6ef59e467bc3"/><file name="01_002.jpg" hash="edc7eff6b3c0b38a429c44c656398358"/><file name="02.jpg" hash="0ec3768570d3774c1805a90d615172b2"/><file name="1.jpg" hash="cb627e40504b966d04a1ab52e0ab749e"/><file name="2.jpg" hash="cb627e40504b966d04a1ab52e0ab749e"/><file name="3.jpg" hash="cb627e40504b966d04a1ab52e0ab749e"/><file name="info.png" hash="43d666757fb907b2ee8f44352d80e9ff"/><file name="logo.png" hash="ec59af60870fe42a62debe4721fdf529"/><file name="pager.png" hash="58b23f4350365ca08912ac608f6d2d9e"/><file name="payment.gif" hash="a8daa18fcb3e3845c56ffbca6d140276"/><file name="slider-arrows.png" hash="4f71b34c53eedc49a534566557dddbef"/></dir><dir name="js"><file name="jquery-1.7.2.min.js" hash="a13f7f208ba534681deadb1ec7a2e54a"/><file name="jquery-1.js" hash="a13f7f208ba534681deadb1ec7a2e54a"/><file name="jquery-noconflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/><file name="jquery.easing.min.js" hash="a6f75e0c043a2a087837e5c113cc6f7a"/><file name="jquery.flexslider.min.js" hash="af24b4669a06656c13457625030ec2b8"/><file name="jquery.slides.min.js" hash="832349b4646a92830507b060a3905aba"/><file name="jquery_003.js" hash="235b4112e5ce03c47395746e677b37ea"/><file name="jquery_004.js" hash="a6f75e0c043a2a087837e5c113cc6f7a"/></dir></dir></dir></dir></dir></target></contents>
19
  <compatible/>
20
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
21
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mks_Responsivebannerslider</name>
4
+ <version>8.1.2</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Responsive Banner slider without any jQuery conflict issue Responsive Banner slider . Always use Responsive Banner slider.</summary>
10
  <description>Responsive Banner slider without any jQuery conflict issue Responsive Banner slider . Always use Responsive Banner slider.</description>
11
+ <notes>Solved jQuery conflict issue.</notes>
 
 
 
12
  <authors><author><name>Mukesh Kumar saini</name><user>mukeshbagri</user><email>in.mukeshsaini@gmail.com</email></author></authors>
13
+ <date>2014-05-13</date>
14
+ <time>08:59:31</time>
15
+ <contents><target name="mageetc"><dir name="modules"><file name="Mks_Responsivebannerslider.xml" hash="7934db607862763725fa014027f697a3"/></dir></target><target name="magecommunity"><dir name="Mks"><dir name="Allreviews"><dir name="Block"><file name="Index.php" hash="4beb07db3338261a47c0a5eaa15a3f1d"/></dir><dir name="Helper"><file name="Data.php" hash="c522198e77598afdc5c41f3b60fd6194"/></dir><dir name="controllers"><file name="IndexController.php" hash="c2e4099d0e96fddf6d7c3b0cb003ae11"/></dir><dir name="etc"><file name="adminhtml.xml" hash="082d6d717bd13918898ecc5c05367cac"/><file name="config.xml" hash="ce13d78b6f23b36bfc13071590ff83fb"/><file name="system.xml" hash="b77453a2d65d142fe3c5735925f90acc"/></dir></dir><dir name="Bannerslider"><dir name="Block"><dir name="Adminhtml"><file name="Bannersliderbackend.php" hash="c4c6fb4b655fea0bd41834cbc0b380d3"/><dir name="Imagegallery"><dir name="Edit"><file name="Form.php" hash="6bf611a29b6f43553b324cea6f299996"/><dir name="Tab"><file name="Form.php" hash="2a897f9391cef5a81faf0cee77dc4b51"/></dir><file name="Tabs.php" hash="947d52b2cf774dc10eb0249b51d03d6d"/></dir><file name="Edit.php" hash="4a0489c69b7830287e18edad35348ceb"/><file name="Grid.php" hash="7bbd1bae121f43a80faa3cbe4dae990b"/></dir><file name="Imagegallery.php" hash="5d7f22716646a9156b70a14c9e3cac35"/></dir><file name="Index.php" hash="51e40e2e1b2e593a40a4616bf14b5721"/></dir><dir name="Helper"><file name="Data.php" hash="78ef976446429483b21fafd68f74989b"/></dir><dir name="Model"><file name="Imagegallery.php" hash="7754ac88ef14e47ed6ae20bd6e5b3dee"/><dir name="Mysql4"><dir name="Imagegallery"><file name="Collection.php" hash="05ad344c19853775cc2defb6c02f43d5"/></dir><file name="Imagegallery.php" hash="f4a3ccb42c61c75d54ce07e1526e297a"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="BannersliderbackendController.php" hash="2a19bc5dad2edb6de017c394d5616b00"/><file name="ImagegalleryController.php" hash="47103603a51c27efcf3072089ee9388b"/></dir><file name="IndexController.php" hash="a16f142d2046e4d5b21db1a3f58b1fbe"/></dir><dir name="etc"><file name="adminhtml.xml" hash="29856211718c298818eca603185065c5"/><file name="config.xml" hash="19f1dda334456dea239e9310bfad0ab7"/><file name="system.xml" hash="8df05a66e5258bfd736a8f5c9eaa4876"/></dir><dir name="sql"><dir name="bannerslider_setup"><file name="mysql4-install-8.1.1.php" hash="acdf1e7b910770e8816604216b5d2399"/></dir></dir></dir><dir name="OrderCancel"><dir name="Block"><dir name="Order"><file name="History.php" hash="94171d62d920d332b166b9aa65f97a6d"/><file name="History.php~" hash="94171d62d920d332b166b9aa65f97a6d"/></dir></dir><dir name="Data"><file name="Data.php" hash="10732979a1d68b3b690c6286d05ac653"/><file name="Data.php~" hash="10732979a1d68b3b690c6286d05ac653"/></dir><file name="Data.php" hash="10732979a1d68b3b690c6286d05ac653"/><dir name="controllers"><file name="OrderController.php" hash="87aac2aa58b60dc710eff76a148ced2d"/><file name="OrderController.php~" hash="87aac2aa58b60dc710eff76a148ced2d"/></dir><dir name="etc"><file name="config.xml" hash="fd469896ba95684f4e663da364f2cc1a"/><file name="config.xml~" hash="fd469896ba95684f4e663da364f2cc1a"/></dir></dir><dir name="Responsivebannerslider"><dir name="Block"><dir name="Adminhtml"><dir name="Responsivebanner"><dir name="Edit"><file name="Form.php" hash="c36517d5197a80c1399baab97e8ed4b0"/><dir name="Tab"><file name="Form.php" hash="7f316ecdce6f39efb44e02544aef5691"/></dir><file name="Tabs.php" hash="e5ba328e7f140e0d3dfe7ef49dc0d150"/></dir><file name="Edit.php" hash="6b7baf576089d1342863c52f0e36cb3f"/><file name="Grid.php" hash="ca5863ccd3369c37faa0d07fc7e47710"/></dir><file name="Responsivebanner.php" hash="29896ed5c7e1b8fd852cb2d9cbe674a5"/><file name="Responsivebannersliderbackend.php" hash="492c6c1c9897c51b987a1acadcc42a5c"/></dir><file name="Index.php" hash="6e09dc15f07c2d1e67e8e392c99bcf99"/></dir><dir name="Helper"><file name="Data.php" hash="54fb6015b45224292e5e47f0004633b6"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Responsivebanner"><file name="Collection.php" hash="56fc94a43c440a6288b5af96677c2378"/></dir><file name="Responsivebanner.php" hash="a957dbcb9c5b5da89edf852408d7337b"/></dir><file name="Responsivebanner.php" hash="2ad733a5835ead201a3ea4de2b4fd323"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ResponsivebannerController.php" hash="e69a844949bb59be3dddffb5ac9064e4"/><file name="ResponsivebannersliderbackendController.php" hash="f095780b42f66f229d8bb76b69bb8f08"/><dir name="Rss"><file name="RssController.php" hash="fd0ab6a5a32d695d99717dda4e17a8cd"/></dir></dir><file name="IndexController.php" hash="2e6b22c241781739abdddefb77df2f6c"/></dir><dir name="etc"><file name="adminhtml.xml" hash="c44d2173a50ace0dd8b6e8dc6788d5e6"/><file name="config.xml" hash="736654b55517ac27ea7b14e578080aed"/><file name="system.xml" hash="db2c6269ebfc2daa7f8e025d2f71fcbb"/></dir><dir name="sql"><dir name="responsivebannerslider_setup"><file name="mysql4-install-8.1.1.php" hash="1b2373663fd4f14bc95306d3b1c946d5"/></dir></dir></dir><dir name="Rotateproduct"><dir name="Block"><dir name="Adminhtml"><dir name="Rotateproduct"><dir name="Edit"><file name="Form.php" hash="66c40167a1b570053e9caea2261922b7"/><dir name="Tab"><file name="Form.php" hash="45146cf4aa1f8f5e9e80c8c3403b51f6"/></dir><file name="Tabs.php" hash="5ab376e42c204d3992ccbb9c88d8ee1a"/></dir><file name="Edit.php" hash="1faf816c89d068271647c18305cdf95d"/><file name="Grid.php" hash="a096d532e3467c1da9b24c6eb1402d9f"/></dir><file name="Rotateproduct.php" hash="6e9c62fabe5d19dc987491beab3e368d"/><file name="Rotateproductbackend.php" hash="53ed55fece6c27d7bc1588cd921a1138"/></dir></dir><dir name="Helper"><file name="Data.php" hash="5954429ca75652294b2851f84bfc6ffb"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Rotateproduct"><file name="Collection.php" hash="d3c51f572210a74bc258fe0b3eb90b26"/></dir><file name="Rotateproduct.php" hash="753e87486cd4c751028c4f4970d76e80"/></dir><file name="Rotateproduct.php" hash="de0caf728e292c40cf80b224c4f3cd45"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="RotateproductController.php" hash="d60f52c4404eaa123cc2d1f4424aeaac"/><file name="RotateproductbackendController.php" hash="5131061ff7d34384543e034ffb4bc830"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="53e8de58de7101706a5a66bc5e497792"/><file name="config.xml" hash="7f3cd8e3f6aa1794ca63b17d67a09f01"/><file name="system.xml" hash="f6b732653681627f6acc9e3a4031cfc7"/></dir><dir name="sql"><dir name="rotateproduct_setup"><file name="mysql4-install-8.1.1.php" hash="a35aa787e63c2d1dfb6a8631e5e6818b"/></dir></dir></dir><dir name="Storelocator"><dir name="Block"><dir name="Adminhtml"><dir name="Storelocator"><dir name="Edit"><file name="Form.php" hash="00fed13f02e804d93bac7258689769ad"/><dir name="Tab"><file name="Form.php" hash="da3f13dd930a591372ad0c14796c1e54"/></dir><file name="Tabs.php" hash="8819f35cd4af4b61d14bf377c58432b6"/></dir><file name="Edit.php" hash="9be35d036a69cfb545d2f1c1649cb6ba"/><file name="Grid.php" hash="da9a9f1d7359078f7f388440020b2c3e"/></dir><file name="Storelocator.php" hash="81770ec5e092a177c22e188b8db38d7e"/><file name="Storelocatorbackend.php" hash="d600cb8ff797f008c7c652a299305c8d"/></dir><file name="Index.php" hash="4a9374eced7efc8e0dc9aafb9ff3cef4"/></dir><dir name="Helper"><file name="Data.php" hash="083521dd42bf734a864e06dceb37b5a0"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Storelocator"><file name="Collection.php" hash="183c5eeeb2ef6b444bfc08a829b93cde"/></dir><file name="Storelocator.php" hash="29d65325bd746be070275726e309afdb"/></dir><file name="Storelocator.php" hash="e91d32a733f49d62d54c1335a57e2ee5"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="StorelocatorController.php" hash="1c8564c74994999c3e5177450b64241b"/><file name="StorelocatorbackendController.php" hash="342691ea69bd91fed7db67032fa69e32"/></dir><file name="IndexController.php" hash="852566fcfe7bf18f80926d04af88821e"/></dir><dir name="etc"><file name="adminhtml.xml" hash="49f58436b0c5e5d0ff6ed5b2f7eb0b8a"/><file name="config.xml" hash="85ea167b380cf3a07d35955e7f23caf2"/><file name="system.xml" hash="e903fefb54e74e5db482baee62d46185"/></dir><dir name="sql"><dir name="storelocator_setup"><file name="mysql4-install-8.1.1.php" hash="a6c9e74024278161f3ed0653dfbc9eb0"/></dir></dir></dir></dir><dir name="Mage"><dir name="Adminhtml"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Diyoptions13952315961.php" hash="0334b0ac856f7daf0be12112ab9fa828"/></dir></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="responsivebannerslider"><file name="responsivebannersliderbackend.phtml" hash="6c2fb1e215cc27abe96e1d5a2b006a04"/></dir></dir><dir name="layout"><file name="responsivebannerslider.xml" hash="1b43a794981409d62750bb583ce52a58"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="responsivebannerslider"><file name="index.phtml" hash="e7b886e37b6f554a2903653c92a8dc8b"/></dir></dir><dir name="layout"><file name="responsivebannerslider.xml" hash="0c38a2da33a0b42e71b614be4fc1ec2a"/></dir></dir></dir></dir></target><target name="magemedia"><dir name="responsivebannerslider"><dir name="bannerslider"><file name="banner-1.jpg" hash="973491deb872911a69f7bb1f6138036b"/><file name="banner-2.jpg" hash="92372dc0f2a9454851bed073a3d164a4"/><file name="banner-3.jpg" hash="f0b4946e792dc573b8b76b5aa8935d3d"/></dir><dir name="responsivebannerslider"><file name="mukesh_saini.JPG" hash="8e9ebfdf91ad4b977d07ff2bdda56b67"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="responsiveslider"><dir name="css"><file name="generic-nav.css" hash="f0ea48a8ce441ad10e5c631da5b0ae46"/><file name="grid12.css" hash="4cf760c5e87d6ff6e85f653928cbed07"/><file name="styles-banner.css" hash="5f54dc753c338cd41b1a4df180884a4f"/><file name="styles.css" hash="8e45917ed2dd5d388e76b9147ae6a2eb"/><file name="ultra-slideshow.css" hash="d63a04686f1a3b9652053841dcd7ac9a"/></dir><dir name="img"><file name="01.jpg" hash="49dcb5cee2b86a14b80b6ef59e467bc3"/><file name="01_002.jpg" hash="edc7eff6b3c0b38a429c44c656398358"/><file name="02.jpg" hash="0ec3768570d3774c1805a90d615172b2"/><file name="1.jpg" hash="cb627e40504b966d04a1ab52e0ab749e"/><file name="2.jpg" hash="cb627e40504b966d04a1ab52e0ab749e"/><file name="3.jpg" hash="cb627e40504b966d04a1ab52e0ab749e"/><file name="info.png" hash="43d666757fb907b2ee8f44352d80e9ff"/><file name="logo.png" hash="ec59af60870fe42a62debe4721fdf529"/><file name="pager.png" hash="58b23f4350365ca08912ac608f6d2d9e"/><file name="payment.gif" hash="a8daa18fcb3e3845c56ffbca6d140276"/><file name="slider-arrows.png" hash="4f71b34c53eedc49a534566557dddbef"/></dir><dir name="js"><file name="jquery-1.7.2.min.js" hash="a13f7f208ba534681deadb1ec7a2e54a"/><file name="jquery-1.js" hash="a13f7f208ba534681deadb1ec7a2e54a"/><file name="jquery-noconflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/><file name="jquery.easing.min.js" hash="a6f75e0c043a2a087837e5c113cc6f7a"/><file name="jquery.flexslider.min.js" hash="af24b4669a06656c13457625030ec2b8"/><file name="jquery.slides.min.js" hash="832349b4646a92830507b060a3905aba"/><file name="jquery_003.js" hash="235b4112e5ce03c47395746e677b37ea"/><file name="jquery_004.js" hash="a6f75e0c043a2a087837e5c113cc6f7a"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>