4 function select_contact_profile($current) {
7 $o .= "<select id=\"contact_profile_selector\" name=\"profile_id\" />";
9 $r = q("SELECT `id` FROM `profile` WHERE `uid` = %d",
10 intval($_SESSION['uid']));
14 $selected = (($rr['profile-name'] == $current) ? " selected=\"selected\" " : "");
15 $o .= "<option value=\"{$rr['profile-name']}\" $selected >{$rr['profile-name']}</option>";