// Change to html for BO referrers page

This commit is contained in:
tDidierjean
2011-12-30 09:49:03 +00:00
parent 5bcc54ff13
commit 69570cef85
2 changed files with 78 additions and 1 deletions
+23 -1
View File
@@ -353,7 +353,7 @@ class AdminReferrersControllerCore extends AdminController
public function displayCalendar($action = null, $table = null, $identifier = null, $id = null)
{
return AdminStatsTabController::displayCalendarForm(array(
return self::displayCalendarForm(array(
'Calendar' => $this->l('Calendar'),
'Day' => $this->l('Today'),
'Month' => $this->l('Month'),
@@ -361,6 +361,28 @@ class AdminReferrersControllerCore extends AdminController
), $this->token, $action, $table, $identifier, $id);
}
public static function displayCalendarForm($translations, $token, $action = null, $table = null, $identifier = null, $id = null)
{
$context = Context::getContext();
$tpl = $context->smarty->createTemplate('referrers/calendar.tpl');
$context->controller->addJqueryUI('ui.datepicker');
$tpl->assign(array(
'current' => self::$currentIndex,
'token' => $token,
'action' => $action,
'table' => $table,
'identifier' => $identifier,
'id' => $id,
'translations' => $translations,
'datepickerFrom' => Tools::getValue('datepickerFrom', $context->employee->stats_date_from),
'datepickerTo' => Tools::getValue('datepickerTo', $context->employee->stats_date_to)
));
return $tpl->fetch();
}
public function displaySettings()
{
if (!Tools::isSubmit('viewreferrer'))