Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
f6396752
Commit
f6396752
authored
Jan 06, 2016
by
Fabian Franz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
translation and some changes in traffic_graphs.widget.php
parent
68477040
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
traffic_graphs.widget.php
src/www/widgets/widgets/traffic_graphs.widget.php
+9
-9
No files found.
src/www/widgets/widgets/traffic_graphs.widget.php
View file @
f6396752
...
...
@@ -115,33 +115,33 @@ if (isset($a_config["scale_type"])) {
</td>
</tr>
<?php
$scale_type_up
=
"checked=
\"
checked
\"
"
;
$scale_type_up
=
'checked="checked"'
;
$scale_type_follow
=
""
;
if
(
isset
(
$config
[
"widgets"
][
"trafficgraphs"
][
"scale_type"
]))
{
$selected_radio
=
$config
[
"widgets"
][
"trafficgraphs"
][
"scale_type"
];
if
(
$selected_radio
==
"up"
)
{
$scale_type_up
=
"checked=
\"
checked
\"
"
;
$scale_type_up
=
'checked="checked"'
;
$scale_type_follow
=
""
;
}
elseif
(
$selected_radio
==
"follow"
)
{
$scale_type_up
=
""
;
$scale_type_follow
=
"checked=
\"
checked
\"
"
;
$scale_type_follow
=
'checked="checked"'
;
}
}
?>
<tr>
<td>
<input
name=
"scale_type"
type=
"radio"
id=
"scale_type_up"
value=
"up"
<?
php
echo
$scale_type_up
;
?>
/>
<?php
echo
gettext
(
'Scale up'
)
?>
<input
name=
"scale_type"
type=
"radio"
id=
"scale_type_up"
value=
"up"
<?
=
$scale_type_up
;
?>
/>
<?=
gettext
(
'Scale up'
)
?>
</td>
</tr>
<tr>
<td>
<input
name=
"scale_type"
type=
"radio"
id=
"scale_type_follow"
value=
"follow"
<?
php
echo
$scale_type_follow
;
?>
/>
<?php
echo
gettext
(
'Scale follow'
)
?>
<br
/><br
/>
Refresh Interval:
<input
name=
"scale_type"
type=
"radio"
id=
"scale_type_follow"
value=
"follow"
<?
=
$scale_type_follow
;
?>
/>
<?=
gettext
(
'Scale follow'
)
?>
<br
/><br
/>
<?=
gettext
(
'Refresh Interval:'
)
?>
<select
name=
"refreshinterval"
class=
"formfld"
id=
"refreshinterval"
>
<?php
for
(
$i
=
1
;
$i
<=
10
;
$i
+=
1
)
{
?>
<option
value=
"
<?=
$i
?>
"
<?php
if
(
$refreshinterval
==
$i
)
{
echo
"selected=
\"
selected
\"
"
;
echo
'selected="selected"'
;
}
?>
>
<?=
$i
?>
</option>
<?php
}
?>
...
...
@@ -187,7 +187,7 @@ foreach ($ifdescrs as $ifname => $ifdescr) {
<div
id=
"
<?=
$ifname
;
?>
topic"
class=
"widgetsubheader"
>
<div
style=
"float:left;width:49%"
>
<span
onclick=
"location.href='/status_graph.php?if=
<?=
$ifname
;
?>
'"
style=
"cursor:pointer"
>
Current
<?=
$ifdescr
;
?>
Traffic
</span>
?>
'"
style=
"cursor:pointer"
>
<?=
sprintf
(
gettext
(
'Current %s Traffic'
),
$ifdescr
)
?>
</span>
</div>
<div
align=
"right"
style=
"float:right;width:49%"
>
<div
id=
"
<?=
$ifname
;
?>
graphdiv-min"
onclick=
'return trafficminimizeDiv("
<?=
$ifname
?>
", true);'
...
...
@@ -199,7 +199,7 @@ foreach ($ifdescrs as $ifname => $ifdescr) {
</div>
<div
style=
"clear:both;"
></div>
</div>
<div
id=
"
<?=
$ifname
;
?>
graphdiv"
style=
"display:
<?
php
echo
$graphdisplay
;
?>
"
>
<div
id=
"
<?=
$ifname
;
?>
graphdiv"
style=
"display:
<?
=
$graphdisplay
;
?>
"
>
<object
data=
"graph.php?ifnum=
<?=
$ifname
;
?>
&ifname=
<?=
rawurlencode
(
$ifdescr
);
?>
&timeint=
<?=
$refreshinterval
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment