Example #1
0
						<b><?php 
    echo formatText($currentEntry["polSubject"]);
    ?>
</b>
					</div>
					<?php 
    if (trim($currentEntry["polComment"]) != "") {
        ?>
						<div class="mar_bottom">
							<?php 
        echo formatText($currentEntry["polComment"]);
        ?>
						</div>
						<?php 
    }
    showPollOptions($options, $alreadyVoted, $currentEntry["polVoted"], $currentEntry["polid"]);
    if (!$alreadyVoted) {
        ?>
						<div class="sep">
							<button class="submit" name="submitVote" type="submit">
								<?php 
        echo getIMG(url() . "images/emoticons/checked.png");
        ?>
								<?php 
        echo _VOTE;
        ?>
							</button>
						</div>
						<?php 
    }
    ?>
Example #2
0
    ?>
	</div>
	<div class="mar_bottom">
		<?php 
    echo formatText($polData["polComment"]);
    ?>
	</div>
	<?php 
}
if (!$_auth["useid"] || $polData["polCreator"] == $_auth["useid"]) {
    $alreadyVoted = true;
} else {
    $result = sql_query("SELECT `pollVid` FROM `pollVotes`,`pollOptions`,`polls` " . "WHERE `polOPoll` = '" . $polData["polid"] . "' " . "AND `polid` = `polOPoll` " . "AND `pollVSelected` = `polOid` " . "AND (`pollVUser` = '" . $_auth["useid"] . "' OR `polExpireDate` < NOW()) LIMIT 1");
    $alreadyVoted = mysql_num_rows($result) > 0;
}
showPollOptions($options, $alreadyVoted, $polData["polVoted"], $polData["polid"]);
?>
<div class="sep a_left">
	<?php 
if (!$_auth["useid"]) {
    notice(_REQUIRE_LOGIN);
}
?>
	<div class="sep f_right smalltext">
		<a href="<?php 
echo url("poll/" . strtolower($useUsername));
?>
">
			<?php 
echo _POLL_PAST_ENTRIES;
?>