Operator: Fix form handling
authorBen Klang <ben@alkaloid.net>
Wed, 13 Jan 2010 15:10:53 +0000 (10:10 -0500)
committerBen Klang <ben@alkaloid.net>
Wed, 13 Jan 2010 15:14:23 +0000 (10:14 -0500)
operator/export.php
operator/search.php
operator/templates/common-header.inc
operator/templates/search.inc
operator/viewgraph.php

index 4d93507..e64137e 100644 (file)
@@ -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)) {
index 7f12e93..0a9f58e 100644 (file)
@@ -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)) {
index 366aa52..512d441 100644 (file)
@@ -4,7 +4,7 @@ if (isset($language)) {
     header('Vary: Accept-Language');
 }
 ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <!-- Operator: Copyright 2008 Alkaloid Networks LLC.  Operator is under a Horde license. -->
 <!--     Horde Project: http://www.horde.org/ | Operator: http://projects.alkaloid.net/     -->
 <!--                 Horde Licenses: http://www.horde.org/licenses/                       -->
@@ -22,7 +22,7 @@ Horde::includeScriptFiles();
 
 ?>
 <title><?php echo htmlspecialchars($page_title) ?></title>
-<link href="<?php echo $GLOBALS['registry']->getImageDir()?>/favicon.ico" rel="SHORTCUT ICON" />
+<link href="<?php echo $GLOBALS['registry']->getImageDir()?>/favicon.ico" rel="SHORTCUT ICON">
 <?php Horde::includeStylesheetFiles() ?>
 </head>
 
index f8e917b..5df5a32 100644 (file)
@@ -1,3 +1,4 @@
+<div>
 Call Statistics Summary:<br />
 <ul>
 <li>Total Calls: <?php echo $stats['numcalls']; ?></li>
@@ -31,3 +32,4 @@ foreach ($data as $record) {
 
 </table>
 <?php echo $pager->render(); ?>
+</div>
index f87e1b6..16a51c6 100644 (file)
@@ -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 '<br />';