$setting->currentWeek = (int) $current->toFormat('%W');
$setting->currentWeek = (int) $current->toFormat('%W')+1;
$arr[] = JHTML::_('select.option', $week . ',' . $year, $week . '/' . $year);
$arr[] = JHTML::_('select.option', $week+1 . ',' . $year, $week+1 . '/' . $year);
if((int)$setting->week > 0) $calc_date=$setting->year . '-W' . str_pad($setting->week, 2, '0', STR_PAD_LEFT);else $calc_date=$setting->year;