$path_to_root="../..";
include($path_to_root . "/includes/session.inc");
-page(_("Items"));
+page(_("Items"), @$_REQUEST['popup']);
include_once($path_to_root . "/includes/date_functions.inc");
include_once($path_to_root . "/includes/ui.inc");
}
//--------------------------------------------------------------------------------------------
-if (isset($_POST['select']))
-{
- context_return(array('stock_id' => $_POST['stock_id']));
-}
-
-
-//------------------------------------------------------------------------------------
-
start_form(true);
if (db_has_stock_items())
else
{
submit_center_first('addupdate', _("Update Item"), '',
- count($_SESSION['Context']) ? true : 'default');
- submit_return('select', _("Return"), _("Select this items and return to document entry."), 'default');
+ @$_REQUEST['popup'] ? true : 'default');
+ submit_return('select', get_post('stock_id'),
+ _("Select this items and return to document entry."), 'default');
submit('delete', _("Delete This Item"), true, '', true);
submit_center_last('cancel', _("Cancel"), _("Cancel Edition"), 'cancel');
}
div_end();
+hidden('popup', @$_REQUEST['popup']);
end_form();
//------------------------------------------------------------------------------------