<?php 
/********************************************************************************* 
 *  This file is part of Sentrifugo.
 *  Copyright (C) 2014 Sapplica
 *   
 *  Sentrifugo is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Sentrifugo is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Sentrifugo.  If not, see <http://www.gnu.org/licenses/>.
 *
 *  Sentrifugo Support <support@sentrifugo.com>
 ********************************************************************************/
 
$appraisal_id = $this->appraisal_id;
$manager_id = $this->manager_id;
$manager_groups = $this->manager_groups;
$submit_val = $this->submit_val;

if(count($manager_groups) > 0)
{
?>
<?php    foreach($manager_groups as $key =>  $val)
		{
?>	    						    		
        <div class="groupeddiv" id="groupdiv_<?php echo $val['manager_group_id'];?>">
            <div class="groupnamediv"><?php echo $val['group_name'];?></div>
            <div class="empcountdiv">Employees <span class="count"><?php echo $val['empcount'];?></span></div>
            <div class="qscountdiv">Questions <span class="count"><?php echo $val['qscount'];?></span></div>

            <div id="hoverdiv_<?php echo $val['manager_group_id'];?>" class="grphoverclass">
                <ul>	    					                    
                    <li onclick='view_manager_group("<?php echo sapp_Global::_encrypt($val['manager_group_id']);?>","<?php echo sapp_Global::_encrypt($val['group_name']);?>");'>View</li>
                </ul>
            </div>
        </div>

<?php 
		}
} else {
?>
<div class="newgroup_msg managerresponsediv_msg">
		Groups are not configured yet.
</div>
<?php } ?>
<input type="hidden" id="idhid_appraisal_id" value="<?php echo sapp_Global::_encrypt($appraisal_id);?>" />
<input type="hidden" id="idhid_manager_id" value="<?php echo sapp_Global::_encrypt($manager_id);?>" />


