start to change layout
This commit is contained in:
parent
deb384a31e
commit
d8dc15ac48
@ -690,8 +690,8 @@ $partids[] = '0';
|
||||
if (missingMandatoryParts.length > 0) {
|
||||
Swal.fire({
|
||||
icon: "error",
|
||||
title: "Parti Obbligatorie Mancanti",
|
||||
text: "Le seguenti parti sono obbligatorie e devono essere inserite: " + missingMandatoryParts.join(", "),
|
||||
title: "Parti Obbligatorie Mancanti/Missing Mandatory Parts",
|
||||
text: "Le seguenti parti sono obbligatorie e devono essere inserite/The following parts are mandatory and must be included: " + missingMandatoryParts.join(", "),
|
||||
confirmButtonText: "OK"
|
||||
});
|
||||
} else if (missingParts.length > 0) {
|
||||
|
||||
@ -348,3 +348,9 @@ $uploadButtonTitle = "Upload";
|
||||
$companyLogoAltTitle = "Company Logo";
|
||||
$respsign = "Send to Sign to another colleagues of the same company";
|
||||
$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>';
|
||||
|
||||
@ -352,3 +352,11 @@ $uploadButtonTitle = "Carica";
|
||||
$companyLogoAltTitle = "Logo Aziendale";
|
||||
$respsign = "Invia a collega della stessa azienda per Firma";
|
||||
$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>
|
||||
';
|
||||
|
||||
@ -252,8 +252,6 @@ while ($row = mysqli_fetch_assoc($result)) {
|
||||
?>
|
||||
|
||||
<?php
|
||||
// duplicate row for identificationparts
|
||||
|
||||
// Connessione al database
|
||||
$conn = mysqli_connect($servername, $username, $password, $dbname);
|
||||
|
||||
@ -264,24 +262,32 @@ $result = mysqli_query($conn, $query);
|
||||
// Ciclo attraverso i risultati e duplico le righe
|
||||
while ($row = mysqli_fetch_assoc($result)) {
|
||||
|
||||
// Imposto il valore di idtrfdetails come 250
|
||||
// Imposto il nuovo valore per idtrfdetails
|
||||
$row['idtrfdetails'] = $newidtrfnumber;
|
||||
|
||||
// Lascio identificationparts nullo
|
||||
// Rimuovo l'id originale in modo che venga assegnato un nuovo ID in inserimento
|
||||
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));
|
||||
$values = "'" . implode("', '", array_values($row)) . "'";
|
||||
$values = "'" . implode("', '", array_values($row)) . "'";
|
||||
$sql_insert = "INSERT INTO identificationparts ($columns) VALUES ($values)";
|
||||
|
||||
// Eseguo la query
|
||||
if ($conn->query($sql_insert) === TRUE) {
|
||||
echo "Nuova riga inserita con successo identificationparts";
|
||||
echo "Nuova riga inserita con successo in identificationparts";
|
||||
} else {
|
||||
echo "Errore nell'inserimento della nuova riga: " . $conn->error;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<?php
|
||||
// duplicate row for trfaddrequirements
|
||||
|
||||
|
||||
@ -1,39 +1,39 @@
|
||||
|
||||
|
||||
<?php
|
||||
include('include/headscript.php'); ?>
|
||||
include('include/headscript.php'); ?>
|
||||
|
||||
<?php
|
||||
if (isset($_POST["formname"])) {
|
||||
$formname=$_POST["formname"]; }
|
||||
else {
|
||||
$formname="N"; }
|
||||
$formname = $_POST["formname"];
|
||||
} else {
|
||||
$formname = "N";
|
||||
}
|
||||
if (isset($_GET["tokenupdate"])) {
|
||||
$tokenupdate=$_GET["tokenupdate"]; }
|
||||
$tokenupdate = $_GET["tokenupdate"];
|
||||
}
|
||||
|
||||
?>
|
||||
<?php
|
||||
if ($formname=="Y") {
|
||||
$UpdateQuery = new WA_MySQLi_Query($cmctrfdb);
|
||||
$UpdateQuery->Action = "update";
|
||||
$UpdateQuery->Table = "company";
|
||||
$UpdateQuery->bindColumn("companyname_company", "s", "".((isset($_POST["companyname_company"]))?$_POST["companyname_company"]:"") ."", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("address_company", "s", "".((isset($_POST["companyaddress"]))?$_POST["companyaddress"]:"") ."", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("city_company", "s", "".((isset($_POST["city"]))?$_POST["city"]:"") ."", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("zip_company", "s", "".((isset($_POST["cap"]))?$_POST["cap"]:"") ."", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("country_company", "s", "".((isset($_POST["country"]))?$_POST["country"]:"") ."", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("piva_company", "s", "".((isset($_POST["piva"]))?$_POST["piva"]:"") ."", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("telephone_company", "s", "".((isset($_POST["telephone"]))?$_POST["telephone"]:"") ."", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("email_company", "s", "".((isset($_POST["email"]))?$_POST["email"]:"") ."", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("maincontactname_company", "s", "".((isset($_POST["contactname"]))?$_POST["contactname"]:"") ."", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("maincontactsurname_company", "s", "".((isset($_POST["contactsurname"]))?$_POST["contactsurname"]:"") ."", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("maincontactmail_company", "s", "".((isset($_POST["emailmain"]))?$_POST["emailmain"]:"") ."", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("maincontactphone_company", "s", "".((isset($_POST["telephonemain"]))?$_POST["telephonemain"]:"") ."", "WA_DEFAULT");
|
||||
$UpdateQuery->addFilter("idcompany", "=", "i", "".($idcompany) ."");
|
||||
$UpdateQuery->execute();
|
||||
$UpdateGoTo = "";
|
||||
if (function_exists("rel2abs")) $UpdateGoTo = $UpdateGoTo?rel2abs($UpdateGoTo,dirname(__FILE__)):"";
|
||||
$UpdateQuery->redirect($UpdateGoTo);
|
||||
if ($formname == "Y") {
|
||||
$UpdateQuery = new WA_MySQLi_Query($cmctrfdb);
|
||||
$UpdateQuery->Action = "update";
|
||||
$UpdateQuery->Table = "company";
|
||||
$UpdateQuery->bindColumn("companyname_company", "s", "" . ((isset($_POST["companyname_company"])) ? $_POST["companyname_company"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("address_company", "s", "" . ((isset($_POST["companyaddress"])) ? $_POST["companyaddress"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("city_company", "s", "" . ((isset($_POST["city"])) ? $_POST["city"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("zip_company", "s", "" . ((isset($_POST["cap"])) ? $_POST["cap"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("country_company", "s", "" . ((isset($_POST["country"])) ? $_POST["country"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("piva_company", "s", "" . ((isset($_POST["piva"])) ? $_POST["piva"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("telephone_company", "s", "" . ((isset($_POST["telephone"])) ? $_POST["telephone"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("email_company", "s", "" . ((isset($_POST["email"])) ? $_POST["email"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("maincontactname_company", "s", "" . ((isset($_POST["contactname"])) ? $_POST["contactname"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("maincontactsurname_company", "s", "" . ((isset($_POST["contactsurname"])) ? $_POST["contactsurname"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("maincontactmail_company", "s", "" . ((isset($_POST["emailmain"])) ? $_POST["emailmain"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("maincontactphone_company", "s", "" . ((isset($_POST["telephonemain"])) ? $_POST["telephonemain"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->addFilter("idcompany", "=", "i", "" . ($idcompany) . "");
|
||||
$UpdateQuery->execute();
|
||||
$UpdateGoTo = "";
|
||||
if (function_exists("rel2abs")) $UpdateGoTo = $UpdateGoTo ? rel2abs($UpdateGoTo, dirname(__FILE__)) : "";
|
||||
$UpdateQuery->redirect($UpdateGoTo);
|
||||
}
|
||||
$companydetails = mysqli_query($cmctrfdb, "SELECT * FROM company WHERE company.idcompany='$idcompany'");
|
||||
$companyData = mysqli_fetch_assoc($companydetails);
|
||||
@ -43,138 +43,128 @@ $companyData = mysqli_fetch_assoc($companydetails);
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>TRF CIMAC </title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta content="CIMAC TRF Portal" name="description" />
|
||||
<meta content="" name="author" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta charset="utf-8" />
|
||||
<title>TRF CIMAC </title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta content="CIMAC TRF Portal" name="description" />
|
||||
<meta content="" name="author" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
|
||||
<!-- App favicon -->
|
||||
<link rel="shortcut icon" href="../images/favicon.ico">
|
||||
<!-- App favicon -->
|
||||
<link rel="shortcut icon" href="../images/favicon.ico">
|
||||
|
||||
<!--Form Wizard-->
|
||||
<link href="../plugins/jquery-steps/jquery.steps.css" rel="stylesheet" type="text/css">
|
||||
<!--Form Wizard-->
|
||||
<link href="../plugins/jquery-steps/jquery.steps.css" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- App css -->
|
||||
<link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="assets/css/jquery-ui.min.css" rel="stylesheet">
|
||||
<link href="assets/css/icons.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="assets/css/metisMenu.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="assets/css/app.min.css" rel="stylesheet" type="text/css" />
|
||||
<!-- App css -->
|
||||
<link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="assets/css/jquery-ui.min.css" rel="stylesheet">
|
||||
<link href="assets/css/icons.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="assets/css/metisMenu.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="assets/css/app.min.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
|
||||
<!-- submit form with button -->
|
||||
<script>
|
||||
function formSubmit() {
|
||||
document.forms["myForm"].submit();
|
||||
}
|
||||
</script>
|
||||
<!-- submit form with button -->
|
||||
<script>
|
||||
function formSubmit() {
|
||||
document.forms["myForm"].submit();
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body>
|
||||
|
||||
<!-- Top Bar Start -->
|
||||
<!-- Top Bar Start -->
|
||||
|
||||
|
||||
|
||||
<!-- Top Bar Start -->
|
||||
<?php include('include/topbar.php'); ?>
|
||||
<!-- Top Bar End -->
|
||||
<?php include('include/topbar.php'); ?>
|
||||
<!-- Top Bar End -->
|
||||
|
||||
|
||||
<!-- Left Sidenav -->
|
||||
<?php include('include/leftsidenav.php'); ?>
|
||||
<!-- Left Sidenav -->
|
||||
<?php include('include/leftsidenav.php'); ?>
|
||||
<!-- end left-sidenav-->
|
||||
|
||||
<div class="page-wrapper">
|
||||
<!-- Page Content-->
|
||||
<div class="page-content">
|
||||
<div class="page-wrapper">
|
||||
<!-- Page Content-->
|
||||
<div class="page-content">
|
||||
|
||||
<div class="container-fluid">
|
||||
<!-- Page-Title -->
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="page-title-box">
|
||||
<div class="float-right">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="javascript:void(0);">TRF</a></li>
|
||||
<li class="breadcrumb-item active">Starter</li>
|
||||
</ol>
|
||||
</div>
|
||||
<h4 class="page-title"><?php echo $titlewb; ?></h4>
|
||||
</div><!--end page-title-box-->
|
||||
</div><!--end col-->
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
|
||||
|
||||
|
||||
<!-- card for additional info gloves -->
|
||||
|
||||
<div class="card">
|
||||
|
||||
|
||||
<!-- card for show requirements -->
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="mt-0 header-title"><?php echo $signaturetokentitle; ?></h4>
|
||||
|
||||
|
||||
<br>
|
||||
<?php if (isset($tokenupdate)) { ?>
|
||||
<div class="alert icon-custom-alert alert-outline-success alert-success-shadow" role="alert">
|
||||
<i class="mdi mdi-check-all alert-icon"></i>
|
||||
<div class="alert-text">
|
||||
<strong><?php echo $tokensuccess; ?></strong>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$tokennumber = $user->present()->signaturecode;
|
||||
|
||||
include('include/mailmessage.php');
|
||||
?>
|
||||
|
||||
|
||||
<?php } ?>
|
||||
<?php echo $signaturetext; ?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!--end card-body-->
|
||||
|
||||
|
||||
</div><!--end card-->
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="container-fluid">
|
||||
<!-- Page-Title -->
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="page-title-box">
|
||||
<div class="float-right">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="javascript:void(0);">TRF</a></li>
|
||||
<li class="breadcrumb-item active">Starter</li>
|
||||
</ol>
|
||||
</div>
|
||||
<h4 class="page-title"><?php echo $titlewb; ?></h4>
|
||||
</div><!--end page-title-box-->
|
||||
</div><!--end col-->
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
|
||||
|
||||
|
||||
<!-- card for additional info gloves -->
|
||||
|
||||
<div class="card">
|
||||
|
||||
|
||||
<!-- card for show requirements -->
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="mt-0 header-title"><?php echo $signaturetokentitle; ?></h4>
|
||||
|
||||
|
||||
<br>
|
||||
<?php if (isset($tokenupdate)) { ?>
|
||||
<div class="alert icon-custom-alert alert-outline-success alert-success-shadow" role="alert">
|
||||
<i class="mdi mdi-check-all alert-icon"></i>
|
||||
<div class="alert-text">
|
||||
<strong><?php echo $tokensuccess; ?></strong>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$tokennumber=$user->present()->signaturecode;
|
||||
|
||||
include('include/mailmessage.php');
|
||||
?>
|
||||
|
||||
|
||||
<?php } ?>
|
||||
<br
|
||||
|
||||
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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!--end card-body-->
|
||||
|
||||
|
||||
</div><!--end card-->
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!--end col-->
|
||||
</div>
|
||||
<!-- end page title end breadcrumb -->
|
||||
|
||||
|
||||
</div><!-- container -->
|
||||
<!-- footer start -->
|
||||
<?php include('include/footer.php'); ?>
|
||||
</div><!-- container -->
|
||||
<!-- footer start -->
|
||||
<?php include('include/footer.php'); ?>
|
||||
</footer><!--end footer-->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end page content -->
|
||||
</div>
|
||||
<!-- end page-wrapper -->
|
||||
@ -191,12 +181,12 @@ Il token verrà generato e inviato via mail all' indirizzo: <?php echo $emailuse
|
||||
<script src="assets/js/jquery.slimscroll.min.js"></script>
|
||||
<script src="assets/js/jquery-ui.min.js"></script>
|
||||
|
||||
<script src="../plugins/jquery-steps/jquery.steps.min.js"></script>
|
||||
<script src="../plugins/jquery-steps/jquery.steps.min.js"></script>
|
||||
<script src="assets/pages/jquery.form-wizard.init.js"></script>
|
||||
|
||||
<!-- App js -->
|
||||
<script src="assets/js/app.js"></script>
|
||||
|
||||
</body>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user