Esempio n. 1
0
					</div>
				</div>
			</div>
			<div class="ui grid">
				<div class="index_table ten wide column">
					<h2>Top 5 Perguntas</h2>
					<table class="ui celled unstackable table">
						<thead>
							<tr>
								<th>Pergunta</th>
								<th>Votos</th>
							</tr>
						</thead>
						<tbody>
							<?php 
$questions = $question->getTopQuestions();
?>
							<?php 
if ($questions == null) {
    ?>
								<tr><td colspan="2" style="text-align: center">Nenhuma pergunta encontrada :(</td></tr>
							<?php 
} else {
    ?>
								<?php 
    foreach ($questions as $single) {
        ?>
									<tr>
									<td><a href="<?php 
        echo WEB_PATH;
        ?>