<li class="dropdown pull-left">
    <a class="dropdown-toggle" data-toggle="dropdown" href="#" data-hover="dropdown" data-close-others="true">

        <img class="flag-lang" src="<?php echo base_url()?>assets/images/<?php echo @$lang_active->lang_icon?>" width="25" height="18" alt="lang" style="margin-top: 15px; margin-bottom: 15px;"/>
        <span class="user-name"><?php echo @$lang_active->lang_title?></span></a>

    <ul class="dropdown-menu hold-on-click">
        <?php foreach (@$lists as $key=>$value){?>
            <li>
                <a onclick="changeLang(<?php echo @$value->lang_id?>)" tabindex="-1" href="#">
                    <img class="flag-lang" src="<?php echo base_url()?>assets/images/<?php echo @$value->lang_icon?>" width="16" height="11" alt="lang"/>
                    <?php echo @$value->lang_title?>
                </a>
            </li>
        <?php }?>
    </ul>
</li>