$loc = new Localize(OBIB_LOCALE, $tab);
#****************************************************************************
#*  Checking for query string.  Go back to list if none found.
#****************************************************************************
if (!isset($_REQUEST["code"])) {
    header("Location: ../admin/member_fields_list.php");
    exit;
}
$code = $_REQUEST["code"];
$description = $_REQUEST["desc"];
#**************************************************************************
#*  Delete row
#**************************************************************************
$dmQ = new DmQuery();
$dmQ->connect();
$dmQ->delete("member_fields_dm", $code);
$dmQ->close();
$memberQ = new MemberQuery();
$memberQ->connect();
$memberQ->deleteCustomField($code);
$dmQ->close();
#**************************************************************************
#*  Show success page
#**************************************************************************
require_once "../shared/header.php";
echo $loc->getText("Member field, %desc%, has been deleted.", array('desc' => $description));
?>
<br><br>
<a href="../admin/member_fields_list.php"><?php 
echo $loc->getText("return to member field list");
?>
Beispiel #2
0
$loc = new Localize(OBIB_LOCALE, $tab);
#****************************************************************************
#*  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();
#**************************************************************************
#*  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>

<?php 
require_once "../shared/footer.php";
$loc = new Localize(OBIB_LOCALE, $tab);
#****************************************************************************
#*  Checking for query string.  Go back to collection list if none found.
#****************************************************************************
if (!isset($_GET["code"])) {
    header("Location: ../admin/collections_list.php");
    exit;
}
$code = $_GET["code"];
$description = $_GET["desc"];
#**************************************************************************
#*  Delete row
#**************************************************************************
$dmQ = new DmQuery();
$dmQ->connect();
$dmQ->delete("collection_dm", $code);
$dmQ->close();
#**************************************************************************
#*  Show success page
#**************************************************************************
require_once "../shared/header.php";
echo $loc->getText("adminCollections_delStart");
echo H($description);
echo $loc->getText("adminCollections_delEnd");
?>
<br><br>
<a href="../admin/collections_list.php"><?php 
echo $loc->getText("adminCollections_delReturn");
?>
</a>
$loc = new Localize(OBIB_LOCALE, $tab);
#****************************************************************************
#*  Checking for query string.  Go back to list if none found.
#****************************************************************************
if (!isset($_GET["code"])) {
    header("Location: ../admin/copy_fields_list.php");
    exit;
}
$code = $_GET["code"];
$description = $_GET["desc"];
#**************************************************************************
#*  Delete row
#**************************************************************************
$dmQ = new DmQuery();
$dmQ->connect();
$dmQ->delete("biblio_copy_fields_dm", $code);
$dmQ->close();
$biblioCopyQ = new BiblioCopyQuery();
$biblioCopyQ->connect();
$biblioCopyQ->deleteCustomField($code);
$biblioCopyQ->close();
#**************************************************************************
#*  Show success page
#**************************************************************************
require_once "../shared/header.php";
echo $loc->getText("Copy field, %desc%, has been deleted.", array('desc' => $description));
?>
<br><br>
<a href="../admin/copy_fields_list.php"><?php 
echo $loc->getText("return to copy field list");
?>
$dmQ->connect();
$biblioStatusDm = $dmQ->getAssoc("biblio_status_dm");
$dmQ->close();
$_POST["description"] = "";
foreach ($biblioStatusDm as $pos => $wert) {
    //print "pos:".$pos." wert:".$wert;
    if ($code == $pos) {
        $_POST["description"] = $wert;
    }
}
#**************************************************************************
#*  Delete row
#**************************************************************************
$dmQ = new DmQuery();
$dmQ->connect();
$dmQ->delete("biblio_status_dm", $code);
$dmQ->close();
#**************************************************************************
#*  Show success page
#**************************************************************************
require_once "../shared/header.php";
echo $loc->getText("admin_materials_listMaterialstate");
echo "''" . $_POST["description"] . "''";
echo $loc->getText("admin_materials_delMaterialdeleted");
?>
<br><br>
<a href="../admin/matstat_list.php"><?php 
echo $loc->getText("admin_materials_Return");
?>
</a>
$loc = new Localize(OBIB_LOCALE, $tab);
#****************************************************************************
#*  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();
/*
//add jalg de la version openbiblio 7.1
  $checkoutPrivsQ = new CheckoutPrivsQuery();
  $checkoutPrivsQ->connect();
  $checkoutPrivsQ->delete_by_material_cd($code);
  $checkoutPrivsQ->close();

  $materialFieldQ = new MaterialFieldQuery();
  $materialFieldQ->connect();
  $materialFieldQ->deleteCustomField($code);
  $materialFieldQ->close();
//add jalg de la version openbiblio 7.1
*/
#**************************************************************************