當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。