<?php if (!$isAjax):?>
<div class="block block-aggregator" id="<?php echo $contentId; ?>">
<?php endif;?>
<h3 class="handle">
<a class="block-close"><span>toggle</span></a>
<a class="block-toggle"><span>toggle</span></a>
<?php echo translateAdmin('Resultados Inqueritos')?>
</h3>

<div class="content">
  <div>
<?php if (isset($inqueritosList)):?>
    <?php if (isset($inqueritos)):?>
        <?php foreach($inqueritos as $key => $inquerito): ?>
        <div class="inquerito_titulo"><?php echo $inquerito['titulo']?></div>
        <?php foreach($inquerito['respostas'] as $key_inquerito => $resposta):?>
        <div class="rating">
        <div class="graphcont">
        <?php echo $resposta['titulo']?>
        <div class="graph">
        <?php $valor = $inquerito['total'] > 0 ? round(($resposta['votos']/$inquerito['total'])*100, 2) : 0;?>
        <strong class="bar" style="width:<?php echo $valor ?>%;"><?php echo $valor ?>%</strong>
        
        </div>
        </div>
        <div style="clear: both;"></div>
        </div>
        <?php endforeach;?>

        <?php endforeach;?>
    <?php endif; ?>
<?php endif; ?>
  </div>
</div>
<?php if (!$isAjax):?>
</div>
<?php endif;?>