19 | * @package webacula
20 | * @license http://www.gnu.org/licenses/gpl-3.0.html GNU Public License
21 | *
22 | */
23 |
24 |
25 | require_once 'Zend/Controller/Action.php';
26 |
27 | class PoolController extends MyClass_ControllerAclAction
28 | {
29 |
30 | function init()
31 | {
32 | parent::init();
33 | Zend_Loader::loadClass('Pool');
34 | }
35 |
36 | function allAction()
37 | {
38 | $order = addslashes(trim( $this->_request->getParam('order', 'Name') ));
39 | $this->view->title = $this->view->translate->_("Pools");
40 | // to view
41 | $this->view->meta_refresh = 300; // meta http-equiv="refresh"
42 | $pools = new Pool();
43 | $this->view->pools = $pools->fetchAll(null, $order);
44 | }
45 |
46 |
47 | }
--------------------------------------------------------------------------------
/application/layouts/default/dashboard.phtml:
--------------------------------------------------------------------------------
1 | render('header.phtml') ?>
2 |
3 |
4 | render('main-menu.phtml') ?>
5 |
6 | meta_refresh ) : ?>
7 |
8 | translate->_("Last Updated: %s"), date("r")); ?>.
9 | translate->_("Updated every %s seconds"), $this->meta_refresh); ?>
10 |
11 |
12 |
13 |
14 | layout()->job_running) )
18 | $aContent[] = $this->layout()->job_running;
19 |
20 | if ( !empty($this->layout()->job_next) )
21 | $aContent[] = $this->layout()->job_next;
22 |
23 | if ( !empty($this->layout()->job_terminated) )
24 | $aContent[] = $this->layout()->job_terminated;
25 |
26 | if ( !empty($this->layout()->job_timeline) )
27 | $aContent[] = $this->layout()->job_timeline;
28 |
29 | if ( !empty($this->layout()->job_problem) )
30 | $aContent[] = $this->layout()->job_problem;
31 |
32 | if ( !empty($this->layout()->volume_problem) )
33 | $aContent[] = $this->layout()->volume_problem;
34 | ?>
35 |
36 |
37 |
38 |
39 |
40 |
44 |
45 | ';
48 | ?>
49 |
50 |
51 |
52 |
53 |
54 | render('footer.phtml') ?>
--------------------------------------------------------------------------------
/application/layouts/default/footer.phtml:
--------------------------------------------------------------------------------
1 |
2 |