2 graphs per one line in dual view

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
Alex K

2 graphs per one line in dual view

Post by Alex K »

to make 2 graphs per one line, at line 399, (foreach ($heirarchy as $leaf)...) change next 3 lines of code (till $i++) to the following code:

Code: Select all

if (($i + 1) % 2 == 1) { 
  form_alternate_row_color("f9f9f9", "ffffff", $i); 
  print "<td align='left'>" ; 
} 
// 2 graphs per line 
print "<a href='graph.php?local_graph_id=" . $leaf["local_graph_id"] . "&rra_id=all&type=tree'><img src='graph_image.php?local_graph_id=" . $leaf["local_graph_id"] . "&rra_id=" . read_graph_config_option("default_rra_id") . "&graph_start=-86400&graph_height=100&graph_width=300&graph_nolegend=true" . "' border='0' alt='" . $leaf["graph_title"] . "'></a>\n"; 

if (($i + 1) % 2 == 0) 
  print "</td></tr>\n" ; 


the same you can do to change host items arrangement,edit lines beginnig from line 439 to 444, to the same manner as above
claytondukes

Uhmmm

Post by claytondukes »

Dude...in what file???
Alex K

sorry, here is

Post by Alex K »

tree_view_functions.php
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests