/**
  * Display all image-links for personal bests
  */
 private function displayPersonalBestsImages()
 {
     $SubLinks = array();
     foreach ($this->PBdistances as $km) {
         $name = (new Distance($km))->stringAuto(true, 1);
         $SubLinks[] = Ajax::flotChange($name, 'bestzeitenFlots', 'bestzeit' . $km * 1000);
     }
     $Links = array(array('tag' => '<a href="#">' . __('Choose distance') . '</a>', 'subs' => $SubLinks));
     echo '<div class="databox" style="float:none;padding:0;width:490px;margin:20px auto;">';
     echo '<div class="panel-heading">';
     echo '<div class="panel-menu">';
     echo Ajax::toolbarNavigation($Links);
     echo '</div>';
     echo '<h1>' . __('Results trend') . '</h1>';
     echo '</div>';
     echo '<div class="panel-content">';
     $display_km = $this->PBdistances[0];
     if (in_array($this->Configuration()->value('main_distance'), $this->PBdistances)) {
         $display_km = $this->Configuration()->value('main_distance');
     }
     echo '<div id="bestzeitenFlots" class="flot-changeable" style="position:relative;width:482px;height:192px;">';
     foreach ($this->PBdistances as $km) {
         echo Plot::getInnerDivFor('bestzeit' . $km * 1000, 480, 190, $km != $display_km);
         $_GET['km'] = $km;
         include 'Plot.Bestzeit.php';
     }
     echo '</div>';
     echo '</div>';
     echo '</div>';
 }
    /**
     * Display the content (old design)
     */
    protected function displayContentInOldDesign()
    {
        $Weight = '';
        $Pulse = '';
        $Analyse = '';
        $UserData = new UserData(DataObject::$LAST_OBJECT);
        if ($this->Configuration()->value('use_weight')) {
            $Weight = __('Weight') . ': <strong>' . Helper::Unknown($UserData->getWeight(), '-') . ' kg</strong><br>';
        }
        if ($this->Configuration()->value('use_pulse')) {
            $Pulse = Helper::Unknown($UserData->getPulseRest(), '-') . ' bpm / ' . Helper::Unknown($UserData->getPulseMax()) . ' bpm';
        } else {
            $Pulse = Helper::Unknown($UserData->getPulseMax(), '-') . ' bpm';
        }
        if ($this->Configuration()->value('use_body_fat')) {
            $Analyse = __('Fat') . ': ' . Helper::Unknown($UserData->getBodyFat(), '-') . ' &#37;, ' . __('Water') . ': ' . Helper::Unknown($UserData->getWater(), '-') . ' &#37;, ' . __('Muscles') . ': ' . Helper::Unknown($UserData->getMuscles(), '-') . ' &#37;';
        }
        $AnalyseIsHidden = $this->Configuration()->value('use_weight') || $this->Configuration()->value('use_pulse');
        if (!$AnalyseIsHidden && !$this->Configuration()->value('use_body_fat')) {
            return;
        }
        echo '
			<div id="sportler-content">
				<span class="right">' . $Pulse . '</span>
				' . Ajax::flotChange($Weight, 'sportler_flots', 'sportler_weights') . '
				' . Ajax::flotChange($Analyse, 'sportler_flots', 'sportler_analyse', !$AnalyseIsHidden) . '

				<div id="sportler_flots" class="flot-changeable" style="position:relative;width:320px;height:150px;margin:0 auto;">
					<div class="flot ' . Ajax::$IMG_WAIT . '" id="sportler_weights" style="width:320px;height:150px;position:absolute;"></div>
					<div class="flot ' . Ajax::$IMG_WAIT . ($AnalyseIsHidden ? ' flot-hide' : '') . '" id="sportler_analyse" style="width:320px;height:150px;position:absolute;"></div>
				</div>
			</div>';
        include FRONTEND_PATH . '../plugin/' . $this->key() . '/Plot.gewicht.php';
        include FRONTEND_PATH . '../plugin/' . $this->key() . '/Plot.analyse.php';
    }