Ejemplo n.º 1
0
function draw_page($userinfo)
{
    $progress = get_progress($userinfo['user_id']);
    $total = get_qual_point_total();
    ?>
	<div class="container">
	<?php 
    echo '<h3>';
    echo $userinfo['fname'] . ' ' . $userinfo['lname'];
    echo '&nbsp;<small>' . user_level_to_levelname(get_level($userinfo['user_id'])) . '</small>';
    echo '</h3>';
    draw_qual_progress_bar($progress, $total);
    draw_progress_table($userinfo);
    draw_qual_progress_form($userinfo);
    ?>
  </div>
 <?php 
}
Ejemplo n.º 2
0
function draw_quals_table() {
	$quals = get_quals(true);
	?>

	<div class="col-md-10">
		<table class="table table-condensed">
			<tr>
				<th>Name</th>
				<th>Level</th>
				<th>Value</th>
				<th>URL</th>
			</tr>
			<?php
				while($qual = $quals->fetch_array()) {
					//Convert the level to the appropriate name
					$qual['level']=qual_level_to_levelname($qual['level']);
					
					echo '<tr class='.'"quallist';
					if ($qual['inactive']==1)  //If the qual is inactive, this will add "inactive" to its class
						echo ' quallist-inactive';
					echo '" onclick="openEdit('.$qual['qual_id'].')">';
					echo '<td>'.$qual['name'].'</td>';
					echo '<td>'.ucfirst($qual['level']).'</td>';
					echo '<td>'.$qual['value'].'</td>';
					echo '<td><a href="'.$qual['url'].'"> <span class="glyphicon glyphicon-link"></span></a></td>';
					echo '</tr>';
				}
			?>
			<tr>
				<td colspan=2>Total Value</td>
				<td><?php echo get_qual_point_total(); ?></td>
				<td></td>
		</table>
	</div>
	<div class="col-md-2">
		<button class="btn btn-default btn-sm" onclick="toggleinactive()">Toggle inactives</button>
	</div>
	<?php
}
Ejemplo n.º 3
0
function draw_progress()
{
    $progress = get_progress($_SESSION['user_id']);
    $total = get_qual_point_total();
    open_panel_item('Qual Progress', 'goals', '12');
    draw_qual_progress_bar($progress, $total);
    close_panel_item();
}