return false;
}
- // getActiveProjects - returns an array of active projects for a group.
- static function getActiveProjects($group_id)
- {
- $result = array();
- $mdb2 = getConnection();
-
- $sql = "select id, name, description, tasks from tt_projects
- where group_id = $group_id and status = 1 order by upper(name)";
- $res = $mdb2->query($sql);
- $result = array();
- if (!is_a($res, 'PEAR_Error')) {
- while ($val = $res->fetchRow()) {
- $result[] = $val;
- }
- }
- return $result;
- }
-
// The getAllProjects obtains all projects in a group.
static function getAllProjects($group_id, $all_fields = false) {
$mdb2 = getConnection();
$user_part .= ' <span class="onBehalf">'.$i18n->get('label.on_behalf').' '.htmlspecialchars($this->behalf_name).'</span>';
}
if ($this->behalf_group_id) {
- $user_part .= ', <span class="onBehalf">'.$i18n->get('label.on_behalf').' '.htmlspecialchars($this->behalf_group_name).'</span>';
+ $user_part .= ', <span class="onBehalf">'.htmlspecialchars($this->behalf_group_name).'</span>';
} else {
if ($this->group_name) // Note: we did not require group names in the past.
$user_part .= ', '.$this->group_name;
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.18.29.4565 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.18.29.4566 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
require_once('../initialize.php');
import('form.Form');
-import('ttTeamHelper');
+import('ttGroupHelper');
import('ttTaskHelper');
// Access checks.
}
// End of access checks.
-$projects = ttTeamHelper::getActiveProjects($user->group_id);
+$projects = ttGroupHelper::getActiveProjects();
if ($request->isPost()) {
$cl_name = trim($request->getParameter('name'));
$form->addInput(array('type'=>'floatfield','maxlength'=>'10','name'=>'rate','format'=>'.2','value'=>$cl_rate));
-$projects = ttTeamHelper::getActiveProjects($user->group_id);
+$projects = ttGroupHelper::getActiveProjects();
// Define classes for the projects table.
class NameCellRenderer extends DefaultCellRenderer {
if ($user->isPluginEnabled('cl'))
$clients = ttGroupHelper::getActiveClients();
-$projects = ttTeamHelper::getActiveProjects($user->group_id);
+$projects = ttGroupHelper::getActiveProjects();
$assigned_projects = array();
if ($request->isPost()) {
require_once('initialize.php');
import('form.Form');
import('form.ActionForm');
-import('ttTeamHelper');
+import('ttGroupHelper');
import('ttTaskHelper');
// Access checks.
}
// End of access checks.
-$projects = ttTeamHelper::getActiveProjects($user->getGroup());
+$projects = ttGroupHelper::getActiveProjects();
if ($request->isPost()) {
$cl_name = trim($request->getParameter('name'));
require_once('initialize.php');
import('form.Form');
-import('ttTeamHelper');
+import('ttGroupHelper');
import('ttTaskHelper');
// Access checks.
}
// End of access checks.
-$projects = ttTeamHelper::getActiveProjects($user->getGroup());
+$projects = ttGroupHelper::getActiveProjects();
if ($request->isPost()) {
$cl_name = trim($request->getParameter('name'));
$form->addInput(array('type'=>'floatfield','maxlength'=>'10','name'=>'rate','format'=>'.2','value'=>$cl_rate));
-$projects = ttTeamHelper::getActiveProjects($user->getGroup());
+$projects = ttGroupHelper::getActiveProjects();
// Define classes for the projects table.
class NameCellRenderer extends DefaultCellRenderer {
if ($user->isPluginEnabled('cl'))
$clients = ttGroupHelper::getActiveClients();
-$projects = ttTeamHelper::getActiveProjects($user->getGroup());
+$projects = ttGroupHelper::getActiveProjects();
$assigned_projects = array();
if ($request->isPost()) {