<span class="button" id="calendar-submit"><?php _e('Show selection'); ?> </span> </div> </div> <?php if ($this->DayCount < 25) { $weekSeparator = ' top-separated'; $monthSeparator = ' top-separated-light'; } else { $weekSeparator = ' top-separated-light'; $monthSeparator = ' top-separated'; } $Context = new \Runalyze\Dataset\Context(new Runalyze\Model\Activity\Entity(), $this->AccountID); $Table = new \Runalyze\View\Dataset\Table($this->DatasetConfig); ?> <div id="data-browser-container"> <table class="zebra-style"> <?php if (\Runalyze\Configuration::DataBrowser()->showLabels()) { ?> <thead class="data-browser-labels"> <tr class="small"> <td colspan="<?php echo 2 + $this->ShowEditLink + $this->ShowPublicLink; ?> "></td> <?php
/** * @param \Runalyze\View\Dataset\Table $Table */ protected function displayTrainingRows(\Runalyze\View\Dataset\Table $Table) { $Context = new \Runalyze\Dataset\Context(new Runalyze\Model\Activity\Entity(), $this->AccountID); foreach ($this->Trainings as $training) { $date = date("d.m.Y", $training['time']); $link = Ajax::trainingLink($training['id'], $date, true); $Context->setActivityData($training); echo '<tr class="r">'; echo '<td class="l"><small>' . $link . '</small></td>'; echo $Table->codeForColumns($Context); echo '</tr>'; } }