start to change layout

This commit is contained in:
2025-02-17 14:26:18 +01:00
parent deb384a31e
commit d8dc15ac48
5 changed files with 169 additions and 159 deletions
+2 -2
View File
@@ -690,8 +690,8 @@ $partids[] = '0';
if (missingMandatoryParts.length > 0) { if (missingMandatoryParts.length > 0) {
Swal.fire({ Swal.fire({
icon: "error", icon: "error",
title: "Parti Obbligatorie Mancanti", title: "Parti Obbligatorie Mancanti/Missing Mandatory Parts",
text: "Le seguenti parti sono obbligatorie e devono essere inserite: " + missingMandatoryParts.join(", "), text: "Le seguenti parti sono obbligatorie e devono essere inserite/The following parts are mandatory and must be included: " + missingMandatoryParts.join(", "),
confirmButtonText: "OK" confirmButtonText: "OK"
}); });
} else if (missingParts.length > 0) { } else if (missingParts.length > 0) {
+6
View File
@@ -348,3 +348,9 @@ $uploadButtonTitle = "Upload";
$companyLogoAltTitle = "Company Logo"; $companyLogoAltTitle = "Company Logo";
$respsign = "Send to Sign to another colleagues of the same company"; $respsign = "Send to Sign to another colleagues of the same company";
$adduserundersamecompany = "Add User"; $adduserundersamecompany = "Add User";
$signaturetext = '<br>
The signature token is used to confirm the submission of the application form.<br><br>
The token is a fixed 6-digit numeric code that will be randomly generated by our system and sent via email to your registered address.<br><br>
The token will remain valid until you regenerate it on this page.<br><br>
To reset the signature token <a href="tokengenerationsig.php">CLICK HERE</a>.<br><br>
The token will be generated and sent to the email address: ' . $emailuser . '<br><br>';
+8
View File
@@ -352,3 +352,11 @@ $uploadButtonTitle = "Carica";
$companyLogoAltTitle = "Logo Aziendale"; $companyLogoAltTitle = "Logo Aziendale";
$respsign = "Invia a collega della stessa azienda per Firma"; $respsign = "Invia a collega della stessa azienda per Firma";
$adduserundersamecompany = "Aggiungi utente"; $adduserundersamecompany = "Aggiungi utente";
$signaturetext = '<br>
<!-- Versione Italiana -->
Il token per la firma servirà per confermare l\'invio dell\'application form.<br><br>
Il token è un codice numerico fisso di 6 cifre che verrà generato casualmente dai nostri sistemi e inviato via mail all\'indirizzo da te registrato.<br><br>
Il token sarà valido finchè non sarai tu a rigenerarlo da questa pagina.<br><br>
Per re-impostare il signature token <a href="tokengenerationsig.php">CLICCA QUI</a>.<br><br>
Il token verrà generato e inviato via mail all\'indirizzo: ' . $emailuser . '<br><br>
';
+12 -6
View File
@@ -252,8 +252,6 @@ while ($row = mysqli_fetch_assoc($result)) {
?> ?>
<?php <?php
// duplicate row for identificationparts
// Connessione al database // Connessione al database
$conn = mysqli_connect($servername, $username, $password, $dbname); $conn = mysqli_connect($servername, $username, $password, $dbname);
@@ -264,24 +262,32 @@ $result = mysqli_query($conn, $query);
// Ciclo attraverso i risultati e duplico le righe // Ciclo attraverso i risultati e duplico le righe
while ($row = mysqli_fetch_assoc($result)) { while ($row = mysqli_fetch_assoc($result)) {
// Imposto il valore di idtrfdetails come 250 // Imposto il nuovo valore per idtrfdetails
$row['idtrfdetails'] = $newidtrfnumber; $row['idtrfdetails'] = $newidtrfnumber;
// Lascio identificationparts nullo // Rimuovo l'id originale in modo che venga assegnato un nuovo ID in inserimento
unset($row['ididentificationparts']); unset($row['ididentificationparts']);
// Query per duplicare la riga // Eseguiamo l'escape per ogni valore
foreach ($row as $key => $value) {
$row[$key] = mysqli_real_escape_string($conn, $value);
}
// Preparo la query di inserimento
$columns = implode(", ", array_keys($row)); $columns = implode(", ", array_keys($row));
$values = "'" . implode("', '", array_values($row)) . "'"; $values = "'" . implode("', '", array_values($row)) . "'";
$sql_insert = "INSERT INTO identificationparts ($columns) VALUES ($values)"; $sql_insert = "INSERT INTO identificationparts ($columns) VALUES ($values)";
// Eseguo la query
if ($conn->query($sql_insert) === TRUE) { if ($conn->query($sql_insert) === TRUE) {
echo "Nuova riga inserita con successo identificationparts"; echo "Nuova riga inserita con successo in identificationparts";
} else { } else {
echo "Errore nell'inserimento della nuova riga: " . $conn->error; echo "Errore nell'inserimento della nuova riga: " . $conn->error;
} }
} }
?> ?>
<?php <?php
// duplicate row for trfaddrequirements // duplicate row for trfaddrequirements
+7 -17
View File
@@ -1,15 +1,15 @@
<?php <?php
include('include/headscript.php'); ?> include('include/headscript.php'); ?>
<?php <?php
if (isset($_POST["formname"])) { if (isset($_POST["formname"])) {
$formname=$_POST["formname"]; } $formname = $_POST["formname"];
else { } else {
$formname="N"; } $formname = "N";
}
if (isset($_GET["tokenupdate"])) { if (isset($_GET["tokenupdate"])) {
$tokenupdate=$_GET["tokenupdate"]; } $tokenupdate = $_GET["tokenupdate"];
}
?> ?>
<?php <?php
@@ -141,17 +141,7 @@ include('include/mailmessage.php');
<?php } ?> <?php } ?>
<br <?php echo $signaturetext; ?>
Il token per la firma servirà per confermare l'invio dell'application form.<br><br>
Il token è un codice numerico fisso di 6 cifre che verrà generato casualmente dai nostri sistemi e inviato via mail all'indirizzo da te registrato.<br><br>
Il token sarà valido finchè non sarai tu a rigenerarlo da questa pagina.<br><br>
Per re-impostare il signature token <a href="tokengenerationsig.php">CLICCA QUI</a>.<br><br>
Il token verrà generato e inviato via mail all' indirizzo: <?php echo $emailuser; ?><br><br>