data->count()) { // prepare array of data $arrData = array(); $c = $d = $cid = -1; while ($this->data->next()) { if ($cid != $this->data->getUid()) { $c++; $d=0; $cid = $this->data->getUid(); } $arrData[$c][$d] = clone($this->data); $d++; } // start list echo HtmlFormHelper::iForm('tasks'); ?> current)?$this->current->getUid():0; for($j=0;$j<=$c;$j++) { $arrObj = $arrData[$j]; $d = count($arrObj); $k=0; $str = ''; $subtotal = 0; $obj = $arrObj[0]; $id = $obj->getUid(); // first loop to get total time spent on task foreach ($arrObj as $obj) { $subtotal += $obj->get('spent'); } $total += $subtotal; $obj->chkDeadline(); // first row displays task information echo 'filter)?$obj->curCss(($d>1)?'noline':''):($d>1?' class="noline"':'')) .'>'; // checkbox echo ''; // deadline echo ''; echo ''; // start and end if ($d>1) { // many timer, skip info here echo ''; echo ''; } else { echo ''; echo ''; } // subtotal echo ''; echo ''; if ($d == 1) { // no timers defined, skip to next task continue; } // second loop to display timers foreach ($arrObj as $obj) { $id = $obj->getUid(); $k++; echo ''; // checkbox echo ''; // deadline echo ''; // title echo ''; // start echo ''; // stop echo ''; // time spent echo ''; echo ''; } } ?>
  deadline item(s) found task start stop spent
'.$obj->htmlDeadline().''; // edit link echo 'edit'; // priority echo ''.$obj->get('priority').' '; // note echo 'isEmpty('note')) { echo 'class="ajax box clickme"'; } else { echo 'class="note ajax box clickme" '; echo 'title="'.$obj->html('note',200).'"'; } echo '>'; // title echo $obj->html('title'); echo ''; echo '  '.$obj->htmlBegin().''.$obj->htmlEnd().''; if ($obj->isOpened($this->user_id)) { echo 'start'; } echo TaskSummary::htmlTime($subtotal); echo '
   '.$obj->htmlBegin().''.$obj->htmlEnd().''.$obj->getTimeSpent().'
select all | actions as $key => $label) { echo ' '; } ?> TOTAL
No Task found

'; }