mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
qhoxie: basic setup for statistics viewing and handling in the cms
(merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41801 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
7f61325204
commit
8fe47c6e87
@ -2,10 +2,11 @@
|
||||
/**
|
||||
* URL rules for the CMS module
|
||||
*/
|
||||
Director::addRules(50, array(
|
||||
Director::addRules(100, array(
|
||||
'processes/$Action/$ID/$Batch' => 'BatchProcess_Controller',
|
||||
'silverstripe/' => '->admin/',
|
||||
'cms/' => '->admin/',
|
||||
'admin/statistics/$Action/$ID' => 'StatisticsAdmin',
|
||||
'admin/security/$Action/$ID/$OtherID' => 'SecurityAdmin',
|
||||
'admin/help/$Action/$ID' => 'CMSHelp',
|
||||
'admin/newsletter/$Action/$ID' => 'NewsletterAdmin',
|
||||
|
@ -167,6 +167,7 @@ abstract class LeftAndMain extends Controller {
|
||||
"Reports" => array("report", "admin/reports/", "ReportAdmin"),
|
||||
"Security" => array("security", "admin/security/", "SecurityAdmin"),
|
||||
"Comments" => array("comments", "admin/comments/", "CommentAdmin"),
|
||||
"Statistics" => array("statistics", "admin/statistics/", "StatisticsAdmin"),
|
||||
"Help" => array("help", "http://userhelp.silverstripe.com"),
|
||||
);
|
||||
|
||||
|
32
code/StatisticsAdmin.php
Normal file
32
code/StatisticsAdmin.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
class StatisticsAdmin extends LeftAndMain {
|
||||
/**
|
||||
* Initialisation method called before accessing any functionality that BulkLoaderAdmin has to offer
|
||||
*/
|
||||
public function init() {
|
||||
//Requirements::javascript('cms/javascript/StatisticsAdmin_left.js');
|
||||
//Requirements::javascript('cms/javascript/StatisticsAdmin_right.js');
|
||||
parent::init();
|
||||
}
|
||||
|
||||
public function Link($action=null) {
|
||||
return "admin/statistics/$action";
|
||||
}
|
||||
|
||||
/**
|
||||
* Form that will be shown when we open one of the items
|
||||
*/
|
||||
public function getEditForm($id = null) {
|
||||
return new Form($this, "EditForm",
|
||||
new FieldSet(
|
||||
new ReadonlyField('id #',$id)
|
||||
),
|
||||
new FieldSet(
|
||||
new FormAction('go')
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
@ -197,6 +197,7 @@ html>body #top #MainMenu li {
|
||||
|
||||
|
||||
#top #MainMenu #Menu-content { background-image: url(../images/mainmenu/content.gif); }
|
||||
#top #MainMenu #Menu-statistics { background-image: url(../images/mainmenu/statistics.gif); }
|
||||
#top #MainMenu #Menu-security { background-image: url(../images/mainmenu/members.gif); }
|
||||
#top #MainMenu #Menu-report { background-image: url(../images/mainmenu/reports.gif); }
|
||||
#top #MainMenu #Menu-newsletter { background-image: url(../images/mainmenu/emails.gif); }
|
||||
|
BIN
images/mainmenu/statistics.gif
Executable file
BIN
images/mainmenu/statistics.gif
Executable file
Binary file not shown.
After Width: | Height: | Size: 894 B |
6
templates/Includes/StatisticsAdmin_left.ss
Normal file
6
templates/Includes/StatisticsAdmin_left.ss
Normal file
@ -0,0 +1,6 @@
|
||||
<div class="title"><div>Report Types</div></div>
|
||||
|
||||
<div id="treepanes">
|
||||
<div id="sitetree_holder" style="overflow:auto">
|
||||
</div>
|
||||
</div>
|
9
templates/Includes/StatisticsAdmin_right.ss
Normal file
9
templates/Includes/StatisticsAdmin_right.ss
Normal file
@ -0,0 +1,9 @@
|
||||
<div class="title"><div>Statistics</div></div>
|
||||
|
||||
<% if EditForm %>
|
||||
$EditForm
|
||||
<% else %>
|
||||
<p>Welcome to the $ApplicationName statistics section. Please choose a specific report from the left.</p>
|
||||
<% end_if %>
|
||||
|
||||
<p id="statusMessage" style="visibility:hidden"></p>
|
Loading…
Reference in New Issue
Block a user