        <li id="chatpanel">
            <?
              $userID = $this->session->userdata('userID');
              $totalAdminOnline = $this->generallib->getTotalAdminOnline($userID);
              $adminUserList = $this->generallib->onlineAdminuserList($userID);
            ?>
        	<a href="#" class="chat">Online Users (<strong><?=$totalAdminOnline?></strong>) </a>
            <div class="subpanel">
            <h3><span> &ndash; </span><b>Online Users List</b></h3>

            <ul>
            	<li><span>Online Office</span></li>
            	<?
            	if(is_array($adminUserList))
				{
				foreach($adminUserList as $rowAdmin)
				{
				?>
            	<li><a href="javascript:void(0)" onclick="javascript:chatWith('<?=$rowAdmin->login?>')"><img src="<?=base_url()?>images/chat-thumb.gif" alt="" /> <?=$rowAdmin->full_name?></a></li>
            	<?
            	}
            	}
            	?>
                <li><span>Resellers IV</span></li>
                <li><a href="javascript:void(0)" onclick="javascript:chatWith('janedoe')"><img src="<?=base_url()?>images/chat-thumb.gif" alt="" /> Your Friend</a></li>
                <li><a href="javascript:void(0)" onclick="javascript:chatWith('janedoe')"><img src="<?=base_url()?>images/chat-thumb.gif" alt="" /> Your Friend</a></li>
            </ul>
            </div>

        </li>
        </div>