$js .= get_js_open_window(900, 500);
if ($use_date_picker)
$js .= get_js_date_picker();
-page(_("Supplier Allocation Inquiry"), false, false, "", $js);
+page(_($help_context = "Supplier Allocation Inquiry"), false, false, "", $js);
if (isset($_GET['supplier_id']))
{
end_row();
end_table();
-end_form();
//------------------------------------------------------------------------------------------------
function check_overdue($row)
{
WHERE supplier.supplier_id = trans.supplier_id
AND trans.tran_date >= '$date_after'
AND trans.tran_date <= '$date_to'";
+
if ($_POST['supplier_id'] != ALL_TEXT)
- $sql .= " AND trans.supplier_id = '" . $_POST['supplier_id'] . "'";
+ $sql .= " AND trans.supplier_id = ".db_escape($_POST['supplier_id']);
if (isset($_POST['filterType']) && $_POST['filterType'] != ALL_TEXT)
{
if (($_POST['filterType'] == '1') || ($_POST['filterType'] == '2'))
$table =& new_db_pager('doc_tbl', $sql, $cols);
$table->set_marker('check_overdue', _("Marked items are overdue."));
-if (get_post('RefreshInquiry')) {
- $table->set_sql($sql);
- $table->set_columns($cols);
-}
$table->width = "90%";
-start_form();
display_db_pager($table);