MISE A JOUR DES INFORMATIONS DUN FORMULAIRES

Fermé
niass2015 Messages postés 1 Date d'inscription mercredi 11 avril 2012 Statut Membre Dernière intervention 11 avril 2012 - 11 avril 2012 à 13:36
Bonjour,

Merci de votre aide ci-dssous le message quand je fais des mise à jour dans un formulaire éditer

Notice: Undefined index: type in C:\Program Files\EasyPHP-5.3.6.0\www\GESTPARC\deplacement1.php on line 91

Notice: Undefined index: model in C:\Program Files\EasyPHP-5.3.6.0\www\GESTPARC\deplacement1.php on line 92

Notice: Undefined index: numserie in C:\Program Files\EasyPHP-5.3.6.0\www\GESTPARC\deplacement1.php on line 93

Notice: Undefined index: numprod in C:\Program Files\EasyPHP-5.3.6.0\www\GESTPARC\deplacement1.php on line 94

Notice: Undefined index: agentprop in C:\Program Files\EasyPHP-5.3.6.0\www\GESTPARC\deplacement1.php on line 95

Notice: Undefined index: lieudep in C:\Program Files\EasyPHP-5.3.6.0\www\GESTPARC\deplacement1.php on line 96

Notice: Undefined index: lieudar in C:\Program Files\EasyPHP-5.3.6.0\www\GESTPARC\deplacement1.php on line 97

Notice: Undefined index: motifdepl in C:\Program Files\EasyPHP-5.3.6.0\www\GESTPARC\deplacement1.php on line 98

Notice: Undefined index: nomatt in C:\Program Files\EasyPHP-5.3.6.0\www\GESTPARC\deplacement1.php on line 99

Notice: Undefined index: datedebut in C:\Program Files\EasyPHP-5.3.6.0\www\GESTPARC\deplacement1.php on line 100

Notice: Undefined index: datefin in C:\Program Files\EasyPHP-5.3.6.0\www\GESTPARC\deplacement1.php on line 101

Notice: Undefined index: nu in C:\Program Files\EasyPHP-5.3.6.0\www\GESTPARC\deplacement1.php on line



Ci-dessous mon code


<?php
function Message($msg)
{?>
<html>
<head>
<link href="images/logo_ecobank.jpeg" rel="icon" style="image/jpeg"/>
<style>
p
{
width:50%;
margin:auto;
margin-top:50px;
color:white;
font-size:1.3em;
font-family:algerian,serif,"times new roman";
text-align:center;
}
body
{
background-color:#004f7d;
}
</style>
<title> Note d'information </title>
</head>
<body>
<?php include('includes/entete.php'); ?>
<p align="center">
<?php echo $msg;?>
</p>
</body>
</html><?php
}


if (isset($_POST['raison']) && isset($_POST['numero_produit']) && isset($_POST['numero_serie'])
&& isset($_POST['model']) && isset($_POST['lieu_depart']) && isset($_POST['lieu_arrive']) && isset($_POST['nomatt']) && isset($_POST['date2'])
&& isset($_POST['datepc']) && isset($_POST['agent']) && isset($_POST['numero']) && isset($_POST['date1']))
{

$mad=$_POST['date1'];
$mad2=$_POST['date2'];
$nums=$_POST['numero'];
$raison=$_POST['raison'];
$agent=$_POST['agent'];
$numeroproduit=$_POST['numero_produit'];
$numeroserie=$_POST['numero_serie'];
$model=$_POST['model'];
$lieu_depart=$_POST['lieu_depart'];
$lieu_arrive=$_POST['lieu_arrive'];
$nomatt=$_POST['nomatt'];
$datepc=$_POST['datepc'];



$or="SqlServer";
$orr="sa";
$ore="";
$conne=odbc_connect($or,$orr,$ore);
$request="update Deplacement set Agent_proprietaire='$agent' , Lieu_depart='$lieu_depart' , Lieu_darrive='$lieu_arrive' , Motif_deplacement='$raison' , Nom_attribué='$nomatt' , Model='$model' , Numero_serie='$numeroserie' , Numero_produit='$numeroproduit' where Date_deplacement='$datepc' and Id_deplacement='$nums'";

$exec=odbc_exec($conne,$request);
$request1="select * from Deplacement where Date_deplacement='$datepc' and Id_deplacement='$nums'";



$exec1=odbc_exec($conne,$request1);
$execc1=odbc_fetch_array($exec1);


if (($exec) and ($execc1))
{



header("location: visualisationC2.php?do=$mad&do1=$mad2");
}

else

{
header("location: visualisationC3.php?do=$mad&do1=$mad2");
}

}



else
{
$type=$_GET['type'];
$model=$_GET['model'];
$numserie=$_GET['numserie'];
$numeroprod=$_GET['numprod'];
$agente=$_GET['agentprop'];
$lieudepe=$_GET['lieudep'];
$lieudare=$_GET['lieudar'];
$motife=$_GET['motifdepl'];
$nomatt=$_GET['nomatt'];
$deee=$_GET['datedebut'];
$dale=$_GET['datefin'];
$ide=$_GET['nu'];

?>

<HTML><HEAD>
<title>Gestion du Parc Informatique</title>
<META content="" name=keywords>
<META content="" name=description>
<META content="MSHTML 5.00.3700.6699" name=GENERATOR>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<SCRIPT language=JavaScript src="js/2SIMnu.js"></SCRIPT>
<link href="design/pied.css" rel="stylesheet" type="text/css"/>
<link href="design/corps.css" rel="stylesheet" type="text/css"/>
<link href="images/baniere.jpg" rel="icon" type="image/jpeg"/>
<LINK href="styles/GestionMnu.css" rel=stylesheet>
<link href="styles/onglets.css" rel="stylesheet" type="text/css">


<style type="text/css">
<!--
.Style3 {color: #FFFFFF}
-->
</style>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php include('includes/entete.php'); ?>

<table width="800" height="73%" align="center" class="bordtablorouj">

<tr>
<td valign="top" bgcolor="#EFEFEF" height="90%">

<table width="100%" height="70%" bgcolor="#EFEFEF">
<tr>
<td valign="middle">
<br><br><br><br>
<center>
<table width="550" border="0" align="center" bordercolor="#004f7d" bgcolor="#004f7d">
<td width="53%" align="center" ><input name="Retour" type="button" value="Retour" onClick="location.href='visualisationC5.php?do=<?php echo $deee ;?>&do1=<?php echo $dale; ?>'"></td>
</tr>
<table width="550" border="0" bgcolor="#004f7d">
<tr bgcolor="">
<td align="center" class="Titre3">MODIFICATION DEPLACEMENT</td></tr><tr>
<td width="100%" height="20" bgcolor="#004f7d">
<table align="center">

<tr>

<td>
</table> </td>
<tr>
<tr>
<td>
<table width="500" border="0" align="center" bordercolor="#013a4b" bgcolor="#FFFFFF">

<form name="decla" method="post" action="deplacement1.php" >
<input type="hidden" value="<?php echo $ide; ?>" name="numero">
<tr align="center">
<td width="53%" align="right">Type: </td>
<td width="47%" align="left"></td>
<label>
<td>

<input type="text" name="materiel" style="color:#999999" value="<?php echo $type;?>" onFocus="if(this.value=='<?php echo $type;?>'){ this.value = ''; this.style.color = '#000000'; }" onBlur="if (this.value == '') {this.value = '<?php echo $type;?>'; this.style.color = '#999999'; }" size="20" disabled="disabled"/>


</label></td>
</tr>
<tr align="center">
<td width="53%" align="right">Model : </td>
<td width="47%" align="left"></td>
<label>
<td>

<input type="text" name="model" style="color:#999999" value="<?php echo $model;?>" onFocus="if(this.value=='<?php echo $model;?>'){ this.value = ''; this.style.color = '#000000'; }" onBlur="if (this.value == '') {this.value = '<?php echo $model;?>'; this.style.color = '#999999'; }" size="20"/>
</label></td>
</tr>


<tr align="center">
<td width="53%" align="right">Numero serie : </td>
<td width="47%" align="left"></td>
<label>
<td>

<input type="text" name="numero_serie" style="color:#999999" value="<?php echo $numserie;?>" onFocus="if(this.value=='<?php echo $numserie;?>'){ this.value = ''; this.style.color = '#000000'; }" onBlur="if (this.value == '') {this.value = '<?php echo $numserie;?>'; this.style.color = '#999999'; }" size="20"/>
</label></td>
</tr>


<tr align="center">
<td width="53%" align="right">Numero produit : </td>
<td width="47%" align="left"></td>
<label>
<td>

<input type="text" name="numero_produit" style="color:#999999" value="<?php echo $numeroprod;?>" onFocus="if(this.value=='<?php echo $numeroprod;?>'){ this.value = ''; this.style.color = '#000000'; }" onBlur="if (this.value == '') {this.value = '<?php echo $numeroprod;?>'; this.style.color = '#999999'; }" size="20"/>
</label></td>
</tr>


<tr align="center">
<td width="53%" align="right">Agent proprietaire: </td>
<td width="47%" align="left"></td>
<label>
<td>
<input type="text" name="agent" style="color:#999999" value="<?php echo $agente;?>" onFocus="if(this.value=='<?php echo $agente;?>'){ this.value = ''; this.style.color = '#000000'; }" onBlur="if (this.value == '') {this.value = '<?php echo $agente;?>'; this.style.color = '#999999'; }" size="20"/>
</label></td>
</tr>




<tr align="center">
<td width="53%" align="right">Lieu depart : </td>
<td width="47%" align="left"></td>
<label>
<td>

<input type="text" name="lieu_depart" style="color:#999999" value="<?php echo $lieudepe;?>" onFocus="if(this.value=='<?php echo $lieudepe;?>'){ this.value = ''; this.style.color = '#000000'; }" onBlur="if (this.value == '') {this.value = '<?php echo $lieudepe;?>'; this.style.color = '#999999'; }" size="20"/>
</label></td>
</tr>


<tr align="center">
<td width="53%" align="right">Lieu darrive : </td>
<td width="47%" align="left"></td>
<label>
<td>
<input type="text" name="lieu_arrive" style="color:#999999" value="<?php echo $lieudare;?>" onFocus="if(this.value=='<?php echo $lieudare;?>'){ this.value = ''; this.style.color = '#000000'; }" onBlur="if (this.value == '') {this.value = '<?php echo $lieudare;?>'; this.style.color = '#999999'; }" size="20"/>
</label></td>
</tr>


<tr align="center">
<td width="53%" align="right">Motif deplacement : </td>
<td width="47%" align="left"></td>
<label>
<td>
<input type="text" name="raison" style="color:#999999" value="<?php echo $motife;?>" onFocus="if(this.value=='<?php echo $motife;?>'){ this.value = ''; this.style.color = '#000000'; }" onBlur="if (this.value == '') {this.value = '<?php echo $motife;?>'; this.style.color = '#999999'; }" size="20"/>
</label></td>
</tr>

<tr align="center">
<td width="53%" align="right">Nom attribué : </td>
<td width="47%" align="left"></td>
<label>
<td>
<input type="text" name="nomatt" style="color:#999999" value="<?php echo $nomatt;?>" onFocus="if(this.value=='<?php echo $nomatt;?>'){ this.value = ''; this.style.color = '#000000'; }" onBlur="if (this.value == '') {this.value = '<?php echo $nomatt;?>'; this.style.color = '#999999'; }" size="20"/>
</label></td>
</tr>



<input type="hidden" value="<?php echo $deee; ?>" name="date1">
<input type="hidden" value="<?php echo $dale; ?>" name="date2">
<table width="500" border="0" align="center" bordercolor="#013a4b" bgcolor="#FFFFFF">
<tr align="center"><td colspan="2"> </td></tr>
<tr align="center">
<td width="47%" align="right"><input type="submit" name="Submit" value="Valider" ></td>
<td width="53%" align="left" ><input type="reset" name="Annuler" value="Annuler"></td>
</tr>
</table>
</form>


</td>
</tr>
</table>

</center>


</td>
</tr>
</table></td>
<?php
//include('MenuT.php'); // Nous appelons notre menu

/*echo '</tr>';
echo '<tr bgcolor="">';
echo "<a href='index.php'>";
echo "<img src='images/bouton-retour-accueil.jpg' width='58' height='57'>";
echo "</a>";
echo '</td>
</tr>*/


?>


</tr>
</table>
</body>
<?php
require_once('includes/pied.php');
echo '</html>';

}
?>
A voir également: