title: Change currency icon block to drop-down list
body: <p>My client would prefer a currency drop-down list to the currency icon block installed on a 1.5.1 OpenCart theme. I've tried coding it but get the following error:
   Parse error: syntax error, unexpected T_STRING, expecting ';' in /...file path......
  I've pasted the code and used <strong><em>before and after the offending line</em></strong>.</p>
  
  <pre><code>&lt;?php 
  $a = 0; 
  foreach ($currencies as $currency) {
      $thisCurTitle[$a] = $currency['title'];  
      $thisCurCode[$a] = $currency['code']; 
  
     if ($currency['symbol_left']) { 
        $thisCurSymb[$a] = $currency['symbol_left'];
     } else { 
        $thisCurSymb[$a] = $currency['symbol_right'];
     } 
     $a++;
  } 
  ?&gt;
  &lt;select name=”curselect” onchange=”$(‘input[name=\'currency_code\']‘).attr(‘value’, this.options[this.selectedIndex].value).submit(); $(this).parent().parent().submit();”&gt;
  ***&lt;?php for ($z = 0; $z &lt;= $a – 1; $z++) { ?&gt;***
  &lt;?php if ($thisCurCode[$z] == $currency_code) { ?&gt;
  &lt;option value=”&lt;?php echo $thisCurCode[$z]; ?&gt;” selected&gt;&lt;?php echo $thisCurTitle[$z]; ?&gt;&amp;nbsp;&amp;nbsp;&lt;?php echo $thisCurSymb[$z]; ?&gt;&lt;/option&gt;
  &lt;?php } else { ?&gt;
  &lt;option value=”&lt;?php echo $thisCurCode[$z]; ?&gt;”&gt;&lt;?php echo $thisCurTitle[$z]; ?&gt;&amp;nbsp;&amp;nbsp;&lt;?php echo $thisCurSymb[$z]; ?&gt;&lt;/option&gt;
  &lt;?php } ?&gt;
  &lt;?php } ?&gt; 
  </code></pre>
  
  <p>Any help would be most appreciated. </p>