本文整理匯總了PHP中Plot::getInnerDivFor方法的典型用法代碼示例。如果您正苦於以下問題:PHP Plot::getInnerDivFor方法的具體用法?PHP Plot::getInnerDivFor怎麽用?PHP Plot::getInnerDivFor使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Plot
的用法示例。
在下文中一共展示了Plot::getInnerDivFor方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: 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>';
}