Esempio n. 1
0
    echo htmlspecialchars_decode($question['name']);
    echo "</h2>";
    echo htmlspecialchars_decode($question['content']);
} else {
    redirect_to("event.php");
}
?>
	</div>
	<div class="event grid_4 omega">
        <?php 
get_upcoming_event();
?>
    </div>
	<div class="chapter grid_8 alpha">
		<?php 
$comments_set = get_comments_by_question_id($question_id);
if (mysql_num_rows($comments_set) == 0) {
    echo "<p>No one commented.</p>";
}
while ($comment = mysql_fetch_array($comments_set)) {
    $output = "<div class=\"comment\">";
    $user = get_user_by_id($comment['user_id']);
    $output .= "<h2>{$user['username']}<span> @ {$comment['date_id']}<span></h2>";
    $output .= "<p>{$comment['content']}</p>";
    $output .= "</div>";
    echo $output;
}
?>
	</div>
	<div class="event grid_4 omega">
        <p>Please don't get carried away or I will have to personally meet you.</p>
Esempio n. 2
0
        echo "<p>No Winners Yet!!</p>";
    }
    //**Please enter the content into database as html.
    echo "</div>";
}
?>
        <?php 
if (!is_null(check_login())) {
    if ($sel_event['online'] == 1) {
        $output = "<div class=\"chapter grid_8 alpha\">";
        $output .= "<h2>Problems</h2>";
        $output .= "<table class=\"prob_table\"><thead><tr>";
        $output .= "<th>Name</th><th>Code</th><th class=\"align_center\">Total Comments</th></tr></thead><tbody>";
        $question_set = get_question_by_event_year($sel_event['id'], $sel_event['occured_in']);
        while ($question = mysql_fetch_array($question_set)) {
            $total_commnets = mysql_num_rows(get_comments_by_question_id($question['id']));
            $output .= "<tr><td><a href=\"question.php?qes=" . urlencode($question['id']) . "\">{$question['name']}</td><td>{$question['code']}</td><td class=\"align_center\">";
            $output .= "{$total_commnets}</td></tr></a>";
        }
        $output .= "</tbody></table></div>";
        echo $output;
    }
}
?>
    	<?php 
if (!is_null(check_login())) {
    if ($sel_event['finish'] == 1) {
        echo "<div class=\"event grid_4 omega\">";
        if ($sel_event['editorials']) {
            echo htmlspecialchars_decode($sel_event['editorials']);
        } else {