当前位置: 首页>>代码示例>>PHP>>正文


PHP Graph::drawGraph方法代码示例

本文整理汇总了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">
		
开发者ID:nagyist,项目名称:Tattle,代码行数:30,代码来源:add_edit_graph.php

示例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>
开发者ID:nleskiw,项目名称:Graphite-Tattle,代码行数:31,代码来源:add_edit_graph.php

示例3: foreach

} else {
    ?>
			<em class="text-warning inline" id="refresh_warning" style="margin-left:10px"><i class="glyphicon glyphicon-warning-sign"></i>&nbsp;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;
开发者ID:nagyist,项目名称:Tattle,代码行数:31,代码来源:view_dashboard.php

示例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>    
开发者ID:rberger,项目名称:Graphite-Tattle,代码行数:31,代码来源:add_edit_graph.php


注:本文中的Graph::drawGraph方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。