Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
aeffa968
Commit
aeffa968
authored
Aug 17, 2015
by
Son Nguyen
Committed by
Gerrit Code Review
Aug 17, 2015
Browse files
Merge "Bug 1483963 - Adding help file"
parents
ee54e805
612595cf
Changes
3
Show whitespace changes
Inline
Side-by-side
htdocs/lang/en.utf8/help/sections/statisticslogins.html
0 → 100644
View file @
aeffa968
<!-- @license http://www.gnu.org/copyleft/gpl.html GNU GPL version 3 or later -->
<!-- @copyright For copyright information on Mahara, please see the README file distributed with this software. -->
<h3>
Login statistics
</h3>
<p>
By default you see the logins for the previous calendar month. If you view this page in April, you will see the results for March.
</p>
<p>
To alter the results time period you can add a
<strong>
'start'
</strong>
and an
<strong>
'end'
</strong>
option to the URL, e.g.
</p>
<p>
'admin/statistics.php?type=logins
&
start=2015-01-01
&
end=2015-04-30'
</p>
<p>
This will return the results for the 4-month period of 1 January to 30 April 2015.
</p>
htdocs/lib/registration.php
View file @
aeffa968
...
@@ -2150,6 +2150,7 @@ function institution_logins_statistics($limit, $offset, $sort, $sortdesc, $start
...
@@ -2150,6 +2150,7 @@ function institution_logins_statistics($limit, $offset, $sort, $sortdesc, $start
$data
[
'table'
]
=
institution_logins_stats_table
(
$limit
,
$offset
,
$sort
,
$sortdesc
,
$start
,
$end
);
$data
[
'table'
]
=
institution_logins_stats_table
(
$limit
,
$offset
,
$sort
,
$sortdesc
,
$start
,
$end
);
$data
[
'tabletitle'
]
=
get_string
(
'institutionloginstabletitle'
,
'admin'
);
$data
[
'tabletitle'
]
=
get_string
(
'institutionloginstabletitle'
,
'admin'
);
$data
[
'tablesubtitle'
]
=
get_string
(
'institutionloginstablesubtitle'
,
'admin'
,
format_date
(
strtotime
(
$start
),
'strftimedate'
),
format_date
(
strtotime
(
$end
),
'strftimedate'
));
$data
[
'tablesubtitle'
]
=
get_string
(
'institutionloginstablesubtitle'
,
'admin'
,
format_date
(
strtotime
(
$start
),
'strftimedate'
),
format_date
(
strtotime
(
$end
),
'strftimedate'
));
$data
[
'help'
]
=
get_help_icon
(
'core'
,
'statistics'
,
null
,
null
,
null
,
'statisticslogins'
);
$data
[
'summary'
]
=
$data
[
'table'
][
'count'
]
==
0
?
get_string
(
'nostats'
,
'admin'
)
:
null
;
$data
[
'summary'
]
=
$data
[
'table'
][
'count'
]
==
0
?
get_string
(
'nostats'
,
'admin'
)
:
null
;
...
...
htdocs/theme/raw/templates/admin/statistics.tpl
View file @
aeffa968
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<div
class=
"subpage panel-body row"
id=
"site-stats-wrap2"
>
<div
class=
"subpage panel-body row"
id=
"site-stats-wrap2"
>
<div
id=
"statistics_table_container"
class=
"col-md-12"
>
<div
id=
"statistics_table_container"
class=
"col-md-12"
>
<h3>
{
$subpagedata.tabletitle
}
</h3>
<h3>
{
$subpagedata.tabletitle
}
{
if
$subpagedata.help
}{
$subpagedata.help
|
safe
}{/
if
}
</h3>
{
if
$subpagedata.tablesubtitle
}
<div
class=
"small"
>
{
$subpagedata.tablesubtitle
}
</div>
{/
if
}
{
if
$subpagedata.tablesubtitle
}
<div
class=
"small"
>
{
$subpagedata.tablesubtitle
}
</div>
{/
if
}
{
if
$subpagedata.table.count
==
0
}{
else
}
{
if
$subpagedata.table.count
==
0
}{
else
}
<table
id=
"statistics_table"
class=
"table table-striped fullwidth"
>
<table
id=
"statistics_table"
class=
"table table-striped fullwidth"
>
...
...
Write
Preview
Supports
Markdown
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