data['contracts'] ?? []; $previous = empty($contracts) ? '{/base}/contract/list' : '{/base}/contract/list?{?}&offset=' . \reset($contracts)->id . '&ptype=p'; $next = empty($contracts) ? '{/base}/contract/list' : '{/base}/contract/list?{?}&offset=' . \end($contracts)->id . '&ptype=n'; $now = new \DateTime('now'); echo $this->data['nav']->render(); ?>
getHtml('Contracts'); ?> getHtml('New', '0', '0'); ?>
$value) : ++$count; $url = UriFactory::build('{/base}/contract/view?{?}&id=' . $value->id); $type = 'ok'; if ($value->end !== null) { if (($value->end->getTimestamp() < $now->getTimestamp() && $value->end->getTimestamp() + 7776000 > $now->getTimestamp()) || ($value->end->getTimestamp() > $now->getTimestamp() && $value->end->getTimestamp() - 7776000 < $now->getTimestamp()) ) { $type = 'error'; } elseif ($value->end->getTimestamp() < $now->getTimestamp()) { $type = 'info'; } elseif ($value->end->getTimestamp() + 7776000 < $now->getTimestamp()) { $type = 'warning'; } } ?>
getHtml('Title'); ?> getHtml('With'); ?> getHtml('End'); ?>
printHtml($value->title); ?> printHtml($value->account->name1); ?> printHtml($value->account->name2); ?> end !== null) : ?> end !== null ? $value->end->format('Y-m-d') : ''; ?>
getHtml('Empty', '0', '0'); ?>