TFS 1.0: House auction system

Would be great if somebody could test it out properly for me. :)
This commit is contained in:
Stefan Brannfjell
2013-09-11 09:08:46 +02:00
parent d57f835c91
commit 6001abae5d
5 changed files with 143 additions and 16 deletions

View File

@@ -1,17 +1,17 @@
<div class="sidebar">
<h2>Search town list</h2>
<div class="inner">
<form action="houses.php" method="post">
<form action="houses.php" method="<?php if ($config['TFSVersion'] !== 'TFS_10') echo "post"; else echo "get" ;?>">
Select town:<br>
<select name="selected">
<select name="<?php if ($config['TFSVersion'] !== 'TFS_10') echo "selected"; else echo "id" ;?>">
<?php
foreach ($config['towns'] as $id => $name) echo '<option value="'. $id .'">'. $name .'</option>';
?>
</select>
<?php
/* Form file */
Token::create();
if ($config['TFSVersion'] !== 'TFS_10') Token::create();
?>
<input type="submit" value="Fetch houses">
</form>