]> git.mxchange.org Git - friendica.git/blob - view/profile_selectors.php
Merge branch 'master' of /home/macgirvin/mike.macgirvin.com/../dfrn/dev
[friendica.git] / view / profile_selectors.php
1 <?php
2
3
4 function gender_selector($current="",$suffix="") {
5         $select = array('','Male', 'Female', 'Transsexual', 'Hermaphrodite', 'Neuter', 'Other', '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('','Males', 'Females', 'Bisexual', 'Autosexual', 'Abstinent', 'Virgin', '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('','Single', 'Lonely', 'Available', 'Unavailable', 'Dating', 'Unfaithful', 'Sex Addict', 'Friends', 'Friends/Benefits', 'Casual', 'Engaged', 'Married', 'Partners', 'Cohabiting', 'Happy', 'Not Looking', 'Swinger', 'Betrayed', 'Separated', 'Unstable', 'Divorced', 'Widowed', 'Uncertain', 'Complicated', 'Don\'t care', '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 }       
40
41
42 //function birthday_selector($current = '') {
43 //      if($current && (strlen($current)
44 //}