Ik zit met het volgende probleem , namelijk de bushalte..
Als iemand op de haven wilt bieden staat er :
Soort Bieden tot Hoogste bod Bieden
bushalte Turijn 02-05-2009 / 00:00 € 5.000.000 Bied
Maar vanaf iemand op wilt gaan bieden krijg ik dit :
De volgende boden zijn al uitgebracht
Bod Door
Er zijn nog geen boden uitgebracht
Deze veiling loopt tot
Screen1 :
Screen2 :
Code van bushalte :
PHP
<?
$train = $_POST['train'];
$dituur = date(H);
$ditminuut = date(i);
$laatsteminuut = vloeren($ditminuut, 20);
$extraminuten = $laatsteminuut+20;
if($extraminuten == 20){$extraminuten = "20";}
$extrauur = $dituur;
if($extraminuten > 59){$extrauur = $dituur+1; $extraminuten = "00";}
if($extrauur > 24){$extrauur = 00;}
$uur = "$extrauur:$extraminuten";
$update = (date("Y-m-d"));
$update2 = "$update $uur:00";
if($train > 0){
if($data->contant >= 2000){
$error = niks;
$select = mysql_query("SELECT * FROM `bushalte` WHERE `stad`='$train'");
$select2 = mysql_fetch_object($select);
mysql_query("UPDATE `users` SET `vliegen`='$update2',`aankomst`='25',`contant`=`contant`-'2000',`aankomststad`='$train' WHERE `id`='$data->id'");
mysql_query("UPDATE `users` SET `buskaarten`=`buskaarten`+'1', `bank`=`bank`+'2000' WHERE `login`='$select2->eigenaar'");
$_SESSION['mission'] = "Reis naar een andere stad";
}
else{$error = 1;}
}
if($_GET['f'] == cancel){
$error = annuleren;
mysql_query("UPDATE `users` SET `rijden`='0000-00-00 00:00:00' WHERE `id`='$data->id'");
?>
<table width="100%">
<tr>
<td align="center">
<br><br><br><br>
<table class="div_popup" align="center">
<tr>
<td>
Je reis is geannuleerd </td>
</tr>
<tr>
<td>
<br><br>
<a href="index.php?a=bushalte" class="msg_ok">Klik hier indien je niet automatisch verder gaat.</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<script language="javascript">
setTimeout("document.location.href='index.php?a=bushalte'",(2000*2));
</script>
</div>
</td>
</tr>
</table>
</td>
<?}
if($error == niks){?>
<table width="100%">
<tr>
<td align="center">
<br><br><br><br>
<table class="div_popup" align="center">
<tr>
<td>
Het ticket is geboekt, je zal automatisch met de volgende bus meegaan </td>
</tr>
<tr>
<td>
<br><br>
<a href="index.php?a=bushalte" class="msg_ok">Klik hier indien je niet automatisch verder gaat.</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<script language="javascript">
setTimeout("document.location.href='index.php?a=bushalte'",(4000*2));
</script>
</div>
</td>
</tr>
</table>
</td>
<?}
if($error == 1){
?>
<table width="100%">
<tr>
<td align="center">
<br><br><br><br>
<table class="div_popup_error" align="center">
<tr>
<td style="color:red">
<b>FOUT!</b><br><br>Je hebt niet genoeg geld om deze reis te maken </td>
</tr>
<tr>
<td>
<br><br>
<a href="#" onclick="history.go(-1); return false" class="error_ok">OK</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
<?}
$dit1 = mysql_query("SELECT * FROM `bushalte` WHERE `stad`='$data->city'");
$dit = mysql_fetch_object($dit1);
if($dit->eigenaar == ""){
$error = eigenaar;
?>
<div class="title_bg">
<div class="title">Bushalte</div>
</div>
<div style="background-color:#dbd2b7; padding:10px; padding-top:4px;">
<table cellpadding="0" cellspacing="0" width="100%"><tr><td>
<br>
<img src='images/icons_gif/information.gif' align='top'>
<font color='#3673AF'>
<b>
Deze buslijn heeft nog geen eigenaar!<br>
Ga naar de veiling om de bushalte te kopen! </b>
</font>
<br>
<br>
<input type="button" name="cancel" value="Koop bushalte!" class="mod_submit" onclick="document.location.href = 'index.php?a=veiling'"><br>
</td></tr></table>
</div>
<table width='100%' cellspacing='2' cellpadding='2'>
<tr>
<td class='content_bottom'></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
<?
}
if($error == ""){
if($data->vliegen != "0000-00-00 00:00:00" && $data->aankomststad != 0){
$error = aanhetreizen;
$next = array("","Turijn","Palermo","Milaan","Rome","Catania","Corleone");
$next = $next[$data->aankomststad];
?>
<div class="title_bg">
<div class="title">bushalte</div>
</div>
<div style="background-color:#dbd2b7; padding:10px; padding-top:4px;">
<table cellpadding="0" cellspacing="0" width="100%"><tr><td>
<br>
<img src='images/icons_gif/information.gif' align='top'>
<font color='#3673AF'>
<b>
Je zit te wachten op de bus naar <?echo$next;?>...<br>
Deze reis vertrekt om <?echo$uur;?> uur </b>
</font>
<br>
<br>
<input type="button" name="cancel" value="Annuleer de reis!" class="mod_submit" onclick="document.location.href = 'index.php?a=bushalte&f=cancel'"><br>
<small>*Let op! Je krijg je geld niet meer terug bij annulering</small>
</td></tr></table>
</div>
<table width='100%' cellspacing='2' cellpadding='2'>
<tr>
<td class='content_bottom'></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
<?}}
if($error == ""){
$stations1 = mysql_query("SELECT * FROM `bushalte` WHERE `stad`='$data->city'");
$stations = mysql_fetch_object($stations1);
$station11 = mysql_query("SELECT * FROM `bushalte` WHERE `stad`='1'");
$station1 = mysql_fetch_object($station11);
$station22 = mysql_query("SELECT * FROM `bushalte` WHERE `stad`='2'");
$station2 = mysql_fetch_object($station22);
$station33 = mysql_query("SELECT * FROM `bushalte` WHERE `stad`='3'");
$station3 = mysql_fetch_object($station33);
$station44 = mysql_query("SELECT * FROM `bushalte` WHERE `stad`='4'");
$station4 = mysql_fetch_object($station44);
$station55 = mysql_query("SELECT * FROM `bushalte` WHERE `stad`='5'");
$station5 = mysql_fetch_object($station55);
$station66 = mysql_query("SELECT * FROM `bushalte` WHERE `stad`='6'");
$station6 = mysql_fetch_object($station66);
$turijn1 = mysql_query("SELECT * FROM `users` WHERE `city`='1'");
$turijn = mysql_num_rows($turijn1);
$palermo1 = mysql_query("SELECT * FROM `users` WHERE `city`='2'");
$palermo = mysql_num_rows($palermo1);
$milaan1 = mysql_query("SELECT * FROM `users` WHERE `city`='3'");
$milaan = mysql_num_rows($milaan1);
$rome1 = mysql_query("SELECT * FROM `users` WHERE `city`='4'");
$rome = mysql_num_rows($rome1);
$catania1 = mysql_query("SELECT * FROM `users` WHERE `city`='5'");
$catania = mysql_num_rows($catania1);
$corleone1 = mysql_query("SELECT * FROM `users` WHERE `city`='6'");
$corleone = mysql_num_rows($corleone1);
$turijn = number_format($turijn, 0, '.', '.');
$palermo = number_format($palermo, 0, '.', '.');
$milaan = number_format($milaan, 0, '.', '.');
$rome = number_format($rome, 0, '.', '.');
$catania = number_format($catania, 0, '.', '.');
$corleone = number_format($corleone, 0, '.', '.');
$stationowner11 = mysql_query("SELECT * FROM `users` WHERE `login`='$station1->eigenaar'");
$user1 = mysql_fetch_object($stationowner11);
$stationowner22 = mysql_query("SELECT * FROM `users` WHERE `login`='$station2->eigenaar'");
$user2 = mysql_fetch_object($stationowner22);
$stationowner33 = mysql_query("SELECT * FROM `users` WHERE `login`='$station3->eigenaar'");
$user3 = mysql_fetch_object($stationowner33);
$stationowner44 = mysql_query("SELECT * FROM `users` WHERE `login`='$station4->eigenaar'");
$user4 = mysql_fetch_object($stationowner44);
$stationowner55 = mysql_query("SELECT * FROM `users` WHERE `login`='$station5->eigenaar'");
$user5 = mysql_fetch_object($stationowner55);
$stationowner66 = mysql_query("SELECT * FROM `users` WHERE `login`='$station6->eigenaar'");
$user6 = mysql_fetch_object($stationowner66);
$online11 = mysql_query("SELECT * FROM `users` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `login`='$user1->login'");
$online22 = mysql_query("SELECT * FROM `users` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `login`='$user2->login'");
$online33 = mysql_query("SELECT * FROM `users` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `login`='$user3->login'");
$online44 = mysql_query("SELECT * FROM `users` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `login`='$user4->login'");
$online55 = mysql_query("SELECT * FROM `users` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `login`='$user5->login'");
$online66 = mysql_query("SELECT * FROM `users` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `login`='$user6->login'");
$online1 = mysql_num_rows($online11);
$online2 = mysql_num_rows($online22);
$online3 = mysql_num_rows($online33);
$online4 = mysql_num_rows($online44);
$online5 = mysql_num_rows($online55);
$online6 = mysql_num_rows($online66);
if($stations->eigenaar == ""){
$stations->eigenaar = niemand;
}
?>
<div class="title_bg">
<div class="title">Bushalte</div>
</div>
<div style="background-color:#dbd2b7; padding:10px; padding-top:4px;">
<table cellpadding="0" cellspacing="0" width="100%"><tr><td>
<table width='100%'>
<tr>
<td valign='top'>
Welkom in <b><?echo$city;?></b>!<br /><br />
De eigenaar van de bushalte is <b><?echo$stations->eigenaar;?></b>.<br /><br />
Je kan van deze bushalte naar een andere bushalte reizen.<br /><br />
De volgende Bus vertrekt om <?echo$uur;?> uur.<br /><br />
Voordelen van het reizen naar verschillende steden zijn onder meer dat de persoon die je probeert aan te vallen in dezelfde stad moet zijn en dat de drugskoersen per stad verschillen. </td>
<td>
<img src='images/kaart.gif' align='right' border='1'>
</td>
</tr>
</table>
<br>
<form method="POST" onsubmit="return checkError(this);">
<input type="hidden" name="sel" id="sel" value="">
<table width='100%' class="mod_list" cellspacing='2' cellpadding='2'>
<tr>
<td></td>
<td></td>
<td align='center'><b>Stad</b></td>
<td></td>
<td align='center'><b>Kosten</b></td>
<td></td>
<td align='center'><b>Inwoners</b></td>
<td></td>
<td align='center'><b>Eigenaar</b></td>
</tr>
<tr class='top'>
<td align='center' width='5%'>
<?if($data->city == 1){?> <?}?>
<?if($data->city != 1){?><input type="radio" name="train" value="1" onclick="document.getElementById('sel').value = 'true'"><?}?>
</td>
<td align='center' width='5%'><img src='images/icons_gif/world.gif'></td>
<td> Turijn</td>
<td align='center' width='5%'><img src='images/icons_gif/money.gif'></td>
<td align='center'>€ 2.000</td>
<td align='center' width='5%'><img src='images/icons_gif/chart_bar.gif'></td>
<td align='center'><?echo$turijn;?></td>
<?if($online1 > 0){?>
<td align='center' width='5%'><img src='images/icons_gif/status_online.gif'></td>
<?}else{?>
<td align='center' width='5%'><img src='images/icons_gif/status_offline.gif'></td>
<?}?>
<td align='center'>
<?if($user1->login == ""){?>
<a href="index.php?a=veiling"><b>Kopen</b></a>
<?}else{?>
<a href="index.php?a=profile&x=<?echo$user1->id?>"><?echo$user1->login?></a>
<?}?>
</td>
</tr>
<tr class='top'>
<td align='center' width='5%'>
<?if($data->city == 2){?> <?}?>
<?if($data->city != 2){?><input type="radio" name="train" value="2" onclick="document.getElementById('sel').value = 'true'"><?}?>
</td>
<td align='center' width='5%'><img src='images/icons_gif/world.gif'></td>
<td> Palermo</td>
<td align='center' width='5%'><img src='images/icons_gif/money.gif'></td>
<td align='center'>€ 2.000</td>
<td align='center' width='5%'><img src='images/icons_gif/chart_bar.gif'></td>
<td align='center'><?echo$palermo;?></td>
<?if($online2 > 0){?>
<td align='center' width='5%'><img src='images/icons_gif/status_online.gif'></td>
<?}else{?>
<td align='center' width='5%'><img src='images/icons_gif/status_offline.gif'></td>
<?}?>
<td align='center'>
<?if($user2->login == ""){?>
<a href="index.php?a=veiling"><b>Kopen</b></a>
<?}else{?>
<a href="index.php?a=profile&x=<?echo$user2->id?>"><?echo$user2->login?></a>
<?}?>
</td>
</tr>
<tr class='top'>
<td align='center' width='5%'>
<?if($data->city == 3){?> <?}?>
<?if($data->city != 3){?><input type="radio" name="train" value="3" onclick="document.getElementById('sel').value = 'true'"><?}?>
</td>
<td align='center' width='5%'><img src='images/icons_gif/world.gif'></td>
<td> Milaan</td>
<td align='center' width='5%'><img src='images/icons_gif/money.gif'></td>
<td align='center'>€ 2.000</td>
<td align='center' width='5%'><img src='images/icons_gif/chart_bar.gif'></td>
<td align='center'><?echo$milaan;?></td>
<?if($online3 > 0){?>
<td align='center' width='5%'><img src='images/icons_gif/status_online.gif'></td>
<?}else{?>
<td align='center' width='5%'><img src='images/icons_gif/status_offline.gif'></td>
<?}?>
<td align='center'>
<?if($user3->login == ""){?>
<a href="index.php?a=veiling"><b>Kopen</b></a>
<?}else{?>
<a href="index.php?a=profilex=<?echo$user3->id?>"><?echo$user3->login?></a>
<?}?>
</td>
</tr>
<tr class='top'>
<td align='center' width='5%'>
<?if($data->city == 4){?> <?}?>
<?if($data->city != 4){?><input type="radio" name="train" value="4" onclick="document.getElementById('sel').value = 'true'"><?}?>
</td>
<td align='center' width='5%'><img src='images/icons_gif/world.gif'></td>
<td> Rome</td>
<td align='center' width='5%'><img src='images/icons_gif/money.gif'></td>
<td align='center'>€ 2.000</td>
<td align='center' width='5%'><img src='images/icons_gif/chart_bar.gif'></td>
<td align='center'><?echo$rome;?></td>
<?if($online4 > 0){?>
<td align='center' width='5%'><img src='images/icons_gif/status_online.gif'></td>
<?}else{?>
<td align='center' width='5%'><img src='images/icons_gif/status_offline.gif'></td>
<?}?>
<td align='center'>
<?if($user4->login == ""){?>
<a href="index.php?a=veiling"><b>Kopen</b></a>
<?}else{?>
<a href="index.php?a=profile&x=<?echo$user4->id?>"><?echo$user4->login?></a>
<?}?>
</td>
</tr>
<tr class='top'>
<td align='center' width='5%'>
<?if($data->city == 5){?> <?}?>
<?if($data->city != 5){?><input type="radio" name="train" value="5" onclick="document.getElementById('sel').value = 'true'"><?}?>
</td>
<td align='center' width='5%'><img src='images/icons_gif/world.gif'></td>
<td> Catania</td>
<td align='center' width='5%'><img src='images/icons_gif/money.gif'></td>
<td align='center'>€ 2.000</td>
<td align='center' width='5%'><img src='images/icons_gif/chart_bar.gif'></td>
<td align='center'><?echo$catania;?></td>
<?if($online5 > 0){?>
<td align='center' width='5%'><img src='images/icons_gif/status_online.gif'></td>
<?}else{?>
<td align='center' width='5%'><img src='images/icons_gif/status_offline.gif'></td>
<?}?>
<td align='center'>
<?if($user5->login == ""){?>
<a href="index.php?a=veiling"><b>Kopen</b></a>
<?}else{?>
<a href="index.php?a=profile&x=<?echo$user5->id?>"><?echo$user5->login?></a>
<?}?>
</td>
</tr>
<tr class='top'>
<td align='center' width='5%'>
<?if($data->city == 6){?> <?}?>
<?if($data->city != 6){?><input type="radio" name="train" value="6" onclick="document.getElementById('sel').value = 'true'"><?}?>
</td>
<td align='center' width='5%'><img src='images/icons_gif/world.gif'></td>
<td> Corleone</td>
<td align='center' width='5%'><img src='images/icons_gif/money.gif'></td>
<td align='center'>€ 2.000</td>
<td align='center' width='5%'><img src='images/icons_gif/chart_bar.gif'></td>
<td align='center'><?echo$corleone;?></td>
<?if($online6 > 0){?>
<td align='center' width='5%'><img src='images/icons_gif/status_online.gif'></td>
<?}else{?>
<td align='center' width='5%'><img src='images/icons_gif/status_offline.gif'></td>
<?}?>
<td align='center'>
<?if($user6->login == ""){?>
<a href="index.php?a=veiling"><b>Kopen</b></a>
<?}else{?>
<a href="index.php?a=profile&x=<?echo$user6->id?>"><?echo$user6->login?></a>
<?}?>
</td>
</tr>
<tr height='20px'>
<td colspan='9'>
<input type='submit' name='koop' value='Koop kaartje' class="mod_submit">
</td>
</tr>
</table>
</td></tr></table>
</div>
<table width='100%' cellspacing='2' cellpadding='2'>
<tr>
<td class='content_bottom'></td>
</tr>
</table>
<script language="javascript">
function checkError(pForm){
var errormsg = '';
if(pForm.sel.value != 'true') errormsg += 'Je hebt geen station gekozen!<br>';
if(errormsg != ''){
showError(errormsg);
return false;
}
return true;
}
</script> </div>
</td>
</tr>
</table>
</td>
<?}?>
Toon Meer
Code van veiling :
PHP
<?
if($_GET['x'] != ""){
if(ctype_digit($_POST['bid'])){
$type = $_GET['type'];
$soort = array("bushalte","station","vliegveld");
$soort = $soort[$type];
$verkoop1 = mysql_query("SELECT * FROM `$soort` WHERE `eigenaar`='' AND `stad`='{$_GET['x']}'");
$verkoop = mysql_fetch_object($verkoop1);
$verkoop->soort = $_GET['type'];
if(isset($_POST['bid'])){
if($_POST['bid'] > $data->bank){
$error = nietgevonden;
?>
<table width="100%">
<tr>
<td align="center">
<br><br><br><br>
<table class="div_popup_error" align="center">
<tr>
<td style="color:red">
<b>FOUT!</b><br><br>Je hebt niet genoeg geld om dit bod uit te brengen </td>
</tr>
<tr>
<td>
<br><br>
<a href="#" onclick="history.go(-1); return false" class="error_ok">OK</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
<?}
else if($_POST['bid']-$verkoop->laatstebod < 50000){
$error = nietgevonden;
?>
<table width="100%">
<tr>
<td align="center">
<br><br><br><br>
<table class="div_popup_error" align="center">
<tr>
<td style="color:red">
<b>FOUT!</b><br><br>Je bod moet minstens €50.000,- hoger zijn dan het laatste bod </td>
</tr>
<tr>
<td>
<br><br>
<a href="#" onclick="history.go(-1); return false" class="error_ok">OK</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
<?}
if($error == ""){
$type = $_GET['type'];
$soort = array("bushalte","station","vliegveld");
$soort = $soort[$type];
$stad = $_GET['x'];
mysql_query("UPDATE `users` SET `bank`=`bank`-'{$_POST['bid']}' WHERE `id`='$data->id'");
mysql_query("UPDATE `users` SET `bank`=`bank`+'$verkoop->laatstebod' WHERE `login`='$verkoop->laatstebieder'");
$veilinglog = $_POST['bid'];
mysql_query("INSERT INTO `veilinglogs`(person,bod,stad,soort) values('$data->login','$veilinglog','{$_GET['x']}','$verkoop->soort')");
if($type == 1){
mysql_query("UPDATE `station` SET `laatstebod`='$veilinglog', `laatstebieder`='$data->login' WHERE `stad`='{$_GET['x']}'");
}
if($type == 2){
mysql_query("UPDATE `vliegveld` SET `laatstebod`='$veilinglog', `laatstebieder`='$data->login' WHERE `stad`='{$_GET['x']}'");
}
if($type == 3){
mysql_query("UPDATE `bushalte` SET `laatstebod`='$veilinglog', `laatstebieder`='$data->login' WHERE `stad`='{$_GET['x']}'");
}
$error = nietgevonden;
$_SESSION['mission'] = "Doe een bod op een veiling";
?>
<table width="100%">
<tr>
<td align="center">
<br><br><br><br>
<table class="div_popup" align="center">
<tr>
<td>
Het bod is geplaatst! </td>
</tr>
<tr>
<td>
<br><br>
<a href="index.php?a=veiling" class="msg_ok">Klik hier indien je niet automatisch verder gaat.</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<script language="javascript">
setTimeout("document.location.href='index.php?a=veiling'",(3000*2));
</script>
</div>
</td>
</tr>
</table>
</td>
<?}}
if($verkoop->stad == ""){
$error = nietgevonden;
?>
<table width="100%">
<tr>
<td align="center">
<br><br><br><br>
<table class="div_popup_error" align="center">
<tr>
<td style="color:red">
<b>FOUT!</b><br><br>Kan de gekozen veiling niet vinden </td>
</tr>
<tr>
<td>
<br><br>
<a href="#" onclick="history.go(-1); return false" class="error_ok">OK</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
<?}}
if($error != nietgevonden){
$error = bodcheck;
?>
<div class="title_bg">
<div class="title">Veiling</div>
</div>
<div style="background-color:#dbd2b7; padding:10px; padding-top:4px;">
<table cellpadding="0" cellspacing="0" width="100%"><tr><td>
<br>
De volgende boden zijn al uitgebracht<br><br>
<table width="100%" border="0" cellspacing="2" cellpadding="2" align="center" class="mod_list">
<tr>
<td width="5%"></td>
<td width="30%"><strong>Bod</strong></td>
<td width="5%"></td>
<td><strong>Door</strong></td>
</tr>
<?
mysql_query("DELETE FROM `veilinglogs` WHERE `stad`='{$_GET['x']}' AND `soort`='$verkoop->soort' AND `bod`>'$verkoop->laatstebod'");
$veiling1 = mysql_query("SELECT * FROM `veilinglogs` WHERE `stad`='{$_GET['x']}' AND `soort`='$verkoop->soort'");
$num = mysql_num_rows($veiling1);
if($num == 0){
$nummer = fout;
}
while($veiling = mysql_fetch_object($veiling1)){
$user1 = mysql_query("SELECT * FROM `users` WHERE `login`='$veiling->person'");
$user = mysql_fetch_object($user1);
$online1 = mysql_query("SELECT * FROM `users` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `login`='$user->login'");
$online = mysql_num_rows($online1);
if($online > 0){$letter = n;}else{$letter = ff;}
$bod = number_format($veiling->bod, 0, '.', '.');
?>
<tr>
<td width="5%" align="center"><img src="images/icons_gif/money.gif" border="0px"></td>
<td>€ <?echo$bod;?></td>
<td width="5%"align="center"><img src="images/icons_gif/status_o<?echo$letter;?>line.gif" title="O<?echo$letter;?>line"></td>
<td> <a href="index.php?a=profile&x=<?echo$user->id;?>"><?echo$user->login;?></a></td>
</tr>
<?}
if($nummer == fout){?>
<tr>
<td colspan="4">
<i>Er zijn nog geen boden uitgebracht</i>
</td>
</tr>
<?}?>
<tr>
<td colspan="4">
<i>Deze veiling loopt tot <?echo$verkoop->showtot;?></i>
</td>
</tr>
</table>
<br>
<form method="POST" action="index.php?a=veiling&x=<?echo$_GET['x'];?>&type=<?echo$_GET['type'];?>">
<table width="100%" class="mod_list">
<tr>
<td width="5%" align="center"><img src="images/icons_gif/money_euro.gif" border="0px"></td>
<td width="20%" style="padding:5px;"><b>Plaats een bod:</b></td>
<td style="padding:5px;"><input type="text" name="bid" maxlength="12" style="width: 200px" class="input"></td>
<td style="padding:5px;" align="center"><input type="submit" name="Submit" value="Plaats bod" class="mod_submit"></tD>
</tr>
<tr>
<td width="5%" align="center"><img src="images/icons_gif/information.gif" align="top"></td>
<td width="20%" style="padding:5px;" colspan="3">Zodra je een bod plaatst, zal dit geld van je bankrekening worden afgeschreven.Als een andere banditi daarna een hoger bod plaatst, krijg je het geld terug gestort.</td>
</tr>
</table>
</form>
</td></tr></table>
</div>
<table width='100%' cellspacing='2' cellpadding='2'>
<tr>
<td class='content_bottom'></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
<?
}}if($error == ""){?>
<div class="title_bg">
<div class="title">Veiling</div>
</div>
<div style="background-color:#dbd2b7; padding:10px; padding-top:4px;">
<table cellpadding="0" cellspacing="0" width="100%"><tr><td>
Op de veiling kun je stations, vliegvelden en bushaltes kopen. Wanneer je een een van deze in je bezit hebt moet je elk uur de kaartjes prijs betalen. Als tegenprestatie ontvang je de inkomsten als mensen van je station gebruik maken.<br>
<br>
<table width="100%" border="0" cellspacing="2" cellpadding="2" align="center" class="mod_list">
<tr>
<td width="30%"><strong>Soort</strong></td>
<td width="30%"><strong>Bieden tot</strong></td>
<td width="20%"><strong>Hoogste bod</strong></td>
<td width="20%"><strong>Bieden</strong></td>
</tr><?
$soort1 = mysql_query("SELECT * FROM `station` WHERE `eigenaar`='' ORDER BY `stad`");
while($soort = mysql_fetch_object($soort1)){
$stad = array("","Turijn","Palermo","Milaan","Rome","Catania","Corleone");
$stad = $stad[$soort->stad];
$laatstebod = number_format($soort->laatstebod, 0, '.', '.');
?>
<tr>
<td>
<a href="index.php?a=veiling&x=<?echo$soort->stad;?>&type=1">
Station <?echo$stad;?> </a>
</td>
<td><?echo$soort->showtot;?></td>
<td>€ <?echo$laatstebod;?></td>
<td>
<a href="index.php?a=veiling&x=<?echo$soort->stad;?>&type=1">
Bied </a>
</td>
</tr>
<?}
$soort1 = mysql_query("SELECT * FROM `vliegveld` WHERE `eigenaar`='' ORDER BY `stad`");
while($soort = mysql_fetch_object($soort1)){
$stad = array("","Turijn","Palermo","Milaan","Rome","Catania","Corleone");
$stad = $stad[$soort->stad];
$laatstebod = number_format($soort->laatstebod, 0, '.', '.');
?>
<tr>
<td>
<a href="index.php?a=veiling&x=<?echo$soort->stad;?>&type=2">
Vliegveld <?echo$stad;?> </a>
</td>
<td><?echo$soort->showtot;?></td>
<td>€ <?echo$laatstebod;?></td>
<td>
<a href="index.php?a=veiling&x=<?echo$soort->stad;?>&type=2">
Bied </a>
</td>
</tr>
<?}
$soort1 = mysql_query("SELECT * FROM `bushalte` WHERE `eigenaar`='' ORDER BY `stad`");
while($soort = mysql_fetch_object($soort1)){
$stad = array("","Turijn","Palermo","Milaan","Rome","Catania","Corleone");
$stad = $stad[$soort->stad];
$laatstebod = number_format($soort->laatstebod, 0, '.', '.');
?>
<tr>
<td>
<a href="index.php?a=veiling&x=<?echo$soort->stad;?>&type=3">
bushalte <?echo$stad;?> </a>
</td>
<td><?echo$soort->showtot;?></td>
<td>€ <?echo$laatstebod;?></td>
<td>
<a href="index.php?a=veiling&x=<?echo$soort->stad;?>&type=3">
Bied </a>
</td>
</tr>
<?}?>
</table>
</td></tr></table>
</div>
<table width='100%' cellspacing='2' cellpadding='2'>
<tr>
<td class='content_bottom'></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
<?}?>
Toon Meer