/
admin_dashboard.ctp
59 lines (59 loc) · 2 KB
/
admin_dashboard.ctp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/**
* Blog Comments admin dashboard.
*
* this is the page for admin dashboard of the blog plugin.
*
* Copyright (c) 2009 Carl Sutton ( dogmatic69 )
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @filesource
* @copyright Copyright (c) 2009 Carl Sutton ( dogmatic69 )
* @link http://www.dogmatic.co.za
* @package blog
* @subpackage blog.views.posts.dashboard
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
?>
<div class="dashboard">
<h2><?php __( 'Blog Dashboard' ) ?></h2>
<div class="chart">
<?php
$this->Chart->debug = 1;
echo $this->Chart->display(
'pie3d',
array(
'data' => array( $dashboardPostCount['active'], $dashboardPostCount['pending'] ),
'labels' => array( __( 'Active', true ), __( 'Pending', true ) ),
'size' => array( 250, 100 ),
'title' => array(
'text' => __( 'Active vs Pending', true )
)
)
);
?>
</div>
<div class="feeds">
<h2><?php __( 'Blog Feed' ); ?></h2>
<?php
foreach( $blogFeeds as $feed )
{
echo '<div style="width:100%; clear:both;"> ',
$this->Time->niceShort( $feed[0]['created'] ), ' ',
$this->Html->link(
$feed[0]['title'],
array(
'plugin' => $feed[0]['plugin'],
'controller' => $feed[0]['controller'],
'action' => $feed[0]['action'],
$feed[0]['id']
)
),
$feed[0]['intro'],
'</div>';
}
?>
</div>
</div>