getName(),$cronTask->getModule()); $cron_status = $cronTask->getStatus(); $cron_freq = $cronTask->getFrequency(); $cron_desc = $cronTask->getDescription(); $cron = Array(); $cron['label'] = $label; if($cron_freq/(60*60)>1){ $cron['frequency']=(int)($cron_freq/(60*60)); $cron['time'] = 'hour'; } else{ $cron['frequency']=(int)($cron_freq/60); $cron['time'] = 'min'; } $cron['status'] = $cron_status; $cron['description'] = $cron_desc; $cron['id']=$id; $smarty->assign("CRON_DETAILS",$cron); $smarty->assign("MOD", return_module_language($current_language,'CronTasks')); $smarty->assign("THEME", $theme); $smarty->assign("IMAGE_PATH",$image_path); $smarty->assign("APP", $app_strings); $smarty->assign("CMOD", $mod_strings); $smarty->assign("MIN_CRON_FREQUENCY", getMinimumCronFrequency()); $smarty->display("modules/CronTasks/EditCron.tpl"); } else { header("Location:index.php?module=CronTasks&action=ListCronJobs&directmode=ajax"); } ?>