formulaire pour remplir des ticket de panne
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

169 lines
7.6 KiB

<?php
3 years ago
include '../sessions/session.php';
?>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Tickets de panne</title>
3 years ago
<link href="../css/style.css" rel="stylesheet">
<script type="text/javascript" src="js/script.js" defer></script>
3 years ago
<a href="index.php"><img class="logo" src="../img/logo_PC.png" alt="logo_PC"></a>
</head>
<body id="page">
<?php
if ($_SESSION['login'] == 'referant') {
3 years ago
echo '<div class="container-field"><a class="button button--large" href="../referant/index.php">site référant</a></div>';
}
?>
<h1 id="titre">
Formulaire de panne informatique
</h1>
<form id='form' method="POST" action="cible/index.php">
3 years ago
<div class="container-field">
<?php
$titre = 'Date';
$sql_name = 'dates';
$type = 'date';
$error = 'Veuillez saisir une date';
include("include/champ.php");
?>
</div>
3 years ago
<div class="container-field">
<p>Détails :</p>
3 years ago
<img class="container-field__img container-field__img--check" src="../img/check.png" alt="check">
<img class="container-field__img container-field__img--excla" src="../img/excla.png" alt="exclamation">
3 years ago
<textarea class="container-field__field" rows="10" cols="30" name='details'></textarea><br>
<small>Error: Veuillez remplir ce champ</small>
</div>
3 years ago
<div class="container-field">
<?php
$titre = 'Lieu';
$sql_name = 'lieu';
$type = 'text';
$error = "Vous n'avez saisie de lieu";
include("include/champ.php");
?>
3 years ago
<div class="hint" onmouseleave='hideHelp(lieu)'>
<a class="hint__int" href="#" onmouseover=displayHelp(lieu)><img src="../img/int.png" alt="point_int" width=20px ></a>
<div class="hint__help" id="lieu">
<p>Entrez le nom du bâtiment dans lequel se trouve le matériel</p><br>
<code>Ex: bâtiment A</code>
</div>
</div>
3 years ago
</div>
3 years ago
<div class="container-field">
<?php
$titre = 'Salle';
$sql_name = 'salle';
$type = 'text';
$error = "Vous n'avez pas saisie de salle";
include("include/champ.php");
?>
3 years ago
<div class="hint" onmouseleave='hideHelp(salle)'>
<a class="hint__int" href="#" onmouseover=displayHelp(salle)><img src="../img/int.png" alt="point_int" width=20px ></a>
<div class="hint__help" id="salle">
<p>Entrez le nom de la salle dans lequel se trouve le matériel</p><br>
<code>Ex: A 11 codage</code>
3 years ago
</div>
</div>
</div>
3 years ago
<div class="container-field">
<?php
$titre = 'Position';
$sql_name = 'pos';
$type = 'text';
$error = 'Veuillez remplir ce champ';
include("include/champ.php");
?>
3 years ago
<div class="hint" onmouseleave='hideHelp(pos)'>
<a class="hint__int" href="#" onmouseover=displayHelp(pos)><img src="../img/int.png" alt="point_int" width=20px ></a>
<div class="hint__help" id="pos">
<p>Veillez fournir des présision sur la position du matériel</p><br>
<code>Ex: PC-42 au fond à droite</code>
3 years ago
</div>
</div>
</div>
3 years ago
<div class="container-field">
<p>Matériel :</p>
3 years ago
<img class="container-field__img container-field__img--check" src="../img/check.png" alt="check">
<img class="container-field__img container-field__img--excla" src="../img/excla.png" alt="exclamation">
3 years ago
<select class="container-field__field" name='materiel'>
<option value="UC">Unité Centrale</option>
<option value="IMP">Imprimante</option>
<option value="ECR">Ecran</option>
<option value="VID">Vidéo Projecteur</option>
<option value="TBI">Tableau Blanc Interactif</option>
</select>
<small>test</small>
</div>
3 years ago
<div class="container-field">
<?php
$titre = 'Marque';
$sql_name = 'marque';
$type = 'text';
$error = "Vous n'avez pas saisie la marque";
$help = true;
include("include/champ.php");
?>
3 years ago
<div class="hint" onmouseleave='hideHelp(marque)'>
<a class="hint__int" href="#" onmouseover=displayHelp(marque)><img src="../img/int.png" alt="point_int" width=20px ></a>
<div class="hint__help" id="marque">
<p>Veillez renseigner la marque du matériel</p><br>
<code>Ex: Asus</code>
3 years ago
</div>
</div>
</div>
3 years ago
<div class="container-field">
<?php
$titre = 'Model';
$sql_name = 'model';
$type = 'text';
$error = "Veuillez saisir le model";
include("include/champ.php");
?>
3 years ago
<div class="hint" onmouseleave='hideHelp(model)'>
<a class="hint__int" href="#" onmouseover=displayHelp(model)><img src="../img/int.png" alt="point_int" width=20px ></a>
<div class="hint__help" id="model">
<p>Veillez renseigner le modèle du matériel</p><br>
<code>Ex: Lattitude E6410</code>
3 years ago
</div>
</div>
</div>
3 years ago
<div class="container-field">
<?php
$titre = 'N° de série';
$sql_name = 'nserie';
$type = 'text';
$error = "Vous n'avez saisie le n° de série";
include("include/champ.php");
?>
3 years ago
<div class="hint" onmouseleave='hideHelp(nserie)'>
<a class="hint__int" href="#" onmouseover=displayHelp(nserie)><img src="../img/int.png" alt="point_int" width=20px ></a>
<div class="hint__help" id="nserie">
3 years ago
<p>Voici un exemple. Pour plus d'aide: <a href="#">ici</a> </p> <br>
<code>Ex: 3A42B14</code>
3 years ago
</div>
3 years ago
</div>
</div>
3 years ago
<div class="container-field">
<?php
$titre = 'Nom';
$sql_name = 'demandeur';
$type = 'text';
$error = 'Veulliez entrer votre nom';
include("include/champ.php");
?>
</div>
3 years ago
<div class="container-field">
<br>
3 years ago
<input class="container-field__field container-field__field--submit" type="submit" value="Valider">
</div>
</form>
</body>
</html>