1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
| <?php
$hostname_telecom = "localhost";
$database_telecom = "suged";
$username_telecom = "root";
$password_telecom = "";
$telecom = mysql_connect($hostname_telecom, $username_telecom, $password_telecom) or die(mysql_error());
mysql_select_db($database_telecom ,$telecom) or die ('erreur de connexion base');
?>
<html>
<head>
<title>detail client</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="file:///C|/Documents%20and%20Settings/FATNASSI%20DALI/Bureau/Editeur/tableau.css" rel="stylesheet" type="text/css">
<script language="Javascript">
<!--
function imprimer(){window.print();}
//-->
</script>
</head>
<body marginheight="20" bgcolor="#fffcd9">
<div align="left">
<p>
<input name="imprimer" onClick="imprimer()" type="button" value="Imprimer cette page">
</p>
<?php
//requête de travail
$numtel=$_GET["numtel"];
$requete="select référance, observation, nom ,prenom, adresse,adressed, téte, amorcetéte ,couleurtéte ,distriubution, amorcedist ,couleurdist from déranger , abonné , position
where déranger.numtel=$numtel and abonné.numtel=$numtel and position.numtel=$numtel ";
$resultat=mysql_query($requete) or die(mysql_error());
while ($row=mysql_fetch_row($resultat))
{
$nom=$row[0];
$prénom=$row[1];
$adresse=$row[2];
$référance=$row[3];
$observation=$row[5];
$téte=$row[6];
$amorcet=$row[7];
$couleurt=$row[8];
$distribution=$row[9];
$amorced=$row[10];
$couleurd=$row[11];
?>
<table width="85%" border="0">
<tr>
<td width="32%">Table Essai</td>
<td width="36%">Réferance drangement</td>
<td width="32%">kairouan le 05-Mar-2009</td>
</tr>
</table>
<table width="75%" border="0">
<tr>
<td><div align="center">N d'appel:</div></td>
</tr>
</table>
<p><span class="style2"><strong><font face="Comic Sans MS">Detail sur client
et type de dérangement</font></strong></span></p>
<table width="84%" border="0">
<tr>
<td width="61%" height="34">Nom et Prenom</td>
<td width="39%"><?php echo $nom ?></td>
</tr>
<tr>
<td height="39">Adresse</td>
<td><?php echo $adresse ?></td>
</tr>
<tr>
<td height="56">Position</td>
<td><table width="100%" border="0">
<tr>
<td>T</td>
<td>A</td>
<td>C</td>
<td>D</td>
<td>A</td>
<td>C</td>
</tr>
<tr>
<td><?php echo $téte ?></td>
<td><?php echo $amorcet ?></td>
<td><?php echo $couleurt ?></td>
<td><?php echo $distribution ?></td>
<td><?php echo $amorced ?></td>
<td><?php echo $couleurd ?></td>
</tr>
</table></td>
</tr>
<tr>
<td height="52">Date Essai</td>
<td><?php echo $Date= date("Y-m-j H:i:s"); ?></td>
</tr>
<tr>
<td height="27">Observation</td>
<td><?php echo $observation ?></td>
</tr>
</table>
<?php } ?>
<table width="50%" border="0" align="left">
<tr>
<td height="24">Responsable d'Essai</td>
</tr>
<tr>
<td height="27">
<div align="left">Constatation</div></td>
</tr>
<tr>
<td height="32">Aiguillage </td>
</tr>
</table>
<div align="right">
<table width="29%" border="0" align="center">
<form action="typederangement.php" method="Post">
<tr>
<td><input name="responsableessai" type="text" size="12" maxlength="256"></td>
</tr>
<tr>
<td><select name="constatation">
<option value="ccl">C.C.L</option>
<option value="be">BON ESSAI</option>
<option value="suspendu">SUSPENDU</option>
</select></td>
</tr>
<tr>
<td height="28">
<select name="aiguillage">
<option>Boucle+Terre</option>
<option>Boucle</option>
<option>Courant+Isolement</option>
<option>carte abonné effectueuse</option>
<option>Courant étranger</option>
<option>Isolement</option>
<option>Melange</option>
<option>Reglette</option>
<option>Terre+Fil</option>
</select></td>
<td><input type="hidden" name="numtel" value="<?php $numtel=$_GET["numtel"]; ?>"> </td> //le variable
</tr>
<tr><td><input name="valider" type="submit" value="valider"></td></tr>
</form>
</table>
</div>
</div>
</body>
</html>
typederangement
<?php
$hostname_telecom = "localhost";
$database_telecom = "suged";
$username_telecom = "root";
$password_telecom = "";
$telecom = mysql_connect($hostname_telecom, $username_telecom, $password_telecom) or die(mysql_error());
mysql_select_db($database_telecom ,$telecom) or die ('erreur de connexion base');
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
$numtel=$_POST["numtel"]; //c'est ca le variable
$responsableessai=$_POST["responsableessai"];
$aiguillage=$_POST["aiguillage"];
$constatation=$_POST["constatation"];
$requete="insert into typedérangement (numteld,responsableessai,resultatessai,constatation,date )
values ('".$numtel."', '".$responsableessai."', '".$aiguillage."', '".$constatation."', '".$dateessai."')";
$resultat=mysql_query($requete) or die(mysql_error());
?>
</body>
</html> |
Partager