Example #1
0
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">
		
            </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>
Example #3
0
} 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;
            </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>