4 function contact_profile_assign($current) {
7 $o .= "<select id=\"contact-profile-selector\" name=\"profile-assign\" />\r\n";
9 $r = q("SELECT `id`, `profile-name` FROM `profile` WHERE `uid` = %d",
10 intval($_SESSION['uid']));
14 $selected = (($rr['id'] == $current) ? " selected=\"selected\" " : "");
15 $o .= "<option value=\"{$rr['id']}\" $selected >{$rr['profile-name']}</option>\r\n";
18 $o .= "</select>\r\n";
23 function contact_reputation($current) {
26 $o .= "<select id=\"contact-reputation-selector\" name=\"reputation\" />\r\n";
29 0 => "Unknown | Not categorised",
30 1 => "Block immediately",
31 2 => "Shady, spammer, self-marketer",
32 3 => "Known to me, but no opinion",
33 4 => "OK, probably harmless",
34 5 => "Reputable, has my trust"
37 foreach($rep as $k => $v) {
38 $selected = (($k == $current) ? " selected=\"selected\" " : "");
39 $o .= "<option value=\"$k\" $selected >$v</option>\r\n";
41 $o .= "</select>\r\n";