From a42c9616f97125b059f395b9b023fe1516a52d75 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sat, 10 Jul 2010 23:03:54 -0700 Subject: contact editor --- view/contact_selectors.php | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) (limited to 'view/contact_selectors.php') diff --git a/view/contact_selectors.php b/view/contact_selectors.php index a7d3d0f5b..a6cafe4ee 100644 --- a/view/contact_selectors.php +++ b/view/contact_selectors.php @@ -4,18 +4,43 @@ function contact_profile_assign($current) { $o = ''; - $o .= "\r\n"; - $r = q("SELECT `profile-name` FROM `profile` WHERE `uid` = %d", + $r = q("SELECT `id`, `profile-name` FROM `profile` WHERE `uid` = %d", intval($_SESSION['uid'])); if(count($r)) { foreach($r as $rr) { - $selected = (($rr['profile-name'] == $current) ? " selected=\"selected\" " : ""); - $o .= ""; + $selected = (($rr['id'] == $current) ? " selected=\"selected\" " : ""); + $o .= "\r\n"; } } - $o .= ""; + $o .= "\r\n"; return $o; } + +function contact_reputation($current) { + + $o = ''; + $o .= "\r\n"; + return $o; +} + + + -- cgit v1.2.3