function companies_list_alm_customers_city_BeforeShow(&$sender)
{
    $companies_list_alm_customers_city_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $companies_list;
    //Compatibility
    //End companies_list_alm_customers_city_BeforeShow
    //DLookup @19-F591DF25
    global $DBdbConnection;
    $Page = CCGetParentPage($sender);
    $ccs_result = CCDLookUp("city", "alm_city", "id = " . $sender->getValue(), $Page->Connections["dbConnection"]);
    $Component->SetValue($ccs_result);
    //End DLookup
    //Close companies_list_alm_customers_city_BeforeShow @18-79F86585
    return $companies_list_alm_customers_city_BeforeShow;
}
function users_reassignuser_content_alm_customers_city_BeforeShow(&$sender)
{
    $users_reassignuser_content_alm_customers_city_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $users_reassignuser_content;
    //Compatibility
    //End users_reassignuser_content_alm_customers_city_BeforeShow
    //DLookup @26-F591DF25
    global $DBdbConnection;
    $Page = CCGetParentPage($sender);
    $ccs_result = CCDLookUp("city", "alm_city", "id = " . $sender->getValue(), $Page->Connections["dbConnection"]);
    $Component->SetValue($ccs_result);
    //End DLookup
    //Close users_reassignuser_content_alm_customers_city_BeforeShow @25-0EB4FE56
    return $users_reassignuser_content_alm_customers_city_BeforeShow;
}
function licensing_list_alm_customers_city_BeforeShow(&$sender)
{
    $licensing_list_alm_customers_city_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $licensing_list;
    //Compatibility
    //End licensing_list_alm_customers_city_BeforeShow
    //DLookup @22-F591DF25
    global $DBdbConnection;
    $Page = CCGetParentPage($sender);
    $ccs_result = CCDLookUp("city", "alm_city", "id = " . $sender->getValue(), $Page->Connections["dbConnection"]);
    $Component->SetValue($ccs_result);
    //End DLookup
    //Close licensing_list_alm_customers_city_BeforeShow @21-C38C102A
    return $licensing_list_alm_customers_city_BeforeShow;
}
function contacts_list_alm_customers_contacts_jobposition_BeforeShow(&$sender)
{
    $contacts_list_alm_customers_contacts_jobposition_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $contacts_list;
    //Compatibility
    //End contacts_list_alm_customers_contacts_jobposition_BeforeShow
    //DLookup @31-19EF80C6
    global $DBdbConnection;
    $Page = CCGetParentPage($sender);
    $ccs_result = CCDLookUp("jobposition", "alm_jobpositions", "id = " . $sender->GetValue(), $Page->Connections["dbConnection"]);
    $Container->jobposition->SetValue($ccs_result);
    //End DLookup
    //Close contacts_list_alm_customers_contacts_jobposition_BeforeShow @23-61DF92A4
    return $contacts_list_alm_customers_contacts_jobposition_BeforeShow;
}
function contacts_subhobbies_list_alm_contacts_subhobbies_hobbie_id_BeforeShow(&$sender)
{
    $contacts_subhobbies_list_alm_contacts_subhobbies_hobbie_id_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $contacts_subhobbies_list;
    //Compatibility
    //End contacts_subhobbies_list_alm_contacts_subhobbies_hobbie_id_BeforeShow
    //DLookup @19-26E83348
    global $DBdbConnection;
    $Page = CCGetParentPage($sender);
    $ccs_result = CCDLookUp("hobbies", "alm_customers_contacts_hobbies", "id = " . $sender->GetValue(), $Page->Connections["dbConnection"]);
    $Container->hobbie_id->SetValue($ccs_result);
    //End DLookup
    //Close contacts_subhobbies_list_alm_contacts_subhobbies_hobbie_id_BeforeShow @12-A3D4ECBA
    return $contacts_subhobbies_list_alm_contacts_subhobbies_hobbie_id_BeforeShow;
}
예제 #6
0
function header_lbusername_BeforeShow(&$sender)
{
    $header_lbusername_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $header;
    //Compatibility
    //End header_lbusername_BeforeShow
    //DLookup @3-A9AF6E5C
    global $DBdbConnection;
    $Page = CCGetParentPage($sender);
    $ccs_result = CCDLookUp("fullname", "alm_users", "id = " . CCGetUserID(), $Page->Connections["dbConnection"]);
    $Component->SetValue($ccs_result);
    //End DLookup
    //Custom Code @4-2A29BDB7
    // -------------------------
    // Write your own code here.
    $sender->SetValue(ucwords($sender->GetValue()));
    // -------------------------
    //End Custom Code
    //Close header_lbusername_BeforeShow @2-B95CD6EB
    return $header_lbusername_BeforeShow;
}
예제 #7
0
function CCInitializeDetails(&$Component, $ComponentType)
{
    global $MainPage;
    $json = $_POST["CCSDetailControls"];
    $JsonParser = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
    $controls = $JsonParser->decode(stripslashes($json));
    $_POST = array_merge($_POST, $controls);
    $_GET["ccsForm"] = $Component->ComponentName;
    $ComponentClassName = get_class($Component);
    $parent_page =& CCGetParentPage($Component);
    if ($parent_page->ComponentType == "IncludablePage") {
        $Component = new $ComponentClassName("", $parent_page);
        $Component->Initialize();
        $parent_page->BindEvents();
    } else {
        $Component = new $ComponentClassName("", $MainPage);
        $Component->Initialize();
        BindEvents();
    }
    if ($ComponentType == "EditableGrid") {
        $Component->GetFormParameters();
    }
    return $Component->Validate();
}