// Change to html for BO referrers page
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user