5 * Assumes $user object for displayed user is present
7 * SourceForge: Breaking Down the Barriers to Open Source Development
8 * Copyright 1999-2001 (c) VA Linux Systems
9 * http://sourceforge.net
12 * @author Drew Streib <dtype@valinux.com>
15 require_once('vote_function.php');
17 $HTML->header(array('title'=>_('Developer Profile')));
21 <table width="100%" cellpadding="2" cellspacing="2" border="0"><tr valign="top">
24 <?php echo $HTML->boxTop(_('Personal Information')); ?>
27 <td><?php echo _('User Id') ?> </td>
30 if (session_loggedin() && user_ismember(1)) {
31 echo '<a href="'.$GLOBALS['sys_urlprefix'].'/admin/useredit.php?user_id='.$user_id.'">'.$user_id.'</a>';
36 </strong> <?php if($GLOBALS['sys_use_people']) { ?>( <a href="<?php echo $GLOBALS['sys_urlprefix']; ?>/people/viewprofile.php?user_id=<?php echo $user_id; ?>"><strong><?php echo _('Skills Profile') ?></strong></a> )<?php } ?></td>
40 <td><?php echo _('Login name') ?> </td>
41 <td><strong><?php print $user->getUnixName(); ?></strong></td>
45 <td><?php echo _('Real name') ?> </td>
46 <td><strong><?php print $user->getTitle() .' '. $user->getRealName(); ?></strong></td>
49 <?php if(!isset($GLOBALS['sys_show_contact_info']) || $GLOBALS['sys_show_contact_info']) { ?>
51 <td><?php echo _('Your Email Address') ?>: </td>
53 <strong><a href="<?php echo $GLOBALS['sys_urlprefix']; ?>/sendmessage.php?touser=<?php print $user_id;
54 ?>"><?php print str_replace('@',' @nospam@ ',$user->getEmail()); ?></a></strong>
57 <?php if ($user->getJabberAddress()) { ?>
59 <td><?php echo _('Jabber Address') ?></td>
61 <a href="jabber:<?php print $user->getJabberAddress(); ?>"><strong><?php print $user->getJabberAddress(); ?></strong></a>
67 <td><?php echo _('Address:'); ?></td>
68 <td><?php echo $user->getAddress().'<br/>'.$user->getAddress2(); ?></td>
72 <td><?php echo _('Phone:'); ?></td>
73 <td><?php echo $user->getPhone(); ?></td>
77 <td><?php echo _('FAX:'); ?></td>
78 <td><?php echo $user->getFax(); ?></td>
84 <?php echo _('Site Member Since') ?>
86 <td><strong><?php print date(_('Y-m-d H:i'), $user->getAddDate()); ?></strong>
89 if ($sys_use_ratings) {
90 echo $HTML->boxMiddle(_('Peer Rating'),false,false);
91 if ($user->usesRatings()) {
92 echo vote_show_user_rating($user_id);
94 echo _('User chose not to participate in peer rating');
97 echo "</td></tr></table>";
99 echo $HTML->boxMiddle(_('Diary and Notes'));
103 Get their diary information
107 $res=db_query("SELECT count(*) from user_diary ".
108 "WHERE user_id='". $user_id ."' AND is_public=1");
109 echo _('Diary/Note entries:').' '.db_result($res,0,0).'
111 <a href="'.$GLOBALS['sys_urlprefix'].'/developer/diary.php?diary_user='. $user_id .'">'._('View Diary & Notes').'</a><?p>
113 <a href="'.$GLOBALS['sys_urlprefix'].'/developer/monitor.php?diary_user='. $user_id .'">'. html_image("ic/check.png",'15','13',array(),0) ._('Monitor this Diary').'</a></p>';
114 $hookparams['user_id'] = $user_id;
115 plugin_hook("user_personal_links",$hookparams);
121 <h4><?php echo _('Project Info') ?></h4>
124 // now get listing of groups for that user
125 $res_cat = db_query("SELECT groups.group_name,
126 groups.unix_group_name,
128 user_group.admin_flags,
131 groups,user_group,role WHERE user_group.user_id='$user_id' AND user_group.role_id=role.role_id AND
132 groups.group_id=user_group.group_id AND groups.is_public='1' AND groups.status='A'");
134 // see if there were any groups
135 if (db_numrows($res_cat) < 1) {
137 <p/><?php echo _('This developer is not a member of any projects.') ?><p/>
139 } else { // endif no groups
140 print "<p/>"._('This developer is a member of the following groups:')."<br /> ";
141 while ($row_cat = db_fetch_array($res_cat)) {
142 print ('<br />' . '<a href="'.$GLOBALS['sys_urlprefix'].'/projects/'.$row_cat['unix_group_name'].'/">'.htmlentities($row_cat['group_name']).'</a> ('.htmlentities($row_cat['role_name']).')');
147 echo $HTML->boxBottom(); ?>
155 $me = session_get_user();
156 if ($sys_use_ratings) {
157 if ($user->usesRatings() && (!$me || $me->usesRatings())) {
159 printf(_('<P>If you are familiar with this user, please take a moment to rate him/her on the following criteria. Keep in mind, that your rating will be visible to the user and others.</P><P>The %1$s Peer Rating system is based on concepts from <A HREF="http://www.advogato.com/">Advogato.</A> The system has been re-implemented and expanded in a few ways.</P>'), $GLOBALS['sys_name']);
163 <?php echo vote_show_user_rate_box ($user_id, $me?$me->getID():0); ?>
166 <?php printf(_('<P>The Peer rating box shows all rating averages (and response levels) for each individual criteria. Due to the math and processing required to do otherwise, these numbers incoporate responses from both "trusted" and "non-trusted" users.</P><UL><LI>The "Sitewide Rank" field shows the user\'s rank compared to all ranked %1$s users.</LI><LI>The "Aggregate Score" shows an average, weighted overall score, based on trusted-responses only.</LI><LI>The "Personal Importance" field shows the weight that users ratings of other developers will be given (between 1 and 1.5) -- higher rated user\'s responses are given more weight.</LI></UL><P><I>If you would like to opt-out from peer rating system (this will affect your ability to both rate and be rated), refer to <a href="/account/">your account maintenance page</A>. If you choose not to participate, your ratings of other users will be permanently deleted and the \'Peer Rating\' box will disappear from your user page. </I></P>'), $GLOBALS['sys_name']);
168 } else if ($me && !$me->usesRatings()) { ?>
171 <?php echo _('You opted-out from peer rating system, otherwise you would have a chance to rate the user. Refer to <a href="/account/">your account maintenance page</a> for more information.'); ?>
182 <table width="100%" cellpadding="2" cellspacing="2" border="0"><tr valign="top">
190 $HTML->footer(array());
194 // c-file-style: "bsd"