예제 #1
0
$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 
    echo $Table->codeForColumnLabels();
    ?>
				</tr>
			</thead>
			<?php 
}
?>
			<tbody class="top-and-bottom-border">
<?php 
foreach ($this->Days as $i => $day) {
    $trClass = '';
    if ($i > 0 && date('w', $day['date']) == \Runalyze\Configuration::General()->weekStart()->value()) {
        $trClass = $weekSeparator;
    }
    if ($i > 0 && date('j', $day['date']) == 1) {
        $trClass = $trClass == '' ? $monthSeparator : ' top-separated';
예제 #2
0
 /**
  * Display results
  */
 protected function displayResults()
 {
     if (!$this->WithResults) {
         return;
     }
     $Table = new \Runalyze\View\Dataset\Table($this->DatasetConfig);
     $Icon = new \Runalyze\View\Icon(Runalyze\View\Icon::INFO);
     echo '<p class="c">';
     $this->displayHeader();
     echo '</p>';
     echo '<table class="fullwidth zebra-style">';
     echo '<thead>';
     echo '<tr style="font-size:.5em;line-height:1;"><td></td>' . $Table->codeForColumnLabels($Icon->code()) . '</tr>';
     echo '</thead>';
     echo '<tbody>';
     $this->displayTrainingRows($Table);
     echo '</tbody>';
     echo '</table>';
 }