| @@ 422-453 (lines=32) @@ | ||
| 419 | bab_functionality::includeOriginal('Icons'); |
|
| 420 | } |
|
| 421 | ||
| 422 | public function getnext() |
|
| 423 | { |
|
| 424 | if (($this->res->key() - $this->pos) >= self::MAX) |
|
| 425 | { |
|
| 426 | return false; |
|
| 427 | } |
|
| 428 | ||
| 429 | if ($this->res->valid()) |
|
| 430 | { |
|
| 431 | $W = bab_Widgets(); |
|
| 432 | $movement = $this->res->current(); |
|
| 433 | /*@var $movement absences_Movement */ |
|
| 434 | ||
| 435 | $this->altbg = !$this->altbg; |
|
| 436 | ||
| 437 | $this->author = bab_toHtml(bab_getUserName($movement->id_author)); |
|
| 438 | $this->date = bab_toHtml(bab_shortDate(bab_mktime($movement->createdOn))); |
|
| 439 | if ($request = $movement->getRequest()) |
|
| 440 | { |
|
| 441 | $this->request = $request->getManagerFrame()->addClass(Func_Icons::ICON_LEFT_16)->display($W->HtmlCanvas()); |
|
| 442 | } else { |
|
| 443 | $this->request = ''; |
|
| 444 | } |
|
| 445 | $this->message = bab_toHtml($movement->message); |
|
| 446 | $this->comment = bab_toHtml($movement->comment); |
|
| 447 | ||
| 448 | $this->res->next(); |
|
| 449 | return true; |
|
| 450 | } |
|
| 451 | ||
| 452 | return false; |
|
| 453 | } |
|
| 454 | ||
| 455 | public function getHtml() |
|
| 456 | { |
|
| @@ 504-535 (lines=32) @@ | ||
| 501 | bab_functionality::includeOriginal('Icons'); |
|
| 502 | } |
|
| 503 | ||
| 504 | public function getnext() |
|
| 505 | { |
|
| 506 | if (($this->res->key() - $this->pos) >= self::MAX) |
|
| 507 | { |
|
| 508 | return false; |
|
| 509 | } |
|
| 510 | ||
| 511 | if ($this->res->valid()) |
|
| 512 | { |
|
| 513 | $W = bab_Widgets(); |
|
| 514 | $movement = $this->res->current(); |
|
| 515 | /*@var $movement absences_Movement */ |
|
| 516 | ||
| 517 | $this->altbg = !$this->altbg; |
|
| 518 | ||
| 519 | $this->author = bab_toHtml(bab_getUserName($movement->id_author)); |
|
| 520 | $this->date = bab_toHtml(bab_shortDate(bab_mktime($movement->createdOn))); |
|
| 521 | if ($request = $movement->getRequest()) |
|
| 522 | { |
|
| 523 | $this->request = $request->getManagerFrame()->addClass(Func_Icons::ICON_LEFT_16)->display($W->HtmlCanvas()); |
|
| 524 | } else { |
|
| 525 | $this->request = ''; |
|
| 526 | } |
|
| 527 | $this->message = bab_toHtml($movement->message); |
|
| 528 | $this->comment = bab_toHtml($movement->comment); |
|
| 529 | ||
| 530 | $this->res->next(); |
|
| 531 | return true; |
|
| 532 | } |
|
| 533 | ||
| 534 | return false; |
|
| 535 | } |
|
| 536 | ||
| 537 | public function getHtml() |
|
| 538 | { |
|