layout aside cleanup

This commit is contained in:
Znote
2021-07-24 04:36:19 +02:00
parent f896b59e36
commit f011f782bd
4 changed files with 28 additions and 21 deletions

View File

@@ -3,17 +3,13 @@
Town list / houses
</div>
<div class="body">
<form action="houses.php" method="<?php if ($config['ServerEngine'] !== 'TFS_10') echo "post"; else echo "get" ;?>">
<select name="<?php if ($config['ServerEngine'] !== 'TFS_10') echo "selected"; else echo "id" ;?>">
<form action="houses.php" method="get">
<select name="id">
<?php
foreach ($config['towns'] as $id => $name)
echo '<option value="'. $id .'">'. $name .'</option>';
?>
</select>
<?php
/* Form file */
if ($config['ServerEngine'] !== 'TFS_10') Token::create();
?>
<input type="submit" value="Fetch houses">
</form>
</div>