<?php

 include('include/headscript.php'); ?>



<?php

   // pickup the get variable

   if (isset($_GET["idcertificationtype"])) {

       $idcertificationtype=$_GET["idcertificationtype"];

   }







?>





<?php

$certrecord = new WA_MySQLi_RS("certrecord",$cmctrfdb,1);

$certrecord->setQuery("SELECT * FROM certificationtype  WHERE certificationtype.idcertificationtype='$idcertificationtype'");

$certrecord->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 -->

<script>

function formSubmit() {

    document.forms["myForm"].submit();

}

</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">

							

							

							

						  <!-- card for additional info gloves -->

							

                          <!--end card-body-->

							

						  <!-- card for show requirements -->

							<div class="card">

                              <div class="card-body">

                                    <h4 class="mt-0 header-title">EDIT CERTIFICATION</h4>

                                

                              <form class="was-validated" action="admin-certtype.php" method="post" name="myForm">

							    <div class="form-group row">

                                   <label for="standardcode" class="col-sm-2 col-form-label text-right">Nome Certificazione (No M30)</label>

                                                <div class="col-sm-10">

                                                  <input class="form-control" type="text" value="<?php echo($certrecord->getColumnVal("name_certification")); ?>" id="name_certification" name="name_certification">

                                                </div>

                                </div>

								  

								  <div class="form-group row">

                                    <label for="itastdname" class="col-sm-2 col-form-label text-right">Descrizione (No M30)</label>

                                                <div class="col-sm-10">

                                                  <input class="form-control" type="text" value="<?php echo($certrecord->getColumnVal("description")); ?>" id="description" name="description">

                                                </div>

                                </div>

								

								 <div class="form-group row">

                                    <label for="itastdname" class="col-sm-2 col-form-label text-right">Descrizione ENG (No M30)</label>

                                                <div class="col-sm-10">

                                                  <input class="form-control" type="text" value="<?php echo($certrecord->getColumnVal("description_en")); ?>" id="description_en" name="description_en">

                                                </div>

                                </div>

								  

								  <div class="form-group row">

                                    <label for="itastdname" class="col-sm-2 col-form-label text-right">Revisione (No M30)</label>

                                                <div class="col-sm-10">

                                                  <input class="form-control" type="text" value="<?php echo($certrecord->getColumnVal("rev")); ?>" id="rev" name="rev">

                                                </div>

                                </div>

								  

							  <div class="form-group row">

                                    <label for="itastdname" class="col-sm-2 col-form-label text-right">Data (No M30)</label>

                                                <div class="col-sm-10">

                                                  <input class="form-control" type="date" value="<?php echo($certrecord->getColumnVal("date")); ?>" id="date" name="date">

                                                </div>

                                </div>

								 

								<div class="form-group row">

                                    <label for="itastdname" class="col-sm-2 col-form-label text-right">Nome Certificazione M30</label>

                                                <div class="col-sm-10">

                                                  <input class="form-control" type="text" value="<?php echo($certrecord->getColumnVal("m30namecert")); ?>" id="m30namecert" name="m30namecert">

                                                </div>

                                </div>

								

								   <div class="form-group row">

                                    <label for="itastdname" class="col-sm-2 col-form-label text-right">Descrizione M30</label>

                                                <div class="col-sm-10">

                                                  <input class="form-control" type="text" value="<?php echo($certrecord->getColumnVal("descriptionm30")); ?>" id="descriptionm30" name="descriptionm30">

                                                </div>

                                </div> 

								

								   <div class="form-group row">

                                    <label for="itastdname" class="col-sm-2 col-form-label text-right">Descrizione M30 EN</label>

                                                <div class="col-sm-10">

                                                  <input class="form-control" type="text" value="<?php echo($certrecord->getColumnVal("descriptionm30_en")); ?>" id="descriptionm30_en" name="descriptionm30_en">

                                                </div>

                                </div>

								  

								  

								  

					  <div class="form-group row">

                                    <label for="itastdname" class="col-sm-2 col-form-label text-right">Revisione M30</label>

                                                <div class="col-sm-10">

                                                  <input class="form-control" type="text" value="<?php echo($certrecord->getColumnVal("revm30")); ?>" id="revm30" name="revm30">

                                                </div>

                                </div>

							

							

							  <div class="form-group row">

								  <label for="itastdname" class="col-sm-2 col-form-label text-right">Data M30</label>

                                                <div class="col-sm-10">

                                                  <input class="form-control" type="date" value="<?php echo($certrecord->getColumnVal("datem30")); ?>" id="datem30" name="datem30">

                                                </div>

                                </div>

							

								  <br>



					<input type="hidden" name="idcertificationtype" id="idcertificationtype" value="<?php echo $idcertificationtype; ?>">

					<input type="hidden" name="formnameedit" id="formnameedit" value="stdeditform">

					<input type="button" onclick="formSubmit()" class="btn btn-gradient-success waves-effect waves-light" value="Aggiorna"><br>



							    </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>