From 44b19841360099cc3e78d1a3612f7aa23e2e6524 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sat, 10 Jul 2010 07:09:57 -0700 Subject: profile additions --- view/profile_edit.tpl | 15 +++++++++++++++ view/profile_selectors.php | 14 +++++++++++++- view/style.css | 11 +++++++++++ 3 files changed, 39 insertions(+), 1 deletion(-) (limited to 'view') diff --git a/view/profile_edit.tpl b/view/profile_edit.tpl index 251fdae14..ff0e2f8e4 100644 --- a/view/profile_edit.tpl +++ b/view/profile_edit.tpl @@ -25,6 +25,13 @@ $gender
+
+

Leave year blank to suppress age.

+ +
+$dob +
+
@@ -73,6 +80,14 @@ $marital
+
+ +$sexual +
+
+ + +
diff --git a/view/profile_selectors.php b/view/profile_selectors.php index c6e64403a..902f6a1a5 100644 --- a/view/profile_selectors.php +++ b/view/profile_selectors.php @@ -2,7 +2,7 @@ function gender_selector($current="",$suffix="") { - $select = array('','Male','Female','Other'); + $select = array('','Male', 'Female', 'Transsexual', 'Hermaphrodite', 'Neuter', 'Other', 'Undecided'); $o .= ""; + foreach($select as $selection) { + $selected = (($selection == $current) ? ' selected="selected" ' : ''); + $o .= ""; + } + $o .= ''; + return $o; +} + function marital_selector($current="",$suffix="") { $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' ); diff --git a/view/style.css b/view/style.css index df5bde32f..06dd6581c 100644 --- a/view/style.css +++ b/view/style.css @@ -278,16 +278,23 @@ input#dfrn-url { margin-left: 50px; margin-bottom: 20px; } +#profile-edit-dob-hide-label { + margin-left: 20px; + width: 150px; +} + #profile-edit-profile-name-label, #profile-edit-name-label, #profile-edit-gender-label, +#profile-edit-dob-label, #profile-edit-address-label, #profile-edit-locality-label, #profile-edit-region-label, #profile-edit-postal-code-label, #profile-edit-country-name-label, #profile-edit-marital-label, +#profile-edit-sexual-label, #profile-edit-homepage-label { float: left; width: 175px; @@ -296,12 +303,14 @@ input#dfrn-url { #profile-edit-profile-name, #profile-edit-name, #gender-select, +#profile-edit-dob, #profile-edit-address, #profile-edit-locality, #profile-edit-region, #profile-edit-postal-code, #profile-edit-country-name, #marital-select, +#sexual-select, #profile-in-dir-yes, #profile-in-dir-no { float: left; @@ -322,12 +331,14 @@ input#dfrn-url { #profile-edit-profile-name-end, #profile-edit-name-end, #profile-edit-gender-end, +#profile-edit-dob-end, #profile-edit-address-end, #profile-edit-locality-end, #profile-edit-region-end, #profile-edit-postal-code-end, #profile-edit-country-name-end, #profile-edit-marital-end, +#profile-edit-sexual-end, #profile-edit-homepage-end, #profile-in-dir-break, #profile-in-dir-end { -- cgit v1.2.3