Example #1
0
	</div>
</div>

<div class="row-fluid">

<?php 
category_button('All Active Users', 'list.php?show=all', mysql_num_rows(get_all_active_users()));
?>

<?php 
category_button('Teachers', 'list.php?show=teacher', mysql_num_rows(get_all_active_teachers()));
?>

<?php 
category_button('Students', 'list.php?show=student', mysql_num_rows(get_all_active_students()));
category_button('Pending', 'list.php?show=pending', mysql_num_rows(get_all_pending_users()));
?>

</div>
<?php 
$counter = 0;
while ($row = mysql_fetch_array($result)) {
    if ($counter == 3) {
        $counter = 0;
    }
    if ($counter == 0) {
        echo '<div class="row transperent-background">';
    }
    echo "<div class=\"col-md-4\">";
    echo "<img class=\"center-block img-responsive\" src=\"{$row["Picture"]}\" height=\"\" width=\"\" />";
    echo "<h3>{$row["Name"]} <small class = \"text-danger\">{$row["Role"]}</small></h3>";
Example #2
0
<div class="row-fluid">

	<?php 
if ($_SESSION['role'] == 'admin') {
    create_new_button('Create Course', 'create_course.php');
}
?>

	<?php 
category_button('All Courses', 'course.php?show=all', mysql_num_rows(get_all_courses()));
?>

	<?php 
if (!($_SESSION['role'] == 'admin')) {
    category_button('Taken Course', 'course.php?show=taken', mysql_num_rows(get_taken_courses_by_id($_SESSION['id'])));
}
?>
</div>
<?php 
$counter = 0;
while ($row = mysql_fetch_array($result)) {
    if (isset($row['ID'])) {
        $course_id = $row['ID'];
    }
    if (isset($row['id'])) {
        $course_id = $row['id'];
    }
    if ($counter == 3) {
        $counter = 0;
    }