當前位置: 首頁>>代碼示例>>PHP>>正文


PHP DmQuery::delete方法代碼示例

本文整理匯總了PHP中DmQuery::delete方法的典型用法代碼示例。如果您正苦於以下問題:PHP DmQuery::delete方法的具體用法?PHP DmQuery::delete怎麽用?PHP DmQuery::delete使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在DmQuery的用法示例。


在下文中一共展示了DmQuery::delete方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Localize

$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");
?>
開發者ID:AevumDecessus,項目名稱:docker-openbiblio,代碼行數:31,代碼來源:member_fields_del.php

示例2: Localize

$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";
開發者ID:aimakun,項目名稱:odlib,代碼行數:31,代碼來源:mbr_classify_del.php

示例3: H

$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>
開發者ID:Giordano-Bruno,項目名稱:GiordanoBruno,代碼行數:30,代碼來源:collections_del.php

示例4: Localize

$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");
?>
開發者ID:AevumDecessus,項目名稱:docker-openbiblio,代碼行數:31,代碼來源:copy_fields_del.php

示例5: DmQuery

$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>
開發者ID:Giordano-Bruno,項目名稱:GiordanoBruno,代碼行數:30,代碼來源:matstat_del.php

示例6: Localize

$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
*/
#**************************************************************************
開發者ID:Giordano-Bruno,項目名稱:GiordanoBruno,代碼行數:31,代碼來源:materials_del.php


注:本文中的DmQuery::delete方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。