當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Plot::getDivFor方法代碼示例

本文整理匯總了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>
開發者ID:n0rthface,項目名稱:Runalyze,代碼行數:31,代碼來源:window.plot.php

示例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';
 }
開發者ID:guancio,項目名稱:Runalyze,代碼行數:17,代碼來源:class.RunalyzePluginStat_Trainingszeiten.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;
 }
開發者ID:n0rthface,項目名稱:Runalyze,代碼行數:17,代碼來源:class.Frontend.php

示例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>
開發者ID:guancio,項目名稱:Runalyze,代碼行數:31,代碼來源:window.php

示例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>
開發者ID:guancio,項目名稱:Runalyze,代碼行數:31,代碼來源:window.plot.php


注:本文中的Plot::getDivFor方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。