本文整理汇总了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;
}