Browse Source

Bar to green.

master
Rogier Neeleman 9 years ago
parent
commit
316bdc17bc
  1. 8
      application/views/dashboard_user.php

8
application/views/dashboard_user.php

@ -25,19 +25,11 @@
<?php foreach ($bardata as $bar) { ?> <?php foreach ($bardata as $bar) { ?>
<p><?php echo $bar['naam']; ?> <p><?php echo $bar['naam']; ?>
<?php if ($bar['percentage'] == 100) {?>
<div class="progress"> <div class="progress">
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="<?php echo $bar['percentage']; ?>" aria-valuemin="0" aria-valuemax="100" style="width: <?php echo $bar['percentage']; ?>%"> <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="<?php echo $bar['percentage']; ?>" aria-valuemin="0" aria-valuemax="100" style="width: <?php echo $bar['percentage']; ?>%">
<span class="sr-only"><?php echo $bar['percentage']; ?>% Complete</span> <span class="sr-only"><?php echo $bar['percentage']; ?>% Complete</span>
</div> </div>
</div> </div>
<?php } else { ?>
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="<?php echo $bar['percentage']; ?>" aria-valuemin="0" aria-valuemax="100" style="width: <?php echo $bar['percentage']; ?>%">
<span class="sr-only"><?php echo $bar['percentage']; ?>% Complete</span>
</div>
</div>
<?php } ?>
</p> </p>
<?php } ?> <?php } ?>
</p> </p>

Loading…
Cancel
Save