Multilinguified (SVG excluded).
This commit is contained in:
parent
88b7c36793
commit
fb678b5893
|
|
@ -0,0 +1,23 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
//traffic_graph
|
||||||
|
|
||||||
|
$text['title-traffic_graph']['en-us'] = 'Traffic Graph';
|
||||||
|
$text['title-traffic_graph']['pt-pt'] = '';
|
||||||
|
|
||||||
|
$text['header-traffic_graph']['en-us'] = 'Traffic Graph';
|
||||||
|
$text['header-traffic_graph']['pt-pt'] = '';
|
||||||
|
|
||||||
|
$text['description-traffic_graph']['en-us'] = 'A browser (or plugin) that supports Scalable Vector Graphics (SVG) is required to view the traffic graph below.';
|
||||||
|
$text['description-traffic_graph']['pt-pt'] = '';
|
||||||
|
|
||||||
|
$text['label-interface']['en-us'] = 'Interface';
|
||||||
|
$text['label-interface']['pt-pt'] = '';
|
||||||
|
|
||||||
|
$text['description-no_svg']['en-us'] = 'Unfortunately your browser does not currently support Scalable Vector Graphics (SVG). To view the traffic graph, please use a browser (or plugin) that supports Scalable Vector Graphics (SVG).';
|
||||||
|
$text['description-no_svg']['pt-pt'] = '';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
@ -43,6 +43,12 @@ else {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//add multi-lingual support
|
||||||
|
require_once "app_languages.php";
|
||||||
|
foreach($text as $key => $value) {
|
||||||
|
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||||
|
}
|
||||||
|
|
||||||
if ($_REQUEST['interface']) {
|
if ($_REQUEST['interface']) {
|
||||||
$interface = $_REQUEST['interface'];
|
$interface = $_REQUEST['interface'];
|
||||||
}
|
}
|
||||||
|
|
@ -63,18 +69,17 @@ else {
|
||||||
$height = "330"; //275 //330 //396
|
$height = "330"; //275 //330 //396
|
||||||
}
|
}
|
||||||
|
|
||||||
$pg_title = "<b>Traffic Graph</b>\n";
|
|
||||||
|
|
||||||
require_once "includes/header.php";
|
require_once "includes/header.php";
|
||||||
|
$page["title"] = $text['title-traffic_graph'];
|
||||||
?>
|
?>
|
||||||
<table width='100%'>
|
<table width='100%'>
|
||||||
<tr>
|
<tr>
|
||||||
<td align='left'>
|
<td align='left'>
|
||||||
<p class="pgtitle"><?php echo $pg_title; ?></p>
|
<p class="pgtitle"><b><?=$text['header-traffic_graph']?></b></p>
|
||||||
</td>
|
</td>
|
||||||
<td align='right'>
|
<td align='right'>
|
||||||
<form name="form1" action="status_graph.php" method="get" style="">
|
<form name="form1" action="status_graph.php" method="get" style="">
|
||||||
Interface:
|
<?=$text['label-interface']?>:
|
||||||
<select name="interface" class="formfld" style="width:100px; z-index: -10;" onchange="document.form1.submit()">
|
<select name="interface" class="formfld" style="width:100px; z-index: -10;" onchange="document.form1.submit()">
|
||||||
<option value=''></option>
|
<option value=''></option>
|
||||||
<?php
|
<?php
|
||||||
|
|
@ -118,7 +123,7 @@ require_once "includes/header.php";
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<strong>Note:</strong> the <a href="http://www.adobe.com/svg/viewer/install/" target="_blank">Adobe SVG Viewer</a>, Firefox 1.5 or later or other browser supporting SVG is required to view the graph.
|
<?=$text['description-traffic_graph']?>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
|
|
@ -128,7 +133,7 @@ require_once "includes/header.php";
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<object data="svg_graph.php?interface=<?php echo $interface; ?>" type="image/svg+xml" width="<?php echo $width; ?>" height="<?php echo $height; ?>">
|
<object data="svg_graph.php?interface=<?php echo $interface; ?>" type="image/svg+xml" width="<?php echo $width; ?>" height="<?php echo $height; ?>">
|
||||||
<param name="src" value="svg_graph.php?interface=<?php echo $interface; ?>" />
|
<param name="src" value="svg_graph.php?interface=<?php echo $interface; ?>" />
|
||||||
Your browser does not support the type SVG! You need to either use Firefox or download the Adobe SVG plugin.
|
<?=$text['description-no_svg']?>
|
||||||
</object>
|
</object>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue