Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
7f2039a1
Commit
7f2039a1
authored
7 years ago
by
Tim van Dijen
Committed by
Thijs Kinkhorst
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Move CSS to separate file
parent
1948458c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/statistics/templates/statistics.tpl.php
+21
-65
21 additions, 65 deletions
modules/statistics/templates/statistics.tpl.php
modules/statistics/www/style.css
+91
-0
91 additions, 0 deletions
modules/statistics/www/style.css
with
112 additions
and
65 deletions
modules/statistics/templates/statistics.tpl.php
+
21
−
65
View file @
7f2039a1
...
@@ -3,7 +3,8 @@ $this->data['header'] = 'SimpleSAMLphp Statistics';
...
@@ -3,7 +3,8 @@ $this->data['header'] = 'SimpleSAMLphp Statistics';
$this
->
data
[
'jquery'
]
=
array
(
'core'
=>
true
,
'ui'
=>
true
,
'css'
=>
true
);
$this
->
data
[
'jquery'
]
=
array
(
'core'
=>
true
,
'ui'
=>
true
,
'css'
=>
true
);
$this
->
data
[
'head'
]
=
''
;
$this
->
data
[
'head'
]
=
'$this->data['
head
'] = '
<
link
rel
=
"stylesheet"
type
=
"text/css"
href
=
"/' .
$this->data
['baseurlpath'] . 'module.php/statistics/style.css"
/>
';
$this->data['
head
'] .= '
<
script
type
=
"text/javascript"
>
$this->data['
head
'] .= '
<
script
type
=
"text/javascript"
>
$
(
document
)
.
ready
(
function
()
{
$
(
document
)
.
ready
(
function
()
{
$
(
"#tabdiv"
)
.
tabs
();
$
(
"#tabdiv"
)
.
tabs
();
...
@@ -45,62 +46,17 @@ function getBaseURL($t, $type = 'get', $key = null, $value = null)
...
@@ -45,62 +46,17 @@ function getBaseURL($t, $type = 'get', $key = null, $value = null)
return $text;
return $text;
}
}
}
}
?>
<style
type=
"text/css"
media=
"all"
>
.ui-tabs-panel
{
padding
:
.5em
}
div
#content
{
margin
:
.4em
! important
;
}
.tableview
{
border-collapse
:
collapse
;
border
:
1px
solid
#ccc
;
margin
:
1em
;
width
:
80%
;
}
.tableview
th
,
.tableview
td
{
border
:
1px
solid
:
#ccc
;
padding
:
0px
5px
;
}
.tableview
th
{
background
:
#e5e5e5
;
}
.tableview
tr
.total
td
{
color
:
#500
;
font-weight
:
bold
;
}
.tableview
tr
.even
td
{
background
:
#f5f5f5
;
border-top
:
1px
solid
#e0e0e0
;
border-bottom
:
1px
solid
#e0e0e0
;
}
.tableview
th
.value
,
.tableview
td
.value
{
text-align
:
right
;
}
div
.corner_t
{
max-width
:
none
! important
;
}
table
.timeseries
tr
.odd
td
{
background-color
:
#f4f4f4
;
}
table
.timeseries
td
{
padding-right
:
2em
;
border
:
1px
solid
#ccc
}
td
.datacontent
{
text-align
:
right
;
}
</style>
<?php
echo '
<
h1
>
'. $this->data['
available
.
rules
'][$this->data['
selected
.
rule
']]['
name
'] . '
</
h1
>
';
echo '
<
h1
>
'. $this->data['
available
.
rules
'][$this->data['
selected
.
rule
']]['
name
'] . '
</
h1
>
';
echo '
<
p
>
' . $this->data['
available
.
rules
'][$this->data['
selected
.
rule
']]['
descr
'] . '
</
p
>
';
echo '
<
p
>
' . $this->data['
available
.
rules
'][$this->data['
selected
.
rule
']]['
descr
'] . '
</
p
>
';
// Report settings
// Report settings
echo
'<table class="selecttime"
style="width: 100%; border: 1px solid #ccc; background: #eee; margin: 1px 0px; padding: 0px"
>'
;
echo '
<
table
class
=
"selecttime"
>
';
echo
'<tr><td
style="width: 50px; padding: 0px"><img style="margin: 0px"
src="../../resources/icons/crystal_project/kchart.32x32.png" alt="Report settings" /></td>'
;
echo '
<
tr
><
td
class
=
"selecttime_icon"
><
img
src
=
"../../resources/icons/crystal_project/kchart.32x32.png"
alt
=
"Report settings"
/></
td
>
';
// Select report
// Select report
echo '
<
td
>
';
echo '
<
td
>
';
echo
'<form
style="display: inline"
>'
;
echo '
<
form
>
';
echo getBaseURL($this, '
post
', '
rule
');
echo getBaseURL($this, '
post
', '
rule
');
echo '
<
select
onChange
=
"submit();"
name
=
"rule"
>
';
echo '
<
select
onChange
=
"submit();"
name
=
"rule"
>
';
foreach ($this->data['
available
.
rules
'] as $key => $rule) {
foreach ($this->data['
available
.
rules
'] as $key => $rule) {
...
@@ -114,8 +70,8 @@ echo '</select></form>';
...
@@ -114,8 +70,8 @@ echo '</select></form>';
echo '
</
td
>
';
echo '
</
td
>
';
// Select delimiter
// Select delimiter
echo
'<td
style="text-align:
right">'
;
echo '
<
td
class
=
"td_
right"
>
';
echo
'<form
style="display: inline"
>'
;
echo '
<
form
>
';
echo getBaseURL($this, '
post
', '
d
');
echo getBaseURL($this, '
post
', '
d
');
echo '
<
select
onChange
=
"submit();"
name
=
"d"
>
';
echo '
<
select
onChange
=
"submit();"
name
=
"d"
>
';
foreach ($this->data['
availdelimiters
'] as $key => $delim) {
foreach ($this->data['
availdelimiters
'] as $key => $delim) {
...
@@ -141,17 +97,17 @@ echo '</table>';
...
@@ -141,17 +97,17 @@ echo '</table>';
// Select time and date
// Select time and date
echo
'<table class="selecttime"
style="width: 100%; border: 1px solid #ccc; background: #eee; margin: 1px 0px; padding: 0px"
>'
;
echo '
<
table
class
=
"selecttime"
>
';
echo
'<tr><td
style="width: 50px; padding: 0px"><img style="margin: 0px"
src="../../resources/icons/crystal_project/date.32x32.png" alt="Select date and time" /></td>'
;
echo '
<
tr
><
td
class
=
"selecttime_icon"
><
img
src
=
"../../resources/icons/crystal_project/date.32x32.png"
alt
=
"Select date and time"
/></
td
>
';
if (isset($this->data['
available
.
times
.
prev
'])) {
if (isset($this->data['
available
.
times
.
prev
'])) {
echo
'<td
style=""
><a href="'
.
getBaseURL
(
$this
,
'get'
,
'time'
,
$this
->
data
[
'available.times.prev'
])
.
'">« Previous</a></td>'
;
echo '
<
td
><
a
href
=
"' . getBaseURL(
$this
, 'get', 'time',
$this->data
['available.times.prev']) . '"
>
«
Previous
</
a
></
td
>
';
} else {
} else {
echo
'<td
style="color: #ccc
">« Previous</td>'
;
echo '
<
td
class
=
"selecttime_link_grey
"
>
«
Previous
</
td
>
';
}
}
echo
'<td
style="text-align:
right">'
;
echo '
<
td
class
=
"td_
right"
>
';
echo
'<form
style="display: inline"
>'
;
echo '
<
form
>
';
echo getBaseURL($this, '
post
', '
res
');
echo getBaseURL($this, '
post
', '
res
');
echo '
<
select
onChange
=
"submit();"
name
=
"res"
>
';
echo '
<
select
onChange
=
"submit();"
name
=
"res"
>
';
foreach ($this->data['
available
.
timeres
'] as $key => $timeresname) {
foreach ($this->data['
available
.
timeres
'] as $key => $timeresname) {
...
@@ -164,8 +120,8 @@ foreach ($this->data['available.timeres'] as $key => $timeresname) {
...
@@ -164,8 +120,8 @@ foreach ($this->data['available.timeres'] as $key => $timeresname) {
echo '
</
select
></
form
>
';
echo '
</
select
></
form
>
';
echo '
</
td
>
';
echo '
</
td
>
';
echo
'<td
style="text-align:
left">'
;
echo '
<
td
class
=
"td_
left"
>
';
echo
'<form
style="display: inline"
>'
;
echo '
<
form
>
';
echo getBaseURL($this, '
post
', '
time
');
echo getBaseURL($this, '
post
', '
time
');
echo '
<
select
onChange
=
"submit();"
name
=
"time"
>
';
echo '
<
select
onChange
=
"submit();"
name
=
"time"
>
';
foreach ($this->data['
available
.
times
'] as $key => $timedescr) {
foreach ($this->data['
available
.
times
'] as $key => $timedescr) {
...
@@ -179,9 +135,9 @@ echo '</select></form>';
...
@@ -179,9 +135,9 @@ echo '</select></form>';
echo '
</
td
>
';
echo '
</
td
>
';
if (isset($this->data['
available
.
times
.
next
'])) {
if (isset($this->data['
available
.
times
.
next
'])) {
echo
'<td
style="text-align: right; padding-right: 4px
"><a href="'
.
getBaseURL
(
$this
,
'get'
,
'time'
,
$this
->
data
[
'available.times.next'
])
.
'">Next »</a></td>'
;
echo '
<
td
class
=
"td_right td_next_right
"
><
a
href
=
"' . getBaseURL(
$this
, 'get', 'time',
$this->data
['available.times.next']) . '"
>
Next
»
</
a
></
td
>
';
} else {
} else {
echo
'<td
style="color: #ccc; text-align: right; padding-right: 4px
">Next »</td>'
;
echo '
<
td
class
=
"td_right selecttime_link_grey td_next_right
"
>
Next
»
</
td
>
';
}
}
echo '
</
tr
></
table
>
';
echo '
</
tr
></
table
>
';
...
@@ -198,8 +154,8 @@ echo '
...
@@ -198,8 +154,8 @@ echo '
echo '
<
img
src
=
"' . htmlspecialchars(
$this->data
['imgurl']) . '"
/>
';
echo '
<
img
src
=
"' . htmlspecialchars(
$this->data
['imgurl']) . '"
/>
';
echo
'<form
style="display: inline"
>'
;
echo '
<
form
>
';
echo
'<p
style="text-align:
right">Compare with total from this dataset '
;
echo '
<
p
class
=
"p_
right"
>
Compare
with
total
from
this
dataset
';
echo getBaseURL($this, '
post
', '
rule2
');
echo getBaseURL($this, '
post
', '
rule2
');
echo '
<
select
onChange
=
"submit();"
name
=
"rule2"
>
';
echo '
<
select
onChange
=
"submit();"
name
=
"rule2"
>
';
echo '
<
option
value
=
"_"
>
None
</
option
>
';
echo '
<
option
value
=
"_"
>
None
</
option
>
';
...
@@ -245,7 +201,7 @@ echo '</table></div>';
...
@@ -245,7 +201,7 @@ echo '</table></div>';
// - - - - - - - End table view - - - - - - -
// - - - - - - - End table view - - - - - - -
echo '
<
div
id
=
"debug"
>
';
echo '
<
div
id
=
"debug"
>
';
echo
'<table class="timeseries"
style=""
>'
;
echo '
<
table
class
=
"timeseries"
>
';
echo '
<
tr
><
th
>
Time
</
th
><
th
>
Total
</
th
>
';
echo '
<
tr
><
th
>
Time
</
th
><
th
>
Total
</
th
>
';
foreach ($this->data['
topdelimiters
'] as $key) {
foreach ($this->data['
topdelimiters
'] as $key) {
$keyName = $key;
$keyName = $key;
...
@@ -260,7 +216,7 @@ echo '</tr>';
...
@@ -260,7 +216,7 @@ echo '</tr>';
$i = 0;
$i = 0;
foreach ($this->data['
debugdata
'] as $slot => $dd) {
foreach ($this->data['
debugdata
'] as $slot => $dd) {
echo '
<
tr
class
=
"' . ((++
$i
% 2) == 0 ? 'odd' : 'even') . '"
>
';
echo '
<
tr
class
=
"' . ((++
$i
% 2) == 0 ? 'odd' : 'even') . '"
>
';
echo
'<td
style=""
>'
.
$dd
[
0
]
.
'</td>'
;
echo '
<
td
>
' . $dd[0] . '
</
td
>
';
echo '
<
td
class
=
"datacontent"
>
' . $dd[1] . '
</
td
>
';
echo '
<
td
class
=
"datacontent"
>
' . $dd[1] . '
</
td
>
';
foreach ($this->data['
topdelimiters
'] as $key) {
foreach ($this->data['
topdelimiters
'] as $key) {
...
...
This diff is collapsed.
Click to expand it.
modules/statistics/www/style.css
0 → 100644
+
91
−
0
View file @
7f2039a1
@media
all
{
.ui-tabs-panel
{
padding
:
.5em
}
div
#content
{
margin
:
.4em
! important
;
}
.tableview
{
border-collapse
:
collapse
;
border
:
1px
solid
#ccc
;
margin
:
1em
;
width
:
80%
;
}
.tableview
th
,
.tableview
td
{
border
:
1px
solid
:
#ccc
;
padding
:
0px
5px
;
}
.tableview
th
{
background
:
#e5e5e5
;
}
.tableview
tr
.total
td
{
color
:
#500
;
font-weight
:
bold
;
}
.tableview
tr
.even
td
{
background
:
#f5f5f5
;
border-top
:
1px
solid
#e0e0e0
;
border-bottom
:
1px
solid
#e0e0e0
;
}
.tableview
th
.value
,
.tableview
td
.value
{
text-align
:
right
;
}
div
.corner_t
{
max-width
:
none
! important
;
}
table
.timeseries
tr
.odd
td
{
background-color
:
#f4f4f4
;
}
table
.timeseries
td
{
padding-right
:
2em
;
border
:
1px
solid
#ccc
}
td
.datacontent
{
text-align
:
right
;
}
table
.selecttime
{
width
:
100%
;
border
:
1px
solid
#ccc
;
background
:
#eee
;
margin
:
1px
0px
;
padding
:
0px
;
}
td
.selecttime_icon
{
width
:
50px
;
padding
:
0px
;
}
td
.selecttime_icon
img
{
margin
:
0px
;
}
td
.selecttime_link_grey
{
color
:
#ccc
;
}
td
.td_right
{
text-align
:
right
;
}
td
.td_next_right
{
padding-right
:
4px
;
}
td
.td_left
{
text-align
:
left
;
}
p
.p_right
{
text-align
:
right
;
}
form
{
display
:
inline
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment