Initial commit

This commit is contained in:
2022-11-21 09:47:28 +01:00
commit 76cec83d26
11652 changed files with 1980467 additions and 0 deletions

View File

@ -0,0 +1,18 @@
<select name="<?= $name; ?>" title="<?= $title; ?>">
<option value=""></option>
<?php $seen_key = false; ?>
<?php foreach ($values as $value): ?>
<option value="<?= htmlspecialchars($value); ?>"
<?php if ($foreign && $value == $foreign): ?>
selected="selected"
<?php $seen_key = true; ?>
<?php endif; ?>>
<?= htmlspecialchars($value); ?>
</option>
<?php endforeach; ?>
<?php if (is_string($foreign) && ! $seen_key): ?>
<option value="<?= htmlspecialchars($foreign); ?>" selected="selected">
<?= htmlspecialchars($foreign); ?>
</option>
<?php endif; ?>
</select>