当前位置: 首页>>代码示例>>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;未经允许,请勿转载。