Update the IVR menu change how the way the add, update and delete message is presented and get rid of the meta redirect. Will use the IVR menu as a pattern for things to come.

This commit is contained in:
Mark Crane
2013-09-12 17:03:44 +00:00
parent 457b3c6c7e
commit 276a029874
4 changed files with 9 additions and 33 deletions

View File

@@ -58,12 +58,7 @@ if (strlen($id)>0) {
}
//redirect the user
require_once "resources/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=ivr_menus.php\">\n";
echo "<div align='center'>\n";
echo $text['message-delete']."\n";
echo "</div>\n";
require_once "resources/footer.php";
return;
$_SESSION['message'] = $text['message-delete'];
header('Location: ivr_menus.php");
?>

View File

@@ -265,13 +265,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
}
//redirect the user
require_once "resources/header.php";
echo "<meta http-equiv=\"refresh\" content=\"0;url=ivr_menu_edit.php?id=$ivr_menu_uuid\">\n";
echo "<div align='center'>\n";
echo $text['message-update']."\n";
echo "</div>\n";
require_once "resources/footer.php";
return;
$_SESSION['message'] = $text['message-update'];
} //if ($_POST["persistformvar"] != "true")
} //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)

View File

@@ -58,12 +58,7 @@ else {
}
//redirect the user
require_once "resources/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=ivr_menu_edit.php?id=$ivr_menu_uuid\">\n";
echo "<div align='center'>\n";
echo $text['message-delete']."\n";
echo "</div>\n";
require_once "resources/footer.php";
return;
$_SESSION['message'] = $text['message-delete'];
header('Location: ivr_menu_edit.php?id='.$ivr_menu_uuid);
?>

View File

@@ -122,12 +122,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$ivr->add();
//redirect the user
require_once "resources/header.php";
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";
require_once "resources/footer.php";
$_SESSION['message'] = $text['message-add'];
header('Location: ivr_menu_edit.php?id='.$ivr_menu_uuid);
return;
} //if ($action == "add")
@@ -137,12 +133,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$ivr->update();
//redirect the user
require_once "resources/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=ivr_menu_edit.php?id=$ivr_menu_uuid\">\n";
echo "<div align='center'>\n";
echo $text['message-add']."\n";
echo "</div>\n";
require_once "resources/footer.php";
$_SESSION['message'] = $text['message-add'];
header('Location: ivr_menu_edit.php?id='.$ivr_menu_uuid);
return;
} //if ($action == "update")
} //if ($_POST["persistformvar"] != "true")