Response message updates.
This commit is contained in:
@@ -79,21 +79,8 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//redirect the user
|
//redirect the user
|
||||||
require_once "resources/header.php";
|
$_SESSION["message"] = $text['message-delete'];
|
||||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=index.php\">\n";
|
header("Location: index.php");
|
||||||
echo "<br />\n";
|
|
||||||
echo "<div align='center'>\n";
|
|
||||||
echo " <table width='40%'>\n";
|
|
||||||
echo " <tr>\n";
|
|
||||||
echo " <th align='left'>".$text['header-message']."</th>\n";
|
|
||||||
echo " </tr>\n";
|
|
||||||
echo " <tr>\n";
|
|
||||||
echo " <td class='row_style1'><strong>".$text['message-delete']."</strong></td>\n";
|
|
||||||
echo " </tr>\n";
|
|
||||||
echo " </table>\n";
|
|
||||||
echo " <br />\n";
|
|
||||||
echo "</div>\n";
|
|
||||||
require_once "resources/footer.php";
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -153,27 +153,14 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
|||||||
$switch_result = event_socket_request($fp, 'api '.$switch_cmd);
|
$switch_result = event_socket_request($fp, 'api '.$switch_cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
//show the action and redirect the user
|
//set message and redirect user
|
||||||
require_once "resources/header.php";
|
|
||||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=index.php\">\n";
|
|
||||||
echo "<br />\n";
|
|
||||||
echo "<div align='center'>\n";
|
|
||||||
echo " <table width='40%'>\n";
|
|
||||||
echo " <tr>\n";
|
|
||||||
echo " <th align='left'>".$text['header-message']."</th>\n";
|
|
||||||
echo " </tr>\n";
|
|
||||||
echo " <tr>\n";
|
|
||||||
if ($action == "add") {
|
if ($action == "add") {
|
||||||
echo " <td class='row_style1'><strong>".$text['message-add']."</strong></td>\n";
|
$_SESSION["message"] = $text['message-add'];
|
||||||
}
|
}
|
||||||
if ($action == "update") {
|
if ($action == "update") {
|
||||||
echo " <td class='row_style1'><strong>".$text['message-update']."</strong></td>\n";
|
$_SESSION["message"] = $text['message-update'];
|
||||||
}
|
}
|
||||||
echo " </tr>\n";
|
header("Location: index.php");
|
||||||
echo " </table>\n";
|
|
||||||
echo "<br />\n";
|
|
||||||
echo "</div>\n";
|
|
||||||
require_once "resources/footer.php";
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
} //if ($_POST["persistformvar"] != "true")
|
} //if ($_POST["persistformvar"] != "true")
|
||||||
|
|||||||
Reference in New Issue
Block a user