예제 #1
0
    echo $election->getWinner();
} else {
    echo '<span style="color:red;">The votes of this group do not allow natural Condorcet winner because of <a href="http://fr.wikipedia.org/wiki/Paradoxe_de_Condorcet" target="_blank">Condorcet paradox</a>.</span>';
}
?>
		<br>
		<em style="color:green;">computed in <?php 
echo $election->getLastTimer();
?>
 second(s).</em>	</strong>

	<h2>Loser by <a target="blank" href="http://en.wikipedia.org/wiki/Condorcet_method">natural Condorcet</a> :</h2>

	<strong style="color:green;">
		<?php 
if (!is_null($election->getLoser())) {
    echo $election->getLoser();
} else {
    echo '<span style="color:red;">The votes of this group do not allow natural Condorcet loser because of <a href="http://fr.wikipedia.org/wiki/Paradoxe_de_Condorcet" target="_blank">Condorcet paradox</a>.</span>';
}
?>
		<br>
		<em style="color:green;">computed in <?php 
echo $election->getLastTimer();
?>
 second(s).</em>	</strong>
	</strong>

<br><br><hr>

<?php