162 lines
2.4 KiB
PHP
Executable File
162 lines
2.4 KiB
PHP
Executable File
<?php
|
|
session_start();
|
|
?>
|
|
<html>
|
|
<head>
|
|
<title>
|
|
Partie Membres
|
|
</title>
|
|
<link href="../style.css" rel="stylesheet" type="text/css">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
|
|
<!--
|
|
a:link {
|
|
color: #FFFFFF;
|
|
text-decoration: none;
|
|
}
|
|
a:visited {
|
|
color: #FFFFFF;
|
|
text-decoration: none;
|
|
}
|
|
a:hover {
|
|
color: #FFFFFF;
|
|
text-decoration: underline;
|
|
}
|
|
a:active {
|
|
color: #FFFFFF;
|
|
text-decoration: none;
|
|
}
|
|
-->
|
|
</style></head>
|
|
<body class="bgcolor" text="white">
|
|
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<br>
|
|
|
|
<?php
|
|
if (isset($_SESSION['client']))
|
|
{
|
|
require("../connexion.php");
|
|
$conn = mysql_connect($host, $user, $password);
|
|
mysql_select_db($bdd) or die("Impossible d'ouvrir la base de donnee $bdd");
|
|
|
|
$requete1 = "select idcmde,datecmde,montantcmde,etatcmde,modepaiement,message,idcli from commande where idcli='$idcli'";
|
|
$result1=mysql_query($requete1) or die ("Erreur SQL :$requete1<br>".mysql_error()."...");
|
|
$i=0;
|
|
while ($ligne1=mysql_fetch_row($result1))
|
|
{
|
|
$idcmde=$ligne1[0];
|
|
$datecmde=$ligne1[1];
|
|
$montantcmde=$ligne1[2];
|
|
$etatcmde=$ligne1[3];
|
|
$modepaiement=$ligne1[4];
|
|
$message=$ligne1[5];
|
|
$idcli=$ligne1[6];
|
|
$i++;
|
|
if ($idcmde) {
|
|
if ($i==1)
|
|
{
|
|
?>
|
|
<table border=0 align="center">
|
|
<tr align=center>
|
|
<td>
|
|
date
|
|
</td>
|
|
<td>
|
|
mo
|
|
</td>
|
|
<td>
|
|
Etat
|
|
</td>
|
|
<td>
|
|
Mode de paiement
|
|
</td>
|
|
<td>
|
|
Commentaires
|
|
</td>
|
|
<td> </td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
<tr align=center>
|
|
<td>
|
|
<br>
|
|
<?php
|
|
print $datecmde;
|
|
?>
|
|
<br> 
|
|
</td>
|
|
<td>
|
|
<?php
|
|
print $montantcmde;
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php
|
|
if ($etatcmde=="print")
|
|
{
|
|
print "En cours";
|
|
}
|
|
else
|
|
{
|
|
print $etatcmde;
|
|
}
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php
|
|
print $modepaiement;
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php
|
|
print $message;
|
|
?> 
|
|
</td>
|
|
<td>
|
|
<a href="detailcmde.php?idcmde=<?php print $idcmde?>">Detail</a>
|
|
</td>
|
|
</tr>
|
|
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
</table>
|
|
<?php
|
|
if ($i==0)
|
|
{
|
|
?>
|
|
<table align="center">
|
|
<tr>
|
|
<td>
|
|
Aucune commande enregistrée
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<?php
|
|
}
|
|
?>
|
|
<?php
|
|
} else {
|
|
?>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<a href="index.php">Retour</a>
|
|
</body>
|
|
</html>
|