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
|
<?php
session_start();
require_once('config.php');
require_once('verifications.php');
$titre_page='le titre de la page';
include_once('haut.php');
include ('nombre_online.php');
?>
<?php
include ('menu.php');
?>
<?php
///Jointure entre ressources joueurs pseudo et ressource commerce ////
$ID_joueur = $id;
$query_selection_ressources = '
SELECT commerce.id_joueur,
commerce.id_vente,
commerce.id_ressource,
commerce.Quantite,
commerce.prix,
commerce.voulu
FROM commerce
';
$requetes = mysql_query( $query_selection_ressources ) or die( mysql_error() );
//FIN//
?>
<?php
echo"<div id='moncadreachat'>
<table summary='Vente de ressource par Etat'>
<thead>
<tr>
<th id='ff2' headers='nav' scope='col' style=' width: 151px; height: 10px; background-color: #B572C6;'>Vendeur</th>
<th id='ff2' headers='nav' scope='col'style=' width: 150px; height: 10px; background-color: #B87AC7;'>Quantitée</th>
<th id='ff2' headers='nav' scope='col'style=' width: 150px; height: 10px; background-color: #A66EC1;'>Type de ressource</th>
<th id='ff2' headers='nav' scope='col'style=' width: 149px; height: 10px; background-color: #AD4FC4;'>Taux</th>
<th id='ff2' headers='nav' scope='col'style=' width: 148px; height: 10px; background-color: #A9469F;'>Ressource demandée</th>
</tr>
</thead>
";
echo "
<form method='post' action='acheterressources.php' enctype='multipart/form-data'>";
while($data=mysql_fetch_assoc($requetes))
{
foreach ($data as $box)
{
echo
"
<table summary='Vente de ressource par Etat'>
<tbody>
<tr>
<td id='ff2' headers='nav' scope='col'style=' width: 2px; height: 10px; background-color: #4B7CAC' ; >
<input align='center' type='checkbox' name='coche[]' value='$box'; /></td>
<td id='ff2'headers='nav'scope='col'style=' width: 124px; height: 10px; background-color: #4B7CAC ;' >
{$data["id_vente"]}</td>
<td id='ff2' headers='nav' scope='col'style=' width: 150px; height: 10px; background-color: #4B7CAC ;'>
{$data["Quantite"]}</td>
<td id='ff2' headers='nav' scope='col'style=' width: 150px; height: 10px; background-color: #4B7CAC ;'>
{$data["id_ressource"]}</td>
<td id='ff2' headers='nav' scope='col'style=' width: 149px; height: 10px; background-color: #4B7CAC ;'>
{$data["prix"]}</td>
<td id='ff2' headers='nav' scope='col'style=' width: 149px; height: 10px; background-color: #4B7CAC ;'>
{$data["voulu"]}</td>
</tr>
</table> "
;}
;}
echo"<input align='center' id='' name='ok' type='submit' value='acheter' /></form>";
?> |
Partager