Line 44... |
Line 44... |
44 |
$prev_str = (isset($prev_str) && $prev_str != '') ? "$prev_str" : date($config['sql_date_format'], $now - 604800 );
|
44 |
$prev_str = (isset($prev_str) && $prev_str != '') ? "$prev_str" : date($config['sql_date_format'], $now - 604800 );
|
45 |
$num = 0;
|
45 |
$num = 0;
|
46 |
$pagesize = (isset($pagesize) && $pagesize) ? $pagesize : 10;
|
46 |
$pagesize = (isset($pagesize) && $pagesize) ? $pagesize : 10;
|
47 |
if (!is_numeric($pagesize) && $pagesize != 'all')
|
47 |
if (!is_numeric($pagesize) && $pagesize != 'all')
|
48 |
$pagesize = 10;
|
48 |
$pagesize = 10;
|
49 |
$limit = ($pagesize == 'all') ? '' : "$pagesize";
|
49 |
$limit = ($pagesize == 'all') ? 'ALL' : "$pagesize";
|
50 |
$selected[$pagesize] = 'selected';
|
50 |
$selected[$pagesize] = 'selected';
|
51 |
$order = (isset($order) && $order != '') ? $order : $config['general_accounting_info_order'];
|
51 |
$order = (isset($order) && $order != '') ? $order : $config['general_accounting_info_order'];
|
52 |
if ($order != 'desc' && $order != 'asc')
|
52 |
if ($order != 'desc' && $order != 'asc')
|
53 |
$order = 'desc';
|
53 |
$order = 'desc';
|
54 |
$selected[$order] = 'selected';
|
54 |
$selected[$order] = 'selected';
|