本文整理匯總了PHP中Customers::deleteCustomer方法的典型用法代碼示例。如果您正苦於以下問題:PHP Customers::deleteCustomer方法的具體用法?PHP Customers::deleteCustomer怎麽用?PHP Customers::deleteCustomer使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Customers
的用法示例。
在下文中一共展示了Customers::deleteCustomer方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: companies_list_BeforeShow
function companies_list_BeforeShow(&$sender)
{
$companies_list_BeforeShow = true;
$Component =& $sender;
$Container =& CCGetParentContainer($sender);
global $companies_list;
//Compatibility
//End companies_list_BeforeShow
//Custom Code @45-2A29BDB7
// -------------------------
// Write your own code here.
$del_guid = CCGetFromGet("del_guid", "");
$o = CCGetFromGet("o", "");
if ($o == "delrecord" && strlen($del_guid) > 0) {
global $FileName;
$params["guid"] = $del_guid;
$customers = new Customers();
$customers->deleteCustomer($params);
$querystring = CCGetQueryString("QueryString", array("o", "del_guid"));
//Forcing redirect
header("Location: {$FileName}?{$querystring}");
}
// -------------------------
//End Custom Code
//Close companies_list_BeforeShow @1-90246C48
return $companies_list_BeforeShow;
}
示例2: customers_list_BeforeShow
function customers_list_BeforeShow(&$sender)
{
$customers_list_BeforeShow = true;
$Component =& $sender;
$Container =& CCGetParentContainer($sender);
global $customers_list;
//Compatibility
//End customers_list_BeforeShow
//Custom Code @69-2A29BDB7
// -------------------------
// Write your own code here.
//Delete record operation
$del_guid = CCGetFromGet("del_guid", "");
$o = CCGetFromGet("o", "");
$mr = CCGetFromGet("mr", "customers");
if ($o == "delrecord" && strlen($del_guid) > 0) {
global $FileName;
$params["guid"] = $del_guid;
$customers = new Customers();
$customers->deleteCustomer($params);
$querystring = CCGetQueryString("QueryString", array("o", "del_guid"));
//Forcing redirect
header("Location: {$FileName}?{$querystring}");
}
if ($mr == "contacts") {
global $CCSLocales;
$customers_list->lbtitle->SetValue($CCSLocales->GetText("contacts"));
} else {
global $CCSLocales;
$customers_list->lbtitle->SetValue($CCSLocales->GetText("itassestment"));
}
// -------------------------
//End Custom Code
//Close customers_list_BeforeShow @1-EE568BA4
return $customers_list_BeforeShow;
}