getState('bench-algo'); if (empty($algo)) $algo = 'all'; $this->pageTitle = "Benchmarks"; echo '
'; if ($algo == 'all') { echo "Last 50 results"; } else { echo "Last 150 $algo results"; } echo '
'; if($algo != 'all') $db_rows = getdbolist('db_benchmarks', "algo=:algo ORDER BY time DESC LIMIT 50", array(':algo'=>$algo)); else $db_rows = getdbolist('db_benchmarks', "1 ORDER BY time DESC LIMIT 150"); showTableSorter('maintable', "{ tableClass: 'dataGrid', widgets: ['zebra','filter'], textExtraction: { 1: function(node, table, n) { return $(node).attr('data'); }, 5: function(node, table, n) { return $(node).attr('data'); }, 6: function(node, table, n) { return $(node).attr('data'); } }, widgetOptions: { filter_external: '.search', filter_columnFilters: false, filter_childRows : true, filter_ignoreCase: true } }"); $actions = ''; if ($this->admin) { $actions = '