Subversion Repositories ALCASAR

Rev

Rev 356 | Rev 1831 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 356 Rev 486
Line 245... Line 245...
245
if ($config[sql_accounting_extra_query] != '')
245
if ($config[sql_accounting_extra_query] != '')
246
	$sql_extra_query = xlat($config[sql_accounting_extra_query],$login,$config);
246
	$sql_extra_query = xlat($config[sql_accounting_extra_query],$login,$config);
247
	$sql_extra_query = da_sql_escape_string($sql_extra_query);
247
	$sql_extra_query = da_sql_escape_string($sql_extra_query);
248
$query="SELECT " . da_sql_limit($maxresults,0,$config) . " $query_view FROM $config[sql_accounting_table]
248
$query="SELECT " . da_sql_limit($maxresults,0,$config) . " $query_view FROM $config[sql_accounting_table]
249
	$where $sql_extra_query " . da_sql_limit($maxresults,1,$config) .
249
	$where $sql_extra_query " . da_sql_limit($maxresults,1,$config) .
250
	" ORDER BY $order " . da_sql_limit($maxresults,2,$config) . ";";
250
	" ORDER BY $order DESC " . da_sql_limit($maxresults,2,$config) . ";";
251
 
251
 
252
echo <<<EOM
252
echo <<<EOM
253
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
253
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
254
	<tr><td>
254
	<tr><td>
255
<p>
255
<p>