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">
24 <?php echo $HTML->boxTop(_('Personal Information')); ?>
27 <?php echo _('User Id') ?>
32 if (session_loggedin() && user_ismember(1)) {
33 echo util_make_link ('/admin/useredit.php?user_id='.$user_id,$user_id);
38 </strong><?php if($GLOBALS['sys_use_people']) { ?>( <?php echo util_make_link ('/people/viewprofile.php?user_id='.$user_id,'<strong>'._('Skills Profile').'</strong>'); ?> )<?php } ?>
43 <td><?php echo _('Login name') ?></td>
44 <td><strong><?php print $user->getUnixName(); ?></strong></td>
48 <td><?php echo _('Real name') ?> </td>
49 <td><strong><?php print $user->getTitle() .' '. $user->getRealName(); ?></strong></td>
52 <?php if(!isset($GLOBALS['sys_show_contact_info']) || $GLOBALS['sys_show_contact_info']) { ?>
54 <td><?php echo _('Your Email Address') ?>: </td>
56 <strong><?php util_make_link ('/sendmessage.php?touser='.$user_id, str_replace('@',' @nospam@ ',$user->getEmail())); ?></strong>
59 <?php if ($user->getJabberAddress()) { ?>
61 <td><?php echo _('Jabber Address') ?></td>
63 <a href="jabber:<?php print $user->getJabberAddress(); ?>"><strong><?php print $user->getJabberAddress(); ?></strong></a>
69 <td><?php echo _('Address:'); ?></td>
70 <td><?php echo $user->getAddress().'<br/>'.$user->getAddress2(); ?></td>
74 <td><?php echo _('Phone:'); ?></td>
75 <td><?php echo $user->getPhone(); ?></td>
79 <td><?php echo _('FAX:'); ?></td>
80 <td><?php echo $user->getFax(); ?></td>
87 <?php echo _('Site Member Since') ?>
89 <td><strong><?php print date(_('Y-m-d H:i'), $user->getAddDate()); ?></strong>
92 if ($sys_use_ratings) {
93 echo $HTML->boxMiddle(_('Peer Rating'),false,false);
94 if ($user->usesRatings()) {
95 echo vote_show_user_rating($user_id);
97 echo _('User chose not to participate in peer rating');
101 echo $HTML->boxMiddle(_('Diary and Notes'));
105 Get their diary information
109 $res=db_query("SELECT count(*) from user_diary ".
110 "WHERE user_id='". $user_id ."' AND is_public=1");
111 echo _('Diary/Note entries:').' '.db_result($res,0,0).'
112 <p/>'.util_make_link ('/developer/diary.php?diary_user='.$user_id,_('View Diary & Notes')).'</p>
114 <a href="'.util_make_url ('/developer/monitor.php?diary_user='.$user_id) .'">'. html_image("ic/check.png",'15','13',array(),0) ._('Monitor this Diary').'</a></p>';
115 $hookparams['user_id'] = $user_id;
116 plugin_hook("user_personal_links",$hookparams);
124 <h4><?php echo _('Project Info') ?></h4>
127 // now get listing of groups for that user
128 $res_cat = db_query("SELECT groups.group_name,
129 groups.unix_group_name,
131 user_group.admin_flags,
134 groups,user_group,role WHERE user_group.user_id='$user_id' AND user_group.role_id=role.role_id AND
135 groups.group_id=user_group.group_id AND groups.is_public='1' AND groups.status='A'");
137 // see if there were any groups
138 if (db_numrows($res_cat) < 1) {
140 <p/><?php echo _('This developer is not a member of any projects.') ?><p/>
142 } else { // endif no groups
143 print "<p/>"._('This developer is a member of the following groups:')."<br /> ";
144 while ($row_cat = db_fetch_array($res_cat)) {
145 if (isset ($GLOBALS['sys_noforcetype']) && $GLOBALS['sys_noforcetype']) {
146 print ('<br />' . util_make_link ('/project/?group_id='.$row_cat['group_id'],htmlentities($row_cat['group_name'])).' ('.htmlentities($row_cat['role_name']).')');
148 print ('<br />' . util_make_link ('/projects/'.$row_cat['unix_group_name'].'/',htmlentities($row_cat['group_name'])).' ('.htmlentities($row_cat['role_name']).')');
157 <?php echo $HTML->boxBottom(); ?>
165 $me = session_get_user();
166 if ($sys_use_ratings) {
167 if ($user->usesRatings() && (!$me || $me->usesRatings())) {
169 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']);
173 <?php echo vote_show_user_rate_box ($user_id, $me?$me->getID():0); ?>
176 <?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']);
178 } else if ($me && !$me->usesRatings()) { ?>
181 <?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.'); ?>
194 $HTML->footer(array());
198 // c-file-style: "bsd"