SimplePortal > Site Discussion
Project Tools Block
α¢αηѕ:
I was looking over the most boards here as well as the search feature and i cannot find a topic about the Project Tools block on the front page.
Will this block be released? or only for SP.net
Masterd:
I'm also interested in it.
[SiNaN]:
It was posted in the Blocks and Modifications board but here is the latest code:
--- Code: --- global $context, $settings, $project, $txt;
$block_parameters = array();
if ($return_parameters)
return $block_parameters;
loadLanguage('Project');
$project = 1;
$num_issues = 5;
$order = 'i.updated DESC';
$issues = getIssueList(0, $num_issues, $order, '1 = 1');
echo '
<table class="bordercolor issuetable" cellspacing="0">';
foreach ($issues as $issue)
{
echo '
<tr>
<td class="windowbg sp_center issue_', $issue['status']['name'], '" style="width: 24px; border-bottom: 1px solid #FFF;">
<img src="', $settings['images_url'], '/', $issue['tracker']['image'], '" alt="', $issue['tracker']['name'], '" />
</td>
<td class="info issue_', $issue['status']['name'], '" style="border-bottom: 1px solid #FFF;">
', !empty($issue['category']['link']) ? '[' . $issue['category']['link'] . '] ' : '', $issue['link'], ' ';
if ($issue['new'] && $context['user']['is_logged'])
echo '
<a href="', $issue['new_href'], '"><img src="', $settings['lang_images_url'], '/new.gif" alt="', $txt['new'], '" /></a>';
echo '
<br /><span class="smalltext">', !empty($issue['version']['link']) ? '[' . $issue['version']['link'] . '] ' : '', $txt['issue_status_' . $issue['status']['name']], $issue['is_assigned'] ? ' (' . $issue['assigned']['link'] . ')' : '', '</span>
</td>
</tr>';
}
echo '
</table>';
--- End code ---
Masterd:
Thanks, [SiNaN]!
Masterd:
It's not working.
Navigation
[0] Message Index
[#] Next page
Go to full version