Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.7 KiB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
  1. <?php
  2. function gender_selector($current="",$suffix="") {
  3. $select = array('', t('Male'), t('Female'), t('Transsexual'), t('Hermaphrodite'), t('Neuter'), t('Other'), t('Undecided'));
  4. $o .= "<select name=\"gender$suffix\" id=\"gender-select$suffix\" size=\"1\" >";
  5. foreach($select as $selection) {
  6. $selected = (($selection == $current) ? ' selected="selected" ' : '');
  7. $o .= "<option value=\"$selection\" $selected >$selection</option>";
  8. }
  9. $o .= '</select>';
  10. return $o;
  11. }
  12. function sexpref_selector($current="",$suffix="") {
  13. $select = array('', t('Males'), t('Females'), t('Bisexual'), t('Autosexual'), t('Abstinent'), t('Virgin'), t('Nonsexual'));
  14. $o .= "<select name=\"sexual$suffix\" id=\"sexual-select$suffix\" size=\"1\" >";
  15. foreach($select as $selection) {
  16. $selected = (($selection == $current) ? ' selected="selected" ' : '');
  17. $o .= "<option value=\"$selection\" $selected >$selection</option>";
  18. }
  19. $o .= '</select>';
  20. return $o;
  21. }
  22. function marital_selector($current="",$suffix="") {
  23. $select = array('', t('Single'), t('Lonely'), t('Available'), t('Unavailable'), t('Dating'), t('Unfaithful'), t('Sex Addict'), t('Friends'), t('Friends/Benefits'), t('Casual'), t('Engaged'), t('Married'), t('Partners'), t('Cohabiting'), t('Happy'), t('Not Looking'), t('Swinger'), t('Betrayed'), t('Separated'), t('Unstable'), t('Divorced'), t('Widowed'), t('Uncertain'), t('Complicated'), t('Don\'t care'), t('Ask me') );
  24. $o .= "<select name=\"marital[]\" id=\"marital-select\" multiple=\"multiple\" size=\"2\" >";
  25. foreach($select as $selection) {
  26. $selected = (($selection == $current) ? ' selected="selected" ' : '');
  27. $o .= "<option value=\"$selection\" $selected >$selection</option>";
  28. }
  29. $o .= '</select>';
  30. return $o;
  31. }