Example #1
0
 function clsRecorditemsSearch()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->InsertAllowed = false;
     $this->UpdateAllowed = false;
     $this->DeleteAllowed = false;
     if ($this->Visible) {
         $this->ComponentName = "itemsSearch";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->s_ItemNum = new clsControl(ccsTextBox, "s_ItemNum", "s_ItemNum", ccsInteger, "", CCGetRequestParam("s_ItemNum", $Method));
         $this->s_user_id = new clsControl(ccsTextBox, "s_user_id", "s_user_id", ccsText, "", CCGetRequestParam("s_user_id", $Method));
         $this->s_title = new clsControl(ccsTextBox, "s_title", "s_title", ccsText, "", CCGetRequestParam("s_title", $Method));
         $this->s_indexsearch = new clsControl(ccsTextBox, "s_indexsearch", "s_indexsearch", ccsText, "", CCGetRequestParam("s_indexsearch", $Method));
         $this->s_description = new clsControl(ccsTextBox, "s_description", "s_description", ccsMemo, "", CCGetRequestParam("s_description", $Method));
         $this->s_asking_min = new clsControl(ccsTextBox, "s_asking_min", "s_asking_min", ccsFloat, "", CCGetRequestParam("s_asking_min", $Method));
         $this->s_asking_max = new clsControl(ccsTextBox, "s_asking_max", "s_asking_max", ccsFloat, "", CCGetRequestParam("s_asking_max", $Method));
         $this->s_make_offer = new clsControl(ccsCheckBox, "s_make_offer", "s_make_offer", ccsInteger, "", CCGetRequestParam("s_make_offer", $Method));
         $this->s_make_offer->CheckedValue = 1;
         $this->s_make_offer->UncheckedValue = 0;
         $this->s_quantity = new clsControl(ccsTextBox, "s_quantity", "s_quantity", ccsInteger, "", CCGetRequestParam("s_quantity", $Method));
         $this->s_city_town = new clsControl(ccsTextBox, "s_city_town", "s_city_town", ccsText, "", CCGetRequestParam("s_city_town", $Method));
         $this->s_state_province = new clsControl(ccsTextBox, "s_state_province", "s_state_province", ccsText, "", CCGetRequestParam("s_state_province", $Method));
         $this->DoSearch = new clsButton("DoSearch");
     }
 }
function contacts_holidays_list_BeforeShow(&$sender)
{
    $contacts_holidays_list_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $contacts_holidays_list;
    //Compatibility
    //End contacts_holidays_list_BeforeShow
    //Custom Code @22-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->deleteHolidaysByGuid($params);
        $querystring = CCGetQueryString("QueryString", array("o", "del_guid"));
        //Forcing redirect
        header("Location: {$FileName}?{$querystring}");
    }
    // -------------------------
    //End Custom Code
    //Close contacts_holidays_list_BeforeShow @1-2AE37F02
    return $contacts_holidays_list_BeforeShow;
}
Example #3
0
 function clsHeader()
 {
     $this->Enabled = true;
     if ($this->Enabled) {
         $this->FileName = "Header.php";
         $this->Redirect = "";
         $this->TemplateFileName = "Header.html";
         $this->BlockToParse = "main";
         // Create Components
         $this->ItemsList = new clsControl(ccsLink, "ItemsList", "ItemsList", ccsText, "", CCGetRequestParam("ItemsList", ccsGet));
         $this->ItemsList->Page = "ItemsList.php";
         $this->ListUsers = new clsControl(ccsLink, "ListUsers", "ListUsers", ccsText, "", CCGetRequestParam("ListUsers", ccsGet));
         $this->ListUsers->Page = "ListUsers.php";
         $this->ChargesList = new clsControl(ccsLink, "ChargesList", "ChargesList", ccsText, "", CCGetRequestParam("ChargesList", ccsGet));
         $this->ChargesList->Page = "ChargesList.php";
         $this->Online = new clsControl(ccsLink, "Online", "Online", ccsText, "", CCGetRequestParam("Online", ccsGet));
         $this->Online->Page = "Online.php";
         $this->CategoriesList = new clsControl(ccsLink, "CategoriesList", "CategoriesList", ccsText, "", CCGetRequestParam("CategoriesList", ccsGet));
         $this->CategoriesList->Page = "CategoriesList.php";
         $this->SettingsGeneral = new clsControl(ccsLink, "SettingsGeneral", "SettingsGeneral", ccsText, "", CCGetRequestParam("SettingsGeneral", ccsGet));
         $this->SettingsGeneral->Parameters = CCGetQueryString("QueryString", array("ccsForm"));
         $this->SettingsGeneral->Page = "Settings.php";
         $this->AccountingSettings = new clsControl(ccsLink, "AccountingSettings", "AccountingSettings", ccsText, "", CCGetRequestParam("AccountingSettings", ccsGet));
         $this->AccountingSettings->Parameters = CCGetQueryString("QueryString", array("ccsForm"));
         $this->AccountingSettings->Page = "Accountings.php";
         $this->Fees = new clsControl(ccsLink, "Fees", "Fees", ccsText, "", CCGetRequestParam("Fees", ccsGet));
         $this->Fees->Parameters = CCGetQueryString("QueryString", array("ccsForm"));
         $this->Fees->Page = "Fees.php";
         $this->ImageSettings = new clsControl(ccsLink, "ImageSettings", "ImageSettings", ccsText, "", CCGetRequestParam("ImageSettings", ccsGet));
         $this->ImageSettings->Parameters = CCGetQueryString("QueryString", array("ccsForm"));
         $this->ImageSettings->Page = "ImagesSettings.php";
         $this->ListingDates = new clsControl(ccsLink, "ListingDates", "ListingDates", ccsText, "", CCGetRequestParam("ListingDates", ccsGet));
         $this->ListingDates->Page = "ListingDates.php";
         $this->AgesList = new clsControl(ccsLink, "AgesList", "AgesList", ccsText, "", CCGetRequestParam("AgesList", ccsGet));
         $this->AgesList->Page = "AgesList.php";
         $this->EducationsList = new clsControl(ccsLink, "EducationsList", "EducationsList", ccsText, "", CCGetRequestParam("EducationsList", ccsGet));
         $this->EducationsList->Page = "EducationsList.php";
         $this->IncomesList = new clsControl(ccsLink, "IncomesList", "IncomesList", ccsText, "", CCGetRequestParam("IncomesList", ccsGet));
         $this->IncomesList->Page = "IncomesList.php";
         $this->StatesList = new clsControl(ccsLink, "StatesList", "StatesList", ccsText, "", CCGetRequestParam("StatesList", ccsGet));
         $this->StatesList->Page = "StatesList.php";
         $this->CountriesList = new clsControl(ccsLink, "CountriesList", "CountriesList", ccsText, "", CCGetRequestParam("CountriesList", ccsGet));
         $this->CountriesList->Page = "CountriesList.php";
         $this->Newsletters = new clsControl(ccsLink, "Newsletters", "Newsletters", ccsText, "", CCGetRequestParam("Newsletters", ccsGet));
         $this->Newsletters->Page = "SendNewsletter.php";
         $this->TemplatesEmails = new clsControl(ccsLink, "TemplatesEmails", "TemplatesEmails", ccsText, "", CCGetRequestParam("TemplatesEmails", ccsGet));
         $this->TemplatesEmails->Page = "TemplatesEmails.php";
         $this->TemplatesPages = new clsControl(ccsLink, "TemplatesPages", "TemplatesPages", ccsText, "", CCGetRequestParam("TemplatesPages", ccsGet));
         $this->TemplatesPages->Page = "TemplatesPages.php";
         $this->AdministratorsList = new clsControl(ccsLink, "AdministratorsList", "AdministratorsList", ccsText, "", CCGetRequestParam("AdministratorsList", ccsGet));
         $this->AdministratorsList->Page = "AdministratorsList.php";
     }
 }
function licensing_bulkrenewalcontent_params_BeforeShow(&$sender)
{
    $licensing_bulkrenewalcontent_params_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $licensing_bulkrenewalcontent;
    //Compatibility
    //End licensing_bulkrenewalcontent_params_BeforeShow
    //Custom Code @11-2A29BDB7
    // -------------------------
    // Write your own code here.
    $querystring = CCGetQueryString("QueryString", array("license_guid", "grant_number", "o"));
    $sender->SetValue("{$querystring}");
    // -------------------------
    //End Custom Code
    //Close licensing_bulkrenewalcontent_params_BeforeShow @10-C37D75AA
    return $licensing_bulkrenewalcontent_params_BeforeShow;
}
function lbparams_BeforeShow(&$sender)
{
    $lbparams_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $lbparams;
    //Compatibility
    //End lbparams_BeforeShow
    //Custom Code @13-2A29BDB7
    // -------------------------
    // Write your own code here.
    $querystring = CCGetQueryString("QueryString", array("licensefile_guid"));
    $sender->SetValue($querystring);
    // -------------------------
    //End Custom Code
    //Close lbparams_BeforeShow @12-22AC4969
    return $lbparams_BeforeShow;
}
Example #6
0
 function Initialize($Path = "")
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeInitialize", $this);
     if (!$this->Visible) {
         return "";
     }
     $this->Attributes =& $this->Parent->Attributes;
     // Create Components
     $this->Link1 = new clsControl(ccsLink, "Link1", "Link1", ccsText, "", CCGetRequestParam("Link1", ccsGet, NULL), $this);
     $this->Link1->Parameters = CCGetQueryString("QueryString", array("ccsForm"));
     $this->Link1->Page = $this->RelativePath . "../index.php";
     $this->Link3 = new clsControl(ccsLink, "Link3", "Link3", ccsText, "", CCGetRequestParam("Link3", ccsGet, NULL), $this);
     $this->Link3->Parameters = CCGetQueryString("QueryString", array("ccsForm"));
     $this->Link3->Page = "http://www.pringwa.billsurf.net";
     $this->BindEvents();
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "OnInitializeView", $this);
 }
Example #7
0
 function clsRecordwatchlist()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->ds = new clswatchlistDataSource();
     $this->InsertAllowed = false;
     $this->UpdateAllowed = false;
     if ($this->Visible) {
         $this->ComponentName = "watchlist";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->ItemTitle = new clsControl(ccsLabel, "ItemTitle", "Item Title", ccsText, "", CCGetRequestParam("ItemTitle", $Method));
         $this->itemID = new clsControl(ccsLabel, "itemID", "Item ID", ccsText, "", CCGetRequestParam("itemID", $Method));
         $this->Delete = new clsButton("Delete");
         $this->Cancel = new clsButton("Cancel");
     }
 }
function lblicenselink_BeforeShow(&$sender)
{
    $lblicenselink_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $lblicenselink;
    //Compatibility
    //End lblicenselink_BeforeShow
    //Custom Code @11-2A29BDB7
    // -------------------------
    // Write your own code here.
    $remove = array("o", "license_guid");
    $queryString = CCGetQueryString("QueryString", $remove);
    $bulklink = "licensing_customers.php?{$queryString}";
    $sender->SetValue($bulklink);
    // -------------------------
    //End Custom Code
    //Close lblicenselink_BeforeShow @10-B284824A
    return $lblicenselink_BeforeShow;
}
Example #9
0
 function clsRecordLogin()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->InsertAllowed = false;
     $this->UpdateAllowed = false;
     $this->DeleteAllowed = false;
     if ($this->Visible) {
         $this->ComponentName = "Login";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->login = new clsControl(ccsTextBox, "login", "login", ccsText, "", CCGetRequestParam("login", $Method));
         $this->login->Required = true;
         $this->password = new clsControl(ccsTextBox, "password", "password", ccsText, "", CCGetRequestParam("password", $Method));
         $this->password->Required = true;
         $this->DoLogin = new clsButton("DoLogin");
     }
 }
Example #10
0
 function Show()
 {
     global $Tpl;
     if (!$this->Visible) {
         return;
     }
     $ShownRecords = 0;
     $this->ds->Open();
     $GridBlock = "Grid " . $this->ComponentName;
     $Tpl->block_path = $GridBlock;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow");
     $is_next_record = $this->ds->next_record();
     if ($is_next_record && $ShownRecords < $this->PageSize) {
         do {
             $this->ds->SetValues();
             $Tpl->block_path = $GridBlock . "/Row";
             $this->Detail->Parameters = CCGetQueryString("QueryString", array("ccsForm"));
             $this->Detail->Parameters = CCAddParam($this->Detail->Parameters, "page_id", $this->ds->f("page_id"));
             $this->Detail->Parameters = CCAddParam($this->Detail->Parameters, "page_name", $this->ds->f("page_name"));
             $this->Detail->Page = "TemplatesPagesEdit.php";
             $this->page_name->SetValue($this->ds->page_name->GetValue());
             $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow");
             $this->Detail->Show();
             $this->page_name->Show();
             $Tpl->block_path = $GridBlock;
             $Tpl->parse("Row", true);
             $ShownRecords++;
             $is_next_record = $this->ds->next_record();
         } while ($is_next_record && $ShownRecords < $this->PageSize);
     } else {
         $Tpl->parse("NoRecords", false);
     }
     $this->Navigator->TotalPages = $this->ds->PageCount();
     $this->templates_pages_Insert->Show();
     $this->Navigator->Show();
     $Tpl->parse("", false);
     $Tpl->block_path = "";
 }
function customers_assessment_maintcontent_lbgoback_BeforeShow(&$sender)
{
    $customers_assessment_maintcontent_lbgoback_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $customers_assessment_maintcontent;
    //Compatibility
    //End customers_assessment_maintcontent_lbgoback_BeforeShow
    //Custom Code @5-2A29BDB7
    // -------------------------
    // Write your own code here.
    $remove = array("guid", "locale");
    $querystring = CCGetQueryString("QueryString", $remove);
    if (strlen($querystring) > 0) {
        $newlink = "?" . $querystring;
    } else {
        $newlink = $querystring;
    }
    $sender->setValue($newlink);
    // -------------------------
    //End Custom Code
    //Close customers_assessment_maintcontent_lbgoback_BeforeShow @4-BACFEFA0
    return $customers_assessment_maintcontent_lbgoback_BeforeShow;
}
function contacts_holidays_maintcontent_alm_contacts_holidays_lbgoback_BeforeShow(&$sender)
{
    $contacts_holidays_maintcontent_alm_contacts_holidays_lbgoback_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $contacts_holidays_maintcontent;
    //Compatibility
    //End contacts_holidays_maintcontent_alm_contacts_holidays_lbgoback_BeforeShow
    //Custom Code @15-2A29BDB7
    // -------------------------
    // Write your own code here.
    $remove = array("guid", "o", "dguid");
    $querystring = CCGetQueryString("QueryString", $remove);
    if (strlen($querystring) > 0) {
        $newlink = "?" . $querystring;
    } else {
        $newlink = $querystring;
    }
    $sender->setValue($newlink);
    // -------------------------
    //End Custom Code
    //Close contacts_holidays_maintcontent_alm_contacts_holidays_lbgoback_BeforeShow @14-38BE177C
    return $contacts_holidays_maintcontent_alm_contacts_holidays_lbgoback_BeforeShow;
}
function resellers_maintcontent_alm_resellers_lbgoback_BeforeShow(&$sender)
{
    $resellers_maintcontent_alm_resellers_lbgoback_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $resellers_maintcontent;
    //Compatibility
    //End resellers_maintcontent_alm_resellers_lbgoback_BeforeShow
    //Custom Code @6-2A29BDB7
    // -------------------------
    // Write your own code here.
    $remove = array("guid", "tab");
    $querystring = CCGetQueryString("QueryString", $remove);
    if (strlen($querystring) > 0) {
        $newlink = "?" . $querystring;
    } else {
        $newlink = $querystring;
    }
    $sender->setValue($newlink);
    // -------------------------
    //End Custom Code
    //Close resellers_maintcontent_alm_resellers_lbgoback_BeforeShow @5-E8741D96
    return $resellers_maintcontent_alm_resellers_lbgoback_BeforeShow;
}
function settings_maintcontent_options_lbgoback_BeforeShow(&$sender)
{
    $settings_maintcontent_options_lbgoback_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $settings_maintcontent;
    //Compatibility
    //End settings_maintcontent_options_lbgoback_BeforeShow
    //Custom Code @4-2A29BDB7
    // -------------------------
    // Write your own code here.
    $remove = array("guid");
    $querystring = CCGetQueryString("QueryString", $remove);
    if (strlen($querystring) > 0) {
        $newlink = "?" . $querystring;
    } else {
        $newlink = $querystring;
    }
    $sender->setValue($newlink);
    // -------------------------
    //End Custom Code
    //Close settings_maintcontent_options_lbgoback_BeforeShow @3-9D7CC925
    return $settings_maintcontent_options_lbgoback_BeforeShow;
}
function basetemplate_maint_lbgoback_BeforeShow(&$sender)
{
    $basetemplate_maint_lbgoback_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $basetemplate_maint;
    //Compatibility
    //End basetemplate_maint_lbgoback_BeforeShow
    //Custom Code @7-2A29BDB7
    // -------------------------
    // Write your own code here.
    $remove = array("guid");
    $querystring = CCGetQueryString("QueryString", $remove);
    if (strlen($querystring) > 0) {
        $newlink = "?" . $querystring;
    } else {
        $newlink = $querystring;
    }
    $sender->setValue($newlink);
    // -------------------------
    //End Custom Code
    //Close basetemplate_maint_lbgoback_BeforeShow @6-E329D99D
    return $basetemplate_maint_lbgoback_BeforeShow;
}
function products_suite_maintcontent_alm_product_suites_lbgoback_BeforeShow(&$sender)
{
    $products_suite_maintcontent_alm_product_suites_lbgoback_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $products_suite_maintcontent;
    //Compatibility
    //End products_suite_maintcontent_alm_product_suites_lbgoback_BeforeShow
    //Custom Code @8-2A29BDB7
    // -------------------------
    // Write your own code here.
    $remove = array("guid", "tab");
    $querystring = CCGetQueryString("QueryString", $remove);
    if (strlen($querystring) > 0) {
        $newlink = "?" . $querystring;
    } else {
        $newlink = $querystring;
    }
    $sender->setValue($newlink);
    // -------------------------
    //End Custom Code
    //Close products_suite_maintcontent_alm_product_suites_lbgoback_BeforeShow @7-7EF5F637
    return $products_suite_maintcontent_alm_product_suites_lbgoback_BeforeShow;
}
function header_lblang_en_BeforeShow(&$sender)
{
    $header_lblang_en_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $header;
    //Compatibility
    //End header_lblang_en_BeforeShow
    //Custom Code @8-2A29BDB7
    // -------------------------
    // Write your own code here.
    global $FileName;
    $querystring = CCGetQueryString("QueryString", array("locale"));
    if (strlen($querystring) > 0) {
        $newlink = "{$FileName}?" . $querystring . "&locale=en";
    } else {
        $newlink = "{$FileName}?locale=en";
    }
    $sender->setValue($newlink);
    // -------------------------
    //End Custom Code
    //Close header_lblang_en_BeforeShow @7-B7874E05
    return $header_lblang_en_BeforeShow;
}
function p_pass_byadminForm_Button_Ubah_OnClick(&$sender)
{
    $p_pass_byadminForm_Button_Ubah_OnClick = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $p_pass_byadminForm;
    //Compatibility
    //End p_pass_byadminForm_Button_Ubah_OnClick
    //Custom Code @104-2A29BDB7
    // -------------------------
    // Write your own code here.
    global $FileName;
    global $PathToCurrentPage;
    $param = CCGetQueryString("QueryString", "");
    $dbConn = new clsDBConnSIKP();
    $old_pwd = $p_pass_byadminForm->o_user_pwd->GetValue();
    $new_pwd1 = $p_pass_byadminForm->n_user_pwd1->GetValue();
    $new_pwd2 = $p_pass_byadminForm->n_user_pwd2->GetValue();
    $idUser = $p_pass_byadminForm->p_app_user_id->GetValue();
    $sql = "select * from f_change_pass(" . $idUser . ",'" . $old_pwd . "','" . $new_pwd1 . "','" . $new_pwd2 . "')";
    $dbConn->query($sql);
    $dbConn->next_record();
    $mess = $dbConn->f("f_change_pass");
    $dbConn->close();
    echo '<script language="javascript">';
    echo 'alert("' . $mess . '");';
    echo '</script>';
    $p_pass_byadminForm->o_user_pwd->SetValue("");
    $p_pass_byadminForm->n_user_pwd1->SetValue("");
    $p_pass_byadminForm->n_user_pwd2->SetValue("");
    return;
    // -------------------------
    //End Custom Code
    //Close p_pass_byadminForm_Button_Ubah_OnClick @26-C74BD412
    return $p_pass_byadminForm_Button_Ubah_OnClick;
}
function users_photoscontent_lbrefresh_links_BeforeShow(&$sender)
{
    $users_photoscontent_lbrefresh_links_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $users_photoscontent;
    //Compatibility
    //End users_photoscontent_lbrefresh_links_BeforeShow
    //Custom Code @17-2A29BDB7
    // -------------------------
    // Write your own code here.
    $remove = array("rguid", "eguid");
    $querystring = CCGetQueryString("QueryString", $remove);
    if (strlen($querystring) > 0) {
        $newlink = "?" . $querystring;
    } else {
        $newlink = $querystring;
    }
    $sender->setValue($newlink);
    // -------------------------
    //End Custom Code
    //Close users_photoscontent_lbrefresh_links_BeforeShow @16-73CCADDE
    return $users_photoscontent_lbrefresh_links_BeforeShow;
}
 function Show()
 {
     global $CCSUseAmp;
     global $Tpl;
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if (!$this->FormSubmitted) {
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->date_start_laporan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_date_start_laporan1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->date_end_laporan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_end_start_laporan1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->cetak_laporan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&amp;", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->Button1->Show();
     $this->date_start_laporan->Show();
     $this->DatePicker_date_start_laporan1->Show();
     $this->date_end_laporan->Show();
     $this->DatePicker_end_start_laporan1->Show();
     $this->cetak_laporan->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
 }
 function Show()
 {
     global $CCSUseAmp;
     global $Tpl;
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if ($this->EditMode) {
         if ($this->DataSource->Errors->Count()) {
             $this->Errors->AddErrors($this->DataSource->Errors);
             $this->DataSource->Errors->clear();
         }
         $this->DataSource->Open();
         if ($this->DataSource->Errors->Count() == 0 && $this->DataSource->next_record()) {
             $this->DataSource->SetValues();
             if (!$this->FormSubmitted) {
                 $this->description->SetValue($this->DataSource->description->GetValue());
                 $this->create_by->SetValue($this->DataSource->create_by->GetValue());
                 $this->update_by->SetValue($this->DataSource->update_by->GetValue());
                 $this->create_date->SetValue($this->DataSource->create_date->GetValue());
                 $this->update_date->SetValue($this->DataSource->update_date->GetValue());
                 $this->counter_no->SetValue($this->DataSource->counter_no->GetValue());
                 $this->activity->SetValue($this->DataSource->activity->GetValue());
                 $this->log_date->SetValue($this->DataSource->log_date->GetValue());
                 $this->input_type->SetValue($this->DataSource->input_type->GetValue());
             }
         } else {
             $this->EditMode = false;
         }
     }
     if (!$this->FormSubmitted) {
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->description->Errors->ToString());
         $Error = ComposeStrings($Error, $this->create_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->update_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->create_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->update_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->counter_no->Errors->ToString());
         $Error = ComposeStrings($Error, $this->TAKEN_CTL->Errors->ToString());
         $Error = ComposeStrings($Error, $this->IS_TAKEN->Errors->ToString());
         $Error = ComposeStrings($Error, $this->activity->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_DOC_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->log_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_DOC_TYPE_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_PROC_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_CTL_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->USER_ID_DOC->Errors->ToString());
         $Error = ComposeStrings($Error, $this->USER_ID_DONOR->Errors->ToString());
         $Error = ComposeStrings($Error, $this->USER_ID_LOGIN->Errors->ToString());
         $Error = ComposeStrings($Error, $this->USER_ID_TAKEN->Errors->ToString());
         $Error = ComposeStrings($Error, $this->IS_CREATE_DOC->Errors->ToString());
         $Error = ComposeStrings($Error, $this->IS_MANUAL->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_PROC_STATUS->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_DOC_STATUS->Errors->ToString());
         $Error = ComposeStrings($Error, $this->PREV_DOC_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->PREV_DOC_TYPE_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->PREV_PROC_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->PREV_CTL_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_2->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_3->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_4->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_5->Errors->ToString());
         $Error = ComposeStrings($Error, $this->MESSAGE->Errors->ToString());
         $Error = ComposeStrings($Error, $this->input_type->Errors->ToString());
         $Error = ComposeStrings($Error, $this->t_customer_order_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_rqst_type_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->t_vat_registration_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DataSource->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&amp;", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->Button_Insert->Visible = !$this->EditMode && $this->InsertAllowed;
     $this->Button_Update->Visible = $this->EditMode && $this->UpdateAllowed;
     $this->Button_Delete->Visible = $this->EditMode && $this->DeleteAllowed;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->Button_Insert->Show();
     $this->Button_Update->Show();
     $this->Button_Delete->Show();
     $this->Button_Cancel->Show();
     $this->description->Show();
     $this->create_by->Show();
     $this->update_by->Show();
     $this->create_date->Show();
     $this->update_date->Show();
     $this->counter_no->Show();
     $this->TAKEN_CTL->Show();
     $this->IS_TAKEN->Show();
     $this->activity->Show();
     $this->CURR_DOC_ID->Show();
     $this->log_date->Show();
     $this->CURR_DOC_TYPE_ID->Show();
     $this->CURR_PROC_ID->Show();
     $this->CURR_CTL_ID->Show();
     $this->USER_ID_DOC->Show();
     $this->USER_ID_DONOR->Show();
     $this->USER_ID_LOGIN->Show();
     $this->USER_ID_TAKEN->Show();
     $this->IS_CREATE_DOC->Show();
     $this->IS_MANUAL->Show();
     $this->CURR_PROC_STATUS->Show();
     $this->CURR_DOC_STATUS->Show();
     $this->PREV_DOC_ID->Show();
     $this->PREV_DOC_TYPE_ID->Show();
     $this->PREV_PROC_ID->Show();
     $this->PREV_CTL_ID->Show();
     $this->SLOT_1->Show();
     $this->SLOT_2->Show();
     $this->SLOT_3->Show();
     $this->SLOT_4->Show();
     $this->SLOT_5->Show();
     $this->MESSAGE->Show();
     $this->input_type->Show();
     $this->t_customer_order_id->Show();
     $this->p_rqst_type_id->Show();
     $this->t_vat_registration_id->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }
function licensing_customerscontent_BeforeShow(&$sender)
{
    $licensing_customerscontent_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $licensing_customerscontent;
    //Compatibility
    //End licensing_customerscontent_BeforeShow
    //Custom Code @152-2A29BDB7
    // -------------------------
    // Write your own code here.
    global $Tpl;
    $tab = CCGetFromGet("tab", "tab1_active");
    switch ($tab) {
        default:
        case "details":
            $Tpl->setvar("tab1_active", "active");
            break;
        case "licensing":
            $Tpl->setvar("tab2_active", "active");
            break;
        case "licenselist":
            $Tpl->setvar("tab3_active", "active");
            break;
        case "licensearchive":
            $Tpl->setvar("tab4_active", "active");
            break;
        case "competitor_renewals":
            $Tpl->setvar("tab5_active", "active");
            break;
        case "product_displacement":
            $Tpl->setvar("tab6_active", "active");
            break;
    }
    //Setting the active tab for licensing when the cssForm is present and has licensing as the form submitted
    $cssForm = trim(CCGetFromGet("ccsForm", ""));
    if ($cssForm == "licensing") {
        //Whichever tab set will be reset to avoid more than 1 tab active
        $Tpl->setvar("tab1_active", "");
        $Tpl->setvar("tab2_active", "active");
        $Tpl->setvar("tab3_active", "");
        $Tpl->setvar("tab4_active", "");
        $Tpl->setvar("tab5_active", "");
        $Tpl->setvar("tab6_active", "");
    }
    //Settingup saved message popup
    global $MainPage;
    $showalert = CCGetSession("showalert", "hide");
    $MainPage->Attributes->SetValue("showalert", $showalert);
    if ($showalert == "show") {
        CCSetSession("showalert", "hide");
    }
    //Setting up alerts to let user know the customer has not contacts yet
    $customers = new Customers();
    $customer_guid = CCGetFromGet("guid", "");
    $params = array();
    $params["customer_guid"] = $customer_guid;
    $hasContacts = $customers->customerHasContacts($params);
    if ($hasContacts["hasContacts"] == "1") {
        $MainPage->Attributes->SetValue("showalert_contacterror", "hide");
    } else {
        $MainPage->Attributes->SetValue("showalert_contacterror", "show");
    }
    //Setting up alerts to let user know the license may need support
    $license_guid = trim(CCGetFromGet("license_guid", ""));
    if (strlen($license_guid) > 0) {
        $products = new Alm\Products();
        $params = array();
        $params["license_guid"] = $license_guid;
        $hasSupport = $products->licenseHasSupport($params);
        if ($hasSupport["hasSupport"] == "1") {
            $MainPage->Attributes->SetValue("showalert_addsupport", "hide");
        } else {
            $MainPage->Attributes->SetValue("showalert_addsupport", "show");
        }
    } else {
        $MainPage->Attributes->SetValue("showalert_addsupport", "hide");
    }
    //Check if session variable showalert_addsupport has a show value
    $showalert_addsupport = CCGetSession("showalert_addsupport", "");
    if ($showalert_addsupport == "show") {
        CCSetSession("showalert_addsupport", "hide");
        $MainPage->Attributes->SetValue("showalert_addsupport", $showalert);
    }
    //Procesing file uploading
    $hidlicense_guid = trim(CCGetFromPost("hidlicense_guid", ""));
    if (!empty($_FILES) && strlen($hidlicense_guid) > 0) {
        $params = array();
        $params["license_guid"] = $hidlicense_guid;
        $products = new \Alm\Products();
        $products->uploadLicenseFile($_FILES, $params);
        //Finishing script execution for file uploads because its asyncronous
        exit;
    }
    $license_guid = trim(CCGetFromGet("license_guid", ""));
    $licensefile_guid = trim(CCGetFromGet("licensefile_guid", ""));
    $o = trim(CCGetFromGet("o", ""));
    //Delete licensing operation
    if (strlen($licensefile_guid) > 0 && $o == "dellicense") {
        $params = array();
        $params["licensefile_guid"] = $licensefile_guid;
        $products = new \Alm\Products();
        $products->deleteLicenseFileByGuid($params);
        $querystring = CCGetQueryString("QueryString", array("licensefile_guid", "o"));
        global $FileName;
        $urlRedirect = $FileName . "?{$querystring}";
        header("Location: {$urlRedirect}");
    }
    //Delete full licensing operation
    if (strlen($license_guid) > 0 && $o == "delfulllicense") {
        $params = array();
        $params["license_guid"] = $license_guid;
        $products = new \Alm\Products();
        $products->deleteFullLicenseByGuid($params);
        $querystring = CCGetQueryString("QueryString", array("license_guid", "o"));
        global $FileName;
        $urlRedirect = $FileName . "?{$querystring}";
        header("Location: {$urlRedirect}");
    }
    if (strlen($license_guid) > 0) {
        //License files grid
        $params = array();
        $params["license_guid"] = $license_guid;
        $products = new \Alm\Products();
        $licenseFiles = $products->getLicenseFiles($params);
        $licenseFiles = $licenseFiles["licensefiles"];
        $querystring = CCGetQueryString("QueryString", array("o", "licensefile_guid", "tab"));
        foreach ($licenseFiles as $licenseFile) {
            $licensefile_guid = $licenseFile["guid"];
            $linkdelete = "";
            if (CCGetGroupID() == "4") {
                //Moved linkdelete to code because issues displaying panels inside custom template blocks
                $linkdelete = "<a href='licensing_customers.php?o=dellicense&licensefile_guid={$licensefile_guid}&tab=licenselist&{$querystring}' class='dellicense' ><li class='icon-trash bigger-150 red'></li></a>";
            }
            $Tpl->setvar("linkdelete", $linkdelete);
            $Tpl->setvar("licensefile_guid", $licensefile_guid);
            $Tpl->setvar("getparams", "&" . $querystring);
            $Tpl->Parse("licensefile_list", true);
        }
    }
    // -------------------------
    //End Custom Code
    //Close licensing_customerscontent_BeforeShow @1-0B488567
    return $licensing_customerscontent_BeforeShow;
}
 function Show()
 {
     global $CCSUseAmp;
     $Tpl = CCGetTemplate($this);
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if ($this->EditMode) {
         if ($this->DataSource->Errors->Count()) {
             $this->Errors->AddErrors($this->DataSource->Errors);
             $this->DataSource->Errors->clear();
         }
         $this->DataSource->Open();
         if ($this->DataSource->Errors->Count() == 0 && $this->DataSource->next_record()) {
             $this->DataSource->SetValues();
             if (!$this->FormSubmitted) {
                 $this->attribut_type->SetValue($this->DataSource->attribut_type->GetValue());
                 $this->p_user_attribut_id->SetValue($this->DataSource->p_user_attribut_id->GetValue());
                 $this->created_by->SetValue($this->DataSource->created_by->GetValue());
                 $this->creation_date->SetValue($this->DataSource->creation_date->GetValue());
                 $this->updated_by->SetValue($this->DataSource->updated_by->GetValue());
                 $this->updated_date->SetValue($this->DataSource->updated_date->GetValue());
                 $this->user_name->SetValue($this->DataSource->user_name->GetValue());
                 $this->p_user_attribute_type_id->SetValue($this->DataSource->p_user_attribute_type_id->GetValue());
                 $this->p_user_id->SetValue($this->DataSource->p_user_id->GetValue());
                 $this->attribut_list_code->SetValue($this->DataSource->attribut_list_code->GetValue());
                 $this->p_user_attribute_list_id->SetValue($this->DataSource->p_user_attribute_list_id->GetValue());
                 $this->user_attribute_value->SetValue($this->DataSource->user_attribute_value->GetValue());
                 $this->valid_from->SetValue($this->DataSource->valid_from->GetValue());
                 $this->valid_to->SetValue($this->DataSource->valid_to->GetValue());
                 $this->description->SetValue($this->DataSource->description->GetValue());
             }
         } else {
             $this->EditMode = false;
         }
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->attribut_type->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_user_attribut_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->created_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->creation_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->updated_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->updated_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->user_name->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_user_attribute_type_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_user_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->attribut_list_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_user_attribute_list_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->user_attribute_value->Errors->ToString());
         $Error = ComposeStrings($Error, $this->valid_from->Errors->ToString());
         $Error = ComposeStrings($Error, $this->valid_to->Errors->ToString());
         $Error = ComposeStrings($Error, $this->description->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_valid_from1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_valid_to1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DataSource->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&amp;", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->Button_Insert->Visible = !$this->EditMode && $this->InsertAllowed;
     $this->Button_Update->Visible = $this->EditMode && $this->UpdateAllowed;
     $this->Button_Delete->Visible = $this->EditMode && $this->DeleteAllowed;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->Button_Insert->Show();
     $this->Button_Update->Show();
     $this->Button_Delete->Show();
     $this->Button_Cancel->Show();
     $this->attribut_type->Show();
     $this->p_user_attribut_id->Show();
     $this->created_by->Show();
     $this->creation_date->Show();
     $this->updated_by->Show();
     $this->updated_date->Show();
     $this->user_name->Show();
     $this->p_user_attribute_type_id->Show();
     $this->p_user_id->Show();
     $this->attribut_list_code->Show();
     $this->p_user_attribute_list_id->Show();
     $this->user_attribute_value->Show();
     $this->valid_from->Show();
     $this->valid_to->Show();
     $this->description->Show();
     $this->DatePicker_valid_from1->Show();
     $this->DatePicker_valid_to1->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }
Example #24
0
 function Show()
 {
     global $CCSUseAmp;
     $Tpl =& CCGetTemplate($this);
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if ($this->EditMode) {
         if ($this->DataSource->Errors->Count()) {
             $this->Errors->AddErrors($this->DataSource->Errors);
             $this->DataSource->Errors->clear();
         }
         $this->DataSource->Open();
         if ($this->DataSource->Errors->Count() == 0 && $this->DataSource->next_record()) {
             $this->DataSource->SetValues();
         } else {
             $this->EditMode = false;
         }
     }
     if (!$this->FormSubmitted) {
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->oldpwd->Errors->ToString());
         $Error = ComposeStrings($Error, $this->newpwd->Errors->ToString());
         $Error = ComposeStrings($Error, $this->confirmpwd->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DataSource->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&amp;", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->Button1->Visible = $this->EditMode && $this->UpdateAllowed;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->oldpwd->Show();
     $this->newpwd->Show();
     $this->confirmpwd->Show();
     $this->Button1->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }
Example #25
0
$Redirect = "";
$Tpl = "";
$TemplateFileName = "";
$BlockToParse = "";
$ComponentName = "";
// Events;
$CCSEvents = "";
$CCSEventResult = "";
$FileName = "CategoryGroups.php";
$Redirect = "";
$TemplateFileName = "Themes/CategoryGroups.html";
$BlockToParse = "main";
$PathToRoot = "./";
//End Initialize Page
//Authenticate User @1-FFD44987
CCSecurityRedirect("1", "", $FileName, CCGetQueryString("QueryString", ""));
//End Authenticate User
//Initialize Objects @1-9EBE738D
$DBDBNetConnect = new clsDBDBNetConnect();
// Controls
$Header = new clsHeader();
$Header->BindEvents();
$Header->TemplatePath = "Themes/";
$Header->Initialize();
$Footer = new clsFooter();
$Footer->BindEvents();
$Footer->TemplatePath = "Themes/";
$Footer->Initialize();
$CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize");
//End Initialize Objects
//Execute Components @1-351F985C
 function Show()
 {
     global $CCSUseAmp;
     global $Tpl;
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if (!$this->FormSubmitted) {
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->creation_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->created_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->updated_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->updated_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->qty_room_sold->Errors->ToString());
         $Error = ComposeStrings($Error, $this->npwd->Errors->ToString());
         $Error = ComposeStrings($Error, $this->t_cust_account_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->finance_period_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_finance_period_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_year_period_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->year_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->total_trans_amount->Errors->ToString());
         $Error = ComposeStrings($Error, $this->start_period->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_start_period->Errors->ToString());
         $Error = ComposeStrings($Error, $this->end_period->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_end_period->Errors->ToString());
         $Error = ComposeStrings($Error, $this->company_name->Errors->ToString());
         $Error = ComposeStrings($Error, $this->vat_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_vat_type_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->vat_code_dtl->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_vat_type_dtl_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->vat_code_dtl_cls->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_vat_type_dtl_cls_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->mode_denda->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&amp;", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->creation_date->Show();
     $this->created_by->Show();
     $this->updated_date->Show();
     $this->updated_by->Show();
     $this->qty_room_sold->Show();
     $this->npwd->Show();
     $this->t_cust_account_id->Show();
     $this->finance_period_code->Show();
     $this->p_finance_period_id->Show();
     $this->p_year_period_id->Show();
     $this->year_code->Show();
     $this->total_trans_amount->Show();
     $this->start_period->Show();
     $this->DatePicker_start_period->Show();
     $this->end_period->Show();
     $this->DatePicker_end_period->Show();
     $this->Button1->Show();
     $this->company_name->Show();
     $this->vat_code->Show();
     $this->p_vat_type_id->Show();
     $this->vat_code_dtl->Show();
     $this->p_vat_type_dtl_id->Show();
     $this->vat_code_dtl_cls->Show();
     $this->p_vat_type_dtl_cls_id->Show();
     $this->mode_denda->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
 }
 function Show()
 {
     global $CCSUseAmp;
     global $Tpl;
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $this->ListBox1->Prepare();
     $this->ListBox2->Prepare();
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if (!$this->FormSubmitted) {
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_finance_period_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_year_period_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->year_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->ListBox1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_vat_type_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->vat_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->code1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_finance_period_id1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->ListBox2->Errors->ToString());
         $Error = ComposeStrings($Error, $this->tgl_penerimaan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_tgl_penerimaan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->tgl_penerimaan_last->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_tgl_penerimaan_last->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&amp;", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->code->Show();
     $this->p_finance_period_id->Show();
     $this->p_year_period_id->Show();
     $this->year_code->Show();
     $this->Button_DoSearch->Show();
     $this->ListBox1->Show();
     $this->p_vat_type_id->Show();
     $this->vat_code->Show();
     $this->code1->Show();
     $this->p_finance_period_id1->Show();
     $this->ListBox2->Show();
     $this->Button_DoSearch1->Show();
     $this->tgl_penerimaan->Show();
     $this->DatePicker_tgl_penerimaan->Show();
     $this->tgl_penerimaan_last->Show();
     $this->DatePicker_tgl_penerimaan_last->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
 }
 function Show()
 {
     global $Tpl;
     global $CCSLocales;
     if (!$this->Visible) {
         return;
     }
     $this->RowNumber = 0;
     $this->DataSource->Parameters["urlp_year_period_id"] = CCGetFromGet("p_year_period_id", NULL);
     $this->DataSource->Parameters["urlp_vat_group_id"] = CCGetFromGet("p_vat_group_id", NULL);
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $this->DataSource->Prepare();
     $this->DataSource->Open();
     $this->HasRecord = $this->DataSource->has_next_record();
     $this->IsEmpty = !$this->HasRecord;
     $this->Attributes->Show();
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     if (!$this->Visible) {
         return;
     }
     $GridBlock = "Grid " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $GridBlock;
     if (!$this->IsEmpty) {
         $this->ControlsVisible["DLink"] = $this->DLink->Visible;
         $this->ControlsVisible["target_amount"] = $this->target_amount->Visible;
         $this->ControlsVisible["p_year_period_id"] = $this->p_year_period_id->Visible;
         $this->ControlsVisible["vat_code"] = $this->vat_code->Visible;
         $this->ControlsVisible["p_vat_type_id"] = $this->p_vat_type_id->Visible;
         $this->ControlsVisible["realisasi_amt"] = $this->realisasi_amt->Visible;
         $this->ControlsVisible["percentage"] = $this->percentage->Visible;
         $this->ControlsVisible["selisih"] = $this->selisih->Visible;
         $this->ControlsVisible["percentage_selisih"] = $this->percentage_selisih->Visible;
         while ($this->ForceIteration || $this->RowNumber < $this->PageSize && ($this->HasRecord = $this->DataSource->has_next_record())) {
             $this->RowNumber++;
             if ($this->HasRecord) {
                 $this->DataSource->next_record();
                 $this->DataSource->SetValues();
             }
             $Tpl->block_path = $ParentPath . "/" . $GridBlock . "/Row";
             $this->DLink->Parameters = CCGetQueryString("QueryString", array("ccsForm"));
             $this->DLink->Parameters = CCAddParam($this->DLink->Parameters, "t_revenue_target_id", $this->DataSource->f("t_revenue_target_id"));
             $this->DLink->Parameters = CCAddParam($this->DLink->Parameters, "p_year_period_id", $this->DataSource->f("p_year_period_id"));
             $this->DLink->Parameters = CCAddParam($this->DLink->Parameters, "p_vat_type_id", $this->DataSource->f("p_vat_type_id"));
             $this->target_amount->SetValue($this->DataSource->target_amount->GetValue());
             $this->p_year_period_id->SetValue($this->DataSource->p_year_period_id->GetValue());
             $this->vat_code->SetValue($this->DataSource->vat_code->GetValue());
             $this->p_vat_type_id->SetValue($this->DataSource->p_vat_type_id->GetValue());
             $this->realisasi_amt->SetValue($this->DataSource->realisasi_amt->GetValue());
             $this->Attributes->SetValue("rowNumber", $this->RowNumber);
             $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow", $this);
             $this->Attributes->Show();
             $this->DLink->Show();
             $this->target_amount->Show();
             $this->p_year_period_id->Show();
             $this->vat_code->Show();
             $this->p_vat_type_id->Show();
             $this->realisasi_amt->Show();
             $this->percentage->Show();
             $this->selisih->Show();
             $this->percentage_selisih->Show();
             $Tpl->block_path = $ParentPath . "/" . $GridBlock;
             $Tpl->parse("Row", true);
         }
     } else {
         // Show NoRecords block if no records are found
         $this->Attributes->Show();
         $Tpl->parse("NoRecords", false);
     }
     $errors = $this->GetErrors();
     if (strlen($errors)) {
         $Tpl->replaceblock("", $errors);
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->Navigator->PageNumber = $this->DataSource->AbsolutePage;
     $this->Navigator->PageSize = $this->PageSize;
     if ($this->DataSource->RecordsCount == "CCS not counted") {
         $this->Navigator->TotalPages = $this->DataSource->AbsolutePage + ($this->DataSource->next_record() ? 1 : 0);
     } else {
         $this->Navigator->TotalPages = $this->DataSource->PageCount();
     }
     if ($this->Navigator->TotalPages <= 1) {
         $this->Navigator->Visible = false;
     }
     $this->year_code->SetValue($this->DataSource->year_code->GetValue());
     $this->Navigator->Show();
     $this->year_code->Show();
     $this->t_revenue_target_id->Show();
     $this->p_year_period_id2->Show();
     $this->p_vat_type_id2->Show();
     $this->target_amount_sum->Show();
     $this->realisasi_amt_sum->Show();
     $this->percentage_sum->Show();
     $this->p_vat_group_id->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }
Example #29
0
 function Show()
 {
     $Tpl = CCGetTemplate($this);
     global $CCSLocales;
     if (!$this->Visible) {
         return;
     }
     $this->RowNumber = 0;
     $this->DataSource->Parameters["urlp_menu_id"] = CCGetFromGet("p_menu_id", NULL);
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $this->DataSource->Prepare();
     $this->DataSource->Open();
     $this->HasRecord = $this->DataSource->has_next_record();
     $this->IsEmpty = !$this->HasRecord;
     $this->Attributes->Show();
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     if (!$this->Visible) {
         return;
     }
     $GridBlock = "Grid " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $GridBlock;
     if (!$this->IsEmpty) {
         $this->ControlsVisible["code"] = $this->code->Visible;
         $this->ControlsVisible["valid_from"] = $this->valid_from->Visible;
         $this->ControlsVisible["editlink"] = $this->editlink->Visible;
         $this->ControlsVisible["role_name"] = $this->role_name->Visible;
         $this->ControlsVisible["valid_to"] = $this->valid_to->Visible;
         while ($this->ForceIteration || $this->RowNumber < $this->PageSize && ($this->HasRecord = $this->DataSource->has_next_record())) {
             $this->RowNumber++;
             if ($this->HasRecord) {
                 $this->DataSource->next_record();
                 $this->DataSource->SetValues();
             }
             $Tpl->block_path = $ParentPath . "/" . $GridBlock . "/Row";
             $this->code->SetValue($this->DataSource->code->GetValue());
             $this->valid_from->SetValue($this->DataSource->valid_from->GetValue());
             $this->editlink->Parameters = CCGetQueryString("QueryString", array("p_menu_id", "ccsForm"));
             $this->editlink->Parameters = CCAddParam($this->editlink->Parameters, "p_role_menu_id", $this->DataSource->f("p_role_menu_id"));
             $this->role_name->SetValue($this->DataSource->role_name->GetValue());
             $this->valid_to->SetValue($this->DataSource->valid_to->GetValue());
             $this->Attributes->SetValue("rowNumber", $this->RowNumber);
             $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow", $this);
             $this->Attributes->Show();
             $this->code->Show();
             $this->valid_from->Show();
             $this->editlink->Show();
             $this->role_name->Show();
             $this->valid_to->Show();
             $Tpl->block_path = $ParentPath . "/" . $GridBlock;
             $Tpl->parse("Row", true);
         }
     } else {
         // Show NoRecords block if no records are found
         $this->Attributes->Show();
         $Tpl->parse("NoRecords", false);
     }
     $errors = $this->GetErrors();
     if (strlen($errors)) {
         $Tpl->replaceblock("", $errors);
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->Navigator->PageNumber = $this->DataSource->AbsolutePage;
     $this->Navigator->PageSize = $this->PageSize;
     if ($this->DataSource->RecordsCount == "CCS not counted") {
         $this->Navigator->TotalPages = $this->DataSource->AbsolutePage + ($this->DataSource->next_record() ? 1 : 0);
     } else {
         $this->Navigator->TotalPages = $this->DataSource->PageCount();
     }
     if ($this->Navigator->TotalPages <= 1 && $this->Navigator->PageNumber == 1 || $this->Navigator->PageSize == "") {
         $this->Navigator->Visible = false;
     }
     $this->p_module_id->SetValue($this->DataSource->p_module_id->GetValue());
     $this->Navigator->Show();
     $this->addlink->Show();
     $this->p_module_id->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }
Example #30
0
 function Show()
 {
     $Tpl =& CCGetTemplate($this);
     global $FileName;
     global $CCSLocales;
     global $CCSUseAmp;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $this->DataSource->open();
     $is_next_record = $this->ReadAllowed && $this->DataSource->next_record();
     $this->IsEmpty = !$is_next_record;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     if (!$this->Visible) {
         return;
     }
     $this->Attributes->Show();
     $this->Button_Submit->Visible = $this->Button_Submit->Visible && ($this->InsertAllowed || $this->UpdateAllowed || $this->DeleteAllowed);
     $ParentPath = $Tpl->block_path;
     $EditableGridPath = $ParentPath . "/EditableGrid " . $this->ComponentName;
     $EditableGridRowPath = $ParentPath . "/EditableGrid " . $this->ComponentName . "/Row";
     $Tpl->block_path = $EditableGridRowPath;
     $this->RowNumber = 0;
     $NonEmptyRows = 0;
     $EmptyRowsLeft = $this->EmptyRows;
     $this->ControlsVisible["title_id"] = $this->title_id->Visible;
     $this->ControlsVisible["title"] = $this->title->Visible;
     $this->ControlsVisible["CheckBox_Delete"] = $this->CheckBox_Delete->Visible;
     if ($is_next_record || $EmptyRowsLeft && $this->InsertAllowed) {
         do {
             $this->RowNumber++;
             if ($is_next_record) {
                 $NonEmptyRows++;
                 $this->DataSource->SetValues();
             }
             if (!$is_next_record || !$this->DeleteAllowed) {
                 $this->CheckBox_Delete->Visible = false;
             }
             if (!$this->FormSubmitted && $is_next_record) {
                 $this->CachedColumns["title_id"][$this->RowNumber] = $this->DataSource->CachedColumns["title_id"];
                 $this->CheckBox_Delete->SetValue(false);
                 $this->title_id->SetValue($this->DataSource->title_id->GetValue());
                 $this->title->SetValue($this->DataSource->title->GetValue());
             } elseif ($this->FormSubmitted && $is_next_record) {
                 $this->title_id->SetText("");
                 $this->title_id->SetValue($this->DataSource->title_id->GetValue());
                 $this->title->SetText($this->FormParameters["title"][$this->RowNumber], $this->RowNumber);
                 $this->CheckBox_Delete->SetText($this->FormParameters["CheckBox_Delete"][$this->RowNumber], $this->RowNumber);
             } elseif (!$this->FormSubmitted) {
                 $this->CachedColumns["title_id"][$this->RowNumber] = "";
                 $this->title_id->SetText("");
                 $this->title->SetText("");
             } else {
                 $this->title_id->SetText("");
                 $this->title->SetText($this->FormParameters["title"][$this->RowNumber], $this->RowNumber);
                 $this->CheckBox_Delete->SetText($this->FormParameters["CheckBox_Delete"][$this->RowNumber], $this->RowNumber);
             }
             $this->Attributes->SetValue("rowNumber", $this->RowNumber);
             $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow", $this);
             $this->Attributes->Show();
             $this->title_id->Show($this->RowNumber);
             $this->title->Show($this->RowNumber);
             $this->CheckBox_Delete->Show($this->RowNumber);
             if (isset($this->RowsErrors[$this->RowNumber]) && $this->RowsErrors[$this->RowNumber] != "") {
                 $Tpl->setblockvar("RowError", "");
                 $Tpl->setvar("Error", $this->RowsErrors[$this->RowNumber]);
                 $this->Attributes->Show();
                 $Tpl->parse("RowError", false);
             } else {
                 $Tpl->setblockvar("RowError", "");
             }
             $Tpl->setvar("FormScript", $this->FormScript($this->RowNumber));
             $Tpl->parse();
             if ($is_next_record) {
                 if ($this->FormSubmitted) {
                     $is_next_record = $this->RowNumber < $this->UpdatedRows;
                     if ($this->DataSource->CachedColumns["title_id"] == $this->CachedColumns["title_id"][$this->RowNumber]) {
                         if ($this->ReadAllowed) {
                             $this->DataSource->next_record();
                         }
                     }
                 } else {
                     $is_next_record = $this->RowNumber < $this->PageSize && $this->ReadAllowed && $this->DataSource->next_record();
                 }
             } else {
                 $EmptyRowsLeft--;
             }
         } while ($is_next_record || $EmptyRowsLeft && $this->InsertAllowed);
     } else {
         $Tpl->block_path = $EditableGridPath;
         $this->Attributes->Show();
         $Tpl->parse("NoRecords", false);
     }
     $Tpl->block_path = $EditableGridPath;
     $this->Button_Submit->Show();
     $this->Cancel->Show();
     if ($this->CheckErrors()) {
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DataSource->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&amp;", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     if (!$CCSUseAmp) {
         $Tpl->SetVar("HTMLFormProperties", "method=\"POST\" action=\"" . $this->HTMLFormAction . "\" name=\"" . $this->ComponentName . "\"");
     } else {
         $Tpl->SetVar("HTMLFormProperties", "method=\"post\" action=\"" . str_replace("&", "&amp;", $this->HTMLFormAction) . "\" id=\"" . $this->ComponentName . "\"");
     }
     $Tpl->SetVar("FormState", CCToHTML($this->GetFormState($NonEmptyRows)));
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }