Révision 35774aec
Ajouté par CharlieMarshall il y a plus de 9 ans
usr/local/www/widgets/widgets/traffic_graphs.widget.php | ||
---|---|---|
98 | 98 |
?> |
99 | 99 |
<input type="hidden" id="traffic_graphs-config" name="traffic_graphs-config" value="" /> |
100 | 100 |
|
101 |
<?php |
|
102 |
//set variables for traffic graph |
|
103 |
$width = "100%"; |
|
104 |
$height = "150"; |
|
105 |
?> |
|
106 |
|
|
107 | 101 |
<div id="traffic_graphs-settings" class="widgetconfigdiv" style="display:none;"> |
108 | 102 |
<form action="/widgets/widgets/traffic_graphs.widget.php" method="post" name="iform" id="iform"> |
109 | 103 |
<?php foreach ($ifdescrs as $ifname => $ifdescr) { ?> |
... | ... | |
173 | 167 |
<div style="clear:both;"></div> |
174 | 168 |
</div> |
175 | 169 |
<div id="<?=$ifname;?>graphdiv" style="display:<?php echo $graphdisplay;?>"> |
176 |
<object data="graph.php?ifnum=<?=$ifname;?>&ifname=<?=rawurlencode($ifdescr);?>&timeint=<?=$refreshinterval;?>&initdelay=<?=($graphcounter+1) * 2;?>"> |
|
170 |
<object data="graph.php?ifnum=<?=$ifname;?>&ifname=<?=rawurlencode($ifdescr);?>&timeint=<?=$refreshinterval;?>&initdelay=<?=($graphcounter+1) * 2;?>" height="100%" width="100%">
|
|
177 | 171 |
<param name="id" value="graph" /> |
178 | 172 |
<param name="type" value="image/svg+xml" /> |
179 |
<param name="width" value="<? echo $width; ?>" /> |
|
180 |
<param name="height" value="<? echo $height; ?>" /> |
|
181 | 173 |
<param name="pluginspage" value="http://www.adobe.com/svg/viewer/install/auto" /> |
182 | 174 |
</object> |
183 | 175 |
</div> |
Formats disponibles : Unified diff
fix display of traffic graph