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
| <?php
require_once "connect.php";
session_start();
if($_SESSION['login']!='admin')
{
echo"Seul l'administrateur a acces a cette page, bonne journée";
die();
}
if($_SESSION['login']=='admin')
{
$sql2 = "SELECT * FROM demande ORDER BY `demande`.`num` ASC";
$result = mysql_query($sql2)or die(mysql_error());
while ($donnees = mysql_fetch_array($result) )
{
?>
<p>
<strong>numéro : </strong><?php echo $donnees['num']; ?><br />
<strong>date mise a jour : </strong><?php echo $donnees['datMAJ']; ?><br />
<strong>demandeur : </strong><?php echo $donnees['login']; ?><br />
<strong>fait le : </strong><?php echo $donnees['date']; ?><br />
<strong>pour la classe : </strong><?php echo $donnees['Classe']; ?> <br />
<strong>nombre de copié demandée : </strong><?php echo $donnees['nombrecopie']; ?><br />
<strong>dossier ou série : </strong>
<?php
if ($donnees['dossier/serie']==serie){
?>
<font color="red">serie</font>
<?php
}
else{
echo"dossier";
}
?>
<br />
<strong>recto ou recto/verso : </strong> <?php
if ($donnees['recto/recto-verso']==recto){
?>
<font color="red">recto</font>
<?php
}
else{
echo"reto/verso";
}
?><br />
<strong>format : </strong> <?php
if ($donnees['format']==a3){
?>
<font color="red">a3</font>
<?php
}
else{
echo"a4";
}
?><br />
<strong>agrafe : </strong><?php echo $donnees['agrafe']; ?><br />
<strong>etat : </strong><?php echo $donnees['etat']; ?> <br />
<a href="<?php$_SESSION['content_dir'].$donnees['login'].$donnees['time']?>">fichier joint</a>
</p>
<?php
}
}
?> |
Partager