$action = param('action', 'none'); $do = param('do', 'none'); // LOC and OSA are max 5, starting at 1 // ISM and CSA are max 8, starting at half // IISM and CSM are max 24, starting at 3, doubling each time if ($do == 'none' || $do == 'ribbon' || $do == 'medal' || $do == 'view') { echo '<h1>Awards Tracker</h1>'; } if ($action == 'none') { ?> <a onclick="load('awards', 'view', 'none', {})">View User Awards</a><br /> <a onclick="load('awards', 'list', 'none', {})">View List of Awards</a><br /> <?php } else { if ($action == 'list') { $awards = Award::getAllAwards(); $count = count($awards) + 30; $current = 0; $line = 0; if ($do == 'none' || $do == 'ribbon') { ?> <center> <div class="btn-group" role="group"> <button type="button" class="btn btn-default">Ribbons</button> <button type="button" class="btn btn-default" onclick="load('awards', 'list', 'medal', {})">Medals</button> </div> </center> <br /> <?php foreach ($awards as $award) { if (Award::isMulti($award->getAward())) {