From 6e6247984995cc686cecb3b1c5f2eccd83810bbe Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 30 Nov 2014 11:33:33 +0100 Subject: [PATCH] test: remove temporary test url --- application/controllers/TestController.php | 12 ---- application/views/scripts/test/layout.phtml | 69 --------------------- 2 files changed, 81 deletions(-) delete mode 100644 application/controllers/TestController.php delete mode 100644 application/views/scripts/test/layout.phtml diff --git a/application/controllers/TestController.php b/application/controllers/TestController.php deleted file mode 100644 index bf43355..0000000 --- a/application/controllers/TestController.php +++ /dev/null @@ -1,12 +0,0 @@ -view->title = 'Testlayout'; - } -} - diff --git a/application/views/scripts/test/layout.phtml b/application/views/scripts/test/layout.phtml deleted file mode 100644 index 39794ba..0000000 --- a/application/views/scripts/test/layout.phtml +++ /dev/null @@ -1,69 +0,0 @@ - 'or', - 'status' => 'ok', - 'handled' => false, - 'children' => [ - 'DNS Service' => (object) [ - 'status' => 'ok', - 'handled' => false, - 'children' => [], - ], - 'Exchange' => (object) [ - 'operator' => 'and', - 'status' => 'critical', - 'handled' => false, - 'children' => [ - 'Exchange 1' => (object) [ - 'status' => 'critical', - 'handled' => false, - 'children' => [], - ], - 'Exchange 2' => (object) [ - 'status' => 'warning', - 'handled' => true, - 'children' => [], - ], - 'Exchange 3' => (object) [ - 'status' => 'ok', - 'handled' => false, - 'children' => [], - ] - ], - ] - ] -]; - -function renderProcess($name, $process) -{ - $html = sprintf(' - - %s -', - $process->status, - $process->handled ? ' handled' : '', - empty($process->children) ? '' : ' operator', - empty($process->children) ? ' class="service"' : sprintf(' rowspan="%d"', count($process->children) + 1), - empty($process->children) ? ' ' : $process->operator, - $name - ); - if (! empty($process->children)) { -// $html .= ' -//'; - foreach ($process->children as $name => $child) { - $html .= ''; - } -// $html .= ''; - } - $html .= '
%s
' . renderProcess($name, $child) . '
'; - return $html; -} - - -?> -
-

Testlayout

- - - -