<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>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
common_form.phtml | File | 6.34 KB | 0644 |
|
dropdown_generate.phtml | File | 486 B | 0644 |
|
foreign_key_row.phtml | File | 7.41 KB | 0644 |
|
internal_relational_row.phtml | File | 2.41 KB | 0644 |
|
relational_dropdown.phtml | File | 713 B | 0644 |
|