From dfc567cd32a01f4ff94897511970963a877b91cf Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Wed, 13 Jan 2010 10:10:53 -0500 Subject: [PATCH] Operator: Fix form handling --- operator/export.php | 3 +-- operator/search.php | 3 +-- operator/templates/common-header.inc | 4 ++-- operator/templates/search.inc | 2 ++ operator/viewgraph.php | 3 +-- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/operator/export.php b/operator/export.php index 4d93507d6..e64137efe 100644 --- a/operator/export.php +++ b/operator/export.php @@ -60,8 +60,7 @@ $title = _("Export Call Detail Records"); require OPERATOR_TEMPLATES . '/common-header.inc'; require OPERATOR_TEMPLATES . '/menu.inc'; $notification->notify(); -$form->open($renderer, $vars, Horde::applicationUrl('export.php'), 'post'); -$form->renderActive($renderer, $vars); +$form->renderActive($renderer, $vars, Horde::applicationUrl('export.php'), 'post');; $columns = unserialize($prefs->getValue('columns')); if (!empty($data)) { diff --git a/operator/search.php b/operator/search.php index 7f12e9368..0a9f58ed3 100644 --- a/operator/search.php +++ b/operator/search.php @@ -94,8 +94,7 @@ Horde::addScriptFile('stripe.js', 'horde', true); require OPERATOR_TEMPLATES . '/common-header.inc'; require OPERATOR_TEMPLATES . '/menu.inc'; $notification->notify(); -$form->open($renderer, $vars, Horde::applicationUrl('search.php'), 'post'); -$form->renderActive($renderer, $vars); +$form->renderActive($renderer, $vars, Horde::applicationUrl('search.php'), 'post'); $columns = unserialize($prefs->getValue('columns')); if (!empty($data)) { diff --git a/operator/templates/common-header.inc b/operator/templates/common-header.inc index 366aa52f4..512d4418b 100644 --- a/operator/templates/common-header.inc +++ b/operator/templates/common-header.inc @@ -4,7 +4,7 @@ if (isset($language)) { header('Vary: Accept-Language'); } ?> - + @@ -22,7 +22,7 @@ Horde::includeScriptFiles(); ?> <?php echo htmlspecialchars($page_title) ?> - + diff --git a/operator/templates/search.inc b/operator/templates/search.inc index f8e917b6a..5df5a32f8 100644 --- a/operator/templates/search.inc +++ b/operator/templates/search.inc @@ -1,3 +1,4 @@ +
Call Statistics Summary:
diff --git a/operator/viewgraph.php b/operator/viewgraph.php index f87e1b6a0..16a51c605 100644 --- a/operator/viewgraph.php +++ b/operator/viewgraph.php @@ -100,8 +100,7 @@ $title = _("Call Detail Records Graph"); require OPERATOR_TEMPLATES . '/common-header.inc'; require OPERATOR_TEMPLATES . '/menu.inc'; -$form->open($renderer, $vars, Horde::applicationUrl('viewgraph.php'), 'post'); -$form->renderActive($renderer, $vars); +$form->renderActive($renderer, $vars, Horde::applicationUrl('viewgraph.php'), 'post'); if (!empty($stats) && !empty($graphs[$curgraph])) { echo '
'; -- 2.11.0