<?php /* This file is part of a copyrighted work; it is distributed with NO WARRANTY. * See the file COPYRIGHT.html for more details. */ require_once "../shared/common.php"; $tab = "admin"; $nav = "checkout_privs"; $restrictInDemo = true; require_once "../shared/logincheck.php"; require_once "../classes/CheckoutPrivsQuery.php"; require_once "../functions/errorFuncs.php"; require_once "../classes/Localize.php"; $loc = new Localize(OBIB_LOCALE, $tab); #**************************************************************************** #* Checking for post vars. Go back to form if none found. #**************************************************************************** if (!isset($_POST['material_cd']) or !isset($_POST['classification']) or !isset($_POST['checkout_limit']) or !isset($_POST['renewal_limit'])) { header("Location: ../admin/checkout_privs_list.php"); exit; } $privQ = new CheckoutPrivsQuery(); $privQ->connect(); $privQ->update($_POST['material_cd'], $_POST['classification'], $_POST['checkout_limit'], $_POST['renewal_limit']); $privQ->close(); header("Location: ../admin/checkout_privs_list.php?msg=" . U($loc->getText('Privileges updated')));
/* This file is part of a copyrighted work; it is distributed with NO WARRANTY. * See the file COPYRIGHT.html for more details. */ require_once "../shared/common.php"; $tab = "admin"; $nav = "checkout_privs"; require_once "../classes/CheckoutPrivsQuery.php"; require_once "../functions/errorFuncs.php"; require_once "../shared/logincheck.php"; require_once "../classes/Localize.php"; $loc = new Localize(OBIB_LOCALE, $tab); require_once "../shared/header.php"; $privsQ = new CheckoutPrivsQuery(); $privsQ->connect(); $privs = $privsQ->getAll(); $privsQ->close(); ?> <h1><?php echo $loc->getText("Checkout Privileges"); ?> </h1> <table class="primary"> <tr> <th valign="top"><?php echo $loc->getText("function"); ?> </th> <th valign="top"> <?php echo $loc->getText("Material Type"); ?>
header("Location: ../admin/materials_list.php"); exit; } $code = $_GET["code"]; $description = $_GET["desc"]; #************************************************************************** #* Delete row #************************************************************************** $dmQ = new DmQuery(); $dmQ->connect(); $dmQ->delete("material_type_dm", $code); $dmQ->close(); $checkoutPrivsQ = new CheckoutPrivsQuery(); $checkoutPrivsQ->connect(); $checkoutPrivsQ->delete_by_material_cd($code); $checkoutPrivsQ->close(); $materialFieldQ = new MaterialFieldQuery(); $materialFieldQ->connect(); $materialFieldQ->deleteCustomField($code); $materialFieldQ->close(); #************************************************************************** #* Show success page #************************************************************************** require_once "../shared/header.php"; echo $loc->getText("admin_materials_delMaterialType"); echo H($description); echo $loc->getText("admin_materials_delMaterialdeleted"); ?> <br><br> <a href="../admin/materials_list.php"><?php echo $loc->getText("admin_materials_Return");