本文整理汇总了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);
}
示例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>';
}
示例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>';
}
示例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>';
}
示例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>';
}
示例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>';
}