X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=dimensions%2Finquiry%2Fsearch_dimensions.php;h=6d23976fb9cb008a7f4c0de8dd0b99d399aca266;hb=95b0f12c88c15a89e6d73f8f02ec2cd042167bed;hp=95ff4aebe65f3688c73063452a811a314394b29d;hpb=5b8f4c4b4aa8cf996bc071f116bfce1273200fa2;p=fa-stable.git diff --git a/dimensions/inquiry/search_dimensions.php b/dimensions/inquiry/search_dimensions.php index 95ff4aeb..6d23976f 100644 --- a/dimensions/inquiry/search_dimensions.php +++ b/dimensions/inquiry/search_dimensions.php @@ -18,7 +18,7 @@ include_once($path_to_root . "/includes/session.inc"); include_once($path_to_root . "/includes/date_functions.inc"); include_once($path_to_root . "/includes/ui.inc"); $js = ""; -if ($use_popup_windows) +if ($SysPrefs->use_popup_windows) $js .= get_js_open_window(800, 500); if (user_use_date_picker()) $js .= get_js_date_picker(); @@ -50,7 +50,6 @@ if (get_post('SearchOrders')) $Ajax->addDisable(true, 'OpenOnly', $disable); if ($disable) { -// $Ajax->addFocus(true, 'OrderNumber'); set_focus('OrderNumber'); } else set_focus('type_'); @@ -114,15 +113,12 @@ function is_overdue($row) function edit_link($row) { - //return $row["closed"] ? '' : - // pager_link(_("Edit"), - // "/dimensions/dimension_entry.php?trans_no=" . $row["id"], ICON_EDIT); return pager_link(_("Edit"), "/dimensions/dimension_entry.php?trans_no=" . $row["id"], ICON_EDIT); } $sql = get_sql_for_search_dimensions($dim, $_POST['FromDate'], $_POST['ToDate'], - $_POST['OrderNumber'], $_POST['type_'], $_POST['OpenOnly'], $_POST['OverdueOnly']); + $_POST['OrderNumber'], $_POST['type_'], check_value('OpenOnly'), check_value('OverdueOnly')); $cols = array( _("#") => array('fun'=>'view_link'),