本文整理汇总了PHP中Plot::getDivFor方法的典型用法代码示例。如果您正苦于以下问题:PHP Plot::getDivFor方法的具体用法?PHP Plot::getDivFor怎么用?PHP Plot::getDivFor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Plot
的用法示例。
在下文中一共展示了Plot::getDivFor方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __
$link = 'plugin/RunalyzePluginPanel_Rechenspiele/window.plot.php?y=lastyear';
$Submenu .= '<li' . ('lastyear' == $_GET['y'] ? ' class="active"' : '') . '>' . Ajax::window('<a href="' . $link . '">' . __('Last year') . '</a>') . '</li>';
for ($j = date('Y'); $j >= START_YEAR; $j--) {
$link = 'plugin/RunalyzePluginPanel_Rechenspiele/window.plot.php?y=' . $j;
$Submenu .= '<li' . ($j == $_GET['y'] ? ' class="active"' : '') . '>' . Ajax::window('<a href="' . $link . '">' . $j . '</a>') . '</li>';
}
?>
<div class="panel-heading">
<div class="panel-menu">
<ul>
<li class="with-submenu"><span class="link"><?php
_e('Choose year');
?>
</span><ul class="submenu"><?php
echo $Submenu;
?>
</ul></li>
</ul>
</div>
<h1><?php
_e('Shape');
?>
</h1>
</div>
<div class="panel-content">
<?php
echo Plot::getDivFor('form' . $_GET['y'], 800, 450);
include FRONTEND_PATH . '../plugin/RunalyzePluginPanel_Rechenspiele/Plot.Form.php';
?>
</div>
示例2: displayImages
/**
* Display the images
*/
private function displayImages()
{
echo '<div style="max-width:750px;margin:0 auto;">';
echo '<span class="right">';
echo Plot::getDivFor('weekday', 350, 190);
echo '</span>';
echo '<span class="left">';
echo Plot::getDivFor('daytime', 350, 190);
echo '</span>';
echo HTML::clearBreak();
echo '</div>';
include FRONTEND_PATH . '../plugin/' . $this->key() . '/Plot.Daytime.php';
include FRONTEND_PATH . '../plugin/' . $this->key() . '/Plot.Weekday.php';
}
示例3: testPlot
/**
* Test a plot
*
* Will be displayed instead of the DataBrowser - Only for testing purposes!
* @param string $includePath
* @param string $name
* @param int $width
* @param int $height
*/
public function testPlot($includePath, $name, $width, $height)
{
echo '<div id="container"><div id="main"><div id="data-browser" class="panel c"><div class="panel-content">';
echo Plot::getDivFor($name, $width, $height);
include FRONTEND_PATH . $includePath;
echo '</div></div></div></div>';
exit;
}
示例4: _e
?>
<div class="panel-heading">
<div class="panel-menu">
<ul>
<li class="with-submenu"><span class="link"><?php
_e('Choose year');
?>
</span><ul class="submenu"><?php
echo $Submenu;
?>
</ul></li>
</ul>
</div>
<h1><?php
_e('Temperatures');
?>
</h1>
</div>
<div class="panel-content">
<?php
echo Plot::getDivFor('average', 780, 240);
include FRONTEND_PATH . '../plugin/RunalyzePluginStat_Wetter/Plot.Average.php';
?>
</div>
<div class="panel-content">
<?php
echo Plot::getDivFor('year' . $_GET['y'], 780, 240);
include FRONTEND_PATH . '../plugin/RunalyzePluginStat_Wetter/Plot.Year.php';
?>
</div>
示例5: _e
?>
</span><ul class="submenu"><?php
echo $Submenu;
?>
</ul></li>
</ul>
</div>
<h1><?php
_e('Prognosis calculator: form trend');
?>
</h1>
</div>
<div class="panel-content">
<?php
echo Plot::getDivFor('formverlauf_' . str_replace('.', '_', $distance), 800, 450);
include FRONTEND_PATH . '../plugin/RunalyzePluginPanel_Prognose/Plot.Form.php';
?>
<p class="info">
<?php
_e('The average VDOT value per month is used.');
?>
</p>
<p class="info">
<?php
_e('The basic endurance adjustment is <strong>not</strong> used for these calculations.');
?>
</p>
</div>