Changes to AgileBill
This commit is contained in:
@@ -31,18 +31,20 @@ function CORE_database_search_form($VAR, $construct, $type)
|
||||
while (list ($key, $value) = each ($arr))
|
||||
{
|
||||
$field_list["$i"]['translate'] = $C_translate->translate('field_' . $value, $construct->module, "");
|
||||
if (! $field_list["$i"]['translate'])
|
||||
$field_list["$i"]['translate'] = sprintf('field_%s',$value);
|
||||
$field_list["$i"]['field'] = $value;
|
||||
$i++;
|
||||
}
|
||||
|
||||
# define the field list as a Smarty accessible array
|
||||
$smarty->assign($construct->module, $field_list);
|
||||
$smarty->assign('field_list',$field_list);
|
||||
|
||||
# define the default ORDER BY field
|
||||
$smarty->assign($construct->module . '_order_by', $construct->order_by);
|
||||
$smarty->assign('field_order_by',$construct->order_by);
|
||||
|
||||
# define the default LIMIT count
|
||||
$smarty->assign($construct->module . '_limit', $construct->limit);
|
||||
$smarty->assign('field_limit',$construct->limit);
|
||||
|
||||
# define the recent search menu & javascript
|
||||
include_once(PATH_CORE . 'search.inc.php');
|
||||
@@ -66,4 +68,4 @@ function CORE_database_search_form($VAR, $construct, $type)
|
||||
# send the finished SAVED SEARCH JavaScript to Smarty
|
||||
$smarty->assign($construct->module . "_saved_js", $search->saved_js);
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
Reference in New Issue
Block a user