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
| <?php
require('connexion.php');
session_start();//on demarre la session
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Description" content="IDERGANE" />
<meta name="Keywords" content="your, keywords" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Distribution" content="Global" />
<meta name="Author" content="mmm@gmail.com" />
<meta name="Robots" content="index,follow" />
<link href="cons.css" rel="stylesheet" type="text/css" />
<title>application</title>
</head>
<body>
<?php if(isset($_SESSION['Nom'])){ ?>
<div id="page">
<div id="entete">
<div id="logo-text">Bienvenue <?php echo "".$_SESSION['Nom']." ".$_SESSION['Prenom']; ?></div>
<div id="slogan"><a href="deconnexion.php">Se deconnecter</a></div>
</div>
<div id="espace1"></div>
<div id="corps">
<div id="nav">
<ul id="menu">
<li id="current"><a href="acceuil.php">Acceuil</a></li>
<li><a href="facturation.php">Facturation</a></li>
<li><a href="action.php">Enregistrer action </a></li>
<li><a href="pv.php">Enregistrer PV</a></li>
<li><a href="cons.php">Consultation</a></li>
<li><a href="administartion.php">Administration</a></li>
</ul>
</div>
<div id="main">
<fieldset id="field">
<legend>CONSULTATION</legend>
<form class="form_action" method="post" action="inventaire.php">
<table>
<tr>
<td align="right">
<label>Recherche Par Detenteur</label>
</td>
<td align="left">
<select name="detenteur">
<option value="Tous">Tous</option>
<?php
$req = mysql_query('SELECT * FROM service ORDER BY libelle') or die(mysql_error());
while ($donnees = mysql_fetch_array($req))
{
?>
<option value="<?php echo $donnees['Service_Id'] ?>"><?php echo $donnees['libelle'] ?></option>
<?php
}
?>
</select>
</td>
<td align="left">
<input type="submit" value="Chercher" /><br />
</td>
<td align="left">
<a href="generation.php?generer=1">Exporter les donnees en Excel</a>
</td>
</tr>
</table>
</form>
<table border="0" cellpadding="3" cellspacing="" >
<tr>
<th width="80px">PNNL</th>
<th width="80px">SNNL</th>
<th width="80px">NININ</th>
<th width="80px">DESIGNATION</th>
<th width="80px">PV</th>
<th width="80px">CAT</th>
<th width="80px">PU</th>
<th width="80px">ACTION</th>
<th width="80px">ANNEE</th>
</tr>
<?php
$_SESSION['detenteur']=$_POST['detenteur'];
$req2=mysql_query("SELECT * FROM materiel INNER JOIN mat_sn ON materiel.ACTION=mat_sn.mat_PN WHERE
mat_sn.Service_Id ='".$_POST['detenteur']."' ORDER BY ACTION")or die(mysql_error());
while($don1=mysql_fetch_array($req2) or die(mysql_error()))
{
?>
<tr>
<td><?php echo $don1['PNNL'] ?></td>
<td><?php echo $don1['SNNL'] ?></td>
<td ><?php echo $don1['NININ'] ?></td>
<td ><?php echo $don1['Designation'] ?></td>
<td ><?php echo $don1['PV'] ?></td>
<td><?php echo $don1['CAT']?></td>
<td><?php echo $don1['PU'] ?></td>
<td><?php echo $don1['ACTION'] ?></td>
<td><?php echo $don1['ANNEE'] ?></td>
</tr>
<?php
}
?>
</table>
</fieldset>
</div>
<?php
}
else
{
require('deconnexion.php');
}
?>
</div>
<div id="espace2"></div>
<div id="pied">
<center>
© 2011<strong>triami conception</strong> |
<a href="mailto:
">Design by: N.IDENE </a>
<a href="index.php">Home</a> | </a>
<a href="contact.php">Contact</a>
</center>
</div>
</div>
</html> |
Partager