mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-22 00:18:28 +00:00
Response message updates, language fixes.
This commit is contained in:
@@ -260,8 +260,8 @@ $text['description-parent_schema']['fr-fr'] = "Choisir un schéma parent.";
|
||||
|
||||
$text['description-description']['en-us'] = "Enter a description (optional).";
|
||||
$text['description-description']['es-cl'] = "Ingrese una descripción (opcional).";
|
||||
$text['description-description']['en-us'] = "Introduza uma descrição (opcional).";
|
||||
$text['description-description']['fr-fr'] = "";
|
||||
$text['description-description']['pt-pt'] = "Introduza uma descrição (opcional).";
|
||||
$text['description-description']['fr-fr'] = "Entrez une description (en option).";
|
||||
|
||||
$text['description-field_label']['en-us'] = "Enter the field label.";
|
||||
$text['description-field_label']['es-cl'] = "Ingrese una etiqueta de campo.";
|
||||
|
||||
@@ -90,19 +90,14 @@ if (count($_GET)>0) {
|
||||
//$lastinsertid = $db->lastInsertId($id);
|
||||
//unset($sql);
|
||||
|
||||
//set the meta redirect
|
||||
//redirect user
|
||||
$_SESSION["message"] = $text['message-delete'];
|
||||
if (strlen($data_parent_row_uuid) == 0) {
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=schema_data_view.php?id=$schema_uuid&data_row_uuid=$data_row_uuid\">\n";
|
||||
header("Location: schema_data_view.php?id=".$schema_uuid."&data_row_uuid=".$data_row_uuid);
|
||||
}
|
||||
else {
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=schema_data_edit.php?schema_uuid=$schema_parent_id&data_row_uuid=$data_parent_row_uuid\">\n";
|
||||
header("Location: schema_data_edit.php?schema_uuid=".$schema_parent_id."&data_row_uuid=".$data_parent_row_uuid);
|
||||
}
|
||||
|
||||
//show a message to the user before the redirect
|
||||
echo "<div align='center'>\n";
|
||||
echo $text['message-delete']."\n";
|
||||
echo "</div>\n";
|
||||
require_once "resources/footer.php";
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -350,23 +350,20 @@ else {
|
||||
$i++;
|
||||
}
|
||||
|
||||
//show the header
|
||||
require_once "resources/header.php";
|
||||
//redirect user
|
||||
if ($action == "add") {
|
||||
$_SESSION["message"] = $text['message-add'];
|
||||
]
|
||||
else if ($action == "update") {
|
||||
$_SESSION["message"] = $text['message-update'];
|
||||
}
|
||||
|
||||
//set the meta redirect
|
||||
if (strlen($data_parent_row_uuid) == 0) {
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=schema_data_edit.php?id=$schema_uuid&data_row_uuid=$data_row_uuid\">\n";
|
||||
header("Location: schema_data_edit.php?id=".$schema_uuid."&data_row_uuid=".$data_row_uuid);
|
||||
}
|
||||
else {
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=schema_data_edit.php?schema_uuid=$schema_parent_id&data_row_uuid=$data_parent_row_uuid\">\n";
|
||||
header("Location: schema_data_edit.php?schema_uuid=".$schema_parent_id."&data_row_uuid=".$data_parent_row_uuid);
|
||||
}
|
||||
|
||||
//show a message to the user before the redirect
|
||||
echo "<div align='center'>\n";
|
||||
if ($action == "add") { echo $text['message-add']."\n"; }
|
||||
if ($action == "update") { echo $text['message-update']."\n"; }
|
||||
echo "</div>\n";
|
||||
require_once "resources/footer.php";
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -45,9 +45,6 @@ else {
|
||||
$id = check_str($_GET["id"]);
|
||||
}
|
||||
|
||||
//show the header
|
||||
require_once "resources/header.php";
|
||||
|
||||
if (strlen($id) > 0) {
|
||||
$sql = "delete from v_schemas ";
|
||||
$sql .= "where domain_uuid = '$domain_uuid' ";
|
||||
@@ -58,13 +55,8 @@ if (strlen($id) > 0) {
|
||||
}
|
||||
|
||||
//redirect the user
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=schemas.php\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo $text['message-delete']."\n";
|
||||
echo "</div>\n";
|
||||
|
||||
//show the footer
|
||||
require_once "resources/footer.php";
|
||||
$_SESSION["message"] = $text['message-delete'];
|
||||
header("Location: schemas.php");
|
||||
return;
|
||||
|
||||
?>
|
||||
|
||||
@@ -120,12 +120,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
$db->exec(check_sql($sql));
|
||||
unset($sql);
|
||||
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=schemas.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: schemas.php");
|
||||
return;
|
||||
} //if ($action == "add")
|
||||
|
||||
@@ -148,12 +144,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
$db->exec(check_sql($sql));
|
||||
unset($sql);
|
||||
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=schemas.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: schemas.php");
|
||||
return;
|
||||
} //if ($action == "update")
|
||||
} //if ($_POST["persistformvar"] != "true")
|
||||
|
||||
@@ -57,12 +57,8 @@ else {
|
||||
}
|
||||
|
||||
//redirect the user
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=schema_edit.php?id=$schema_uuid\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo $text['message-delete']."\n";
|
||||
echo "</div>\n";
|
||||
require_once "resources/footer.php";
|
||||
$_SESSION["message"] = $text['message-delete'];
|
||||
header("Location: schema_edit.php?id=".$schema_uuid);
|
||||
return;
|
||||
|
||||
?>
|
||||
@@ -139,12 +139,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
$db->exec(check_sql($sql));
|
||||
unset($sql);
|
||||
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=schema_edit.php?id=$schema_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: schema_edit.php?id=".$schema_uuid);
|
||||
return;
|
||||
} //if ($action == "add")
|
||||
|
||||
@@ -167,12 +163,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
$db->exec(check_sql($sql));
|
||||
unset($sql);
|
||||
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=schema_edit.php?id=$schema_uuid\">\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: schema_edit.php?id=".$schema_uuid);
|
||||
return;
|
||||
} //if ($action == "update")
|
||||
} //if ($_POST["persistformvar"] != "true")
|
||||
|
||||
@@ -58,12 +58,8 @@ else {
|
||||
}
|
||||
|
||||
//redirect the user
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=schema_field_edit.php?schema_uuid=$schema_uuid&id=$schema_field_uuid\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo $text['message-delete']."\n";
|
||||
echo "</div>\n";
|
||||
require_once "resources/footer.php";
|
||||
$_SESSION["message"] = $text['message-delete'];
|
||||
header("Location: schema_field_edit.php?schema_uuid=".$schema_uuid."&id=".$schema_field_uuid);
|
||||
return;
|
||||
|
||||
?>
|
||||
@@ -112,12 +112,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
$db->exec(check_sql($sql));
|
||||
unset($sql);
|
||||
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=schema_field_edit.php?schema_uuid=$schema_uuid&id=$schema_field_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: schema_field_edit.php?schema_uuid=".$schema_uuid."&id=".$schema_field_uuid);
|
||||
return;
|
||||
} //if ($action == "add")
|
||||
|
||||
@@ -132,12 +128,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
$db->exec(check_sql($sql));
|
||||
unset($sql);
|
||||
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=schema_field_edit.php?schema_uuid=$schema_uuid&id=$schema_field_uuid\">\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: schema_field_edit.php?schema_uuid=".$schema_uuid."&id=".$schema_field_uuid);
|
||||
return;
|
||||
} //if ($action == "update")
|
||||
} //if ($_POST["persistformvar"] != "true")
|
||||
|
||||
@@ -125,9 +125,12 @@ require_once "resources/paging.php";
|
||||
if ($row['schema_auth'] == 'yes') {
|
||||
echo $text['option-true'];
|
||||
}
|
||||
else if ($row['schema_auth'] == 'false') {
|
||||
else if ($row['schema_auth'] == 'no') {
|
||||
echo $text['option-false'];
|
||||
}
|
||||
else {
|
||||
echo " ";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['schema_description']." </td>\n";
|
||||
echo " <td valign='top' align='right'>\n";
|
||||
|
||||
Reference in New Issue
Block a user