/**
     * Display the table with summed data for every month 
     */
    private function displayElevationData()
    {
        echo '<table class="fullwidth zebra-style r">';
        echo '<thead>' . HTML::monthTr(8, 1) . '</thead>';
        echo '<tbody>';
        if (empty($this->ElevationData)) {
            echo '<tr><td colspan="13" class="l"><em>' . __('No routes found.') . '</em></td></tr>';
        }
        foreach ($this->ElevationData as $y => $Data) {
            echo '
				<tr>
					<td class="b l">' . $y . '</td>' . NL;
            for ($m = 1; $m <= 12; $m++) {
                if (isset($Data[$m]) && $Data[$m]['elevation'] > 0) {
                    $Link = new SearchLink();
                    $Link->fromTo(mktime(0, 0, 0, $m, 1, $y), mktime(0, 0, 0, $m + 1, 0, $y));
                    $Link->sortBy('elevation');
                    echo '<td>' . $Link->link($Data[$m]['elevation'] . '&nbsp;m') . '</td>';
                } else {
                    echo HTML::emptyTD();
                }
            }
            echo '</tr>' . NL;
        }
        echo '</tbody></table>';
    }
 /**
  * Display the table with summed data for every month 
  */
 private function displayData()
 {
     echo '<table class="fullwidth zebra-style r">';
     echo '<thead>' . HTML::monthTr(8, 1) . '</thead>';
     echo '<tbody>';
     if (empty($this->ABCData)) {
         echo '<tr><td colspan="13" class="c"><em>' . __('No activities with running drills found.') . '</em></td></tr>';
     }
     foreach ($this->ABCData as $y => $Data) {
         echo '<tr><td class="b l">' . $y . '</td>';
         for ($m = 1; $m <= 12; $m++) {
             if (isset($Data[$m]) && $Data[$m]['num'] > 0) {
                 echo '<td title="' . $Data[$m]['num'] . 'x">' . round(100 * $Data[$m]['abc'] / $Data[$m]['num']) . ' &#37;</td>';
             } else {
                 echo HTML::emptyTD();
             }
         }
         echo '</tr>';
     }
     echo '</tbody></table>';
 }
 /**
  * Display the table with summed data for every month
  */
 private function displayData()
 {
     echo '<table class="analysis-table fullwidth zebra-style r">';
     echo '<thead>' . HTML::monthTr(8, 1) . '</thead>';
     echo '<tbody>';
     if (empty($this->KmData)) {
         echo '<tr><td colspan="13" class="c"><em>' . __('No activities found.') . '</em></td></tr>';
     }
     foreach ($this->KmData as $y => $Data) {
         echo '<tr><td class="b l">' . $y . '</td>';
         for ($m = 1; $m <= 12; $m++) {
             if (isset($Data[$m])) {
                 if ($this->dat == 'km') {
                     echo '<td title="' . Distance::format($Data[$m]['distance']) . '">' . Distance::format($Data[$m]['distance']) . $this->getCircleFor(100 * $Data[$m]['distance'] / $this->maxKm) . '</td>';
                     //echo '<td style="vertical-align: bottom;">' . $tooltip . $circle . '</td>';
                 } else {
                     if ($this->dat == 's') {
                         echo '<td title="' . $Data[$m]['s'] . '">' . Duration::format($Data[$m]['s']) . $this->getCircleFor(100 * $Data[$m]['s'] / $this->maxs) . '</td>';
                     } else {
                         if ($this->dat == 'em') {
                             echo '<td title="' . Elevation::format($Data[$m]['elevation']) . '">' . Elevation::format($Data[$m]['elevation']) . $this->getCircleFor(100 * $Data[$m]['elevation'] / $this->maxEm) . '</td>';
                         } else {
                             if ($this->dat == 'kcal') {
                                 echo '<td title="' . $Data[$m]['kcal'] . ' kcal">' . $Data[$m]['kcal'] . ' kcal' . $this->getCircleFor(100 * $Data[$m]['kcal'] / $this->maxKcal) . '</td>';
                             } else {
                                 if ($this->dat == 'trimp') {
                                     echo '<td title="' . $Data[$m]['trimp'] . '">' . $Data[$m]['trimp'] . $this->getCircleFor(100 * $Data[$m]['trimp'] / $this->maxTrimp) . '</td>';
                                 } else {
                                     if ($this->dat == 'n') {
                                         echo '<td title="' . $Data[$m]['n'] . '">' . $Data[$m]['n'] . $this->getCircleFor(100 * $Data[$m]['n'] / $this->maxN) . '</td>';
                                     }
                                 }
                             }
                         }
                     }
                 }
             } else {
                 echo HTML::emptyTD();
             }
         }
         echo '</tr>';
     }
     echo '</tbody></table>';
 }
 /**
  * Display the table with summed data for every month 
  */
 private function displayData()
 {
     echo '<p><strong>' . __('Tag') . ': ' . $this->AllTags[$this->TagId] . '</p>';
     echo '<table class="fullwidth zebra-style r">';
     echo '<thead>' . HTML::monthTr(8, 1) . '</thead>';
     echo '<tbody>';
     if (empty($this->TagData)) {
         echo '<tr><td colspan="13" class="c"><em>' . __('No activities found.') . '</em></td></tr>';
     }
     foreach ($this->TagData as $y => $Data) {
         echo '<tr><td class="b l">' . $y . '</td>';
         for ($m = 1; $m <= 12; $m++) {
             if (isset($Data[$m]) && $Data[$m] > 0) {
                 echo '<td>' . $Data[$m] . 'x</td>';
             } else {
                 echo HTML::emptyTD();
             }
         }
         echo '</tr>';
     }
     echo '</tbody></table>';
 }