当前位置: 首页>>代码示例>>PHP>>正文


PHP Ajax::toolbarNavigation方法代码示例

本文整理汇总了PHP中Ajax::toolbarNavigation方法的典型用法代码示例。如果您正苦于以下问题:PHP Ajax::toolbarNavigation方法的具体用法?PHP Ajax::toolbarNavigation怎么用?PHP Ajax::toolbarNavigation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Ajax的用法示例。


在下文中一共展示了Ajax::toolbarNavigation方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: displayNavigation

 /**
  * 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);
 }
开发者ID:n0rthface,项目名称:Runalyze,代码行数:11,代码来源:class.ConfigTabs.php

示例2: displayHeader

 /**
  * 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>';
 }
开发者ID:n0rthface,项目名称:Runalyze,代码行数:15,代码来源:class.PluginConfigurationWindow.php

示例3: displayToolsHeader

 /**
  * 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>';
 }
开发者ID:n0rthface,项目名称:Runalyze,代码行数:17,代码来源:class.PluginTool.php

示例4: displayNavigation

 /**
  * 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>';
 }
开发者ID:n0rthface,项目名称:Runalyze,代码行数:13,代码来源:class.ImporterWindow.php

示例5: displayPersonalBestsImages

 /**
  * 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>';
 }
开发者ID:rob-st,项目名称:Runalyze,代码行数:33,代码来源:class.RunalyzePluginStat_Wettkampf.php

示例6: displayNavigation

 /**
  * 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>';
 }
开发者ID:guancio,项目名称:Runalyze,代码行数:13,代码来源:class.AjaxTabs.php


注:本文中的Ajax::toolbarNavigation方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。