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
| <?
session_start();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><head>
<title>Application intranet "Gestion de projets"</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="keywords" content="" >
<meta name="description" content="" />
<LINK rel="stylesheet" type="text/css" href="style.css">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #494949;
}
.Style20 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 10px;
}
.Style21 {
color: #D6E6FA;
font-size: 18px;
font-family: Arial, Helvetica, sans-serif;
font-style: italic;
}
.Style22 {color: #FF0000}
-->
</style>
<script type="text/javascript">
var foo=false;
function monusineagaz(){
if (foo) {
var parametres= 'resaisie.php\?num_inter='+document.forms[0].elements['num_inter'].value;
window.opener.location.href=parametres;
}
}
</script>
</head>
<title>index.htm</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body onbeforeunload="monusineagaz()">
<?
$connexion=mysql_connect('','root','bretagne') or die ('impossible de se connecter, veuillez ré-essayer');
$db = mysql_select_db('gestion', $connexion) or die ('La base de données ne peut pas être sélectionnée');
if($connexion) {
$query="SELECT * FROM intervenir,intervenant WHERE intervenir.Des_intervenant=intervenant.Nom AND intervenant.login='".$_SESSION['user']."';";
$result=mysql_query($query);
echo"<form><table border='1'>
<tr>
<td></td>
<td><font color='FAEBD7'>Nom</font></td>
<td><font color='FAEBD7'>Projet</font></td>
<td><font color='FAEBD7'>Agence</font></td>
<td><font color='FAEBD7'>Date</font></td>
<td><font color='FAEBD7'>Nombre de jours</font></td>
<td><font color='FAEBD7'>Commentaire</font></td>";
while($row=mysql_fetch_object($result)){
$tab = split('-',$row->Date);
$mois = $tab[1];
$date= $tab[2]."/".$tab[1]."/".$tab[0];
echo"
</tr>
<tr>
<td><input type='radio' name='num_inter' value='".$row->Num_intervention."'></td>
<td><font color='FAEBD7'>".$row->Des_intervenant."</font></td>
<td><font color='FAEBD7'>".$row->Ref_projet."</font></td>
<td><font color='FAEBD7'>".$row->Ref_agence."</font></td>
<td><font color='FAEBD7'>".$date."</font></td>
<td><font color='FAEBD7'>".$row->Nb_jours_realise."</font></td>
<td><font color='FAEBD7'>".$row->Commentaire_intervention."</font></td>";
}
echo"
</tr>
<tr>
<td colspan=7 align='center'><input type='submit' onclick= 'foo=true;window.opener.fermerpopup;' value='Modifier'><input type='submit' value='Fermer' onclick='foo=true;window.opener.closepopup();'></td>
</tr>
</table>
</form>";
}
?>
</body>
</html> |