321 lines
12 KiB
PHP
321 lines
12 KiB
PHP
|
|
<?php
|
|
include('include/headscript.php'); ?>
|
|
<?php
|
|
// pickup the get variable
|
|
if (isset($_POST["idtrf"])) {
|
|
$idtrf=$_POST["idtrf"]; }
|
|
if (isset($_GET["idtrf"])) {
|
|
$idtrf=$_GET["idtrf"]; }
|
|
|
|
|
|
|
|
if (isset($_GET["codestep"])) {
|
|
$code=$_GET["codestep"];
|
|
|
|
$InsertQuery = new WA_MySQLi_Query($cmctrfdb);
|
|
$InsertQuery->Action = "insert";
|
|
$InsertQuery->Table = "wheretrfstep";
|
|
$InsertQuery->bindColumn("idtrf", "i", "$idtrf", "WA_DEFAULT");
|
|
$InsertQuery->bindColumn("code", "i", "$code", "WA_DEFAULT");
|
|
$InsertQuery->saveInSession("");
|
|
$InsertQuery->execute();
|
|
$InsertGoTo = "";
|
|
|
|
$InsertQuery->redirect($InsertGoTo);
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
<?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");
|
|
$idarticletype=$trfnumberfinal->getColumnVal("idarticletype");
|
|
?>
|
|
<?php $idcert=$trfnumberfinal->getColumnVal("idcertification") ?>
|
|
<?php
|
|
$certname = new WA_MySQLi_RS("certname",$cmctrfdb,1);
|
|
$certname->setQuery("SELECT * FROM certificationtype WHERE certificationtype.idcertificationtype='$idcert'");
|
|
$certname->execute();?>
|
|
<?php
|
|
$chemicalagentlist = new WA_MySQLi_RS("chemicalagentlist",$cmctrfdb,0);
|
|
$chemicalagentlist->setQuery("SELECT * FROM chemicalagent ORDER BY chemicalagent.name_chemicalagent");
|
|
$chemicalagentlist->execute();
|
|
?>
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
<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" />
|
|
|
|
<!-- 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" />
|
|
|
|
|
|
<!-- submit form with button -->
|
|
<style>
|
|
body {
|
|
font-family: arial;
|
|
}
|
|
.hide {
|
|
display: none;
|
|
}
|
|
p {
|
|
font-weight: bold;
|
|
}
|
|
</style>
|
|
<script>
|
|
function formSubmit() {
|
|
document.forms["myForm"].submit();
|
|
}
|
|
</script>
|
|
<script>
|
|
|
|
function show1(){
|
|
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>
|
|
|
|
</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);">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">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="media">
|
|
|
|
<?php include('include/appform.php'); ?>
|
|
</div><!--end media-->
|
|
|
|
</div><!--end card-body-->
|
|
</div><!--end card-->
|
|
|
|
<div class="progress mb-4">
|
|
<div class="progress-bar" role="progressbar" style="width: 95%;" aria-valuenow="95" aria-valuemin="0" aria-valuemax="100">95%</div>
|
|
</div>
|
|
<!-- card for optional TRF -->
|
|
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<h4 class="mt-0 header-title"><?php echo $addparameterstitle; ?></h4>
|
|
<p class="text-muted mb-3"><?php echo $addparameterstitle_help; ?></p>
|
|
|
|
<form action="declaration.php" method="post" name="myForm" class="was-validated">
|
|
<div class="form-group">
|
|
<label for="reportlanguage"><?php echo $languagereporttitle; ?></label>
|
|
<select class="form-control" id="reportlanguage">
|
|
<option><?php echo $italianlang; ?></option>
|
|
<option><?php echo $englishlang; ?></option>
|
|
<option><?php echo $itaenglang; ?></option>
|
|
<option><?php echo $otherlang; ?></option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="certificatelanguage"><?php echo $languagecertificatetitle; ?></label>
|
|
<select class="form-control" id="certificatelanguage">
|
|
<option><?php echo $italianlang; ?></option>
|
|
<option><?php echo $englishlang; ?></option>
|
|
<option><?php echo $itaenglang; ?></option>
|
|
<option><?php echo $otherlang; ?></option>
|
|
</select>
|
|
</div>
|
|
|
|
|
|
<?php if ($idcert!=5) { ?>
|
|
<p><?php echo $reportheadertitle; ?></p>
|
|
<input type="radio" name="tabreport" value="igotnone" onclick="show1();" />
|
|
<?php echo $tometitle; ?>
|
|
<input type="radio" name="tabreport" value="igottwo" onclick="show2();" />
|
|
<?php echo $toothertitle; ?>
|
|
<div id="div1" class="hide">
|
|
<hr><p><?php echo $insertdatacontact; ?></p>
|
|
<?php
|
|
// define kind of conctacts
|
|
$kindofcontacts="";
|
|
include('include/contactformoption.php'); ?>
|
|
</div>
|
|
<br>
|
|
<br>
|
|
<?php } ?>
|
|
<?php if ($idcert!=5) { ?>
|
|
<p><?php echo $certificateheadertitle; ?></p>
|
|
<input type="radio" name="tabcertificate" value="igotnone" onclick="show3();" />
|
|
<?php echo $tometitle; ?>
|
|
<input type="radio" name="tabcertificate" value="igotfour" onclick="show4();" />
|
|
<?php echo $toothertitle; ?>
|
|
<input type="radio" name="tabcertificate" value="igotnone" onclick="show3();" />
|
|
<?php echo $asabovecontact; ?>
|
|
<div id="div3" class="hide">
|
|
<hr><p> <?php echo $insertdatacontact; ?></p>
|
|
<?php $kindofcontacts=""; ?>
|
|
<?php include('include/contactformoption.php'); ?>
|
|
</div>
|
|
<br>
|
|
<br>
|
|
<?php } ?>
|
|
<p><?php echo $invoiceheadertitle; ?></p>
|
|
<input type="radio" name="tabinvoice" value="igotnone" onclick="show5();" />
|
|
<?php echo $tometitle; ?>
|
|
<input type="radio" name="tabinvoice" value="igotsix" onclick="show6();" />
|
|
<?php echo $toothertitle; ?>
|
|
<input type="radio" name="tabinvoice" value="igotnone" onclick="show5();" />
|
|
<?php echo $asabovecontact; ?>
|
|
<div id="div5" class="hide">
|
|
<hr><p> <?php echo $insertdatacontact; ?></p>
|
|
<?php $kindofcontacts=""; ?>
|
|
<?php include('include/contactformoption.php'); ?>
|
|
</div>
|
|
<br>
|
|
<br>
|
|
<p><?php echo $sendofferanddocument; ?></p>
|
|
<div class="form-row"><br>
|
|
|
|
<div class="col-md-3 mb-3">
|
|
<label for="validationServer01"><?php echo $contactnametitle; ?></label>
|
|
<input type="text" class="form-control" id="validationServer01" name="contactsendmail" placeholder="<?php echo $contactnametitle; ?>" required="">
|
|
|
|
</div>
|
|
|
|
<div class="col-md-3 mb-3">
|
|
<label for="validationServerUsername">Email</label>
|
|
<div class="input-group">
|
|
<div class="input-group-prepend">
|
|
<span class="input-group-text" id="inputGroupPrepend3">@</span>
|
|
</div>
|
|
<input type="text" class="form-control" id="validationServerUsername" name="emailsendmail" placeholder="Email" aria-describedby="inputGroupPrepend3" required="">
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php if ($idcert!=5) { ?>
|
|
<p><?php echo $surveillancetitle; ?></p>
|
|
|
|
<div class="col-md-3 mb-3">
|
|
<select class="form-control" id="exampleFormControlSelect1">
|
|
<option>No</option>
|
|
<option><?php echo $modulec2; ?></option>
|
|
<option><?php echo $moduled; ?></option>
|
|
|
|
|
|
</select>
|
|
</div>
|
|
<?php } ?>
|
|
<br>
|
|
<input type="hidden" name="idtrf" id="idtrf" value="<?php echo($trfnumberfinal->getColumnVal("idtrfdetails")); ?>">
|
|
|
|
<input type="button" onclick="formSubmit()" class="btn btn-gradient-success waves-effect waves-light" value="<?php echo $nextsteptitle; ?>">
|
|
|
|
</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>
|
|
|
|
</body>
|
|
|
|
</html>
|