<ul class="listInfo"> <?php if ($c['tasks_status_id'] > 0) { ?> <li><?php echo '<span>' . __('Status') . ':</span> ' . app::getNameByTableId('TasksStatus', $c['tasks_status_id']); ?> </li> <?php } if ($c['tasks_priority_id'] > 0) { ?> <li><?php echo '<span>' . __('Priority') . ':</span> ' . app::getNameByTableId('TasksPriority', $c['tasks_priority_id']); ?> </li> <?php } if (strlen($c['due_date']) > 0) { ?> <li><?php echo '<span>' . __('Due Date') . ':</span> ' . app::dateTimeFormat($c['due_date']); ?> </li> <?php } if ($c['worked_hours'] > 0) { ?> <li><?php echo '<span>' . __('Work Hours') . ':</span> ' . $c['worked_hours']; ?>
</td> <td valign="top"><div id="filtersPreviewMenuBox"> <?php switch ($table) { case 'Users': $m = app::getFilterMenuUsers(array(), $table, 'In Team', 'projects/index', false, $filter_by[$table]); break; default: $m = app::getFilterMenuItemsByTable(array(), $table, $title, 'projects/index', false, $filter_by[$table], $sf_user); break; } echo renderYuiMenu('filtersMenu' . $table, $m); ?> </div></td> <td valign="top" class="selectedFilterItems"><?php echo strstr($table, 'extraField') ? $filter_by[$table] : app::getNameByTableId($table, $filter_by[$table]); ?> </td> </tr> </table> </div> <script type="text/javascript"> YAHOO.util.Event.onContentReady("filtersMenu<?php echo $table; ?> ", function () { var oMenuBar = new YAHOO.widget.MenuBar("filtersMenu<?php echo $table; ?> ", {autosubmenudisplay: true,hidedelay: 350,submenuhidedelay: 0,showdelay: 150,keepopen: true,lazyload: true });
<ul class="listInfo"> <?php if ($c['discussions_status_id'] > 0) { ?> <li><?php echo '<span>' . __('Status') . ':</span> ' . app::getNameByTableId('DiscussionsStatus', $c['discussions_status_id']); ?> </li> <?php } ?> </ul>
<ul class="listInfo"> <?php if ($c['tickets_status_id'] > 0) { ?> <li><?php echo '<span>' . __('Status') . ':</span> ' . app::getNameByTableId('TicketsStatus', $c['tickets_status_id']); ?> </li> <?php } ?> </ul>
protected function addCommentIfStatusChanged($previeous_status, $projects) { if ($previeous_status != $projects->getProjectsStatusId() and $previeous_status > 0) { $c = new ProjectsComments(); $c->setDescription(t::__('Status') . ': ' . app::getNameByTableId('ProjectsStatus', $projects->getProjectsStatusId())); $c->setProjectsId($projects->getId()); $c->setCreatedAt(date('Y-m-d H:i:s')); $c->setCreatedBy($this->getUser()->getAttribute('id')); $c->save(); } return $projects; }