本文整理汇总了PHP中Ajax::flotChange方法的典型用法代码示例。如果您正苦于以下问题:PHP Ajax::flotChange方法的具体用法?PHP Ajax::flotChange怎么用?PHP Ajax::flotChange使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ajax
的用法示例。
在下文中一共展示了Ajax::flotChange方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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>';
}
示例2: displayContentInOldDesign
/**
* Display the content (old design)
*/
protected function displayContentInOldDesign()
{
$Weight = '';
$Pulse = '';
$Analyse = '';
$UserData = new UserData(DataObject::$LAST_OBJECT);
if ($this->Configuration()->value('use_weight')) {
$Weight = __('Weight') . ': <strong>' . Helper::Unknown($UserData->getWeight(), '-') . ' kg</strong><br>';
}
if ($this->Configuration()->value('use_pulse')) {
$Pulse = Helper::Unknown($UserData->getPulseRest(), '-') . ' bpm / ' . Helper::Unknown($UserData->getPulseMax()) . ' bpm';
} else {
$Pulse = Helper::Unknown($UserData->getPulseMax(), '-') . ' bpm';
}
if ($this->Configuration()->value('use_body_fat')) {
$Analyse = __('Fat') . ': ' . Helper::Unknown($UserData->getBodyFat(), '-') . ' %, ' . __('Water') . ': ' . Helper::Unknown($UserData->getWater(), '-') . ' %, ' . __('Muscles') . ': ' . Helper::Unknown($UserData->getMuscles(), '-') . ' %';
}
$AnalyseIsHidden = $this->Configuration()->value('use_weight') || $this->Configuration()->value('use_pulse');
if (!$AnalyseIsHidden && !$this->Configuration()->value('use_body_fat')) {
return;
}
echo '
<div id="sportler-content">
<span class="right">' . $Pulse . '</span>
' . Ajax::flotChange($Weight, 'sportler_flots', 'sportler_weights') . '
' . Ajax::flotChange($Analyse, 'sportler_flots', 'sportler_analyse', !$AnalyseIsHidden) . '
<div id="sportler_flots" class="flot-changeable" style="position:relative;width:320px;height:150px;margin:0 auto;">
<div class="flot ' . Ajax::$IMG_WAIT . '" id="sportler_weights" style="width:320px;height:150px;position:absolute;"></div>
<div class="flot ' . Ajax::$IMG_WAIT . ($AnalyseIsHidden ? ' flot-hide' : '') . '" id="sportler_analyse" style="width:320px;height:150px;position:absolute;"></div>
</div>
</div>';
include FRONTEND_PATH . '../plugin/' . $this->key() . '/Plot.gewicht.php';
include FRONTEND_PATH . '../plugin/' . $this->key() . '/Plot.analyse.php';
}