Response message updates.

This commit is contained in:
Nate Jones
2014-02-21 02:23:40 +00:00
parent 50506b8d8d
commit 19171579fe
7 changed files with 26 additions and 66 deletions

View File

@@ -76,13 +76,9 @@ if (count($_GET)>0) {
unset($sql);
}
//redirect the user
require_once "resources/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=call_center_agents.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: call_center_agents.php");
return;
?>

View File

@@ -230,14 +230,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//syncrhonize configuration
save_call_center_xml();
//redirect the user
require_once "resources/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=call_center_agents.php\">\n";
echo "<div align='center'>\n";
echo $text['message-add']."\n";
echo "</div>\n";
require_once "resources/footer.php";
return;
$_SESSION["message"] = $text['message-add'];
header("Location: call_center_agents.php");
return;
} //if ($action == "add")
if ($action == "update") {
@@ -261,12 +256,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//syncrhonize configuration
save_call_center_xml();
require_once "resources/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=call_center_agents.php\">\n";
echo "<div align='center'>\n";
echo $text['message-update']."\n";
echo "</div>\n";
require_once "resources/footer.php";
$_SESSION["message"] = $text['message-update'];
header("Location: call_center_agents.php");
return;
} //if ($action == "update")
} //if ($_POST["persistformvar"] != "true")

View File

@@ -92,13 +92,8 @@ if (strlen($id) > 0) {
$_SESSION["reload_xml"] = true;
}
//redirect the browser
require_once "resources/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=call_center_queues.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: call_center_queues.php");
return;
?>

View File

@@ -187,14 +187,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$switch_result = event_socket_request($fp, 'api '.$switch_cmd);
}
//redirect the user
require_once "resources/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=call_center_queues.php\">\n";
echo "<div align='center'>\n";
echo $text['message-add']."\n";
echo "</div>\n";
require_once "resources/footer.php";
return;
$_SESSION["message"] = $text['message-add'];
header("Location: call_center_queues.php");
return;
} //if ($action == "add")
if ($action == "update") {
@@ -233,14 +228,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$switch_result = event_socket_request($fp, 'api '.$switch_cmd);
}
//redirect the user
require_once "resources/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=call_center_queues.php\">\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'];
header("Location: call_center_queues.php");
return;
} //if ($action == "update")
} //if ($_POST["persistformvar"] != "true")
} //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)

View File

@@ -81,13 +81,8 @@ else {
unset($sql);
}
//redirect the user
require_once "resources/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=call_center_tiers.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: call_center_tiers.php");
return;
?>

View File

@@ -137,12 +137,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//syncrhonize configuration
save_call_center_xml();
require_once "resources/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=call_center_tiers.php\">\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: call_center_tiers.php");
return;
} //if ($action == "add")
@@ -160,12 +156,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//syncrhonize configuration
save_call_center_xml();
require_once "resources/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=call_center_tiers.php\">\n";
echo "<div align='center'>\n";
echo $text['message-update']."\n";
echo "</div>\n";
require_once "resources/footer.php";
$_SESSION["message"] = $text['message-update'];
header("Location: call_center_tiers.php");
return;
} //if ($action == "update")
} //if ($_POST["persistformvar"] != "true")

View File

@@ -52,6 +52,7 @@ if ($rdr == "false") {
echo $response;
}
else {
$_SESSION["message"] = $response;
header("Location: call_center_queues.php?savemsg=".urlencode($response));
}
?>