$HTML->header(array('title'=>_('Developer Profile')));
-?>
+echo $HTML->boxTop(_('Personal Information'), _('Personal Information')); ?>
-<table width="100%" cellpadding="2" cellspacing="2" border="0">
-<tr valign="top">
- <td width="50%">
- <?php echo $HTML->boxTop(_('Personal Information')); ?>
-<tr>
+<div about="" typeof="sioc:UserAccount" xmlns:sioc="http://rdfs.org/sioc/ns#">
+
+<table class="my-layout-table" id="user-profile-personal-info">
+<tr>
<td>
<?php echo _('User Id') ?>
</td>
<td>
<strong>
<?php
+//print '<div property ="foaf:member" content="fusionforge:ForgeCommunity" xmlns:fusionforge="http://fusionforge.org/fusionforge#">';
+//echo '</div>';
+// description as a FusionForge Community member
+//print '<div property ="dc:Identifier" content="'.$user_id.'" xmlns:dc="http://purl.org/dc/elements/1.1/">';
+
if (session_loggedin() && user_ismember(1)) {
echo util_make_link ('/admin/useredit.php?user_id='.$user_id,$user_id);
} else {
echo $user_id;
+//echo '</div>';
}
?>
</strong><?php if($GLOBALS['sys_use_people']) { ?>( <?php echo util_make_link ('/people/viewprofile.php?user_id='.$user_id,'<strong>'._('Skills Profile').'</strong>'); ?> )<?php } ?>
</td>
</tr>
-<tr valign="top">
+<tr>
<td><?php echo _('Login name') ?></td>
- <td><strong><?php print $user->getUnixName(); ?></strong></td>
+ <td><strong><span property="sioc:name"><?php
+ print $user->getUnixName();
+ ?></span></strong></td>
</tr>
-<tr valign="top">
+<tr>
<td><?php echo _('Real name') ?> </td>
- <td><strong><?php print $user->getTitle() .' '. $user->getRealName(); ?></strong></td>
+ <td>
+ <div rev="foaf:account" xmlns:foaf="http://xmlns.com/foaf/0.1/">
+ <div about="#me" typeof="foaf:Person">
+ <strong><span property="foaf:name"><?php
+ $user_title = $user->getTitle();
+ print ($user_title ? $user_title .' ' :''). $user->getRealName();
+ ?></span></strong>
+ </div>
+ </div>
+ </td>
</tr>
<?php if(!isset($GLOBALS['sys_show_contact_info']) || $GLOBALS['sys_show_contact_info']) { ?>
-<tr valign="top">
+<tr>
<td><?php echo _('Your Email Address') ?>: </td>
<td>
- <strong><?php echo util_make_link ('/sendmessage.php?touser='.$user_id, str_replace('@',' @nospam@ ',$user->getEmail())); ?></strong>
+ <strong><?php
+ //$user_mail=$user->getEmail();
+ $user_mailsha1=$user->getSha1Email();
+ // Removed for privacy reasons
+ //print '<span property="sioc:email" content="'. $user_mail .'">';
+ print '<span property="sioc:email_sha1" content="'. $user_mailsha1 .'">';
+ echo util_make_link ('/sendmessage.php?touser='.$user_id, str_replace('@',' @nospam@ ',$user_mail));
+ echo '</span>';
+ ?></strong>
</td>
</tr>
<?php if ($user->getJabberAddress()) { ?>
-<tr valign="top">
+<tr>
<td><?php echo _('Jabber Address') ?></td>
<td>
<a href="jabber:<?php print $user->getJabberAddress(); ?>"><strong><?php print $user->getJabberAddress(); ?></strong></a>
<?php } ?>
<?php if ($user->getAddress() || $user->getAddress2()) { ?>
-<tr valign="top">
+<tr>
<td><?php echo _('Address:'); ?></td>
<td><?php echo $user->getAddress().'<br/>'.$user->getAddress2(); ?></td>
</tr>
<?php } ?>
<?php if ($user->getPhone()) { ?>
-<tr valign="top">
+<tr>
<td><?php echo _('Phone:'); ?></td>
- <td><?php echo $user->getPhone(); ?></td>
+ <td><?php
+//print '<div property="foaf:phone" content="'.$user->getPhone().'">';
+echo $user->getPhone();
+//echo '</div>';
+?></td>
</tr>
<?php } ?>
<?php if ($user->getFax()) { ?>
-<tr valign="top">
+<tr>
<td><?php echo _('FAX:'); ?></td>
<td><?php echo $user->getFax(); ?></td>
</tr>
<?php echo _('Site Member Since') ?>
</td>
<td><strong><?php print date(_('Y-m-d H:i'), $user->getAddDate()); ?></strong>
- <?php
+ </td>
+</tr>
+</table>
+ <?php
if ($sys_use_ratings) {
- echo $HTML->boxMiddle(_('Peer Rating'),false,false);
+ echo $HTML->boxMiddle(_('Peer Rating'), _('Peer Rating'));
+ echo '<table class="my-layout-table" id="user-profile-rating">';
if ($user->usesRatings()) {
echo vote_show_user_rating($user_id);
} else {
+ echo '<tr><td colspan="2">';
echo _('User chose not to participate in peer rating');
+ echo '</td></tr>';
}
+ echo '</table><!-- id="user-profile-rating" -->';
}
if ($sys_use_diary) {
- echo $HTML->boxMiddle(_('Diary and Notes'));
+ echo $HTML->boxMiddle(_('Diary and Notes'), _('Diary and Notes'));
/*
*/
- $res=db_query("SELECT count(*) from user_diary ".
- "WHERE user_id='". $user_id ."' AND is_public=1");
+ $res = db_query_params ('SELECT count(*) from user_diary WHERE user_id=$1 AND is_public=1',
+ array ($user_id));
echo _('Diary/Note entries:').' '.db_result($res,0,0).'
- <p/>'.util_make_link ('/developer/diary.php?diary_user='.$user_id,_('View Diary & Notes')).'</p>
- <p/>';
+ <p>';
+ //.'<span rel="foaf:weblog">'
+ echo util_make_link ('/developer/diary.php?diary_user='.$user_id,_('View Diary & Notes'));
+ //.'</span>'.
+ echo '</p>
+ <p>';
echo util_make_link ('/developer/monitor.php?diary_user='.$user_id,
html_image("ic/check.png",'15','13',array(),0) ._('Monitor this Diary')
) ;
plugin_hook("user_personal_links",$hookparams);
}
?>
- </td>
-</tr>
-<tr>
- <td colspan="2">
- <h4><?php echo _('Project Info') ?></h4>
- <p/>
+
<?php
+
+ echo $HTML->boxMiddle(_('Project Info'), _('Project Info'));
+
// now get listing of groups for that user
- $res_cat = db_query("SELECT groups.group_name,
+ $res_cat = db_query_params ('SELECT groups.group_name,
groups.unix_group_name,
groups.group_id,
user_group.admin_flags,
role.role_name
FROM
- groups,user_group,role WHERE user_group.user_id='$user_id' AND user_group.role_id=role.role_id AND
- groups.group_id=user_group.group_id AND groups.is_public='1' AND groups.status='A'");
+ groups,user_group,role WHERE user_group.user_id=$1 AND user_group.role_id=role.role_id AND
+ groups.group_id=user_group.group_id AND groups.is_public=$2 AND groups.status=$3',
+ array($user_id,
+ '1',
+ 'A'));
// see if there were any groups
if (db_numrows($res_cat) < 1) {
?>
- <p/><?php echo _('This developer is not a member of any projects.') ?><p/>
+ <p><?php echo _('This developer is not a member of any projects.') ?></p>
<?php
} else { // endif no groups
- print "<p/>"._('This developer is a member of the following groups:')."<br /> ";
+ print "<p>"._('This developer is a member of the following projects:')."<br /> ";
while ($row_cat = db_fetch_array($res_cat)) {
- 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']).')');
+ $project_link = util_make_link_g ($row_cat['unix_group_name'],$row_cat['group_id'],$row_cat['group_name']);
+ // sioc:UserGroups for all members of a project are named after /projects/A_PROJECT/members/
+ $project_uri = util_make_url_g ($row_cat['unix_group_name'],$row_cat['group_id']);
+ print '<span rel="sioc:member_of" resource="'. $project_uri .'members/">';
+//print '<div property="sioc:has_function" content= "'.$row_cat['role_name'].'" xmlns:sioc="http://rdfs.org/sioc/ns#">';
+ print ('<br />' . $project_link .' ('.$row_cat['role_name'].')');
+ print "\n";
+ echo '</span>';
}
- print '</ul><p/>';
+ print '</p>';
} // end if groups
-?>
- </td>
-</tr>
-
- <?php echo $HTML->boxBottom(); ?>
+//</div>
+// end of community member description block
- </td>
-
-
- <td width="80%">
-<?php
$me = session_get_user();
if ($sys_use_ratings) {
if ($user->usesRatings() && (!$me || $me->usesRatings())) {
-
-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']);
+ 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>'), forge_get_config ('forge_name'));
?>
- <div align="center">
+ <div class="align-center">
<?php echo vote_show_user_rate_box ($user_id, $me?$me->getID():0); ?>
</div>
- <?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>'),
- $GLOBALS['sys_name'],
+ <?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>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.</p>'),
+ forge_get_config ('forge_name'),
util_make_url ("/account/"));
} else if ($me && !$me->usesRatings()) { ?>
-<p/>
+<p>
<em>
<?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.'),
util_make_url ("/account")); ?>
</em>
-<p/>
+</p>
<?php }
- } ?>
- </td>
-</tr>
-</table>
+ }
-<p/>
-
-<?php
+echo $HTML->boxBottom();
$HTML->footer(array());