 <div id="language">
            <?php if (count($languages) > 1) { ?>
                 <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
                     <div>
                         <?php foreach ($languages as $language) { ?>
                         <a class="<?php echo ($this->session->data['language'] == $language['code'] ? 'selected_lang' : ''); ?>" onClick="$('input[name=\'language_code\']').attr('value', '<?php echo $language['code']; ?>').submit(); $(this).parent().parent().submit();">
                         <?php echo $language['code']; ?>
                         </a>
                         <?php } ?>
                         <input type="hidden" name="language_code" value="" />
                         <input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
                     </div>
                 </form>
            <?php } ?>
		 </div>




