From 3cd17251ffba997cdf72dafd17868120f02ecf11 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Sat, 5 Nov 2005 07:20:59 +0000 Subject: [PATCH] Experimenting with extensions to dialplan management git-svn-id: https://svn.alkaloid.net/gpl/shout/trunk@81 06cd67b6-e706-0410-b29e-9de616bca6e9 --- andrew.webprj | 15 ++++++++++----- main/dialplan.php | 17 ++++++++++++----- themes/screen.css | 9 +++++++++ 3 files changed, 31 insertions(+), 10 deletions(-) diff --git a/andrew.webprj b/andrew.webprj index 1b016cdee..c627bafcd 100644 --- a/andrew.webprj +++ b/andrew.webprj @@ -1,6 +1,6 @@ - + -//w3c//dtd xhtml 1.0 strict//en @@ -17,7 +17,7 @@ - + @@ -40,7 +40,7 @@ - + @@ -71,7 +71,7 @@ - + @@ -81,7 +81,9 @@ + + @@ -94,7 +96,7 @@ - + @@ -117,6 +119,8 @@ + + @@ -125,6 +129,7 @@ + diff --git a/main/dialplan.php b/main/dialplan.php index 3fac83839..e9cd3f71c 100644 --- a/main/dialplan.php +++ b/main/dialplan.php @@ -46,10 +46,13 @@ foreach ($dialplan as $linetype => $linedata) { $nodetext = $extension; break; } - $tree->addNode($extension, 'extensions', $nodetext, null); - foreach ($priorities as $priority => $application) { - $tree->addNode("$extension-$priority", $extension, "$priority: $application", null); - } + $url = Horde::applicationUrl('index.php?section=dialplan' . + '&extension=' . $extension . '&context=' . $context); + $tree->addNode($extension, 'extensions', $nodetext, null, false, + array('url' => $url)); +// foreach ($priorities as $priority => $application) { +// $tree->addNode("$extension-$priority", $extension, "$priority: $application", null); +// } } break; @@ -71,7 +74,11 @@ foreach ($dialplan as $linetype => $linedata) { } } -$tree->renderTree(); +require SHOUT_TEMPLATES . '/dialplan/contexttree.inc'; + +if ($extension = Util::getFormData('extension')) { + require SHOUT_TEMPLATES . '/dialplan/extensiondetail.inc'; +} // Horde::addScriptFile('httpclient.js', 'horde', true); // Horde::addScriptFile('hideable.js', 'horde', true); diff --git a/themes/screen.css b/themes/screen.css index 7cb3ae447..34df6da04 100644 --- a/themes/screen.css +++ b/themes/screen.css @@ -6,4 +6,13 @@ .darkhint { color: #770000; font-size: 10px; +} + +.contexttree { + float: left; + width: 50px; +} + +.extensiondetail { + float: right; } \ No newline at end of file -- 2.11.0