mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Remove v_ from the php file names in ivr menu.
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
$apps[$x]['menu'][0]['uuid'] = '72259497-a67b-e5aa-cac2-0f2dcef16308';
|
||||
$apps[$x]['menu'][0]['parent_uuid'] = 'fd29e39c-c936-f5fc-8e2b-611681b266b5';
|
||||
$apps[$x]['menu'][0]['category'] = 'internal';
|
||||
$apps[$x]['menu'][0]['path'] = '/app/ivr_menu/v_ivr_menu.php';
|
||||
$apps[$x]['menu'][0]['path'] = '/app/ivr_menu/ivr_menu.php';
|
||||
$apps[$x]['menu'][0]['groups'][] = 'admin';
|
||||
$apps[$x]['menu'][0]['groups'][] = 'superadmin';
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ else {
|
||||
$ivr_menu_uuid = $_GET["id"];
|
||||
}
|
||||
|
||||
//get the v_ivr_menus data
|
||||
//get the ivr_menus data
|
||||
$sql = "select * from v_ivr_menus ";
|
||||
$sql .= "where domain_uuid = '$domain_uuid' ";
|
||||
$sql .= "and ivr_menu_uuid = '$ivr_menu_uuid' ";
|
||||
@@ -80,7 +80,7 @@ else {
|
||||
$prep_statement->execute();
|
||||
$result_options = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
|
||||
//copy the v_ivr_menus
|
||||
//copy the ivr_menus
|
||||
$ivr_menu_uuid = uuid();
|
||||
$sql = "insert into v_ivr_menus ";
|
||||
$sql .= "(";
|
||||
@@ -174,7 +174,7 @@ else {
|
||||
|
||||
//redirect the user
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_ivr_menu.php\">\n";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=ivr_menu.php\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Copy Complete\n";
|
||||
echo "</div>\n";
|
||||
|
||||
@@ -57,7 +57,7 @@ if (strlen($id)>0) {
|
||||
|
||||
//redirect the user
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_ivr_menu.php\">\n";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=ivr_menu.php\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Delete Complete\n";
|
||||
echo "</div>\n";
|
||||
|
||||
@@ -213,7 +213,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
|
||||
//redirect the user
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_ivr_menu.php\">\n";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=ivr_menu.php\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Add Complete\n";
|
||||
echo "</div>\n";
|
||||
@@ -233,7 +233,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
|
||||
//redirect the user
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_ivr_menu.php\">\n";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=ivr_menu.php\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Update Complete\n";
|
||||
echo "</div>\n";
|
||||
@@ -341,8 +341,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
echo "<td align='left' width='30%' nowrap='nowrap' align='left'><b>IVR Menu Edit</b></td>\n";
|
||||
}
|
||||
echo "<td width='70%' align='right'>\n";
|
||||
echo " <input type='button' class='btn' name='' alt='copy' onclick=\"if (confirm('Do you really want to copy this?')){window.location='v_ivr_menu_copy.php?id=".$ivr_menu_uuid."';}\" value='Copy'>\n";
|
||||
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='v_ivr_menu.php'\" value='Back'>\n";
|
||||
echo " <input type='button' class='btn' name='' alt='copy' onclick=\"if (confirm('Do you really want to copy this?')){window.location='ivr_menu_copy.php?id=".$ivr_menu_uuid."';}\" value='Copy'>\n";
|
||||
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='ivr_menu.php'\" value='Back'>\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
@@ -853,7 +853,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
echo "</form>";
|
||||
|
||||
if ($action == "update") {
|
||||
require "v_ivr_menu_options.php";
|
||||
require "ivr_menu_options.php";
|
||||
}
|
||||
|
||||
echo " </td>";
|
||||
|
||||
@@ -56,7 +56,7 @@ else {
|
||||
|
||||
//redirect the user
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_ivr_menu_edit.php?id=$ivr_menu_uuid\">\n";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=ivr_menu_edit.php?id=$ivr_menu_uuid\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Delete Complete\n";
|
||||
echo "</div>\n";
|
||||
|
||||
@@ -121,7 +121,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
save_ivr_menu_xml();
|
||||
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_ivr_menu_edit.php?id=$ivr_menu_uuid\">\n";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=ivr_menu_edit.php?id=$ivr_menu_uuid\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Add Complete\n";
|
||||
echo "</div>\n";
|
||||
@@ -137,7 +137,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
save_ivr_menu_xml();
|
||||
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_ivr_menu_edit.php?id=$ivr_menu_uuid\">\n";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=ivr_menu_edit.php?id=$ivr_menu_uuid\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Update Complete\n";
|
||||
echo "</div>\n";
|
||||
@@ -150,8 +150,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
//pre-populate the form
|
||||
if (count($_GET)>0 && $_POST["persistformvar"] != "true") {
|
||||
$ivr_menu_option_uuid = $_GET["id"];
|
||||
$sql = "";
|
||||
$sql .= "select * from v_ivr_menu_options ";
|
||||
$sql = "select * from v_ivr_menu_options ";
|
||||
$sql .= "where ivr_menu_option_uuid = '$ivr_menu_option_uuid' ";
|
||||
$sql .= "and domain_uuid = '$domain_uuid' ";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
@@ -201,7 +200,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
if ($action == "update") {
|
||||
echo "<td align='left' width='30%' nowrap='nowrap' align='left'><b>IVR Menu Option Edit</b></td>\n";
|
||||
}
|
||||
echo "<td width='70%' align='right'><input type='button' class='btn' name='' alt='back' onclick=\"window.location='v_ivr_menu_edit.php?id=$ivr_menu_uuid'\" value='Back'></td>\n";
|
||||
echo "<td width='70%' align='right'><input type='button' class='btn' name='' alt='back' onclick=\"window.location='ivr_menu_edit.php?id=$ivr_menu_uuid'\" value='Back'></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td colspan='2' align='left'>\n";
|
||||
|
||||
@@ -62,11 +62,10 @@ require_once "includes/paging.php";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
|
||||
//get the number of rows in v_ivr_menu_options
|
||||
$sql = "";
|
||||
$sql .= " select count(*) as num_rows from v_ivr_menu_options ";
|
||||
$sql .= " where domain_uuid = '$domain_uuid' ";
|
||||
$sql .= " and ivr_menu_uuid = '$ivr_menu_uuid' ";
|
||||
//get the number of rows in ivr_menu_options
|
||||
$sql = "select count(*) as num_rows from v_ivr_menu_options ";
|
||||
$sql .= "where domain_uuid = '$domain_uuid' ";
|
||||
$sql .= "and ivr_menu_uuid = '$ivr_menu_uuid' ";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
if ($prep_statement) {
|
||||
$prep_statement->execute();
|
||||
@@ -89,8 +88,7 @@ require_once "includes/paging.php";
|
||||
$offset = $rows_per_page * $_GET['page'];
|
||||
|
||||
//get the menu options
|
||||
$sql = "";
|
||||
$sql .= "select * from v_ivr_menu_options ";
|
||||
$sql = "select * from v_ivr_menu_options ";
|
||||
$sql .= "where domain_uuid = '$domain_uuid' ";
|
||||
$sql .= "and ivr_menu_uuid = '$ivr_menu_uuid' ";
|
||||
$sql .= "order by ivr_menu_option_digits, ivr_menu_option_order asc ";
|
||||
@@ -112,7 +110,7 @@ require_once "includes/paging.php";
|
||||
echo "<th>Description</th>\n";
|
||||
echo "<td align='right' width='42'>\n";
|
||||
if (permission_exists('ivr_menu_add')) {
|
||||
echo " <a href='v_ivr_menu_options_edit.php?ivr_menu_uuid=".$ivr_menu_uuid."' alt='add'>$v_link_label_add</a>\n";
|
||||
echo " <a href='ivr_menu_options_edit.php?ivr_menu_uuid=".$ivr_menu_uuid."' alt='add'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo "</td>\n";
|
||||
echo "<tr>\n";
|
||||
@@ -140,10 +138,10 @@ require_once "includes/paging.php";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['ivr_menu_option_description']." </td>\n";
|
||||
echo " <td valign='top' align='right'>\n";
|
||||
if (permission_exists('ivr_menu_edit')) {
|
||||
echo " <a href='v_ivr_menu_options_edit.php?ivr_menu_uuid=".$row['ivr_menu_uuid']."&id=".$row['ivr_menu_option_uuid']."' alt='edit'>$v_link_label_edit</a>\n";
|
||||
echo " <a href='ivr_menu_options_edit.php?ivr_menu_uuid=".$row['ivr_menu_uuid']."&id=".$row['ivr_menu_option_uuid']."' alt='edit'>$v_link_label_edit</a>\n";
|
||||
}
|
||||
if (permission_exists('ivr_menu_delete')) {
|
||||
echo " <a href='v_ivr_menu_options_delete.php?ivr_menu_uuid=".$row['ivr_menu_uuid']."&id=".$row['ivr_menu_option_uuid']."' alt='delete' onclick=\"return confirm('Do you really want to delete this?')\">$v_link_label_delete</a>\n";
|
||||
echo " <a href='ivr_menu_options_delete.php?ivr_menu_uuid=".$row['ivr_menu_uuid']."&id=".$row['ivr_menu_option_uuid']."' alt='delete' onclick=\"return confirm('Do you really want to delete this?')\">$v_link_label_delete</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
@@ -160,7 +158,7 @@ require_once "includes/paging.php";
|
||||
echo " <td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
|
||||
echo " <td width='33.3%' align='right'>\n";
|
||||
if (permission_exists('ivr_menu_add')) {
|
||||
echo " <a href='v_ivr_menu_options_edit.php?ivr_menu_uuid=".$ivr_menu_uuid."' alt='add'>$v_link_label_add</a>\n";
|
||||
echo " <a href='ivr_menu_options_edit.php?ivr_menu_uuid=".$ivr_menu_uuid."' alt='add'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
@@ -112,7 +112,7 @@ require_once "includes/paging.php";
|
||||
echo th_order_by('ivr_menu_description', 'Description', $order_by[0]['name'], $order_by[0]['order']);
|
||||
echo "<td align='right' width='42'>\n";
|
||||
if (permission_exists('ivr_menu_add')) {
|
||||
echo " <a href='v_ivr_menu_edit.php' alt='add'>$v_link_label_add</a>\n";
|
||||
echo " <a href='ivr_menu_edit.php' alt='add'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo "</td>\n";
|
||||
echo "<tr>\n";
|
||||
@@ -128,10 +128,10 @@ require_once "includes/paging.php";
|
||||
echo " <td valign='top' class='row_stylebg'>".$row['ivr_menu_description']." </td>\n";
|
||||
echo " <td valign='top' align='right'>\n";
|
||||
if (permission_exists('ivr_menu_edit')) {
|
||||
echo " <a href='v_ivr_menu_edit.php?id=".$row['ivr_menu_uuid']."' alt='edit'>$v_link_label_edit</a>\n";
|
||||
echo " <a href='ivr_menu_edit.php?id=".$row['ivr_menu_uuid']."' alt='edit'>$v_link_label_edit</a>\n";
|
||||
}
|
||||
if (permission_exists('ivr_menu_delete')) {
|
||||
echo " <a href='v_ivr_menu_delete.php?id=".$row['ivr_menu_uuid']."' alt='delete' onclick=\"return confirm('Do you really want to delete this?')\">$v_link_label_delete</a>\n";
|
||||
echo " <a href='ivr_menu_delete.php?id=".$row['ivr_menu_uuid']."' alt='delete' onclick=\"return confirm('Do you really want to delete this?')\">$v_link_label_delete</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
@@ -148,7 +148,7 @@ require_once "includes/paging.php";
|
||||
echo " <td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
|
||||
echo " <td width='33.3%' align='right'>\n";
|
||||
if (permission_exists('ivr_menu_add')) {
|
||||
echo " <a href='v_ivr_menu_edit.php' alt='add'>$v_link_label_add</a>\n";
|
||||
echo " <a href='ivr_menu_edit.php' alt='add'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
Reference in New Issue
Block a user