| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- /**
- * @author Open Mind
- * @date 04/12/2018
- * @time 15:22
- */
- namespace OpenMind\Admin;
- use OpenMind\FindBox\FindBoxCoreSystem;
- use OpenMind\Web\Controller;
- use Template;
- class Pages extends Controller
- {
- private $findBoxCore = null;
- public function __construct($f3)
- {
- parent::__construct($f3);
- $this->findBoxCore = new FindBoxCoreSystem(...array_values($f3->get('CORE.fb')));
- // Set Admin F3 UI folder
- $f3->set('UI', 'src/OpenMind/Admin/ui/');
- }
- public function Admin($f3)
- {
- echo Template::instance()->render('masterpage.tpl');
- }
- public function ESLStatus($f3)
- {
- $eslStatus = $this->findBoxCore->GetAllESLStatus();
- $f3->set('STATUS_BADGE_COLOR', [
- 'BLOCKED,FC' => 'info',
- 'OFFLINE' => 'warning',
- 'BLOCKED,FC' => 'danger',
- 'NO_STATUS' => 'light',
- 'OK' => 'success'
- ]);
- $f3->set('ESL_STATUS', $eslStatus);
- $f3->set('PAGENAME', 'Dashboard');
- $f3->set('CONTENT', 'labelstatus.tpl');
- echo Template::instance()->render('masterpage.tpl');
- }
- }
|