MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
-$path_to_root="../..";
-$page_security = 3;
+$page_security = 'SA_SUPPLIERALLOC';
+$path_to_root = "../..";
include($path_to_root . "/includes/db_pager.inc");
include_once($path_to_root . "/includes/session.inc");
$js .= get_js_open_window(900, 500);
page(_("Supplier Allocations"), false, false, "", $js);
-//--------------------------------------------------------------------------------
-if ($ret = context_restore()) {
- if(isset($ret['supplier_id']))
- $_POST['supplier_id'] = $ret['supplier_id'];
-}
-if (isset($_POST['_supplier_id_editor'])) {
- context_call($path_to_root.'/purchasing/manage/suppliers.php?supplier_id='.$_POST['supplier_id'] );
-}
-
//--------------------------------------------------------------------------------
start_form();
end_form();
set_global_supplier($_POST['supplier_id']);
- if (isset($_POST['supplier_id']) && ($_POST['supplier_id'] == reserved_words::get_all()))
+ if (isset($_POST['supplier_id']) && ($_POST['supplier_id'] == ALL_TEXT))
{
unset($_POST['supplier_id']);
}
//--------------------------------------------------------------------------------
function systype_name($dummy, $type)
{
- return systypes::name($type);
+ global $systypes_array;
+
+ return $systypes_array[$type;
}
function trans_view($trans)