projects
/
php-utility-classes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3d4db01
)
improve HTML for rrd pages
author
Robert Kaiser
<kairo@kairo.at>
Thu, 26 Dec 2019 19:36:33 +0000
(20:36 +0100)
committer
Robert Kaiser
<kairo@kairo.at>
Thu, 26 Dec 2019 19:36:33 +0000
(20:36 +0100)
classes/rrdstat.php-class
patch
|
blob
|
blame
|
history
diff --git
a/classes/rrdstat.php-class
b/classes/rrdstat.php-class
index 68b6d23902295dc0f9f9cdc6b527ced307ebcaca..74e2012e6eb2370e9063d54b00300c0cfef0b7ac 100644
(file)
--- a/
classes/rrdstat.php-class
+++ b/
classes/rrdstat.php-class
@@
-868,7
+868,8
@@
class rrdstat {
$td = $this->mod_textdomain;
$ptitle = isset($pconf['title_page'])?$pconf['title_page']:dgettext($td, 'RRD statistics index');
$td = $this->mod_textdomain;
$ptitle = isset($pconf['title_page'])?$pconf['title_page']:dgettext($td, 'RRD statistics index');
- $out = '<html><head>'."\n";
+ $out = '<!DOCTYPE html>'."\n";
+ $out .= '<html><head>'."\n";
$out .= '<title>'.$ptitle.'</title>'."\n";
$out .= '<style type="text/css">'."\n";
if (isset($pconf['style_base'])) { $out .= $pconf['style_base']; }
$out .= '<title>'.$ptitle.'</title>'."\n";
$out .= '<style type="text/css">'."\n";
if (isset($pconf['style_base'])) { $out .= $pconf['style_base']; }
@@
-896,7
+897,7
@@
class rrdstat {
else { $sURL_base = '?stat=%i%a'; }
if (isset($pconf['stats_url_add'])) { $sURL_add = $pconf['stats_url_add']; }
else { $sURL_base = '?stat=%i%a'; }
if (isset($pconf['stats_url_add'])) { $sURL_add = $pconf['stats_url_add']; }
- else { $sURL_add = '&sub=%s'; }
+ else { $sURL_add = '&
amp;
sub=%s'; }
$out .= '<ul class="indexlist">'."\n";
foreach ($stats as $stat) {
$out .= '<ul class="indexlist">'."\n";
foreach ($stats as $stat) {
@@
-913,7
+914,7
@@
class rrdstat {
$sURL = str_replace('%s', $ssub, $sURL);
$sprt[] = '<a href="'.$sURL.'">'.$ssub.'</a>';
}
$sURL = str_replace('%s', $ssub, $sURL);
$sprt[] = '<a href="'.$sURL.'">'.$ssub.'</a>';
}
- $out .= ' <span="subs">('.implode(', ', $sprt).')</span>';
+ $out .= ' <span
class
="subs">('.implode(', ', $sprt).')</span>';
}
$out .= '</li>'."\n";
}
}
$out .= '</li>'."\n";
}
@@
-929,7
+930,8
@@
class rrdstat {
$td = $this->mod_textdomain;
$ptitle = isset($pconf['title_page'])?$pconf['title_page']:dgettext($td, 'RRD statistics overview');
$td = $this->mod_textdomain;
$ptitle = isset($pconf['title_page'])?$pconf['title_page']:dgettext($td, 'RRD statistics overview');
- $out = '<html><head>'."\n";
+ $out = '<!DOCTYPE html>'."\n";
+ $out .= '<html><head>'."\n";
$out .= '<title>'.$ptitle.'</title>'."\n";
$out .= '<style type="text/css">'."\n";
if (isset($pconf['style_base'])) { $out .= $pconf['style_base']; }
$out .= '<title>'.$ptitle.'</title>'."\n";
$out .= '<style type="text/css">'."\n";
if (isset($pconf['style_base'])) { $out .= $pconf['style_base']; }
@@
-955,7
+957,7
@@
class rrdstat {
else { $sURL_base = '?stat=%i%a'; }
if (isset($pconf['stats_url_add'])) { $sURL_add = $pconf['stats_url_add']; }
else { $sURL_base = '?stat=%i%a'; }
if (isset($pconf['stats_url_add'])) { $sURL_add = $pconf['stats_url_add']; }
- else { $sURL_add = '&sub=%s'; }
+ else { $sURL_add = '&
amp;
sub=%s'; }
$default_num_cols = $GLOBALS['ua']->isMobile()?1:2;
$num_cols = is_numeric(@$pconf['num_rows'])?$pconf['num_rows']:$default_num_cols;
$default_num_cols = $GLOBALS['ua']->isMobile()?1:2;
$num_cols = is_numeric(@$pconf['num_rows'])?$pconf['num_rows']:$default_num_cols;
@@
-1041,7
+1043,8
@@
class rrdstat {
$gtitle['year'] = isset($pconf['title_year'])?$pconf['title_year']:dgettext($td, 'Year overview (scaling 1 day)');
$ltitle = isset($pconf['title_legend'])?$pconf['title_legend']:dgettext($td, 'Legend:');
$gtitle['year'] = isset($pconf['title_year'])?$pconf['title_year']:dgettext($td, 'Year overview (scaling 1 day)');
$ltitle = isset($pconf['title_legend'])?$pconf['title_legend']:dgettext($td, 'Legend:');
- $out = '<html><head>'."\n";
+ $out = '<!DOCTYPE html>'."\n";
+ $out .= '<html><head>'."\n";
$out .= '<title>'.$ptitle.'</title>'."\n";
$out .= '<style type="text/css">'."\n";
if (isset($pconf['style_base'])) { $out .= $pconf['style_base']; }
$out .= '<title>'.$ptitle.'</title>'."\n";
$out .= '<style type="text/css">'."\n";
if (isset($pconf['style_base'])) { $out .= $pconf['style_base']; }