_('Cron Manager'))); $which = getIntFromRequest('which', 100); ?>
listTableTop ($title_arr); if ($which==100) { $res = db_query_params ('SELECT COUNT(*) AS count FROM cron_history', array ()); } else { $res = db_query_params ('SELECT COUNT(*) AS count FROM cron_history WHERE job=$1', array ($which)); } $totalCount = db_result($res, 0, 'count'); $offset = getIntFromRequest('offset'); if($offset > $totalCount) { $offset = 0; } if ($which==100) { $res = db_query_params ('SELECT * FROM cron_history ORDER BY rundate DESC', array (), ADMIN_CRONMAN_ROWS, $offset); } else { $res = db_query_params ('SELECT * FROM cron_history WHERE job=$1 ORDER BY rundate DESC', array ($which), ADMIN_CRONMAN_ROWS, $offset); } for ($i=0; $i' . html_image('t2.png', '15', '15') . ' '._('Previous').''; } else { echo ' '; } echo ' | '; if ($totalCount > $offset + ADMIN_CRONMAN_ROWS) { $nextUrl = 'cronman.php?which='.$which.'&offset='.($offset + ADMIN_CRONMAN_ROWS); echo '' ._('Next').' ' . html_image('t.png', '15', '15') . ''; } else { echo ' '; } ?> |