* @version $Id$
* @access public
* @license http://opensource.org/licenses/gpl-3.0.html
*/
// @todo the way filters are handled should be enhanced
/**
* DisplayFilter()
* Call specific filters functions
* filters are defined in config/define_globals.php
* filters methods are declared in this file.
* @return void
*/
function DisplayFilter() {
$content='';
if(is_array($GLOBALS['filters'][U_L])) {
$bool = (in_array(1, array_values($GLOBALS['filters'][U_L]))) ? true : false;
if($bool) echo '
'.PHP_EOL;
while (list($key,$value) = each ($GLOBALS['filters'][U_L])) {
if($value['active'] == 1 && function_exists('Get'.ucfirst($key).'Filter')) {
eval('Get'.ucfirst($key).'Filter();');
}
}
if($bool) echo '
'.PHP_EOL;
}
}
/**
* GetPriorityFilter()
* Display a list of priorities
* as filter criteria
* @return void
*/
function GetPriorityFilter() {
$result=$GLOBALS['sql_object']->DBSelect(SQL_Get_FilterPriority());
$list="