本文整理汇总了PHP中Graph::drawGraph方法的典型用法代码示例。如果您正苦于以下问题:PHP Graph::drawGraph方法的具体用法?PHP Graph::drawGraph怎么用?PHP Graph::drawGraph使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Graph
的用法示例。
在下文中一共展示了Graph::drawGraph方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
echo fRequest::generateCSRFToken();
?>
" />
<input type="hidden" name="user_id" value="<?php
echo fSession::get('user_id');
?>
" />
</div>
</form>
</div>
<div class="col-md-9">
<?php
if ($action == 'edit') {
?>
<img src="<?php
echo Graph::drawGraph($graph, $dashboard);
?>
">
<p class="info"><a href="<?php
echo Line::makeURL('add', $graph);
?>
">Add Line</a></p>
<?php
try {
$lines->tossIfEmpty();
$number_of_lines = $lines->count(TRUE);
$affected = fMessaging::retrieve('affected', fURL::get());
if ($number_of_lines > 1) {
?>
<script type="text/javascript">
示例2: if
</div><!-- /clearfix -->
<div class="actions">
<input class="btn primary" type="submit" value="Save" />
<a href="<?=Graph::makeURL('delete',$graph); ?>" class="btn">Delete</a>
<a href="<?=Dashboard::makeUrl('view',$dashboard); ?>" class="btn">View</a>
<div class="required"><em>*</em> Required field</div>
<input type="hidden" name="token" value="<?=fRequest::generateCSRFToken(); ?>" />
<input type="hidden" name="user_id" value="<?=fSession::get('user_id'); ?>" />
</div>
</fieldset>
</div>
</form>
</div>
<div class="span10">
<?php if ($action == 'edit') { ?>
<img src="<?=Graph::drawGraph($graph,$dashboard); ?>">
<p class="info"><a href="<?=Line::makeURL('add',$graph); ?>">Add Line</a></p>
<?php
try {
$lines->tossIfEmpty();
$affected = fMessaging::retrieve('affected', fURL::get());
?>
<div>
<table class="zebra-striped">
<thead>
<tr>
<th>Alias</th>
<th>Target</th>
<th>Color</th>
<th>Action</th>
</tr>
示例3: foreach
} else {
?>
<em class="text-warning inline" id="refresh_warning" style="margin-left:10px"><i class="glyphicon glyphicon-warning-sign"></i> Warning : refresh is permanently disabled.</em>
<?php
}
?>
</p>
<div class="row">
<?php
$graph_count = 0;
$columns = $dashboard->getColumns();
$height = $dashboard->getGraphHeight();
$width = $dashboard->getGraphWidth();
foreach ($graphs as $graph) {
// $graph_row = ($graph_count % $columns);
$url_graph = Graph::drawGraph($graph, $dashboard);
$req = $_REQUEST;
if (isset($ignored_values)) {
$keys = array_keys($req);
foreach ($ignored_values as $ignore_it) {
if (in_array($ignore_it, $keys)) {
unset($req[$ignore_it]);
}
}
}
foreach ($req as $key => $value) {
if ($key == "from" or $key == "until") {
$value = str_replace("+", "%2B", $value);
$value = str_replace(" ", "%2B", $value);
} elseif ($key == "height") {
$height = $value;
示例4: if
</div><!-- /clearfix -->
<div class="actions">
<input class="btn primary" type="submit" value="Save" />
<input class="btn" type="submit" name="action::delete" value="Delete" />
<a href="<?php echo Dashboard::makeUrl('view',$dashboard);?>" class="btn">View</a>
<div class="required"><em>*</em> Required field</div>
<input type="hidden" name="token" value="<?php echo fRequest::generateCSRFToken() ?>" />
<input type="hidden" name="user_id" value="<?php echo fSession::get('user_id'); ?>" />
</div>
</fieldset>
</div>
</form>
</div>
<div class="span10">
<?php if ($action == 'edit') { ?>
<img src="<?php echo Graph::drawGraph($graph,$dashboard) ?>">
<p class="info"><a href="<?php echo Line::makeURL('add',$graph) ?>">Add Line</a></p>
<?php
try {
$lines->tossIfEmpty();
$affected = fMessaging::retrieve('affected', fURL::get());
?>
<div>
<table class="zebra-striped">
<thead>
<tr>
<th>Alias</th>
<th>Target</th>
<th>Color</th>
<th>Action</th>
</tr>