ZnoteAAC/layout/widgets/houses.php
Znote 203fe3d5ae New layout (Znote AAC AtomIO)
Layout is primarily changed to this because the old layout had obsolete javascript dependencies.
I still want to make another default layout eventually, which is mobile friendly.
This layout has a very nice character search widget though
that looks for names realtime and displays them in a list beside the search.
2020-06-12 22:14:50 +02:00

20 lines
626 B
PHP

<div class="well widget">
<div class="header">
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" ;?>">
<?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>
</div>