| @@ 1768-1781 (lines=14) @@ | ||
| 1765 | <input type="checkbox" name="default_options[', $setting['id'], ']" id="', $setting['id'], '"', !empty($context['member']['options'][$setting['id']]) ? ' checked' : '', ' value="1">'; |
|
| 1766 | } |
|
| 1767 | // How about selection lists, we all love them |
|
| 1768 | elseif ($setting['type'] == 'list') |
|
| 1769 | { |
|
| 1770 | echo ' |
|
| 1771 | <select class="floatleft" name="default_options[', $setting['id'], ']" id="', $setting['id'], '"', '>'; |
|
| 1772 | ||
| 1773 | foreach ($setting['options'] as $value => $label) |
|
| 1774 | { |
|
| 1775 | echo ' |
|
| 1776 | <option value="', $value, '"', $value == $context['member']['options'][$setting['id']] ? ' selected' : '', '>', $label, '</option>'; |
|
| 1777 | } |
|
| 1778 | ||
| 1779 | echo ' |
|
| 1780 | </select>'; |
|
| 1781 | } |
|
| 1782 | // A textbox it is then |
|
| 1783 | else |
|
| 1784 | { |
|
| @@ 642-655 (lines=14) @@ | ||
| 639 | </dd>'; |
|
| 640 | } |
|
| 641 | // A list with options? |
|
| 642 | elseif ($setting['type'] == 'list') |
|
| 643 | { |
|
| 644 | echo ' |
|
| 645 | <dd> |
|
| 646 | <select name="', !empty($setting['default']) ? 'default_' : '', 'options[', $setting['id'], ']" id="', $setting['id'], '">'; |
|
| 647 | ||
| 648 | foreach ($setting['options'] as $value => $label) |
|
| 649 | echo ' |
|
| 650 | <option value="', $value, '"', $value == $setting['value'] ? ' selected' : '', '>', $label, '</option>'; |
|
| 651 | ||
| 652 | echo ' |
|
| 653 | </select> |
|
| 654 | </dd>'; |
|
| 655 | } |
|
| 656 | // A Textarea? |
|
| 657 | elseif ($setting['type'] == 'textarea') |
|
| 658 | { |
|