本文整理汇总了PHP中Check::showGraph方法的典型用法代码示例。如果您正苦于以下问题:PHP Check::showGraph方法的具体用法?PHP Check::showGraph怎么用?PHP Check::showGraph使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Check
的用法示例。
在下文中一共展示了Check::showGraph方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: if
</fieldset>
<fieldset>
<div class="actions">
<input class="btn primary" type="submit" value="Save" />
<? if ($action == 'edit') { ?><a href="<?=Check::makeURL('delete',$check); ?>" class="btn" >Delete</a><?php } ?>
<div class="required"><em>*</em> Required field</div>
<input type="hidden" name="token" value="<?=fRequest::generateCSRFToken(); ?>" />
<?php if ($action == 'add') { ?>
<input type="hidden" name="user_id" value="<?=fSession::get('user_id'); ?>" />
<?php } ?>
</div>
</fieldset>
</div>
</form>
</div>
<div class="span10">
<?php if ($action == 'edit') { ?>
<div class="sidebar" id="sidebar">
<fieldset>
<p>Check : <?=$check->prepareName(); ?></p>
<p>Target : <?=$check->prepareTarget(); ?></p>
<p><?=Check::showGraph($check); ?></p>
</fieldset>
</div>
<?php } ?>
</div>
</div>
</div>
<?php
$tmpl->place('footer');
示例2: array
<div id="check_graph" class="col-md-9">
<?php
if ($action == 'edit') {
?>
<div class="sidebar" id="sidebar">
<fieldset>
<p>Check : <?php
echo $check->prepareName();
?>
</p>
<p>Target : <?php
echo Check::constructTarget($check);
?>
</p>
<p id="graphiteGraph"><?php
echo Check::showGraph($check);
?>
</p>
<div class="row">
<div class="col-md-4">
<select id="graphiteDateRange" class="form-control">
<?php
$dateRange = array('-12hours' => '12 Hours', '-1days' => '1 Day', '-3days' => '3 Days', '-7days' => '7 Days', '-14days' => '14 Days', '-30days' => '30 Days', '-60days' => '60 Days');
foreach ($dateRange as $value => $text) {
fHTML::printOption($text, $value, '-3days');
}
?>
</select>
</div>
<div class="col-md-4">
<input class="btn btn-primary" type="submit" value="Reload Graph" onClick="reloadGraphiteGraph()"/>
示例3:
}
?>
<div class="row">
<div class="col-md-8">
<div style="padding-bottom:15px;">
<span>Name : <?php
echo $check->prepareName();
?>
</span> |
<span>Target : <?php
echo Check::constructTarget($check);
?>
</span>
</div>
<span><?php
echo Check::showGraph($check, true, '-48hours', 620, true);
?>
</span>
</div>
<div class="col-md-4">
<form method="POST" action="<?php
echo CheckResult::makeURL('notifyAll', $check);
?>
" class="form-horizontal">
<fieldset>
<legend>Mail everyone</legend>
<em class="text-info" style="margin-bottom:10px;display:block;">Send a mail to all the people who subscribe to this check</em>
<div class="form-group">
<label class="control-label" for="subject">Subject *</label>
<input type="text" id="subject" class="form-control" name="subject_mail" value='Message about : "<?php
echo $check->getName();
示例4: Check
<div id="overview" style="width:600px;height:66px"></div>
</div>
<p style="clear:left"> </p>
<div class="metricrow" style="display:none">
<span id="target" class="metricName"><?php echo $check->prepareTarget();?></span>.
<span id="error_threshold"><?php echo $check->prepareError();?></span>
<span id="warn_threshold"><?php echo $check->prepareWarn();?></span>
<span id="check_id"><?php echo $check->prepareCheckId();?></span>
</div>
</div>
</div>
<!--<span><?php echo Check::showGraph($check); ?></span>
<span><?php echo Check::showGraph($check,true,'-24Hours',320,true); ?></span> -->
</fieldset>
<?php
try {
$check_results->tossIfEmpty();
$affectd = fMessaging::retrieve('affected',fURL::get());
?>
<a class="btn small primary" href="<?php echo CheckResult::makeURL('ackAll', $check = new Check($check_id)) ?>">Clear All</a>
<table class="zebra-striped">
<tr>
<th>Status</th>
<th>Value</th>
<th>Error</th>
<th>Warn</th>
<th>State</th>
<th>Time</th>
示例5: if
</fieldset>
<fieldset>
<div class="actions">
<input class="btn primary" type="submit" value="Save" />
<? if ($action == 'edit') { ?><input class="btn" type="submit" name="action::delete" value="Delete" /><?php } ?>
<div class="required"><em>*</em> Required field</div>
<input type="hidden" name="token" value="<?php echo fRequest::generateCSRFToken() ?>" />
<?php if ($action == 'add') { ?>
<input type="hidden" name="user_id" value="<?php echo fSession::get('user_id'); ?>" />
<?php } ?>
</div>
</fieldset>
</div>
</form>
</div>
<div class="span10">
<?php if ($action == 'edit') { ?>
<div class="sidebar" id="sidebar">
<fieldset>
<p>Check : <?php echo $check->prepareName(); ?></p>
<p>Target : <?php echo $check->prepareTarget(); ?></p>
<p><?php echo Check::showGraph($check); ?></p>
</fieldset>
</div>
<?php } ?>
</div>
</div>
</div>
<?php
$tmpl->place('footer');