fixed TF in inglese
This commit is contained in:
+14
-14
@@ -12,7 +12,7 @@ if (isset($_POST['idcompany'])) {
|
||||
} elseif (isset($_GET['idcompany'])) {
|
||||
$idcompany = intval($_GET['idcompany']);
|
||||
} else {
|
||||
die("Errore: idcompany non specificato.");
|
||||
die(($_SESSION['langselect'] == 'en') ? "Error: idcompany not specified." : "Errore: idcompany non specificato.");
|
||||
}
|
||||
include('languages/' . $_SESSION['langselect'] . '/tdgen.php');
|
||||
|
||||
@@ -58,7 +58,7 @@ if (isset($_POST['submit'])) {
|
||||
$stmt->execute();
|
||||
$stmt->close();
|
||||
} else {
|
||||
echo "Errore durante l'aggiornamento nel database.";
|
||||
echo ($_SESSION['langselect'] == 'en') ? "Error during database update." : "Errore durante l'aggiornamento nel database.";
|
||||
}
|
||||
} else {
|
||||
// Modalità INSERT
|
||||
@@ -69,7 +69,7 @@ if (isset($_POST['submit'])) {
|
||||
$stmt->execute();
|
||||
$stmt->close();
|
||||
} else {
|
||||
echo "Errore durante l'inserimento nel database.";
|
||||
echo ($_SESSION['langselect'] == 'en') ? "Error during database insertion." : "Errore durante l'inserimento nel database.";
|
||||
}
|
||||
}
|
||||
$conn->close();
|
||||
@@ -80,12 +80,12 @@ if (isset($_POST['submit'])) {
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="<?php echo ($_SESSION['langselect'] == 'en') ? 'en' : 'it'; ?>">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title><?php echo $editMode ? 'Modifica Qualificazione' : 'Aggiungi Qualificazione'; ?></title>
|
||||
<title><?php echo $editMode ? ($_SESSION['langselect'] == 'en' ? 'Edit Qualification' : 'Modifica Qualificazione') : ($_SESSION['langselect'] == 'en' ? 'Add Qualification' : 'Aggiungi Qualificazione'); ?></title>
|
||||
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet">
|
||||
<script src="ckeditor/build/ckeditor.js"></script>
|
||||
@@ -138,34 +138,34 @@ if (isset($_POST['submit'])) {
|
||||
|
||||
<body>
|
||||
<div class="container mt-5">
|
||||
<button type="button" class="btn btn-secondary" onclick="closeAndRefresh()">Chiudi e Aggiorna</button>
|
||||
<h3><?php echo $editMode ? 'Modifica Controllo Qualità produzione' : 'Aggiungi Controllo Qualità produzione'; ?></h3>
|
||||
<button type="button" class="btn btn-secondary" onclick="closeAndRefresh()"><?php echo ($_SESSION['langselect'] == 'en') ? 'Close and Refresh' : 'Chiudi e Aggiorna'; ?></button>
|
||||
<h3><?php echo $editMode ? ($_SESSION['langselect'] == 'en' ? 'Edit Production Quality Control' : 'Modifica Controllo Qualità produzione') : ($_SESSION['langselect'] == 'en' ? 'Add Production Quality Control' : 'Aggiungi Controllo Qualità produzione'); ?></h3>
|
||||
|
||||
<form action="qualcheck.php?idcompany=<?php echo $idcompany; ?>" method="post">
|
||||
<input type="hidden" name="idcompany" value="<?php echo $idcompany; ?>">
|
||||
<input type="hidden" name="qualcheck_id" value="<?php echo $qualcheckId; ?>">
|
||||
<div class="form-group">
|
||||
<label for="descriptionQualcheck">Descrizione:</label>
|
||||
<label for="descriptionQualcheck"><?php echo ($_SESSION['langselect'] == 'en') ? 'Description:' : 'Descrizione:'; ?></label>
|
||||
<input type="text" class="form-control" id="descriptionQualcheck" name="descriptionqualcheck" value="<?php echo $description; ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="qualcheckText">Controllo Qualità produzione:</label>
|
||||
<label for="qualcheckText"><?php echo ($_SESSION['langselect'] == 'en') ? 'Production Quality Control:' : 'Controllo Qualità produzione:'; ?></label>
|
||||
<textarea class="form-control" id="qualcheckText" name="qualchecktext" rows="5"><?php echo $qualchecktext; ?></textarea>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary" name="submit"><?php echo $editMode ? 'Aggiorna' : 'Aggiungi'; ?></button>
|
||||
<button type="submit" class="btn btn-primary" name="submit"><?php echo $editMode ? ($_SESSION['langselect'] == 'en' ? 'Update' : 'Aggiorna') : ($_SESSION['langselect'] == 'en' ? 'Add' : 'Aggiungi'); ?></button>
|
||||
<?php if ($editMode) { ?>
|
||||
<a href="qualcheck.php?idcompany=<?php echo $idcompany; ?>" class="btn btn-secondary">Annulla Modifica</a>
|
||||
<a href="qualcheck.php?idcompany=<?php echo $idcompany; ?>" class="btn btn-secondary"><?php echo ($_SESSION['langselect'] == 'en') ? 'Cancel Edit' : 'Annulla Modifica'; ?></a>
|
||||
<?php } ?>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="container mt-5">
|
||||
<h3>Controllo Qualità produzione Inseriti</h3>
|
||||
<h3><?php echo ($_SESSION['langselect'] == 'en') ? 'Inserted Production Quality Controls' : 'Controllo Qualità produzione Inseriti'; ?></h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Descrizione</th>
|
||||
<th>Azioni</th>
|
||||
<th><?php echo ($_SESSION['langselect'] == 'en') ? 'Description' : 'Descrizione'; ?></th>
|
||||
<th><?php echo ($_SESSION['langselect'] == 'en') ? 'Actions' : 'Azioni'; ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
Reference in New Issue
Block a user