/** * It display a table with commit related to this tracker or task_extra_detail * * @param string $Query Query to be executed to get the commit entries. * @param integer $group_id Group_id of the actual Group_id * */ function getCommitEntries($Query, $group_id) { $group =& group_get_object($group_id); if (!$group->usesPlugin($this->name)) { return; } $DBResult = db_query($Query); $Rows = db_numrows($DBResult); if ($Rows > 0) { echo '<tr><td colspan="2">'; echo '<h4>' . _('Links to related CVS commits') . ':</h4>'; $title_arr = $this->getTitleArr(); echo $GLOBALS['HTML']->listTableTop($title_arr); for ($i = 0; $i < $Rows; $i++) { $Row = db_fetch_array($DBResult); echo '<tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($i) . '>' . '<td>' . $this->getFileLink($group->getUnixName(), $Row['file'], $Row['actual_version']) . '</td>' . '<td>' . date(_('Y-m-d'), $Row['cvs_date']) . '</td>' . '<td>' . $this->getDiffLink($group->getUnixName(), $Row['file'], $Row['prev_version'], $Row['actual_version']) . '</td>' . '<td>' . $this->getActualVersionLink($group->getUnixName(), $Row['file'], $Row['actual_version']) . '</td> <td>' . htmlspecialchars($Row['log_text']) . '</td> <td>' . util_make_link_u($Row['author'], user_get_object_by_name($Row['author'])->getId(), $Row['author']) . '</td> </tr>'; } echo $GLOBALS['HTML']->listTableBottom(); echo '</td></tr>'; } else { echo '<h4>' . _('No commits have been made.') . '</h4>'; } }
/** * getRows - get the html output for result rows * * @return string html output */ function getRows() { $rowsCount = $this->searchQuery->getRowsCount(); $result =& $this->searchQuery->getResult(); $monthArray = array(); for ($i = 1; $i <= 12; $i++) { array_push($monthArray, date('M', mktime(0, 0, 0, $i, 10, 1980))); } $return = ''; for ($i = 0; $i < $rowsCount; $i++) { $start = db_result($result, $i, 'start'); $startYear = substr($start, 0, 4); $startMonth = substr($start, 4, 2); $finish = db_result($result, $i, 'finish'); $finishYear = substr($finish, 0, 4); $finishMonth = substr($finish, 4, 2); $return .= ' <tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($i) . '> <td>' . util_make_link_u(db_result($result, $i, 'user_name'), db_result($result, $i, 'user_id'), db_result($result, $i, 'realname')) . '</td> <td>' . db_result($result, $i, 'type_name') . '</td> <td>' . db_result($result, $i, 'title') . '</td> <td>' . db_result($result, $i, 'keywords') . '</td> <td>' . $monthArray[$startMonth - 1] . ' ' . $startYear . '</td> <td>' . $monthArray[$finishMonth - 1] . ' ' . $finishYear . '</td> <tr>'; } return $return; }
function showMessages() { $result = $this->getMessages(); $rows = db_numrows($result); if ($rows > 0) { $title_arr = array(); $title_arr[] = _('Message'); echo $GLOBALS['HTML']->listTableTop($title_arr); for ($i = 0; $i < $rows; $i++) { echo '<tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($i) . '><td><pre> ' . _('Date') . ': ' . date(_('Y-m-d H:i'), db_result($result, $i, 'adddate')) . ' ' . _('Sender') . ': '; if (db_result($result, $i, 'user_id') == 100) { echo db_result($result, $i, 'realname'); } else { echo util_make_link_u(db_result($result, $i, 'user_name'), db_result($result, $i, 'user_id'), db_result($result, $i, 'realname')); } echo "\n\n" . util_line_wrap(db_result($result, $i, 'body'), 65, "\n") . '</pre></td></tr>'; } echo $GLOBALS['HTML']->listTableBottom(); } else { echo ' <h3>' . _('No Followups Have Been Posted') . '</h3>'; } }
echo $GLOBALS['HTML']->listTableTop($title_arr); // list members $query = "SELECT users.*,user_group.admin_flags,people_job_category.name AS role\n\tFROM users,user_group \n\tLEFT JOIN people_job_category ON user_group.member_role=people_job_category.category_id\n\tWHERE users.user_id=user_group.user_id \n\tAND user_group.group_id='{$group_id}' \n\tAND users.status='A'\n\tORDER BY users.user_name "; $res_memb = db_query($query); while ($row_memb = db_fetch_array($res_memb)) { echo ' <tr>'; if (trim($row_memb['admin_flags']) == 'A') { echo ' <td><strong>' . $row_memb['realname'] . '</strong></td>'; } else { echo ' <td>' . $row_memb['realname'] . '</td>'; } echo ' <td>' . util_make_link('/sendmessage.php?touser='******'user_id'], _('Contact')) . ' ' . util_make_link_u($row_memb['user_name'], $row_memb['user_id'], $row_memb['user_name']) . ' </td> <td align="center">' . $row_memb['role'] . ' </td>'; if ($GLOBALS['sys_use_people']) { echo ' <td align="center">' . util_make_link('/people/viewprofile.php?user_id=' . $row_memb['user_id'], _('View')) . ' </td>'; } echo ' </tr>'; // print out all the artifacts assigned to this person $artifact_group = db_query("SELECT group_artifact_id, name\n FROM artifact_group_list\n WHERE group_id=" . $group_id . "\n ORDER BY group_artifact_id DESC"); while ($artifact_type = db_fetch_array($artifact_group)) { $artifacts = db_query("SELECT * FROM artifact_vw\n WHERE assigned_to=" . $row_memb['user_id'] . "\n AND status_id='1'\n AND group_artifact_id=" . $artifact_type['group_artifact_id'] . "\n ORDER BY priority DESC"); $num_artifacts = db_numrows($artifacts);
if (!$fh || !is_object($fh)) { exit_error(_('Error'), _('Error getting new ForumHTML')); } elseif ($fh->isError()) { exit_error(_('Error'), $fh->getErrorMessage()); } forum_header(array('title' => $fm->getSubject(), 'forum_id' => $forum_id)); $title_arr = array(); $title_arr[] = _('Message') . ': ' . $msg_id; echo $GLOBALS['HTML']->listTableTop($title_arr); echo "<tr class=\"tablecontent\"><td>\n"; $fa = new ForumAdmin(); if ($f->userIsAdmin()) { echo $fa->PrintAdminMessageOptions($msg_id, $group_id, 0, $forum_id); // 0 in thread id because that tells us to go back to message.php instead of forum.php } echo _('BY') . ': ' . $fm->getPosterRealName() . ' (' . util_make_link_u($fm->getPosterName(), $fm->getPosterID(), $fm->getPosterName()) . ')<br />'; echo _('DATE') . ': ' . date(_('Y-m-d H:i'), $fm->getPostDate()) . '<br />'; $am = new AttachManager(); echo $am->PrintHelperFunctions(); echo $am->PrintAttachLink($fm, $group_id, $forum_id) . '<br/>'; echo _('SUBJECT') . ': ' . $fm->getSubject() . '<p> </p>'; if (!strstr('<', $fm->getBody())) { echo nl2br($fm->getBody()); //backwards compatibility for non html messages } else { echo $fm->getBody(); } echo "</td></tr>"; echo $GLOBALS['HTML']->listTableBottom(); /* Show entire thread
function show_highest_ranked_users() { //select out the users information to show the top users on the site $sql = "SELECT users.user_name,users.user_id,users.realname,user_metric.metric\n\t\tFROM user_metric,users\n\t\tWHERE users.user_id=user_metric.user_id AND user_metric.ranking < 11 AND users.status != 'D' \n\t\tORDER BY ranking ASC"; $res = db_query($sql); $rows = db_numrows($res); if (!$res || $rows < 1) { return _('No Stats Available') . db_error(); } else { $return = ''; for ($i = 0; $i < $rows; $i++) { $return .= $i + 1 . ' - (' . number_format(db_result($res, $i, 'metric'), 4) . ') ' . util_make_link_u(db_result($res, $i, 'user_name'), db_result($res, $i, 'user_id'), db_result($res, $i, 'realname')) . '<br />'; } } $return .= '<div align="center">' . util_make_link('/top/topusers.php', '[ ' . _('More') . ' ]') . '</div>'; return $return; }
} site_project_header(array('title' => _('Project Member List'), 'group' => $group_id, 'toptab' => 'memberlist')); echo _('<p>If you would like to contribute to this project by becoming a developer, contact one of the project admins, designated in bold text below.</p>'); // list members $query = "SELECT users.*,user_group.admin_flags,role.role_name AS role\n\tFROM users,user_group \n\tLEFT JOIN role ON user_group.role_id=role.role_id\n\tWHERE users.user_id=user_group.user_id \n\tAND user_group.group_id='{$group_id}' \n\tAND users.status='A'\n\tORDER BY users.user_name "; $title_arr = array(); $title_arr[] = _('Developer'); $title_arr[] = _('Username'); $title_arr[] = _('Role/Position'); if ($GLOBALS['sys_use_people']) { $title_arr[] = _('Skills'); } echo $GLOBALS['HTML']->listTableTop($title_arr); $res_memb = db_query($query); $i = 0; while ($row_memb = db_fetch_array($res_memb)) { echo '<tr ' . $HTML->boxGetAltRowStyle($i++) . '>'; if (trim($row_memb['admin_flags']) == 'A') { echo ' <td><strong>' . $row_memb['realname'] . '</strong></td>'; } else { echo ' <td>' . $row_memb['realname'] . '</td>'; } echo '<td align="center">' . util_make_link_u($row_memb['user_name'], $row_memb['user_id'], $row_memb['user_name']) . '</td> <td align="center">' . $row_memb['role'] . '</td>'; if ($GLOBALS['sys_use_people']) { echo '<td align="center">' . util_make_link('/people/viewprofile.php?user_id=' . $row_memb['user_id'], _('View')) . '</td>'; } echo '</tr>'; } echo $GLOBALS['HTML']->listTableBottom(); site_project_footer(array());
// ########################### Developers on this project echo $HTML->boxTop(_('Developer Info')); if (db_numrows($res_admin) > 0) { ?> <span class="develtitle"><?php echo _('Project Admins'); ?> :</span><br /> <?php $started_developers = false; while ($row_admin = db_fetch_array($res_admin)) { if (trim($row_admin['admin_flags']) != 'A' && !$started_developers) { $started_developers = true; echo '<span class="develtitle">' . _('Developers') . ':</span><br />'; } echo util_make_link_u($row_admin['user_name'], $row_admin['user_id'], $row_admin['realname']) . '<br />'; } ?> <hr width="100%" size="1" /> <?php } ?> <p><?php echo util_make_link('/project/memberlist.php?group_id=' . $group_id, '[' . _('View Members') . ']'); ?> </p> <p><?php echo util_make_link('/project/request.php?group_id=' . $group_id, '[' . _('Request to join') . ']'); ?> </p>
<h3>' . _('Versions Of This Package:') . '</h3> <p>'; $title_arr = array(); $title_arr[] = _('Package Version'); $title_arr[] = _('Date Posted'); $title_arr[] = _('Author'); $title_arr[] = _('Edit/Del'); echo $GLOBALS['HTML']->listTableTop($title_arr); /* determine the newest version of this package, so we can display the snippets that it contains */ $newest_version = db_result($result, 0, 'snippet_package_version_id'); for ($i = 0; $i < $rows; $i++) { echo ' <tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($i) . '><td>' . util_make_link('/snippet/detail.php?type=packagever&id=' . db_result($result, $i, 'snippet_package_version_id'), '<strong>' . db_result($result, $i, 'version') . '</strong>') . '</td><td>' . date(_('Y-m-d H:i'), db_result($result, $i, 'post_date')) . '</td><td>' . util_make_link_u(db_result($result, $i, 'user_name'), db_result($result, $i, 'user_id'), db_result($result, $i, 'realname')) . '</td>' . '<td style="text-align:center"><a href="' . util_make_url('/snippet/add_snippet_to_package.php?snippet_package_version_id=' . db_result($result, $i, 'snippet_package_version_id')) . '">' . html_image("ic/pencil.png", "20", "25", array("border" => "0")) . '</a> <a href="' . util_make_url('/snippet/delete.php?type=package&snippet_package_version_id=' . db_result($result, $i, 'snippet_package_version_id')) . '">' . html_image("ic/trash.png", "16", "16", array("border" => "0")) . '</a></td></tr>'; } echo $GLOBALS['HTML']->listTableBottom(); echo ' </p><p>' . _('Download a raw-text version of this code by clicking on "<strong>Download Version</strong>"') . ' </p>'; } /* show the latest version of the package and its snippets */ echo ' <p> </p> <hr /> <h2>' . _('Latest Package Version: ') . db_result($result, 0, 'version') . '</h2> <p> </p>
<td></td> </tr> <tr> <td> <strong><?php echo _('Submitted by'); ?> :</strong><br /> <?php echo $ah->getSubmittedRealName(); if ($ah->getSubmittedBy() != 100) { $submittedUnixName = $ah->getSubmittedUnixName(); $submittedBy = $ah->getSubmittedBy(); ?> (<tt><?php echo util_make_link_u($submittedUnixName, $submittedBy, $submittedUnixName); ?> </tt>) <?php } ?> </td> <td><strong><?php echo _('Assigned to'); ?> :</strong><br /> <?php echo $ah->getAssignedRealName(); ?> (<?php echo $ah->getAssignedUnixName();
$rows = 20; } else { $rows = db_numrows($res_new); } print ' <table width="100%" cellpadding="0" cellspacing="0" border="0">'; $seen = array(); for ($i = 0; $i < $rows; $i++) { $row_new = db_fetch_array($res_new); // avoid dupulicates of different file types if (!isset($seen[$row_new['group_id']])) { print ' <tr valign="top"> <td colspan="2">' . util_make_link_g($row_new['unix_group_name'], $row_new['group_id'], '<strong>' . $row_new['group_name'] . '</strong>') . ' </td> <td nowrap="nowrap"><em>' . _('Released by:') . util_make_link_u($row_new['user_name'], $row_new['user_id'], '<em>' . $row_new['user_name'] . '</em>') . ' </td> </tr> <tr> <td>' . _('Module:') . ' ' . $row_new['module_name'] . ' </td> <td>' . _('Version:') . ' ' . $row_new['release_version'] . ' </td> <td>' . date("M d, h:iA", $row_new['release_date']) . ' </td> </tr> <tr valign="top"> <td colspan="2"> <br />'; if ($row_new['short_description']) { print '<em>' . $row_new['short_description'] . '</em>'; } else {
} else { $title_arr = array(); $title_arr[] = _('Snippet ID'); $title_arr[] = _('Title'); $title_arr[] = _('Creator'); echo $GLOBALS['HTML']->listTableTop($title_arr); // List packages if there are any if ($rows2 > 0) { echo ' <tr class="tableheading"><td colspan="3">' . _('Packages Of Snippets') . '<td>'; } for ($i = 0; $i < $rows2; $i++) { echo ' <tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($i) . '><td rowspan="2">' . util_make_link('/snippet/detail.php?type=package&id=' . db_result($result2, $i, 'snippet_package_id'), '<strong>' . db_result($result2, $i, 'snippet_package_id') . '</strong>') . '</td><td><strong>' . db_result($result2, $i, 'name') . '</td><td>' . util_make_link_u(db_result($result2, $i, 'user_name'), db_result($result2, $i, 'user_id'), db_result($result2, $i, 'realname')) . '</td></tr>'; echo ' <tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($i) . '><td colspan="2">' . util_make_links(nl2br(db_result($result2, $i, 'description'))) . '</td></tr>'; } // List snippets if there are any if ($rows > 0) { echo ' <tr class="tableheading"><td colspan="3">' . _('Snippets') . '</td>'; } for ($i = 0; $i < $rows; $i++) { echo ' <tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($i) . '><td rowspan="2">' . util_make_link('/snippet/detail.php?type=snippet&id=' . db_result($result, $i, 'snippet_id'), '<strong>' . db_result($result, $i, 'snippet_id') . '</strong>') . '</td><td><strong>' . util_make_link('/snippet/detail.php?type=snippet&id=' . db_result($result, $i, 'snippet_id'), db_result($result, $i, 'name')) . '</strong></td><td>' . util_make_link_u(db_result($result, $i, 'user_name'), db_result($result, $i, 'user_id'), db_result($result, $i, 'realname')) . '</td></tr>'; echo ' <tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($i) . '><td colspan="2">' . util_make_links(nl2br(db_result($result, $i, 'description'))) . '</td></tr>'; } echo $GLOBALS['HTML']->listTableBottom(); } snippet_footer(array());
function getDetailedStats($params) { global $HTML; $group_id = $params['group_id']; $result = db_query(' SELECT u.realname, u.user_name, u.user_id, sum(commits) as commits, sum(adds) as adds, sum(adds+commits) as combined FROM stats_cvs_user s, users u WHERE group_id=\'' . $group_id . '\' AND s.user_id=u.user_id AND (commits>0 OR adds >0) GROUP BY group_id, realname, user_name ORDER BY combined DESC, realname; '); if (db_numrows($result) > 0) { $tableHeaders = array(_('Name'), _('Adds'), _('Updates')); echo $HTML->listTableTop($tableHeaders); $i = 0; $total = array('adds' => 0, 'commits' => 0); while ($data = db_fetch_array($result)) { echo '<tr ' . $HTML->boxGetAltRowStyle($i) . '>'; echo '<td width="50%">'; echo util_make_link_u($data['user_name'], $data['user_id'], $data['realname']); echo '</td><td width="25%" align="right">' . $data['adds'] . '</td>' . '<td width="25%" align="right">' . $data['commits'] . '</td></tr>'; $total['adds'] += $data['adds']; $total['commits'] += $data['commits']; $i++; } list($commit_num, $add_num) = $this->getTotalStats($group_id); if ($commit_num > $total['commits'] || $add_num > $total['adds']) { echo '<tr ' . $HTML->boxGetAltRowStyle($i) . '>'; echo '<td width="50%">' . _('Unknown') . '</td><td width="25%" align="right">' . ($add_num - $total['adds']) . '</td>' . '<td width="25%" align="right">' . ($commit_num - $total['commits']) . '</td></tr>'; $i++; } echo '<tr ' . $HTML->boxGetAltRowStyle($i) . '>'; echo '<td width="50%"><strong>' . _('Total') . ':</strong></td>' . '<td width="25%" align="right"><strong>' . $add_num . '</strong></td>' . '<td width="25%" align="right"><strong>' . $commit_num . '</strong></td>'; echo '</tr>'; echo $HTML->listTableBottom(); echo '<hr size="1" />'; } }
$yd_day = date('d', $yesterday); $res_top = db_query("\n\tSELECT user_metric.ranking,users.user_name,users.user_id,users.realname,\n\t\tuser_metric.metric,user_metric_history.ranking AS old_ranking\n\tFROM users,user_metric LEFT JOIN user_metric_history \n\t\tON (user_metric.user_id=user_metric_history.user_id \n\t\t AND user_metric_history.month='{$yd_month}'\n\t\t AND user_metric_history.day='{$yd_day}')\n\tWHERE users.user_id=user_metric.user_id\n\tORDER BY ranking ASC\n", $LIMIT, $offset); if (!$res_top || db_numrows($res_top) < 1) { exit_error(_('Information not available'), _('Information about highest ranked users is not available.') . ' ' . db_error()); } $HTML->header(array('title' => _('Top users'))); print '<h1>' . _('Top users') . '</h1> <br /><em>(' . _('Updated Daily') . ')</em> <p>' . util_make_link('/top/', '[' . _('View Other Top Categories') . ']') . '</p>'; $tableHeaders = array(_('Rank'), _('User name'), _('Real name'), _('Rating'), _('Last Rank'), _('Change')); echo $HTML->listTableTop($tableHeaders); $i = 0; while ($row_top = db_fetch_array($res_top)) { $i++; print '<tr ' . $HTML->boxGetAltRowStyle($i) . '><td> ' . $row_top['ranking'] . '</td><td>' . util_make_link_u($row_top['user_name'], $row_top['user_id'], $row_top['user_name']) . '</td>' . '<td>' . $row_top['realname'] . '</td>' . '</td><td align="right">' . sprintf('%.2f', $row_top['metric']) . ' </td><td align="right">' . $row_top['old_ranking'] . ' </td>' . '<td align="right">'; // calculate change $diff = $row_top["old_ranking"] - $row_top["ranking"]; if (!$row_top["old_ranking"] || !$row_top["ranking"]) { print _('N/A'); } else { if ($diff == 0) { print _('Same'); } else { if ($diff > 0) { print "<span class=\"up\"" . sprintf(_('Up %1$s'), $diff) . "</span>"; } else { if ($diff < 0) { print "<span class=\"down\">" . sprintf(_('Down %1$s'), 0 - $diff) . "</span>"; } }
function showSubmessages(&$msg_arr, $msg_id, $level) { /* Recursive. Selects this message's id in this thread, then checks if any messages are nested underneath it. If there are, it calls itself, incrementing $level $level is used for indentation of the threads. */ global $total_rows, $forum_id, $current_message, $group_id; $rows = count($msg_arr["{$msg_id}"]); $ret_val = ""; //echo "<p>ShowSubmessages() $msg_id | $rows"; if ($rows > 0) { for ($i = $rows - 1; $i >= 0; $i--) { /* Is this row's background shaded or not? */ $total_rows++; $ret_val .= ' <tr ' . $GLOBALS['HTML']->boxGetAltRowStyle($total_rows) . '><td nowrap="nowrap">'; /* How far should it indent? */ for ($i2 = 0; $i2 < $level; $i2++) { $ret_val .= ' '; } /* If it this is the message being displayed, don't show a link to it */ if ($current_message != $msg_arr["{$msg_id}"][$i]->getID()) { $ah_begin = '<a href="' . util_make_url('/forum/message.php?msg_id=' . $msg_arr["{$msg_id}"][$i]->getID() . '&group_id=' . $group_id) . '">'; $ah_end = '</a>'; } else { $ah_begin = ''; $ah_end = ''; } $ret_val .= $ah_begin . html_image('ic/msg.png', "10", "12", array("border" => "0")); /* See if this message is new or not */ if ($this->Forum->getSavedDate() < $msg_arr["{$msg_id}"][$i]->getPostDate()) { $bold_begin = '<strong>'; $bold_end = '</strong>'; } else { $bold_begin = ''; $bold_end = ''; } $ret_val .= $bold_begin . $msg_arr["{$msg_id}"][$i]->getSubject() . $bold_end . $ah_end . '</td>' . '<td>' . util_make_link_u($msg_arr["{$msg_id}"][$i]->getPosterName(), $msg_arr["{$msg_id}"][$i]->getPosterID(), $msg_arr["{$msg_id}"][$i]->getPosterRealName()) . '</td>' . '<td>' . date(_('Y-m-d H:i'), $msg_arr["{$msg_id}"][$i]->getPostDate()) . '</td></tr>'; if ($msg_arr["{$msg_id}"][$i]->hasFollowups() > 0) { /* Call yourself, incrementing the level */ $ret_val .= $this->showSubmessages($msg_arr, $msg_arr["{$msg_id}"][$i]->getID(), $level + 1); } } } return $ret_val; }
} ?> <form action="<?php echo getStringFromServer('PHP_SELF') . '?group_id=' . $group_id; ?> " method="post"> <input type="hidden" name="submit" value="y" /> <input type="hidden" name="form_userid" value="<?php echo $user->getId(); ?> " /> <tr><td><input type="hidden" name="form_unix_name" value="<?php echo $user->getUnixName(); ?> " /><?php echo util_make_link_u($user->getUnixName(), $user->getId(), $user->getRealName()); ?> </td> <td><?php echo role_box($group_id, 'role_id', $row_memb['role_id']); ?> <input type="submit" name="acceptpending" value="<?php echo _('Accept'); ?> " /> <input type="submit" name="rejectpending" value="<?php echo _('Reject'); ?> " /></td> </tr></form>
break; case 'trackeropen': $icon = html_image("ic/tracker20g.png", '20', '20', array('alt' => 'Tracker')); $url = util_make_link('/tracker/?func=detail&atid=' . $arr['ref_id'] . '&aid=' . $arr['subref_id'] . '&group_id=' . $arr['group_id'], _('Tracker Item') . ' [#' . $arr['subref_id'] . ' ' . $arr['description'] . ' ] ' . _('Opened')); break; case 'trackerclose': $icon = html_image("ic/tracker20g.png", '20', '20', array('alt' => 'Tracker')); $url = util_make_link('/tracker/?func=detail&atid=' . $arr['ref_id'] . '&aid=' . $arr['subref_id'] . '&group_id=' . $arr['group_id'], _('Tracker Item') . ' [#' . $arr['subref_id'] . ' ' . $arr['description'] . ' ] ' . _('Closed')); break; case 'frsrelease': $icon = html_image("ic/cvs16b.png", "20", "20", array("border" => "0", "alt" => "SCM")); $url = util_make_link('/frs/?release_id=' . $arr['subref_id'] . '&group_id=' . $arr['group_id'], _('FRS Release') . ' ' . $arr['description']); break; case 'forumpost': $icon = html_image("ic/forum20g.png", "20", "20", array("border" => "0", "alt" => "Forum")); $url = util_make_link('/forum/message.php?msg_id=' . $arr['subref_id'] . '&group_id=' . $arr['group_id'], _('Forum Post ') . ' ' . $arr['description']); break; case 'news': $icon = html_image("ic/write16w.png", "20", "20", array("border" => "0", "alt" => "News")); $url = util_make_link('/forum/forum.php?forum_id=' . $arr['subref_id'], _('News') . ' ' . $arr['description']); break; } echo '<tr ' . $HTML->boxGetAltRowStyle($j++) . '> <td> ' . date('H:i:s', $arr['activity_date']) . '</td> <td>' . $icon . ' ' . $url . '</td> <td>' . util_make_link_u($arr['user_name'], $arr['user_id'], $arr['realname']) . '</td> </tr>'; } echo $HTML->listTableBottom($theader); } site_project_footer(array());
<p> <?php echo _('Welcome'); ?> <strong><?php print $u->getRealName(); ?> </strong>. </p> <p> <?php echo _('Account options:'); ?> </p> <ul> <li><?php echo util_make_link_u($u->getUnixName(), $u->getId(), '<strong>' . _('View My Developer Profile') . '</strong>'); ?> </a></li> <?php if ($GLOBALS['sys_use_people']) { ?> <li><?php echo util_make_link('/people/editprofile.php', '<strong>' . _('Edit My Skills Profile') . '</strong>'); ?> </a></li> <?php } ?> </ul> <?php echo $HTML->boxBottom();