]> git.mxchange.org Git - friendica.git/blob - view/profile_selectors.php
new profile tables, profile clone
[friendica.git] / view / profile_selectors.php
1 <?php
2
3
4 function gender_selector($current="",$suffix="") {
5         $select = array('','Male','Female','Other');
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
17 function marital_selector($current="",$suffix="") {
18         $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' );
19
20         $o .= "<select name=\"marital[]\" id=\"marital-select\" multiple=\"multiple\" size=\"2\" >";
21         foreach($select as $selection) {
22                 $selected = (($selection == $current) ? ' selected="selected" ' : '');
23                 $o .= "<option value=\"$selection\" $selected >$selection</option>";
24         }
25         $o .= '</select>';
26         return $o;
27 }       
28
29
30 //function birthday_selector($current = '') {
31 //      if($current && (strlen($current)
32 //}