<?php
-$Form->renderActive($RENDERER, $vars, Horde::applicationUrl('dialplan.php'), 'post');
+$Form->renderActive(null, $vars, Horde::applicationUrl('dialplan.php'), 'post');
Follow the prompts to create and save your new recording.</li>
</ol>
When finished, hang up.
- <input type="cancel" onclick="shownext()" value="Continue to Step 2">
+ <br style="clear:both;">
+ <div class="button" onclick="$('step2').show()">Continue to Step 2</div>
</div>
-
+<br style="clear:both;">
<div id="step2" class="step">
- Here we create an extension.
-</div>
\ No newline at end of file
+ <?php $extensionform->renderActive(null, $vars, Horde::applicationUrl('dialplan.php'), 'post');?>
+</div>
+<script type="text/javascript">
+<!--
+$('step2').hide();
+// -->
+</script>
\ No newline at end of file
background: url('graphics/redbox_spinner.gif') no-repeat center #000;
z-index: 5;
}
+
+.step
+{
+ width: 500px;
+ border: 1px dotted;
+ margin: 5px;
+ padding: 5px;
+}
require_once dirname(__FILE__) . '/lib/Application.php';
$shout = Horde_Registry::appInit('shout');
+require_once SHOUT_BASE . '/lib/Forms/ExtensionForm.php';
+
try {
// Only continue if there is no existing "Main Menu"
$curaccount = $_SESSION['shout']['curaccount'];
$shout->dialplan->saveMenuAction($curaccount['code'], Shout::MAIN_MENU,
'star', 'admin_login', array());
-
+ $vars = Horde_Variables::getDefaultVariables();
+ $extensionform = new ExtensionDetailsForm($vars);
} catch (Exception $e) {
$notification->push($e);
}