]> git.mxchange.org Git - friendica.git/blob - view/profile_selectors.php
photo album finish, general cleanup begins
[friendica.git] / view / profile_selectors.php
1 <?php
2
3
4 function gender_selector($current="",$suffix="") {
5         $select = array('', t('Male'), t('Female'), t('Transsexual'), t('Hermaphrodite'), t('Neuter'), t('Other'), t('Undecided'));
6
7         $o .= "<select name=\"gender$suffix\" id=\"gender-select$suffix\" size=\"1\" >";
8         foreach($select as $selection) {
9                 $selected = (($selection == $current) ? ' selected="selected" ' : '');
10                 $o .= "<option value=\"$selection\" $selected >$selection</option>";
11         }
12         $o .= '</select>';
13         return $o;
14 }       
15
16 function sexpref_selector($current="",$suffix="") {
17         $select = array('', t('Males'), t('Females'), t('Bisexual'), t('Autosexual'), t('Abstinent'), t('Virgin'), t('Nonsexual'));
18
19         $o .= "<select name=\"sexual$suffix\" id=\"sexual-select$suffix\" size=\"1\" >";
20         foreach($select as $selection) {
21                 $selected = (($selection == $current) ? ' selected="selected" ' : '');
22                 $o .= "<option value=\"$selection\" $selected >$selection</option>";
23         }
24         $o .= '</select>';
25         return $o;
26 }       
27
28
29 function marital_selector($current="",$suffix="") {
30         $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') );
31
32         $o .= "<select name=\"marital[]\" id=\"marital-select\" multiple=\"multiple\" size=\"2\" >";
33         foreach($select as $selection) {
34                 $selected = (($selection == $current) ? ' selected="selected" ' : '');
35                 $o .= "<option value=\"$selection\" $selected >$selection</option>";
36         }
37         $o .= '</select>';
38         return $o;
39 }