Changes to AgileBill

This commit is contained in:
Deon George
2009-08-03 14:10:16 +10:00
parent 0a22cfe22c
commit 27aee719b0
1051 changed files with 219109 additions and 117219 deletions

View File

@@ -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);
}
?>
?>