?iť?
Current Path : /home/scgforma/www/soctest/htdocs/core/tpl/ |
Current File : /home/scgforma/www/soctest/htdocs/core/tpl/extrafields_list_search_param.tpl.php |
<?php // Protection to avoid direct call of template if (empty($conf) || ! is_object($conf)) { print "Error, template page can't be called as URL"; exit; } // Loop to complete $param for extrafields if (! empty($search_array_options)) // $extrafieldsobject is the $object->table_element like 'societe', 'socpeople', ... { if (empty($search_options_pattern)) $search_options_pattern='search_options_'; foreach ($search_array_options as $key => $val) { $crit=$val; $tmpkey=preg_replace('/'.$search_options_pattern.'/', '', $key); if ($val != '') $param.='&'.$search_options_pattern.$tmpkey.'='.urlencode($val); } }