Version Notes
Html corrected to pass XHTML 1.0 Strict w3 validation.
Download this release
Release Info
Developer | Magento Core Team |
Extension | Manufacturer_Model_Number |
Version | 3.1 |
Comparing to | |
See all releases |
Code changes from version 3.0 to 3.1
app/design/frontend/default/default/template/mmn/mmn.phtml
CHANGED
@@ -22,7 +22,9 @@ if (count($rows) > 0) {
|
|
22 |
$Model_array[] = array('id' => 'all', 'text' => $this->__('Choose Model'));
|
23 |
$Number_array[] = array('id' => 'all', 'text' => $this->__('Choose Number'));
|
24 |
|
25 |
-
$javascript = '<script
|
|
|
|
|
26 |
var a = new Array();
|
27 |
var b = new Array();
|
28 |
var c = new Array();';
|
@@ -61,8 +63,8 @@ var c = new Array();';
|
|
61 |
$javascript .= '
|
62 |
function pop_model(){
|
63 |
|
64 |
-
var o ="<select name=\"Model\"
|
65 |
-
var sv =
|
66 |
if(sv != "all"){
|
67 |
var v = a.length;
|
68 |
while(v--) if(sv == a[v]) break;
|
@@ -70,17 +72,17 @@ function pop_model(){
|
|
70 |
o+="<option value=\""+b[v][i]+"\">"+b[v][i]+"</option>";
|
71 |
}
|
72 |
o+="</select>";
|
73 |
-
|
74 |
-
|
75 |
}
|
76 |
function pop_number(){
|
77 |
|
78 |
-
var o ="<select name=\"Number\" style=\"width: 100%\"
|
79 |
-
var sv =
|
80 |
if(sv != "all"){
|
81 |
var v = a.length;
|
82 |
while(v--) if(sv == a[v]) break;
|
83 |
-
var sv2 =
|
84 |
if(sv2 != "all"){
|
85 |
var v2 = b[v].length;
|
86 |
while(v2--) if(sv2 == b[v][v2]) break;
|
@@ -89,8 +91,9 @@ function pop_number(){
|
|
89 |
}
|
90 |
}
|
91 |
o+="</select>";
|
92 |
-
|
93 |
}
|
|
|
94 |
</script>';
|
95 |
|
96 |
$expire = time()+60*60*24*90;
|
@@ -130,7 +133,7 @@ function pop_number(){
|
|
130 |
<div class="head">
|
131 |
<h4><span><?php echo $this->__('Select Printer'); ?></span></h4>
|
132 |
</div>
|
133 |
-
<form
|
134 |
$hidden = '';
|
135 |
if($module == 'catalog_category_view'){
|
136 |
echo '';
|
@@ -140,29 +143,29 @@ function pop_number(){
|
|
140 |
echo Mage::getUrl('mmn/product/list');
|
141 |
}
|
142 |
|
143 |
-
?>" method="get" onsubmit="return
|
144 |
<?php echo $hidden; ?>
|
145 |
<div class="content">
|
146 |
-
<select name="Manufacturer"
|
147 |
<?php
|
148 |
foreach($Manufacturer_array as $option)
|
149 |
echo '<option value="'.$option['id'].'" '.(isset($Manufacturer_selected_var) && $Manufacturer_selected_var == $option['id'] ? 'SELECTED' : '').'>'.$option['text'].'</option>';
|
150 |
?>
|
151 |
-
</select><br
|
152 |
<span id="model_select">
|
153 |
-
<select name="Model"
|
154 |
<?php
|
155 |
foreach($Model_array as $option)
|
156 |
echo '<option value="'.$option['id'].'" '.(isset($Model_selected_var) && $Model_selected_var == $option['id'] ? 'SELECTED' : '').'>'.$option['text'].'</option>';
|
157 |
?>
|
158 |
-
</select></span><br
|
159 |
<span id="number_select">
|
160 |
-
<select name="Number"
|
161 |
<?php
|
162 |
foreach($Number_array as $option)
|
163 |
echo '<option value="'.$option['id'].'" '.(isset($Number_selected_var) && $Number_selected_var == $option['id'] ? 'SELECTED' : '').'>'.$option['text'].'</option>';
|
164 |
?>
|
165 |
-
</select></span><br
|
166 |
</div>
|
167 |
<div class="actions">
|
168 |
<button class="form-button-alt right" type="submit"><span><?php echo $this->__('Go'); ?></span></button>
|
22 |
$Model_array[] = array('id' => 'all', 'text' => $this->__('Choose Model'));
|
23 |
$Number_array[] = array('id' => 'all', 'text' => $this->__('Choose Number'));
|
24 |
|
25 |
+
$javascript = '<script type="text/javascript">
|
26 |
+
//<![CDATA[
|
27 |
+
|
28 |
var a = new Array();
|
29 |
var b = new Array();
|
30 |
var c = new Array();';
|
63 |
$javascript .= '
|
64 |
function pop_model(){
|
65 |
|
66 |
+
var o ="<select name=\"Model\" id=\"mmn_model\" onchange=\"pop_number();\" style=\"width: 100%\"><option value=\"all\">' . $this->__('Choose Model') . '</option>";
|
67 |
+
var sv = $(\'mmn_manufacturer\').value;
|
68 |
if(sv != "all"){
|
69 |
var v = a.length;
|
70 |
while(v--) if(sv == a[v]) break;
|
72 |
o+="<option value=\""+b[v][i]+"\">"+b[v][i]+"</option>";
|
73 |
}
|
74 |
o+="</select>";
|
75 |
+
$(\'model_select\').innerHTML= o;
|
76 |
+
$(\'number_select\').innerHTML= "<select name=\"Number\" style=\"width: 100%\"><option value=\"all\">' . $this->__('Choose Number') . '</option></select>";
|
77 |
}
|
78 |
function pop_number(){
|
79 |
|
80 |
+
var o ="<select name=\"Number\" style=\"width: 100%\" onchange=\"$(\'mmn_form\').submit();\"><option value=\"all\">' . $this->__('Choose Number') . '</option>";
|
81 |
+
var sv = $(\'mmn_manufacturer\').value;
|
82 |
if(sv != "all"){
|
83 |
var v = a.length;
|
84 |
while(v--) if(sv == a[v]) break;
|
85 |
+
var sv2 = $(\'mmn_model\').value;
|
86 |
if(sv2 != "all"){
|
87 |
var v2 = b[v].length;
|
88 |
while(v2--) if(sv2 == b[v][v2]) break;
|
91 |
}
|
92 |
}
|
93 |
o+="</select>";
|
94 |
+
$(\'number_select\').innerHTML= o;
|
95 |
}
|
96 |
+
//]]>
|
97 |
</script>';
|
98 |
|
99 |
$expire = time()+60*60*24*90;
|
133 |
<div class="head">
|
134 |
<h4><span><?php echo $this->__('Select Printer'); ?></span></h4>
|
135 |
</div>
|
136 |
+
<form id="mmn_form" action="<?php
|
137 |
$hidden = '';
|
138 |
if($module == 'catalog_category_view'){
|
139 |
echo '';
|
143 |
echo Mage::getUrl('mmn/product/list');
|
144 |
}
|
145 |
|
146 |
+
?>" method="get" onsubmit="return $('mmn_manufacturer').value != 'all' ? true : false">
|
147 |
<?php echo $hidden; ?>
|
148 |
<div class="content">
|
149 |
+
<select name="Manufacturer" id="mmn_manufacturer" onchange="pop_model();" style="width: 100%">
|
150 |
<?php
|
151 |
foreach($Manufacturer_array as $option)
|
152 |
echo '<option value="'.$option['id'].'" '.(isset($Manufacturer_selected_var) && $Manufacturer_selected_var == $option['id'] ? 'SELECTED' : '').'>'.$option['text'].'</option>';
|
153 |
?>
|
154 |
+
</select><br/><br/>
|
155 |
<span id="model_select">
|
156 |
+
<select name="Model" id="mmn_model" onchange="pop_number();" style="width: 100%">
|
157 |
<?php
|
158 |
foreach($Model_array as $option)
|
159 |
echo '<option value="'.$option['id'].'" '.(isset($Model_selected_var) && $Model_selected_var == $option['id'] ? 'SELECTED' : '').'>'.$option['text'].'</option>';
|
160 |
?>
|
161 |
+
</select></span><br/><br/>
|
162 |
<span id="number_select">
|
163 |
+
<select name="Number" onchange="$('mmn_form').submit();" style="width: 100%">
|
164 |
<?php
|
165 |
foreach($Number_array as $option)
|
166 |
echo '<option value="'.$option['id'].'" '.(isset($Number_selected_var) && $Number_selected_var == $option['id'] ? 'SELECTED' : '').'>'.$option['text'].'</option>';
|
167 |
?>
|
168 |
+
</select></span><br/><br/>
|
169 |
</div>
|
170 |
<div class="actions">
|
171 |
<button class="form-button-alt right" type="submit"><span><?php echo $this->__('Go'); ?></span></button>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Manufacturer_Model_Number</name>
|
4 |
-
<version>3.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -11,11 +11,11 @@
|
|
11 |
|
12 |
HOW TO USE:
|
13 |
Go to your Magento admin panel ->Mmn -> Manage Items and add MMN items to all your products.</description>
|
14 |
-
<notes>
|
15 |
<authors><author><name>Stanislav</name><user>auto-converted</user><email>pektsekye@gmail.com</email></author></authors>
|
16 |
-
<date>2009-
|
17 |
-
<time>
|
18 |
-
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="mmnadmin.xml" hash="1c4ab9b3a0d5ee6006d48e1cf517fbd4"/></dir><dir name="template"><dir name="mmnadmin"><file name="importExport.phtml" hash="969bbdaa5588c3acb426366ef6b8c689"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="mmn.xml" hash="068a00f6d22ca11217b89c99178d0da4"/></dir><dir name="template"><dir name="mmn"><file name="mmn.phtml" hash="
|
19 |
<compatible/>
|
20 |
<dependencies/>
|
21 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Manufacturer_Model_Number</name>
|
4 |
+
<version>3.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
11 |
|
12 |
HOW TO USE:
|
13 |
Go to your Magento admin panel ->Mmn -> Manage Items and add MMN items to all your products.</description>
|
14 |
+
<notes>Html corrected to pass XHTML 1.0 Strict w3 validation.</notes>
|
15 |
<authors><author><name>Stanislav</name><user>auto-converted</user><email>pektsekye@gmail.com</email></author></authors>
|
16 |
+
<date>2009-12-12</date>
|
17 |
+
<time>22:00:19</time>
|
18 |
+
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="mmnadmin.xml" hash="1c4ab9b3a0d5ee6006d48e1cf517fbd4"/></dir><dir name="template"><dir name="mmnadmin"><file name="importExport.phtml" hash="969bbdaa5588c3acb426366ef6b8c689"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="mmn.xml" hash="068a00f6d22ca11217b89c99178d0da4"/></dir><dir name="template"><dir name="mmn"><file name="mmn.phtml" hash="a8ab8af865de53529f8c571b68ccb782"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Pektsekye_Mmn.csv" hash="3b26c323d14dbeb131a21770ab5de639"/></dir></target><target name="mageetc"><dir name="modules"><file name="Pektsekye_Mmn.xml" hash="44dbf66ea36b134b159edb1d51878a2a"/><file name="Pektsekye_MmnAdmin.xml" hash="766e5fddfef3d7ab1612aee866c9c6f6"/></dir></target><target name="magelocal"><dir name="Pektsekye"><dir name="Mmn"><dir name="Block"><dir name="Product"><file name="Result.php" hash="00641875e34a3bc2851f6785a9975f81"/></dir><file name="Mmn.php" hash="9c6bc640466ef349fc9fac3023f9f332"/></dir><dir name="controllers"><file name="IndexController.php" hash="aa43963369f7166820a20bec5c2d1c8b"/><file name="ProductController.php" hash="6f36953551c101f2d0e890b2569b8444"/></dir><dir name="etc"><file name="config.xml" hash="f984aeaa9a3ae72d4c57f29d5c191e63"/><file name="system.xml" hash="9d2b000bba821307bde419a4e2b2fb13"/></dir><dir name="Helper"><file name="Data.php" hash="93b6eb686e54179e17c3df81e330699f"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Mmn"><file name="Collection.php" hash="7a9240e2cef54b5e1796fb12d2d9369f"/></dir><file name="Mmn.php" hash="c67333dbda050636e9a85e7cfd963bdb"/></dir><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><file name="Category.php" hash="ebc7376887ebe0abadf9de6e542af5ed"/></dir></dir></dir><file name="Category.php" hash="d6b6854f6090bba3b54247811c3d69d5"/><file name="Layer.php" hash="75097f50e9ae267c4a325dde6f8e006d"/><file name="Mmn.php" hash="cef143b02735b99c273a8188efee3a38"/></dir></dir><dir name="MmnAdmin"><dir name="Block"><dir name="Items"><dir name="Edit"><dir name="Tab"><file name="Form.php" hash="53380d8415c9b6f68daff30456c29b8c"/></dir><file name="Form.php" hash="9f739cc340c4e5d246359971da9facf8"/><file name="Tabs.php" hash="b731215470e3c2fc415fc02ec66256df"/></dir><file name="Edit.php" hash="e80d1d960fcc55b6863067e8638dede4"/><file name="Grid.php" hash="b44477549067c9f2881f233c0d410b63"/><file name="ImportExport.php" hash="41aec23361b81bbda43c1049a957beff"/></dir><file name="Items.php" hash="04b1560f32b4358c01499035d8b6d6c9"/></dir><dir name="controllers"><file name="ItemsController.php" hash="1c81526c02e47da2775b8c789aceb0bd"/></dir><dir name="etc"><file name="config.xml" hash="711115891dab117bcad60ca944625d8d"/></dir><dir name="Helper"><file name="Data.php" hash="b66a742ba975a1899e6af68bf7590b9f"/></dir><dir name="Model"><dir name="Mysql4"><dir name="MmnAdmin"><file name="Collection.php" hash="4bc7a84e358d1ea19cdbd705a2fe09fb"/></dir><file name="MmnAdmin.php" hash="3819c4baa9fd61e4d86ae843ed9fc923"/></dir><file name="MmnAdmin.php" hash="d11f9217294fb8f8f23c53fd13bfb1ab"/></dir><dir name="sql"><dir name="mmnadmin_setup"><file name="mysql4-install-0.1.0.php" hash="05fce556a39db1283ab4e315f27a1a27"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="a42d585ee17b2cdf0b9290c22b95051b"/></dir></dir></dir></dir></target></contents>
|
19 |
<compatible/>
|
20 |
<dependencies/>
|
21 |
</package>
|