コード例 #1
0
ファイル: question.php プロジェクト: JoaoBGusmao/qualdosdois
    echo "Votos";
}
?>
</div>
							</div>
						</div>
						<div class="content">
							<div class="header"><?php 
echo $question->getTitleA();
?>
</div>
						</div>
						<div class="extra content center">
							<?php 
$votedA = "";
if (isset($_SESSION["login_provider"]) && $question->hasVoted($_SESSION["id"], "a")) {
    $votedA = "true";
}
?>
							<button class="ui basic button vote <?php 
if ($votedA == "true") {
    echo "green";
}
?>
" <?php 
if ($votedA == "true") {
    echo 'data-voted="true"';
} else {
    echo 'data-voted="false"';
}
?>