* @package climbu-livescoring * @version 2.0 * @link https://github.com/intrd/climbu-livescoring/ * @category system * @author intrd - http://dann.com.br/ * @copyright 2015 intrd * @license Creative Commons Attribution-ShareAlike 4.0 - http://creativecommons.org/licenses/by-sa/4.0/ * Dependencies: Yes, details at README.md */ include "../config.php"; $qtdy = $_REQUEST["qty"]; ?> <?php $sec = $userdata->sector; $tops = new data("attempts", "filter:(ascent='1' or ascent='2') ORDER BY id DESC limit {$qtdy};"); $boulders = get_sectordata($sec); $boulders = $boulders["boulders"]; //vd($boulders); //die; ?> <div style="margin-top:5px;"> <center><h4 class="media-heading"><?php echo _("Latest tops"); ?> </h4></center> </div> <div class="table-responsive" style="font-size:10px;"> <table class="table table-bordered"> <th><?php echo _("Athlete"); ?>
function get_boulder($sectorid, $bouldernumber) { $sectordata = get_sectordata($sectorid); $boulder = $sectordata["boulders"][$bouldernumber - 1]; return $boulder; }
if (!$id) { return false; } if ($top == 1) { $topname = "top"; $stylecolor = "red"; } else { $topname = "attempt"; $stylecolor = "blue"; } $usu = $userdata; $sector = $usu->sector; $athlete = new data('athletes', "filter:id='{$id}'", false); $athlete = $athlete->{0}; //$sector=3; $sectordata = get_sectordata($sector); //vd($sectordata); //die; $sector = $sectordata["sector"]; $boulderdata = $sectordata["boulders"]; //vd($boulderdata[1]); //die; //sleep(5); ?> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title"><?php echo _("Registering top|attempt"); ?> </span> @ <?php echo _("sector");