本文整理汇总了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");
?>
示例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";
示例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>
示例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");
?>
示例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>
示例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
*/
#**************************************************************************