/[pdpsoft]/trunk/nl.nikhef.ndpf.tools/network-stats-mashup/includes/class.trunk.php
ViewVC logotype

Diff of /trunk/nl.nikhef.ndpf.tools/network-stats-mashup/includes/class.trunk.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1656 by aramv, Fri Apr 23 15:18:37 2010 UTC revision 1657 by aramv, Thu Apr 29 16:00:54 2010 UTC
# Line 28  class Trunk { Line 28  class Trunk {
28    }    }
29    
30    public function to_html(){    public function to_html(){
31      $html_string = '<h2><a href=' . $this->trunk_page_url . '">' . $this->name . '</a></h2><p>';      $html_string = '<h2><a href=' . $this->trunk_page_url . '">' . $this->name . '</a></h2>';
32      if(!empty($this->constituents)){      if(!empty($this->constituents)){
33        $html_string .= '<span class="constituents_div"><ul>';        $html_string .= '<div id="constituents_div"><ul>';
34        foreach($this->constituents as $index => $constituent){        foreach($this->constituents as $index => $constituent){
35          $html_string .= '<li><a href="' . $constituent->trunk_page_url . '" alt="' . $constituent->name . '" onmouseover="switch_graphs(this.href)"><b>' . $constituent->name . '</b></li>';          $html_string .= '<li><a href="' . $constituent->trunk_page_url . '" alt="' . $constituent->name . '" onmouseover="switch_graphs(this.href)"><b>' . $constituent->name . '</b></li>';
36        }        }
37        $html_string .= '</ul></span>';        $html_string .= '</ul></div>';
38      }      }
39        $html_string .= '<div id="graph_div"><p>';
40      if($this->daily_image_url){      if($this->daily_image_url){
41        $html_string .= '<a id="daily_graph_a" href="' . $this->trunk_page_url . '" title="' . $this->name . '"><img id="daily_graph_i" alt="' . $this->name . '" src="' . $this->daily_image_url() . '"/></a><br/>';        $html_string .= '<a id="daily_graph_a" href="' . $this->trunk_page_url . '" title="' . $this->name . '"><img id="daily_graph_i" alt="' . $this->name . '" src="' . $this->daily_image_url() . '"/></a><br/>';
42      }      }
43      if($this->weekly_image_url){      if($this->weekly_image_url){
44        $html_string .= '<a id="weekly_graph_a" href="' . $this->trunk_page_url . '" title="' . $this->name. '"><img id="weekly_graph_i" alt="' . $this->name . '" src="' . $this->weekly_image_url() . '"/></a>';        $html_string .= '<a id="weekly_graph_a" href="' . $this->trunk_page_url . '" title="' . $this->name. '"><img id="weekly_graph_i" alt="' . $this->name . '" src="' . $this->weekly_image_url() . '"/></a>';
45      }      }
46      $html_string .= '</p>';      $html_string .= '</p></div>';
47      return $html_string;      return $html_string;
48    }    }
49    

Legend:
Removed from v.1656  
changed lines
  Added in v.1657

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28