', $txt['scheduled_tasks_were_run'], ' '; else { echo '
', $txt['scheduled_tasks_were_run_errors'], '
'; foreach ($context['scheduled_errors'] as $task => $errors) { echo '
', isset($txt['scheduled_task_' . $task]) ? $txt['scheduled_task_' . $task] : $task, '
  • ', implode('
  • ', $errors), '
'; } echo '
'; } } template_show_list('scheduled_tasks'); } // A template for, you guessed it, editing a task! function template_edit_scheduled_tasks() { global $context, $txt, $scripturl, $modSettings; // Starts off with general maintenance procedures. echo '

', $txt['scheduled_task_edit'], '

', sprintf($txt['scheduled_task_time_offset'], $context['server_time']), '
', $txt['scheduled_tasks_name'], ':
', $context['task']['name'], '
', $context['task']['desc'], '
', $txt['scheduled_task_edit_repeat'], '

', $txt['scheduled_task_edit_start_time_desc'], '
'; } ?>