Menu

[r13]: / projects_site / showallteamtasks.php  Maximize  Restore  History

Download this file

105 lines (89 with data), 3.1 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
<?php
/*
** Application name: phpCollab
** Last Edit page: 18/05/2005
** Path by root: ../project_site/showllteamtasks.php
** Authors: Ceam / Fullo
**
** =============================================================================
**
** phpCollab - Project Managment
**
** -----------------------------------------------------------------------------
** Please refer to license, copyright, and credits in README.TXT
**
** -----------------------------------------------------------------------------
** FILE: showallteamtasks.php
**
** DESC: Screen: library file
**
** HISTORY:
** 18/05/2005 - show all the team task images
** 26/08/2005 - [1273927] fix jpgraph wrong link
** -----------------------------------------------------------------------------
** TO-DO:
**
**
** =============================================================================
*/
$projectSite = "true";
$checkSession = "true";
include("../includes/library.php");
$bouton[2] = "over";
$titlePage = $strings["team_tasks"];
include ("include_header.php");
$tmpquery = "WHERE tas.project = '$projectSession' AND tas.assigned_to != '0' AND tas.published = '0' AND mem.organization = '1' ORDER BY tas.name";
$listTasks = new request();
$listTasks->openTasks($tmpquery);
$comptListTasks = count($listTasks->tas_id);
$block1 = new block();
$block1->heading($strings["team_tasks"]);
if ($comptListTasks != "0")
{
if ($activeJpgraph == "true")
{
echo "<img src='graphtasks.php?".session_name()."=".session_id()."&project=".$projectDetail->pro_id[0]."' alt=''><span class='listEvenBold'>[<a href='http://www.aditus.nu/jpgraph/' target='_blank'>JpGraph</a>]</span><br/><br/>";
}
echo " <table cellspacing='0' width='90%' border='0' cellpadding='3' cols='4' class='listing'>
<tr>
<th class='active'>".$strings["name"]."</th>
<th>".$strings["description"]."</th>
<th>".$strings["status"]."</th>
<th>".$strings["due"]."</th>
</tr>";
for ($i=0;$i<$comptListTasks;$i++)
{
if (!($i%2))
{
$class = "odd";
$highlightOff = $block1->oddColor;
}
else
{
$class = "even";
$highlightOff = $block1->evenColor;
}
if ($listTasks->tas_due_date[$i] == "")
{
$listTasks->tas_due_date[$i] = $strings["none"];
}
$idStatus = $listTasks->tas_status[$i];
echo " <tr class='$class' onmouseover=\"this.style.backgroundColor='".$block1->highlightOn."'\" onmouseout=\"this.style.backgroundColor='".$highlightOff."'\">
<td><a href='teamtaskdetail.php?$transmitSid&id=".$listTasks->tas_id[$i]."'>".$listTasks->tas_name[$i]."</a></td>
<td>".nl2br($listTasks->tas_description[$i])."</td>
<td>$status[$idStatus]</td><td>".$listTasks->tas_due_date[$i]."</td>
</tr>";
}
echo "</table> <hr />\n";
}
else
{
echo " <table cellspacing='0' border='0' cellpadding='2'>
<tr>
<td colspan='4'>".$strings["no_items"]."</td>
</tr>
</table><hr />";
}
echo "<br/><br/><a href='addteamtask.php?$transmitSid' class='FooterCell'>".$strings["add_task"]."</a>";
include ("include_footer.php");
?>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.