baseline 7.4 as-is produzione

This commit is contained in:
2026-09-09 14:32:53 +00:00
commit 71ec465d7a
3638 changed files with 859299 additions and 0 deletions
+479
View File
@@ -0,0 +1,479 @@
␍
<?php␍
include('include/headscript.php'); ␍
include('db-connect.php');␍
?>␍
<?php␍
// pickup the current time and add the userid to have a temporary code␍
␍
?>␍
<!DOCTYPE html>␍
<html lang="en">␍
<!-- recover variables from form or link -->␍
<?php ␍
$varcertificate="";␍
if (isset($_GET['varcertificate'])) {␍
$varcertificate=$_GET['varcertificate']; }␍
?>␍
␍
<?php␍
$idcertificate=0;␍
if (isset($_GET['idcertificate'])) {␍
$idcertificate=$_GET['idcertificate']; }␍
?>␍
<?php //pickup variable post␍
if (isset($_POST["formname"])) {␍
$formname=$_POST["formname"]; }␍
if (isset($_POST["kindofcontacts"])) {␍
$kindofcontacts=$_POST["kindofcontacts"]; }␍
if (isset($_POST["companyname"])) {␍
$companyname=$_POST["companyname"]; }␍
if (isset($_POST["piva"])) {␍
$piva=$_POST["piva"]; }␍
if (isset($_POST["companyaddress"])) {␍
$companyaddress=$_POST["companyaddress"]; }␍
if (isset($_POST["city"])) {␍
$city=$_POST["city"]; }␍
if (isset($_POST["cap"])) {␍
$cap=$_POST["cap"]; }␍
if (isset($_POST["country"])) {␍
$country=$_POST["country"]; }␍
if (isset($_POST["telephone"])) {␍
$telephone=$_POST["telephone"]; }␍
if (isset($_POST["email"])) {␍
$email=$_POST["email"]; }␍
if (isset($_POST["contactname"])) {␍
$contactname=$_POST["contactname"]; }␍
if (isset($_POST["contactsurname"])) {␍
$contactsurname=$_POST["contactsurname"]; }␍
if (isset($_POST["tempcode"])) {␍
$tempcode=$_POST["tempcode"]; }␍
if (isset($_GET["formnameme"])) {␍
$formnameme=$_GET["formnameme"]; }␍
if (isset($_GET["kindofcontacts"])) {␍
$kindofcontacts=$_GET["kindofcontacts"]; }␍
␍
?>␍
<?php //redirect based on certificate␍
␍
if ($idcertificate==5) { header("location: inserttrf.php?idcertificate=$idcertificate");␍
} ?>␍
␍
␍
␍
<?php␍
if (isset($formname)) {␍
$InsertQuery = new WA_MySQLi_Query($cmctrfdb);␍
$InsertQuery->Action = "insert";␍
$InsertQuery->Table = "contacts";␍
$InsertQuery->bindColumn("kindofcontacts", "s", "$kindofcontacts", "WA_DEFAULT");␍
$InsertQuery->bindColumn("companyname", "s", "$companyname", "WA_DEFAULT");␍
$InsertQuery->bindColumn("piva", "s", "$piva", "WA_DEFAULT");␍
$InsertQuery->bindColumn("address", "s", "$companyaddress", "WA_DEFAULT");␍
$InsertQuery->bindColumn("city", "s", "$city", "WA_DEFAULT");␍
$InsertQuery->bindColumn("cap", "s", "$cap", "WA_DEFAULT");␍
$InsertQuery->bindColumn("country", "s", "$country", "WA_DEFAULT");␍
$InsertQuery->bindColumn("telephone", "s", "$telephone", "WA_DEFAULT");␍
$InsertQuery->bindColumn("email", "s", "$email", "WA_DEFAULT");␍
$InsertQuery->bindColumn("contactname", "s", "$contactname", "WA_DEFAULT");␍
$InsertQuery->bindColumn("contactsurname", "s", "$contactsurname", "WA_DEFAULT");␍
$InsertQuery->bindColumn("tempcode", "s", "$tempcode", "WA_DEFAULT");␍
$InsertQuery->saveInSession("");␍
$InsertQuery->execute();␍
$InsertGoTo = "";␍
if (function_exists("rel2abs")) $InsertGoTo = $InsertGoTo?rel2abs($InsertGoTo,dirname(__FILE__)):"";␍
$InsertQuery->redirect($InsertGoTo);␍
}␍
?> ␍
<?php␍
if (isset($formnameme)) {␍
$InsertQuery = new WA_MySQLi_Query($cmctrfdb);␍
$InsertQuery->Action = "insert";␍
$InsertQuery->Table = "contacts";␍
$InsertQuery->bindColumn("kindofcontacts", "s", "$kindofcontacts", "WA_DEFAULT");␍
$InsertQuery->bindColumn("companyid", "s", "$idcompany", "WA_DEFAULT");␍
$InsertQuery->bindColumn("tempcode", "s", "$tempcode", "WA_DEFAULT");␍
$InsertQuery->saveInSession("");␍
$InsertQuery->execute();␍
$InsertGoTo = "";␍
if (function_exists("rel2abs")) $InsertGoTo = $InsertGoTo?rel2abs($InsertGoTo,dirname(__FILE__)):"";␍
$InsertQuery->redirect($InsertGoTo);␍
}␍
?> ␍
<?php // inline edit query␍
$idtrfdetails='160';␍
$row1 = mysqli_query($con,"SELECT *,trfstandards.iddpicategory as iddpicategoryid,trfstandards.idprotectioncategory as idprotectioncategoryid,trfstandards.idstandards as idstandardsid FROM trfstandards LEFT JOIN standards ON trfstandards.idstandards=standards.idstandards LEFT JOIN dpicategory ON trfstandards.iddpicategory=dpicategory.iddpicategory LEFT JOIN protectioncategory ON trfstandards.idprotectioncategory=protectioncategory.idprotectioncategory WHERE trfstandards.idtrfdetails='$idtrfdetails'");␍
$idstandards=mysqli_query($con,"SELECT idstandards ,standardname FROM standards");␍
␍
//query list protectioncategory␍
$proteccategorylist=mysqli_query($con,"SELECT idprotectioncategory ,name_protectioncategory FROM protectioncategory");␍
␍
$idproteccategorylistRecord=array(); ␍
while($idprotectioncategoryrow = mysqli_fetch_assoc($proteccategorylist)) {␍
$idproteccategorylistRecord[$idprotectioncategoryrow['idprotectioncategory']]=$idprotectioncategoryrow['name_protectioncategory'];␍
}␍
$idprotectioncategoryJson=json_encode($idproteccategorylistRecord);␍
␍
//query list protectioncategory␍
$dpicategroylist=mysqli_query($con,"SELECT iddpicategory ,value_dpicategory FROM dpicategory");␍
␍
$iddpicategorylistRecord=array(); ␍
while($iddpicategoryrow = mysqli_fetch_assoc($dpicategroylist)) {␍
$iddpicategorylistRecord[$iddpicategoryrow['iddpicategory']]=$iddpicategoryrow['value_dpicategory'];␍
}␍
$iddpicategoryJson=json_encode($iddpicategorylistRecord);␍
?>␍
<?php␍
$trfnumberfinal = new WA_MySQLi_RS("trfnumberfinal", $cmctrfdb, 1);␍
$trfnumberfinal->setQuery("SELECT * FROM `trf-details` WHERE `trf-details`.idtrfdetails='$idtrf'");␍
$trfnumberfinal->execute();␍
$idcertn=$trfnumberfinal->getColumnVal("idcertification");␍
$idcertificate=$idcertn;␍
$idarticletype=$trfnumberfinal->getColumnVal("idarticletype");␍
?>␍
<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" />␍
<!-- 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">␍
<!-- 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" />␍
<script>␍
function formSubmit() {␍
document.forms["myForm"].submit();␍
}␍
</script>␍
␍
␍
␍
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>␍
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>␍
␍
<script>␍
␍
function showshow1(){␍
document.getElementById('div1').style.display ='none';␍
}␍
function show2(){␍
document.getElementById('div1').style.display = 'block';␍
}␍
function show3(){␍
document.getElementById('div3').style.display = 'none';␍
}␍
function show4(){␍
document.getElementById('div3').style.display = 'block';␍
}␍
function show5(){␍
document.getElementById('div5').style.display = 'none';␍
}␍
function show6(){␍
document.getElementById('div5').style.display = 'block';␍
}␍
</script>␍
<script>␍
$(document).ready(function(){␍
$("#alertcertification").modal('show');␍
});␍
</script> ␍
␍
<link rel="stylesheet" href="../webassist/jq_validation/Serene.css" />␍
</head>␍
␍
<body>␍
␍
␍
␍
<!-- Top Bar Start -->␍
<?php include('include/topbar.php'); ?>␍
<!-- Top Bar End -->␍
␍
␍
<!-- Left Sidenav -->␍
<?php include('include/leftsidenav.php'); ?>␍
<!-- end left-sidenav-->␍
␍
<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);">CIMAC TRF <?php //echo $tempcode; ?></a></li>␍
<li class="breadcrumb-item active">Starter</li>␍
</ol>␍
</div>␍
<h3 class="page-title"><?php echo $titlewb; ?></h3>␍
</div><!--end page-title-box-->␍
</div><!--end col-->␍
</div>␍
<div class="row">␍
<div class="col-sm-12">␍
<div class="card">␍
<div class="card-body">␍
<button type="button" class="btn btn-purple btn-square btn-outline-dashed waves-effect waves-light"><i class="mdi mdi-arrow-right-bold"></i> <?php echo $kindcertificatetitle; ?></button><br>␍
<br>␍
␍
<h4 class="mt-0 header-title"><?php echo $typeofcertificate_question; ?></h4>␍
<p class="text-muted mb-3"><?php echo $typeofcertificate_help; ?></p>␍
<!-- certificate 1st question-->␍
␍
␍
␍
␍
␍
<!-- certificate multiple certificate -->␍
␍
␍
<div class="progress mb-4">␍
<div class="progress-bar" role="progressbar" style="width: 15%;" aria-valuenow="15" aria-valuemin="0" aria-valuemax="100">15%</div>␍
</div>␍
<div name="1stquestion" class="alert alert-light text-muted mb-0" role="alert">␍
<h4 class="alert-heading font-18 text-dark"><?php echo $multiplecertificate; ?></h4>␍
<p><?php echo $multiplecertificate_help; ?></p>␍
␍
<form action="inserttrf.php" method="get" name="myForm" id="myForm">␍
<div class="form-group row">␍
<label class="col-md-3 my-2 control-label"><?php echo $options; ?></label>␍
<div class="col-md-9">␍
<!-- custom radio M15C -->␍
<div class="my-2">␍
<div class="custom-control custom-radio">␍
<input type="radio" id="2" name="idcertificate" value="2" class="custom-control-input" title="<?php echo $errorform; ?>" required="true">␍
<label class="custom-control-label" for="2"><?php echo $adjustcertificate; ?>␍
<i class="fas fa-info-circle" data-toggle="modal" data-animation="bounce" data-target=".bs-example-modal-center1"></i>␍
␍
<div class="modal fade bs-example-modal-center1" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">␍
<div class="modal-dialog modal-dialog-centered">␍
<div class="modal-content">␍
<div class="modal-header">␍
<h5 class="modal-title mt-0" id="exampleModalLabel"><?php echo $m15ctitle; ?></h5>␍
<button type="button" class="close" data-dismiss="modal" aria-label="Close">␍
<span aria-hidden="true">&times;</span>␍
</button>␍
</div>␍
<div class="modal-body">␍
<p><?php echo $m15ctitle_help; ?>␍
</p>␍
</div>␍
</div><!-- /.modal-content -->␍
</div><!-- /.modal-dialog -->␍
</div><!-- /.modal --></label>␍
</div>␍
</div>␍
<!-- custom radio M15C -->␍
<div class="my-2">␍
<div class="custom-control custom-radio">␍
<input type="radio" id="2" name="idcertificate" value="2" class="custom-control-input" title="<?php echo $errorform; ?>" required="true">␍
<label class="custom-control-label" for="2"><?php echo $adjustcertificate; ?>␍
<i class="fas fa-info-circle" data-toggle="modal" data-animation="bounce" data-target=".bs-example-modal-center1"></i>␍
␍
<div class="modal fade bs-example-modal-center1" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">␍
<div class="modal-dialog modal-dialog-centered">␍
<div class="modal-content">␍
<div class="modal-header">␍
<h5 class="modal-title mt-0" id="exampleModalLabel"><?php echo $m15ctitle; ?></h5>␍
<button type="button" class="close" data-dismiss="modal" aria-label="Close">␍
<span aria-hidden="true">&times;</span>␍
</button>␍
</div>␍
<div class="modal-body">␍
<p><?php echo $m15ctitle_help; ?>␍
</p>␍
</div>␍
</div><!-- /.modal-content -->␍
</div><!-- /.modal-dialog -->␍
</div><!-- /.modal --></label>␍
</div>␍
</div>␍
<!-- custom radio M15C -->␍
<div class="my-2">␍
<div class="custom-control custom-radio">␍
<input type="radio" id="2" name="idcertificate" value="2" class="custom-control-input" title="<?php echo $errorform; ?>" required="true">␍
<label class="custom-control-label" for="2"><?php echo $adjustcertificate; ?>␍
<i class="fas fa-info-circle" data-toggle="modal" data-animation="bounce" data-target=".bs-example-modal-center1"></i>␍
␍
<div class="modal fade bs-example-modal-center1" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">␍
<div class="modal-dialog modal-dialog-centered">␍
<div class="modal-content">␍
<div class="modal-header">␍
<h5 class="modal-title mt-0" id="exampleModalLabel"><?php echo $m15ctitle; ?></h5>␍
<button type="button" class="close" data-dismiss="modal" aria-label="Close">␍
<span aria-hidden="true">&times;</span>␍
</button>␍
</div>␍
<div class="modal-body">␍
<p><?php echo $m15ctitle_help; ?>␍
</p>␍
</div>␍
</div><!-- /.modal-content -->␍
</div><!-- /.modal-dialog -->␍
</div><!-- /.modal --></label>␍
</div>␍
</div>␍
<!-- custom radio M15B+M30S -->␍
<div class="my-2">␍
<div class="custom-control custom-radio">␍
<input type="radio" id="3" name="idcertificate" value="3" class="custom-control-input">␍
<label class="custom-control-label" for="3"><?php echo $revisecertificate; ?><i class="fas fa-info-circle" data-toggle="modal" data-animation="bounce" data-target=".bs-example-modal-center2"></i>␍
<div class="modal fade bs-example-modal-center2" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">␍
<div class="modal-dialog modal-dialog-centered">␍
<div class="modal-content">␍
<div class="modal-header">␍
<h5 class="modal-title mt-0" id="exampleModalLabel"><?php echo $m15Bm30Stitle; ?></h5>␍
<button type="button" class="close" data-dismiss="modal" aria-label="Close">␍
<span aria-hidden="true">&times;</span>␍
</button>␍
</div>␍
<div class="modal-body">␍
<p><?php echo $m15Bm30Stitle_help; ?>␍
</p>␍
</div>␍
</div><!-- /.modal-content -->␍
</div><!-- /.modal-dialog -->␍
</div><!-- /.modal --></label>␍
</div>␍
</div>␍
<!-- custom radio M15A+M30S -->␍
<div class="my-2">␍
<div class="custom-control custom-radio">␍
<input type="radio" id="4" name="idcertificate" value="4" class="custom-control-input">␍
<label class="custom-control-label" for="4"><?php echo $extendcertificate; ?><i class="fas fa-info-circle" data-toggle="modal" data-animation="bounce" data-target=".bs-example-modal-center3"></i>␍
<div class="modal fade bs-example-modal-center3" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">␍
<div class="modal-dialog modal-dialog-centered">␍
<div class="modal-content">␍
<div class="modal-header">␍
<h5 class="modal-title mt-0" id="exampleModalLabel"><?php echo $m15am30stitle; ?></h5>␍
<button type="button" class="close" data-dismiss="modal" aria-label="Close">␍
<span aria-hidden="true">&times;</span>␍
</button>␍
</div>␍
<div class="modal-body">␍
<p><?php echo $m15am30stitle_help; ?>␍
</p>␍
</div>␍
</div><!-- /.modal-content -->␍
</div><!-- /.modal-dialog -->␍
</div><!-- /.modal --></label>␍
</div>␍
</div>␍
<!-- custom radio M18A -->␍
<div class="my-2">␍
<div class="custom-control custom-radio">␍
<input type="radio" id="5" name="idcertificate" value="5" class="custom-control-input">␍
<label class="custom-control-label" for="5"><?php echo $surveillancemodulec; ?><i class="fas fa-info-circle" data-toggle="modal" data-animation="bounce" data-target=".bs-example-modal-center4"></i>␍
<div class="modal fade bs-example-modal-center4" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">␍
<div class="modal-dialog modal-dialog-centered">␍
<div class="modal-content">␍
<div class="modal-header">␍
<h5 class="modal-title mt-0" id="exampleModalLabel"><?php echo $m18atitle; ?></h5>␍
<button type="button" class="close" data-dismiss="modal" aria-label="Close">␍
<span aria-hidden="true">&times;</span>␍
</button>␍
</div>␍
<div class="modal-body">␍
<p><?php echo $m18atitle_help; ?>␍
</p>␍
</div>␍
</div><!-- /.modal-content -->␍
</div><!-- /.modal-dialog -->␍
</div><!-- /.modal --></label>␍
</div>␍
</div>␍
<!-- custom radio M18B -->␍
<div class="my-2">␍
<div class="custom-control custom-radio">␍
<input type="radio" id="6" name="idcertificate" value="6" class="custom-control-input">␍
<label class="custom-control-label" for="6"><?php echo $surveillancemoduled; ?> <i class="fas fa-info-circle" data-toggle="modal" data-animation="bounce" data-target=".bs-example-modal-center5"></i>␍
<div class="modal fade bs-example-modal-center5" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">␍
<div class="modal-dialog modal-dialog-centered">␍
<div class="modal-content">␍
<div class="modal-header">␍
<h5 class="modal-title mt-0" id="exampleModalLabel"><?php echo $m18btitle; ?></h5>␍
<button type="button" class="close" data-dismiss="modal" aria-label="Close">␍
<span aria-hidden="true">&times;</span>␍
</button>␍
</div>␍
<div class="modal-body">␍
<p><?php echo $m18btitle_help; ?>␍
</p>␍
</div>␍
</div><!-- /.modal-content -->␍
</div><!-- /.modal-dialog -->␍
</div><!-- /.modal --></label>␍
</div>␍
</div>␍
␍
␍
</div>␍
␍
<input type="button" onclick="formSubmit()" class="btn btn-gradient-success waves-effect waves-light" value="<?php echo $confirmcertificate; ?>"> ␍
</form>␍
</div> <!-- form-group -->␍
␍
</div> ␍
␍
␍
<!-- section confirm certificate -->␍
␍
␍
␍
␍
</div>␍
␍
<!--end form-->␍
</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'); ?>␍
</footer><!--end footer-->␍
</div>␍
<!-- end page content -->␍
</div>␍
<!-- end page-wrapper -->␍
␍
␍
␍
␍
<!-- jQuery -->␍
<script src="assets/js/jquery.min.js"></script>␍
<script src="assets/js/bootstrap.bundle.min.js"></script>␍
<script src="assets/js/metismenu.min.js"></script>␍
<script src="assets/js/waves.js"></script>␍
<script src="assets/js/feather.min.js"></script>␍
<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="assets/pages/jquery.form-wizard.init.js"></script>␍
␍
<!-- App js -->␍
<script src="assets/js/app.js"></script>␍
␍
<!-- Parsley js -->␍
<script src="../../plugins/parsleyjs/parsley.min.js"></script>␍
<script src="../assets/pages/jquery.validation.init.js"></script> ␍
␍
</body>␍
␍
</html>