<?php

    /**
     * @copyright		(C)2013 DM Digital S.r.l
     * @author 			DM Digital <support@dmjoomlaextensions.com>
     * @link				http://www.dmjoomlaextensions.com
     * @license 			GNU/LGPL http://www.gnu.org/copyleft/gpl.html
     **/

    defined('_JEXEC') or die('Restricted access');

?>
<div class="userinfo" id="userinfo_new"></div>
<?php $i = 1; foreach ($users as $user):  ?>
<div class="user <?php if ($i == 1) echo "first "; if ($i == count($users)) echo "last "; ?>" id="user_<?php echo $user->id; ?>" onclick="DMFUM.toggleUserInfo(<?php echo $user->id; ?>);">
    <div class="title_user"><?php echo $user->username; ?></div>
    <div class="title_email"><?php echo $user->email; ?></div>
    <div class="title_id">#<?php echo $user->id; ?></div>
</div>
<div class="userinfo" id="userinfo_<?php echo $user->id; ?>"></div>
<?php $i++; endforeach; ?>