3 // SourceForge: Breaking Down the Barriers to Open Source Development
4 // Copyright 1999-2000 (c) The SourceForge Crew
5 // http://sourceforge.net
12 Written by dtype Oct 1999
15 Assumes $user object for displayed user is present
20 require ('vote_function.php');
22 $HTML->header(array('title'=>'Developer Profile'));
26 <H3>Developer Profile</H3>
28 <TABLE width=100% cellpadding=2 cellspacing=2 border=0><TR valign=top>
31 <?php echo $HTML->box1_top("Personal Information",true,false,false); ?>
34 <TD><B><?php print $user_id; ?></B> ( <A HREF="/people/viewprofile.php?user_id=<?php print $user_id; ?>"><B>Skills Profile</B></A> )</TD>
39 <TD><B><?php print $user->getUnixName(); ?></B></TD>
44 <TD><B><?php print $user->getRealName(); ?></B></TD>
50 <B><A HREF="/sendmessage.php?touser=<?php print $user_id;
51 ?>"><?php print $user->getUnixName(); ?> at <?php print $GLOBALS['sys_users_host']; ?></A></B>
59 <TD><B><?php print date($sys_datefmt, $user->getAddDate()); ?></B>
62 echo $HTML->box1_middle('Peer Rating',false,false);
64 echo vote_show_user_rating($user_id);
66 echo $HTML->box1_middle('Diary And Notes');
70 Get their diary information
74 $res=db_query("SELECT count(*) from user_diary ".
75 "WHERE user_id='". $user_id ."' AND is_public=1");
76 echo 'Diary/Note Entries: '.db_result($res,0,0).'
78 <A HREF="/developer/diary.php?user_id='. $user_id .'">View Diary & Notes</A>
80 <A HREF="/developer/monitor.php?user_id='. $user_id .'">'. html_image("/images/ic/check.png",'15','13',array(),0) .'Monitor This Diary</A>';
89 // now get listing of groups for that user
90 $res_cat = db_query("SELECT groups.group_name, "
91 . "groups.unix_group_name, "
93 . "user_group.admin_flags, "
94 . "user_group.bug_flags FROM "
95 . "groups,user_group WHERE user_group.user_id='$user_id' AND "
96 // We don't need to block out foundries from displaying.
97 //. "groups.group_id=user_group.group_id AND groups.is_public='1' AND groups.status='A' AND groups.type='1'");
98 . "groups.group_id=user_group.group_id AND groups.is_public='1' AND groups.status='A'");
100 // see if there were any groups
101 if (db_numrows($res_cat) < 1) {
103 <p>This developer is not a member of any projects.
105 } else { // endif no groups
106 print "<p>This developer is a member of the following groups:<BR> ";
107 while ($row_cat = db_fetch_array($res_cat)) {
108 print ("<BR>" . "<A href=\"/projects/$row_cat[unix_group_name]/\">$row_cat[group_name]</A>\n");
113 $HTML->box1_bottom(); ?>
116 If you are familiar with this user, please take a moment to rate him/her
117 on the following criteria. Keep in mind, that your rating will be visible to
120 The SourceForge Peer Rating system is based on concepts from
121 <A HREF="http://www.advogato.com">Advogato.</A> The system has been re-implemented and expanded in a few ways.
123 <?php echo vote_show_user_rate_box ($user_id); ?>
126 The Peer Rating box shows all rating averages
127 (and response levels) for each individual criteria. Due to the math and
128 processing required to do otherwise, these numbers incoporate responses from
129 both "trusted" and "non-trusted" users.
131 <li> The "Sitewide Rank" field shows the user's rank compared to all ranked
133 <li>The "Aggregate Score" shows an average, weighted overall score, based on
134 trusted-responses only.
135 <li>The "Personal Importance" field shows the weight that users ratings of
136 other developers will be given (between 1 and 1.5) -- higher rated user's
137 responses are given more weight.
142 <TABLE width=100% cellpadding=2 cellspacing=2 border=0><TR valign=top>
147 if (user_isloggedin()) {
152 <H3>Send a Message to <?php echo $user->getRealName(); ?></H3>
154 <FORM ACTION="/sendmessage.php" METHOD="POST">
155 <INPUT TYPE="HIDDEN" NAME="touser" VALUE="<?php echo $user_id; ?>">
157 <B>Your Email Address:</B><BR>
158 <B><?php echo user_getname().'@'.$GLOBALS['sys_users_host']; ?></B>
159 <INPUT TYPE="HIDDEN" NAME="email" VALUE="<?php echo user_getname().'@'.$GLOBALS['sys_users_host']; ?>">
161 <B>Your Name:</B><BR>
164 $my_name=user_getrealname(user_getid());
166 echo $my_name; ?></B>
167 <INPUT TYPE="HIDDEN" NAME="name" VALUE="<?php echo $my_name; ?>">
170 <INPUT TYPE="TEXT" NAME="subject" SIZE="30" MAXLENGTH="40" VALUE="">
173 <TEXTAREA NAME="body" ROWS="15" COLS="50" WRAP="HARD"></TEXTAREA>
176 <INPUT TYPE="SUBMIT" NAME="send_mail" VALUE="Send Message">
183 echo '<H3>You Could Send a Message if you were logged in</H3>';
194 $HTML->footer(array());