getModel('claim');
$tipModel = $this->getModel('tooltip');
$document->addCustomTag('');
$document->addCustomTag('');
$document->addCustomTag('');
$document->addCustomTag('');
$document->addCustomTag('');
$document->addStyleSheet(JRoute :: _(JURI :: base() . 'media/system/css/calendar-jos.css'));
$document->addStyleSheet(JRoute :: _(JURI :: base() . 'plugins/content/yoo_tooltip/yoo_tooltip.css.php'));
$from = urldecode(JRequest::getVar('fromDate', urlencode(date('d/m/Y', time() - 7*24*60*60))));
$to = urldecode(JRequest::getVar('toDate', urlencode(date('d/m/Y'))));
$orderBy = JRequest::getVar('orderBy', 'title');
$action = JRequest::getVar('action', '');
if ($action == 'removeSelected') {
$toDelete = JRequest::getVar('toDelete', '');
foreach (explode(",", $toDelete) as $doc) {
$doc = explode("#", $doc);
$model->deleteClaim($doc[0]);
}
}
$claims = $model->getAllClaimedDocuments($from, $to, $orderBy);
$this->assignRef('claims', $claims);
$this->assignRef('fromDate', $from);
$this->assignRef('toDate', $to);
parent::display($tpl);
}
}
?>