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
11 * @author Drew Streib <dtype@valinux.com>
14 require_once $gfwww.'include/vote_function.php';
16 $HTML->header(array('title'=>_('Developer Profile')));
20 <table width="100%" cellpadding="2" cellspacing="2" border="0">
23 <?php echo $HTML->boxTop(_('Personal Information')); ?>
26 <?php echo _('User Id') ?>
31 if (session_loggedin() && user_ismember(1)) {
32 echo util_make_link ('/admin/useredit.php?user_id='.$user_id,$user_id);
37 </strong><?php if($GLOBALS['sys_use_people']) { ?>( <?php echo util_make_link ('/people/viewprofile.php?user_id='.$user_id,'<strong>'._('Skills Profile').'</strong>'); ?> )<?php } ?>
42 <td><?php echo _('Login name') ?></td>
43 <td><strong><?php print $user->getUnixName(); ?></strong></td>
47 <td><?php echo _('Real name') ?> </td>
48 <td><strong><?php print $user->getTitle() .' '. $user->getRealName(); ?></strong></td>
51 <?php if(!isset($GLOBALS['sys_show_contact_info']) || $GLOBALS['sys_show_contact_info']) { ?>
53 <td><?php echo _('Your Email Address') ?>: </td>
55 <strong><?php echo util_make_link ('/sendmessage.php?touser='.$user_id, str_replace('@',' @nospam@ ',$user->getEmail())); ?></strong>
58 <?php if ($user->getJabberAddress()) { ?>
60 <td><?php echo _('Jabber Address') ?></td>
62 <a href="jabber:<?php print $user->getJabberAddress(); ?>"><strong><?php print $user->getJabberAddress(); ?></strong></a>
67 <?php if ($user->getAddress() || $user->getAddress2()) { ?>
69 <td><?php echo _('Address:'); ?></td>
70 <td><?php echo $user->getAddress().'<br/>'.$user->getAddress2(); ?></td>
74 <?php if ($user->getPhone()) { ?>
76 <td><?php echo _('Phone:'); ?></td>
77 <td><?php echo $user->getPhone(); ?></td>
81 <?php if ($user->getFax()) { ?>
83 <td><?php echo _('FAX:'); ?></td>
84 <td><?php echo $user->getFax(); ?></td>
91 <?php echo _('Site Member Since') ?>
93 <td><strong><?php print date(_('Y-m-d H:i'), $user->getAddDate()); ?></strong>
96 if ($sys_use_ratings) {
97 echo $HTML->boxMiddle(_('Peer Rating'),false,false);
98 if ($user->usesRatings()) {
99 echo vote_show_user_rating($user_id);
101 echo _('User chose not to participate in peer rating');
105 echo $HTML->boxMiddle(_('Diary and Notes'));
109 Get their diary information
113 $res=db_query("SELECT count(*) from user_diary ".
114 "WHERE user_id='". $user_id ."' AND is_public=1");
115 echo _('Diary/Note entries:').' '.db_result($res,0,0).'
116 <p/>'.util_make_link ('/developer/diary.php?diary_user='.$user_id,_('View Diary & Notes')).'</p>
118 echo util_make_link ('/developer/monitor.php?diary_user='.$user_id,
119 html_image("ic/check.png",'15','13',array(),0) ._('Monitor this Diary')
122 $hookparams['user_id'] = $user_id;
123 plugin_hook("user_personal_links",$hookparams);
131 <h4><?php echo _('Project Info') ?></h4>
134 // now get listing of groups for that user
135 $res_cat = db_query("SELECT groups.group_name,
136 groups.unix_group_name,
138 user_group.admin_flags,
141 groups,user_group,role WHERE user_group.user_id='$user_id' AND user_group.role_id=role.role_id AND
142 groups.group_id=user_group.group_id AND groups.is_public='1' AND groups.status='A'");
144 // see if there were any groups
145 if (db_numrows($res_cat) < 1) {
147 <p/><?php echo _('This developer is not a member of any projects.') ?><p/>
149 } else { // endif no groups
150 print "<p/>"._('This developer is a member of the following groups:')."<br /> ";
151 while ($row_cat = db_fetch_array($res_cat)) {
152 print ('<br />' . util_make_link_g ($row_cat['unix_group_name'],$row_cat['group_id'],htmlentities($row_cat['group_name'])).' ('.htmlentities($row_cat['role_name']).')');
160 <?php echo $HTML->boxBottom(); ?>
168 $me = session_get_user();
169 if ($sys_use_ratings) {
170 if ($user->usesRatings() && (!$me || $me->usesRatings())) {
172 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']);
176 <?php echo vote_show_user_rate_box ($user_id, $me?$me->getID():0); ?>
179 <?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="%2$s">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>'),
180 $GLOBALS['sys_name'],
181 util_make_url ("/account/"));
183 } else if ($me && !$me->usesRatings()) { ?>
186 <?php printf (_('You opted-out from peer rating system, otherwise you would have a chance to rate the user. Refer to <a href="%1$s">your account maintenance page</a> for more information.'),
187 util_make_url ("/account")); ?>
200 $HTML->footer(array());
204 // c-file-style: "bsd"