diff options
author | Bill Marquette <bill.marquette@gmail.com> | 2009-02-06 19:18:00 -0600 |
---|---|---|
committer | Bill Marquette <bill.marquette@gmail.com> | 2009-02-06 19:18:00 -0600 |
commit | 55eddd7accf2c5f9b0f52b22a010c4c4b7c130d1 (patch) | |
tree | ba4783bab1dd65f1ceef2dfac9fdbd515531d18b /packages/freeswitch/freeswitch_ivr_edit.tmp | |
parent | 67780cc9d469288742aea5bc378c29a54edd5ec5 (diff) | |
download | pfsense-packages-55eddd7accf2c5f9b0f52b22a010c4c4b7c130d1.tar.gz pfsense-packages-55eddd7accf2c5f9b0f52b22a010c4c4b7c130d1.tar.bz2 pfsense-packages-55eddd7accf2c5f9b0f52b22a010c4c4b7c130d1.zip |
mv packages to config dir to match web layout
Diffstat (limited to 'packages/freeswitch/freeswitch_ivr_edit.tmp')
-rw-r--r-- | packages/freeswitch/freeswitch_ivr_edit.tmp | 582 |
1 files changed, 0 insertions, 582 deletions
diff --git a/packages/freeswitch/freeswitch_ivr_edit.tmp b/packages/freeswitch/freeswitch_ivr_edit.tmp deleted file mode 100644 index f9d4652d..00000000 --- a/packages/freeswitch/freeswitch_ivr_edit.tmp +++ /dev/null @@ -1,582 +0,0 @@ -<?php -/* $Id$ */ -/* - - freeswitch_ivr_edit.php - Copyright (C) 2008 Mark J Crane - All rights reserved. - - FreeSWITCH (TM) - http://www.freeswitch.org/ - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. -*/ - -require("guiconfig.inc"); -require("/usr/local/pkg/freeswitch.inc"); - - -$a_ivr = &$config['installedpackages']['freeswitchivr']['config']; -$a_ivr_options = &$config['installedpackages']['freeswitchivroptions']['config']; - - -$id = $_GET['id']; -if (isset($_POST['id'])) { - $id = $_POST['id']; -} -$parentid = $id; - -//set default $ivrconditionjs - $ivrconditionjs = "function isholiday( Month, Date ) {\n"; - $ivrconditionjs .= " var Holiday = 0; //default false\n"; - $ivrconditionjs .= " if (Month == \"12\" && Date == \"25\") {\n"; - $ivrconditionjs .= " Holiday = 1; //true\n"; - $ivrconditionjs .= " }\n"; - $ivrconditionjs .= " if (Month == \"7\" && Date == \"4\") {\n"; - $ivrconditionjs .= " Holiday = 1; //true\n"; - $ivrconditionjs .= " }\n"; - $ivrconditionjs .= " if (Month == \"1\" && Date == \"1\") {\n"; - $ivrconditionjs .= " Holiday = 1; //true\n"; - $ivrconditionjs .= " }\n"; - $ivrconditionjs .= " if (Holiday == 1) {\n"; - $ivrconditionjs .= " return true;\n"; - $ivrconditionjs .= " }\n"; - $ivrconditionjs .= " else {\n"; - $ivrconditionjs .= " return false;\n"; - $ivrconditionjs .= " }\n"; - $ivrconditionjs .= "}\n"; - $ivrconditionjs .= "\n"; - $ivrconditionjs .= "function isweekday( Day ) {\n"; - $ivrconditionjs .= " if (Day > 1 && Day < 7) {\n"; - $ivrconditionjs .= " return true;\n"; - $ivrconditionjs .= " }\n"; - $ivrconditionjs .= " else {\n"; - $ivrconditionjs .= " return false;\n"; - $ivrconditionjs .= " }\n"; - $ivrconditionjs .= "}\n"; - $ivrconditionjs .= "\n"; - $ivrconditionjs .= "function isweekend( Day ) {\n"; - $ivrconditionjs .= " if (Day > 1 && Day < 7) {\n"; - $ivrconditionjs .= " return false;\n"; - $ivrconditionjs .= " }\n"; - $ivrconditionjs .= " else {\n"; - $ivrconditionjs .= " return true;\n"; - $ivrconditionjs .= " }\n"; - $ivrconditionjs .= "}\n"; - $ivrconditionjs .= "\n"; - $ivrconditionjs .= "function isofficehours( Hours ) {\n"; - $ivrconditionjs .= " if (Hours >= 9 && Hours < 17) {\n"; - $ivrconditionjs .= " return true;\n"; - $ivrconditionjs .= " }\n"; - $ivrconditionjs .= " else {\n"; - $ivrconditionjs .= " return false;\n"; - $ivrconditionjs .= " }\n"; - $ivrconditionjs .= "}\n"; - $ivrconditionjs .= "\n"; - $ivrconditionjs .= "function isafterhours( Hours ) {\n"; - $ivrconditionjs .= " if (Hours >= 9 && Hours < 17) {\n"; - $ivrconditionjs .= " return false;\n"; - $ivrconditionjs .= " }\n"; - $ivrconditionjs .= " else {\n"; - $ivrconditionjs .= " return true;\n"; - $ivrconditionjs .= " }\n"; - $ivrconditionjs .= "}\n"; - $ivrconditionjs .= "\n"; - $ivrconditionjs .= "//set default\n"; - $ivrconditionjs .= "condition = true;\n"; - $ivrconditionjs .= "\n"; - $ivrconditionjs .= "//Holiday?\n"; - $ivrconditionjs .= "if (isholiday( Month, Date )) {\n"; - $ivrconditionjs .= " console_log( \"info\", \"holiday\\n\" );\n"; - $ivrconditionjs .= " condition = false;\n"; - $ivrconditionjs .= "}\n"; - $ivrconditionjs .= "\n"; - $ivrconditionjs .= "//Weekend?\n"; - $ivrconditionjs .= "if (isweekend( Day )) {\n"; - $ivrconditionjs .= " console_log( \"info\", \"weekend\\n\" );\n"; - $ivrconditionjs .= " condition = false;\n"; - $ivrconditionjs .= "}\n"; - $ivrconditionjs .= "\n"; - $ivrconditionjs .= "// After Hours?\n"; - $ivrconditionjs .= "if (isafterhours( Hours )) {\n"; - $ivrconditionjs .= " console_log( \"info\", \"after hours\\n\" );\n"; - $ivrconditionjs .= " condition = false;\n"; - $ivrconditionjs .= "}\n"; - $ivrconditionjs .= "\n"; - - -if (isset($id) && $a_ivr[$id]) { - $pconfig['ivrid'] = $a_ivr[$id]['ivrid']; - $ivrid = $a_ivr[$id]['ivrid']; - $pconfig['ivrextension'] = $a_ivr[$id]['ivrextension']; - $pconfig['ivrname'] = $a_ivr[$id]['ivrname']; - $pconfig['recordingidaction'] = $a_ivr[$id]['recordingidaction']; - $pconfig['recordingidantiaction'] = $a_ivr[$id]['recordingidantiaction']; - $pconfig['ivrtimeout'] = $a_ivr[$id]['ivrtimeout']; - $pconfig['ivrcontext'] = $a_ivr[$id]['ivrcontext']; - $pconfig['ivrconditionjs'] = ($a_ivr[$id]['ivrconditionjs']); - $pconfig['ivrdescr'] = $a_ivr[$id]['ivrdescr']; -} - -if ($_POST) { - - unset($input_errors); - $pconfig = $_POST; - - - if ($_GET['act'] == "del") { - if ($_GET['type'] == 'options') { - if ($a_ivroptions[$_GET['optionid']]) { - unset($a_ivr_options[$_GET['optionid']]); - write_config(); - sync_package_freeswitch_ivr(); - //touch($d_hostsdirty_path); - header("Location: freeswitch_ivr_edit.php?id=".$_GET['id']); - exit; - } - } - } - - - if (!$input_errors) { - - $ivrent = array(); - if (strlen($_POST['ivrid']) > 0) { - $ivrent['ivrid'] = $_POST['ivrid']; - } - else { - $ivrent['ivrid'] = guid(); - } - $ivrent['ivrextension'] = $_POST['ivrextension']; - $ivrent['ivrname'] = $_POST['ivrname']; - $ivrent['recordingidaction'] = $_POST['recordingidaction']; - $ivrent['recordingidantiaction'] = $_POST['recordingidantiaction']; - $ivrent['ivrtimeout'] = $_POST['ivrtimeout']; - $ivrent['ivrcontext'] = $_POST['ivrcontext']; - $ivrent['ivrconditionjs'] = base64_encode($_POST['ivrconditionjs']); - $ivrent['ivrdescr'] = $_POST['ivrdescr']; - - if (isset($id) && $a_ivr[$id]) { - //update - $a_ivr[$id] = $ivrent; - } - else { - //add - $a_ivr[] = $ivrent; - } - - //touch($d_hostsdirty_path); - write_config(); - sync_package_freeswitch_ivr(); - - header("Location: freeswitch_ivr.php"); - exit; - } -} - -include("head.inc"); - -?> - -<body link="#0000CC" vlink="#0000CC" alink="#0000CC"> -<?php include("fbegin.inc"); ?> -<p class="pgtitle">FreeSWITCH: IVR: Edit</p> -<?php if ($input_errors) print_input_errors($input_errors); ?> - - -<div id="mainlevel"> -<table width="100%" border="0" cellpadding="0" cellspacing="0"> -<tr><td class="tabnavtbl"> -<?php - - $tab_array = array(); - $tab_array[] = array(gettext("Settings"), false, "/pkg_edit.php?xml=freeswitch.xml&id=0"); - $tab_array[] = array(gettext("Dialplan"), false, "/freeswitch/freeswitch_dialplan_includes.php"); - $tab_array[] = array(gettext("Extensions"), false, "/freeswitch/freeswitch_extensions.php"); - $tab_array[] = array(gettext("External"), false, "/pkg_edit.php?xml=freeswitch_external.xml&id=0"); - $tab_array[] = array(gettext("Gateways"), false, "/freeswitch/freeswitch_gateways.php"); - $tab_array[] = array(gettext("Internal"), false, "/pkg_edit.php?xml=freeswitch_internal.xml&id=0"); - $tab_array[] = array(gettext("IVR"), true, "/freeswitch/freeswitch_ivr.php"); - $tab_array[] = array(gettext("Modules"), false, "/pkg_edit.php?xml=freeswitch_modules.xml&id=0"); - $tab_array[] = array(gettext("Public"), false, "/freeswitch/freeswitch_public_includes.php"); - $tab_array[] = array(gettext("Rec"), false, "/freeswitch/freeswitch_recordings.php"); - $tab_array[] = array(gettext("Status"), false, "/freeswitch/freeswitch_status.php"); - $tab_array[] = array(gettext("Vars"), false, "/pkg_edit.php?xml=freeswitch_vars.xml&id=0"); - display_top_tabs($tab_array); - -?> -</td></tr> -</table> -<table width="100%" border="0" cellpadding="0" cellspacing="0"> - <tr> - <td class="tabcont" > - - <table width="100%" border="0" cellpadding="6" cellspacing="0"> - <tr> - <td><p><span class="vexpl"><span class="red"><strong>General Settings:<br> - </strong></span> - Interactive voice response general settings. - </span></p></td> - </tr> - </table> - <br /> - - <form action="freeswitch_ivr_edit.php" method="post" name="iform" id="iform"> - <table width="100%" border="0" cellpadding="6" cellspacing="0"> - <tr> - <td width="22%" valign="top" class="vncellreq">Extension</td> - <td width="78%" class="vtable"> - <input name="ivrextension" type="text" class="formfld" id="ivrextension" size="40" value="<?=htmlspecialchars($pconfig['ivrextension']);?>"> - <br> <span class="vexpl">e.g. <em>5002</em></span></td> - </tr> - <tr> - <td width="22%" valign="top" class="vncellreq">IVR Name</td> - <td width="78%" class="vtable"> - <input name="ivrname" type="text" class="formfld" id="ivrname" size="40" value="<?=htmlspecialchars($pconfig['ivrname']);?>"> - </td> - </tr> - <tr> - <td width="22%" valign="top" class="vncellreq">Recording Action</td> - <td width="78%" class="vtable"> - <?php - $a_recordings = &$config['installedpackages']['freeswitchrecordings']['config']; - echo " <select name='recordingidaction' class='formfld'>\n"; - echo " <option></option>\n"; - if (count($a_recordings) > 0) { - foreach ($a_recordings as $ent) { - if (htmlspecialchars($pconfig['recordingidaction']) == $ent['recordingid']) { - echo " <option value='".$ent['recordingid']."' selected='yes'>".$ent['recordingname']."</option>\n"; - } - else { - echo " <option value='".$ent['recordingid']."'>".$ent['recordingname']."</option>\n"; - } - } - } - echo " </select>\n"; - ?> - </td> - </tr> - <tr> - <td width="22%" valign="top" class="vncellreq">Recording Anti-Action</td> - <td width="78%" class="vtable"> - <?php - //$a_recordings = &$config['installedpackages']['freeswitchrecordings']['config']; - echo " <select name='recordingidantiaction' class='formfld'>\n"; - echo " <option></option>\n"; - if (count($a_recordings) > 0) { - foreach ($a_recordings as $ent) { - if (htmlspecialchars($pconfig['recordingidantiaction']) == $ent['recordingid']) { - echo " <option value='".$ent['recordingid']."' selected='yes'>".$ent['recordingname']."</option>\n"; - } - else { - echo " <option value='".$ent['recordingid']."'>".$ent['recordingname']."</option>\n"; - } - } - } - echo " </select>\n"; - ?> - </td> - </tr> - <?php - if (strlen($pconfig['ivrtimeout']) == 0) { - $pconfig['ivrtimeout'] = 10; //set a default timeout - } - ?> - <tr> - <td width="22%" valign="top" class="vncellreq">Timeout</td> - <td width="78%" class="vtable"> - <input name="ivrtimeout" type="text" class="formfld" id="ivrtimeout" size="40" value="<?=htmlspecialchars($pconfig['ivrtimeout']);?>"> - <br><span class="vexpl">After the recording concludes the - timeout sets the time in seconds to continue to wait for DTMF. - If the DTMF is <br />not detected during that time the 't' - timeout option is executed.</span> - </td> - </tr> - <tr> - <td width="22%" valign="top" class="vncell">Context</td> - <td width="78%" class="vtable"> - <input name="ivrcontext" type="text" class="formfld" id="ivrextension" size="40" value="<?=htmlspecialchars($pconfig['ivrcontext']);?>"> - <br> <span class="vexpl">e.g. <em>default</em></span></td> - </tr> - <tr> - <td width="22%" valign="top" class="vncell">Description</td> - <td width="78%" class="vtable"> - <input name="ivrdescr" type="text" class="formfld" id="descr" size="40" value="<?=htmlspecialchars($pconfig['ivrdescr']);?>"> - <br> <span class="vexpl">You may enter a description here - for your reference (not parsed).</span></td> - </tr> - - - <tr> - <td width="22%" valign="top" class="vncell">Javascript Condition</td> - <td width="78%" class="vtable"> - <?php - if (strlen(htmlspecialchars(base64_decode($pconfig['ivrconditionjs']))) == 0) { - echo "<textarea name=\"ivrconditionjs\" cols=\"50\" rows=\"7\" wrap=\"off\">".$ivrconditionjs."</textarea>\n"; - } - else { - echo "<textarea name=\"ivrconditionjs\" cols=\"50\" rows=\"7\" wrap=\"off\">".htmlspecialchars(base64_decode($pconfig['ivrconditionjs']))."</textarea>\n"; - } - ?> - <br> <span class="vexpl">A simple valid condition is: - condition=true; To re-populate the default simply empty the - textarea and click on save. The following javascript variables - have been defined: Hours, Mins, Seconds, Month, Date, Year, - and Day.</span></td> - </tr> - - - <tr> - <td width="22%" valign="top"> </td> - <td width="78%"> - <input name="Submit" type="submit" class="formbtn" value="Save"> <input class="formbtn" type="button" value="Cancel" onclick="history.back()"> - <input name="ivrid" type="hidden" value="<?=htmlspecialchars($pconfig['ivrid']);?>"> - <?php if (isset($id) && $a_ivr[$id]): ?> - <input name="id" type="hidden" value="<?=$id;?>"> - <?php endif; ?> - </td> - </tr> - </table> - </form> - - <br> - <br> - - <form action="freeswitch_ivr_edit.php" method="post" name="iform2" id="iform2"> - <?php - - - //echo "<pre>"; - //print_r ($a_ivr); - //echo "</pre>"; - - //if ($savemsg) print_info_box($savemsg); - //if (file_exists($d_hostsdirty_path)): echo"<p>"; - //print_info_box_np("The FreeSWITCH recordings have been changed.<br>You must apply the changes in order for them to take effect."); - //echo"<br />"; - //endif; - - ?> - - <table width="100%" border="0" cellpadding="6" cellspacing="0"> - <tr> - <td><p><span class="vexpl"><span class="red"><strong><br> - </strong></span> - Options are the choices that are available to the caller when they - are calling the auto attendant. If the caller presses 2 then the call - is directed to the corresponding destination. - </span></p></td> - </tr> - </table> - - - <table width="100%" border="0" cellpadding="6" cellspacing="0"> - <tr> - <td><p><span class="vexpl"><span class="red"><strong>Action<br /> - </strong></span> - The options that are executed when the <b>condition matches.</b> - </span></p></td> - </tr> - </table> - <br /> - - <table width="100%" border="0" cellpadding="0" cellspacing="0"> - <tr> - <td width="20%" class="listhdrr">Option</td> - <td width="25%" class="listhdrr">Type</td> - <td width="25%" class="listhdrr">Destination</td> - <td width="25%" class="listhdr">Description</td> - <td width="10%" class="list"> - <table border="0" cellspacing="0" cellpadding="1"> - <tr> - <td width="17"></td> - <td valign="middle"><a href="freeswitch_ivr_options_edit.php?parentid=<?=$parentid;?>&ivrid=<?=$ivrid;?>&a=action"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0"></a></td> - </tr> - </table> - </td> - </tr> - - <?php - $i = 0; - if (count($a_ivr_options) > 0) { - foreach ($a_ivr_options as $ent) { - if ($ent['optionaction'] == "action" && $ivrid == $ent['ivrid']) { - ?> - <tr> - <td class="listlr" ondblclick="document.location='freeswitch_ivr_options_edit.php?id=<?=$i;?>&parentid=<?=$parentid;?>&ivrid=<?=$ivrid;?>'"> - <?=$ent['optionnumber']?> - </td> - <td class="listr" ondblclick="document.location='freeswitch_ivr_options_edit.php?id=<?=$i;?>&parentid=<?=$parentid;?>&ivrid=<?=$ivrid;?>';"> - <?=$ent['optiontype'];?> - </td> - <td class="listr" ondblclick="document.location='freeswitch_ivr_options_edit.php?id=<?=$i;?>&parentid=<?=$parentid;?>&ivrid=<?=$ivrid;?>';"> - <?=$ent['optiondest'];?> - </td> - <td class="listbg" ondblclick="document.location='freeswitch_ivr_options_edit.php?id=<?=$id;?>&parentid=<?=$parentid;?>&ivrid=<?=$ivrid;?>';"> - <font color="#FFFFFF"><?=htmlspecialchars($ent['optiondescr']);?> - </td> - <td valign="middle" nowrap class="list"> - <table border="0" cellspacing="0" cellpadding="1"> - <tr> - <td valign="middle"><a href="freeswitch_ivr_options_edit.php?id=<?=$i;?>&parentid=<?=$parentid;?>&ivrid=<?=$ivrid;?>"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0"></a></td> - <td><a href="freeswitch_ivr_options.php?type=ivroptions&act=del&id=<?=$i;?>&parentid=<?=$parentid;?>&ivrid=<?=$ivrid;?>" onclick="return confirm('Do you really want to delete this recording?')"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td> - </tr> - </table> - </td> - </tr> - <?php - } - $i++; - } - } - ?> - <tr> - <td class="list" colspan="4"></td> - <td class="list"> - <table border="0" cellspacing="0" cellpadding="1"> - <tr> - <td width="17"></td> - <td valign="middle"><a href="freeswitch_ivr_options_edit.php?parentid=<?=$parentid;?>&ivrid=<?=$ivrid;?>&a=action"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0"></a></td> - </tr> - </table> - </td> - </tr> - - - <tr> - <td class="list" colspan="4"></td> - <td class="list"></td> - </tr> - </table> - - </form> - - - - <form action="freeswitch_ivr_edit.php" method="post" name="iform2" id="iform2"> - <?php - - - //echo "<pre>"; - //print_r ($a_ivr); - //echo "</pre>"; - - //if ($savemsg) print_info_box($savemsg); - //if (file_exists($d_hostsdirty_path)): echo"<p>"; - //print_info_box_np("The FreeSWITCH recordings have been changed.<br>You must apply the changes in order for them to take effect."); - //echo"<br />"; - //endif; - - ?> - <table width="100%" border="0" cellpadding="6" cellspacing="0"> - <tr> - <td><p><span class="vexpl"><span class="red"><strong>Anti-Action<br /> - </strong></span> - The options that are executed when the <b>condition does NOT match.</b> - </span></p></td> - </tr> - </table> - <br /> - - <table width="100%" border="0" cellpadding="0" cellspacing="0"> - <tr> - <td width="20%" class="listhdrr">Option</td> - <td width="25%" class="listhdrr">Type</td> - <td width="25%" class="listhdrr">Destination</td> - <td width="25%" class="listhdr">Description</td> - <td width="10%" class="list"> - <table border="0" cellspacing="0" cellpadding="1"> - <tr> - <td width="17"></td> - <td valign="middle"><a href="freeswitch_ivr_options_edit.php?parentid=<?=$parentid;?>&ivrid=<?=$ivrid;?>&a=antiaction"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0"></a></td> - </tr> - </table> - </td> - </tr> - - <?php - $i = 0; - if (count($a_ivr_options) > 0) { - foreach ($a_ivr_options as $ent) { - if ($ent['optionaction'] == "anti-action" && $ivrid == $ent['ivrid']) { - ?> - <tr> - <td class="listlr" ondblclick="document.location='freeswitch_ivr_options_edit.php?id=<?=$i;?>&parentid=<?=$parentid;?>&ivrid=<?=$ivrid;?>'"> - <?=$ent['optionnumber']?> - </td> - <td class="listr" ondblclick="document.location='freeswitch_ivr_options_edit.php?id=<?=$i;?>&parentid=<?=$parentid;?>&ivrid=<?=$ivrid;?>';"> - <?=$ent['optiontype'];?> - </td> - <td class="listr" ondblclick="document.location='freeswitch_ivr_options_edit.php?id=<?=$i;?>&parentid=<?=$parentid;?>&ivrid=<?=$ivrid;?>';"> - <?=$ent['optiondest'];?> - </td> - <td class="listbg" ondblclick="document.location='freeswitch_ivr_options_edit.php?id=<?=$id;?>&parentid=<?=$parentid;?>&ivrid=<?=$ivrid;?>';"> - <font color="#FFFFFF"><?=htmlspecialchars($ent['optiondescr']);?> - </td> - <td valign="middle" nowrap class="list"> - <table border="0" cellspacing="0" cellpadding="1"> - <tr> - <td valign="middle"><a href="freeswitch_ivr_options_edit.php?id=<?=$i;?>&parentid=<?=$parentid;?>&ivrid=<?=$ivrid;?>"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0"></a></td> - <td><a href="freeswitch_ivr_options.php?type=ivroptions&act=del&id=<?=$i;?>&parentid=<?=$parentid;?>&ivrid=<?=$ivrid;?>" onclick="return confirm('Do you really want to delete this recording?')"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td> - </tr> - </table> - </td> - </tr> - <?php - } - $i++; - } - } - ?> - <tr> - <td class="list" colspan="4"></td> - <td class="list"> - <table border="0" cellspacing="0" cellpadding="1"> - <tr> - <td width="17"></td> - <td valign="middle"><a href="freeswitch_ivr_options_edit.php?parentid=<?=$parentid;?>&ivrid=<?=$ivrid;?>&a=antiaction"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0"></a></td> - </tr> - </table> - </td> - </tr> - - - <tr> - <td class="list" colspan="4"></td> - <td class="list"></td> - </tr> - </table> - - </form> - - <br> - <br> - - </td> - </tr> -</table> - -</div> - -<?php include("fend.inc"); ?> -</body> -</html> |