| Current Path : /home/a/t/a/ataenra/www/ATA/INTRANET/Tech/ |
| Current File : /home/a/t/a/ataenra/www/ATA/INTRANET/Tech/mes.php |
<?php
require '../Outils/co.php';
$ID=$_GET['ID'];
$_SESSION['IDchantier']=$ID;
$nom = $_SESSION['IDchantier'];
if (isset($_POST['testo'])&&($_POST['testo'] == "Telecharger")) {
$nom = $_SESSION['IDchantier'];
//PHOTO DEMARRAGE
// Recup extension des fichiers
if(isset($_FILES['testo1']) && $_FILES['testo1']['error'] === 0) {
$filenamep1 = $_FILES["testo1"]["name"];
$extensionp1 = pathinfo($filenamep1, PATHINFO_EXTENSION);
$newnamep1 = "testo1";
$cheminp1 ="../../FICHIERS/$nom/Chantier/$newnamep1$nom.$extensionp1";
if (move_uploaded_file($_FILES["testo1"]["tmp_name"], $cheminp1)) {
echo "<h4>Le fichier de mise en service a été téléchargé avec succès.\n</h4>";
} else {
echo "<h4>Fichiers non téléchargés
Voici plus d'informations :\n</h4>";
}
}
header("location:../../../index.php/techgp");
//echo '<a class="btn btn-primary" href="../../../index.php/techgp">OK</a>';
} else {
?>
<!--PAGE DE TELECHARGEMENT DES PHOTOS-->
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<!--<link href="css/bootstrap-4.4.1.css" rel="stylesheet">-->
<link href="../Outils/css/style2ph.css" rel="stylesheet" type="text/css">
<title>FORMULAIRE POINTAGE</title>
</head>
<body>
<div class="containerPage">
<!--FORMULAIRE PAGE 1-->
<div class="containerSection">
<span class="align-middle"><strong>FORMULAIRE UPLOAD MISE EN SERVICE GAZ <?php echo $ID; ?></strong></span>
</div>
<div class="container1">
<form method="post" autocomplete="off" enctype="multipart/form-data">
<h5><strong>Dossier technique TESTO PDF</strong></h5>
<div class="row">
<div class="col-md-6">
<h5><strong>Fichier Testo Mise en service :</strong></h5>
<input name="testo1" type="file" required/><br/><br/>
</div>
</div>
</div>
<div class="row" >
<div class="col-md-3" >
<img src="../Outils/required/ATA_logo_horiz.jpg" alt="ISO" width=100% class="img-responsive" />
</div>
<div class="col-md-6" >
<p class="text-center">Formulaire Propulsé par</p>
<p class="text-center">ATA-ENRgies 2023</p>
</div>
<div class="col-md-3" >
<input class="btn btn-success" type="submit" name="testo" value="Telecharger">
</div>
</div>
</form>
</div>
<?php } ?>
</body>
</html>