/**
  * Display navigation 
  */
 protected function displayNavigation()
 {
     $Links = array();
     foreach ($this->Tabs as $Tab) {
         $Links[] = array('tag' => Ajax::link($Tab->getTitle(), self::$TABS_ID, $Tab->getUrl()));
     }
     echo Ajax::toolbarNavigation($Links);
 }
 /**
  * Display header
  */
 protected function displayHeader()
 {
     $name = $this->Plugin instanceof PluginTool ? $this->Plugin->getWindowLink() : $this->Plugin->name();
     $Links = array();
     $Links[] = array('tag' => Ajax::window('<a href="' . ConfigTabPlugins::getExternalUrl() . '">' . __('back to overview') . '</a>'));
     echo '<div class="panel-heading">';
     echo '<div class="panel-menu">';
     echo Ajax::toolbarNavigation($Links);
     echo '</div>';
     echo '<h1>' . __('Plugin configuration') . ': ' . $name . '</h1>';
     echo '</div>';
 }
 /**
  * Display header for all tools
  */
 public static function displayToolsHeader()
 {
     $Sublinks = array();
     $Sublinks[] = Ajax::link('--- ' . __('All tools'), self::$TOOLS_DIV_ID, self::$DISPLAY_URL . '?list=true');
     $Factory = new PluginFactory();
     foreach ($Factory->activePlugins(PluginType::Tool) as $key) {
         $Sublinks[] = $Factory->newInstance($key)->getLink();
     }
     $Links = array();
     $Links[] = array('tag' => '<a href="#">' . __('Choose tool') . '</a>', 'subs' => $Sublinks);
     echo '<div class="panel-menu panel-menu-floated">';
     echo Ajax::toolbarNavigation($Links);
     echo '</div>';
 }
 /**
  * Display tab navigation
  */
 private function displayNavigation()
 {
     $Links = array();
     foreach ($this->Tabs as $Tab) {
         $Links[] = array('tag' => $Tab->link());
     }
     echo '<div class="panel-menu panel-menu-floated">';
     echo Ajax::toolbarNavigation($Links);
     echo '</div>';
 }
 /**
  * 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>';
 }
Exemple #6
0
 /**
  * Display navigation
  */
 protected function displayNavigation()
 {
     $Links = array();
     foreach ($this->Tabs as $id => $Tab) {
         $Links[] = array('tag' => Ajax::change($Tab['title'], $this->containerID, '#' . $id, $Tab['active'] ? 'triggered' : ''));
     }
     echo '<div class="panel-menu">';
     echo Ajax::toolbarNavigation($Links);
     echo '</div>';
 }