本文整理匯總了PHP中Merchant::deleteMerchant方法的典型用法代碼示例。如果您正苦於以下問題:PHP Merchant::deleteMerchant方法的具體用法?PHP Merchant::deleteMerchant怎麽用?PHP Merchant::deleteMerchant使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Merchant
的用法示例。
在下文中一共展示了Merchant::deleteMerchant方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: confirmDelete
}
if (isset($_GET['edit'])) {
$merchant->Merchant($_GET['edit']);
$id_merchant = $merchant->getIDMerchant();
$lead = $merchant->getLead();
$name = $merchant->getName();
}
if (isset($_POST['id_merchant']) && is_numeric($_POST['id_merchant'])) {
$merchant->setLead($_POST['lead']);
$merchant->setName($_POST['name']);
$merchant->updateMerchant();
header('Location: index.php');
}
if (isset($_GET['delete'])) {
$merchant->Merchant($_GET['delete']);
$merchant->deleteMerchant();
}
?>
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Lenders email system</title>
<link rel="stylesheet" href="css/foundation.css" />
<script src="js/modernizr.js"></script>
<script>
function confirmDelete(delUrl) {
if (confirm("Are you sure you want to delete?")) {
document.location = delUrl;