<?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"; 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
<?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')));
#* Checking for query string. Go back to material type list if none found. #**************************************************************************** if (!isset($_GET["code"])) { 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"); ?>
require_once "../functions/inputFuncs.php"; require_once "../shared/logincheck.php"; require_once "../classes/CheckoutPrivsQuery.php"; require_once "../classes/Localize.php"; $loc = new Localize(OBIB_LOCALE, $tab); if (isset($_REQUEST["material_cd"]) and isset($_REQUEST["classification"])) { $material_cd = $_REQUEST["material_cd"]; $classification = $_REQUEST["classification"]; } elseif (isset($_SESSION['postVars']["material_cd"]) and isset($_SESSION['postVars']["classification"])) { $material_cd = $_SESSION['postVars']["material_cd"]; $classification = $_SESSION['postVars']["classification"]; } else { header("Location: ../admin/checkout_privs_list.php"); exit; } $privsQ = new CheckoutPrivsQuery(); $privsQ->connect(); $priv = $privsQ->get($material_cd, $classification); $privsQ->close(); require_once "../shared/header.php"; ?> <form name="editprivsform" method="POST" action="../admin/checkout_privs_edit.php"> <input type="hidden" name="material_cd" value="<?php echo H($material_cd); ?> "> <input type="hidden" name="classification" value="<?php echo H($classification); ?> ">
#* Checking for query string. Go back to collection list if none found. #**************************************************************************** if (!isset($_GET["code"])) { header("Location: ../admin/mbr_classify_list.php"); exit; } $code = $_GET["code"]; $description = $_GET["desc"]; #************************************************************************** #* Delete row #************************************************************************** $dmQ = new DmQuery(); $dmQ->connect(); $dmQ->delete("mbr_classify_dm", $code); $dmQ->close(); $checkoutPrivsQ = new CheckoutPrivsQuery(); $checkoutPrivsQ->connect(); $checkoutPrivsQ->delete_by_classification($code); $checkoutPrivsQ->close(); #************************************************************************** #* Show success page #************************************************************************** require_once "../shared/header.php"; echo $loc->getText("Classification type, %desc%, has been deleted.", array('desc' => $description)); ?> <br><br> <a href="../admin/mbr_classify_list.php"><?php echo $loc->getText("return to member classification list"); ?> </a>