$vars->set('action', $action);
$Form = new DeviceDetailsForm($vars);
- $Form->open($RENDERER, $vars, Horde::applicationUrl('devices.php'), 'post');
+
// Make sure we get the right template below.
$action = 'edit';
$vars = Horde_Variables::getDefaultVariables(array());
$vars->set('context', $context);
$Form = new DeviceDeleteForm($vars);
- $Form->open($RENDERER, $vars, Horde::applicationUrl('devices.php'), 'post');
break;
require SHOUT_TEMPLATES . '/devices/' . $action . '.inc';
-require $registry->get('templates', 'horde') . '/common-footer.inc';
\ No newline at end of file
+require $registry->get('templates', 'horde') . '/common-footer.inc';
}
$vars->set('action', $action);
$Form = new ExtensionDetailsForm($vars);
- $Form->open($RENDERER, $vars, Horde::applicationUrl('extensions.php'), 'post');
// Make sure we get the right template below.
$action = 'edit';
$vars = Horde_Variables::getDefaultVariables(array());
$vars->set('context', $context);
$Form = new ExtensionDeleteForm($vars);
- $Form->open($RENDERER, $vars, Horde::applicationUrl('extensions.php'), 'post');
break;
require SHOUT_TEMPLATES . '/extensions/' . $action . '.inc';
-require $registry->get('templates', 'horde') . '/common-footer.inc';
\ No newline at end of file
+require $registry->get('templates', 'horde') . '/common-footer.inc';
Device: <?php echo $vars->get('devid'); ?><br>
<?php
-$RENDERER->beginActive($Form->getTitle());
-$RENDERER->renderFormActive($Form, $vars);
-$RENDERER->submit();
-$RENDERER->end();
-$Form->close($RENDERER);
+$Form->renderActive($RENDERER, $vars, Horde::applicationUrl('devices.php'), 'post');
?>
<?php
-$RENDERER->beginActive($Form->getTitle());
-$RENDERER->renderFormActive($Form, $vars);
-$RENDERER->submit();
-$RENDERER->end();
-$Form->close($RENDERER);
\ No newline at end of file
+$Form->renderActive($RENDERER, $vars, Horde::applicationUrl('devices.php'), 'post');
}
?>
</table>
-</div>
\ No newline at end of file
+</div>
Extension: <?php echo $vars->get('extension'); ?><br>
<?php
-$RENDERER->beginActive($Form->getTitle());
-$RENDERER->renderFormActive($Form, $vars);
-$RENDERER->submit();
-$RENDERER->end();
-$Form->close($RENDERER);
-?>
+$Form->open($RENDERER, $vars, Horde::applicationUrl('extensions.php'), 'post');
<?php
-$RENDERER->beginActive($Form->getTitle());
-$RENDERER->renderFormActive($Form, $vars);
-$RENDERER->submit();
-$RENDERER->end();
-$Form->close($RENDERER);
+$Form->open($RENDERER, $vars, Horde::applicationUrl('extensions.php'), 'post');
$deleteUrl = Horde::applicationUrl('extensions.php');
$params = array ('action' => 'delete',
'extension' => $extension);
$deleteUrl = Horde_Util::addParameter($deleteUrl, $params);
?>
-<a href="<?php echo $deleteUrl; ?>">Delete Extension</a>
\ No newline at end of file
+<a href="<?php echo $deleteUrl; ?>">Delete Extension</a>