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


PHP Customers::deleteCustomer方法代碼示例

本文整理匯總了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;
}
開發者ID:wangshipeng,項目名稱:license_manager,代碼行數:27,代碼來源:companies_list_events.php

示例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;
}
開發者ID:wangshipeng,項目名稱:license_manager,代碼行數:36,代碼來源:customers_list_events.php


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