Visible = true; $this->Parent = & $Parent; $this->RelativePath = $RelativePath; $this->Errors = new clsErrors(); $this->ErrorBlock = "Record buntetes/Error"; $this->DataSource = new clsbuntetesDataSource($this); $this->ds = & $this->DataSource; $this->ReadAllowed = true; $this->Visible = (CCSecurityAccessCheck("90;70;60") == "success"); if($this->Visible) { $this->ReadAllowed = $this->ReadAllowed && CCUserInGroups(CCGetGroupID(), "90;70;60"); $this->InsertAllowed = CCUserInGroups(CCGetGroupID(), "90;70;60"); $this->UpdateAllowed = CCUserInGroups(CCGetGroupID(), "90;70;60"); $this->DeleteAllowed = CCUserInGroups(CCGetGroupID(), "90;70;60"); $this->ComponentName = "buntetes"; $this->Attributes = new clsAttributes($this->ComponentName . ":"); $CCSForm = explode(":", CCGetFromGet("ccsForm", ""), 2); if(sizeof($CCSForm) == 1) $CCSForm[1] = ""; list($FormName, $FormMethod) = $CCSForm; $this->EditMode = ($FormMethod == "Edit"); $this->FormEnctype = "application/x-www-form-urlencoded"; $this->FormSubmitted = ($FormName == $this->ComponentName); $Method = $this->FormSubmitted ? ccsPost : ccsGet; $this->LEVONAS_OKA = new clsControl(ccsTextBox, "LEVONAS_OKA", $CCSLocales->GetText("LEVONAS_OKA"), ccsText, "", CCGetRequestParam("LEVONAS_OKA", $Method, NULL), $this); $this->LEVONAS_OKA->Required = true; $this->LEVONAS = new clsControl(ccsTextBox, "LEVONAS", $CCSLocales->GetText("LEVONAS"), ccsInteger, "", CCGetRequestParam("LEVONAS", $Method, NULL), $this); $this->LEVONAS->Required = true; $this->TimeStampInsert = new clsControl(ccsHidden, "TimeStampInsert", $CCSLocales->GetText("TimeStampInsert"), ccsDate, array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"), CCGetRequestParam("TimeStampInsert", $Method, NULL), $this); $this->Insert_User_ID = new clsControl(ccsHidden, "Insert_User_ID", $CCSLocales->GetText("Insert_User_ID"), ccsInteger, "", CCGetRequestParam("Insert_User_ID", $Method, NULL), $this); $this->TimeStampUpdate = new clsControl(ccsHidden, "TimeStampUpdate", $CCSLocales->GetText("TimeStampUpdate"), ccsDate, array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"), CCGetRequestParam("TimeStampUpdate", $Method, NULL), $this); $this->Update_User_ID = new clsControl(ccsHidden, "Update_User_ID", $CCSLocales->GetText("Update_User_ID"), ccsText, "", CCGetRequestParam("Update_User_ID", $Method, NULL), $this); $this->Button_Insert = new clsButton("Button_Insert", $Method, $this); $this->Button_Update = new clsButton("Button_Update", $Method, $this); $this->Button_Delete = new clsButton("Button_Delete", $Method, $this); $this->ImageLink1 = new clsControl(ccsImageLink, "ImageLink1", "ImageLink1", ccsText, "", CCGetRequestParam("ImageLink1", $Method, NULL), $this); $this->ImageLink1->Parameters = CCGetQueryString("QueryString", array("ccsForm")); $this->ImageLink1->Page = "buntetes_list.php"; } } //End Class_Initialize Event //Initialize Method @2-D6CB1C94 function Initialize() { if(!$this->Visible) return; $this->DataSource->Parameters["urlID"] = CCGetFromGet("ID", NULL); } //End Initialize Method //Validate Method @2-FEE69F2D function Validate() { global $CCSLocales; $Validation = true; $Where = ""; $Validation = ($this->LEVONAS_OKA->Validate() && $Validation); $Validation = ($this->LEVONAS->Validate() && $Validation); $Validation = ($this->TimeStampInsert->Validate() && $Validation); $Validation = ($this->Insert_User_ID->Validate() && $Validation); $Validation = ($this->TimeStampUpdate->Validate() && $Validation); $Validation = ($this->Update_User_ID->Validate() && $Validation); $this->CCSEventResult = CCGetEvent($this->CCSEvents, "OnValidate", $this); $Validation = $Validation && ($this->LEVONAS_OKA->Errors->Count() == 0); $Validation = $Validation && ($this->LEVONAS->Errors->Count() == 0); $Validation = $Validation && ($this->TimeStampInsert->Errors->Count() == 0); $Validation = $Validation && ($this->Insert_User_ID->Errors->Count() == 0); $Validation = $Validation && ($this->TimeStampUpdate->Errors->Count() == 0); $Validation = $Validation && ($this->Update_User_ID->Errors->Count() == 0); return (($this->Errors->Count() == 0) && $Validation); } //End Validate Method //CheckErrors Method @2-95EB43FD function CheckErrors() { $errors = false; $errors = ($errors || $this->LEVONAS_OKA->Errors->Count()); $errors = ($errors || $this->LEVONAS->Errors->Count()); $errors = ($errors || $this->TimeStampInsert->Errors->Count()); $errors = ($errors || $this->Insert_User_ID->Errors->Count()); $errors = ($errors || $this->TimeStampUpdate->Errors->Count()); $errors = ($errors || $this->Update_User_ID->Errors->Count()); $errors = ($errors || $this->ImageLink1->Errors->Count()); $errors = ($errors || $this->Errors->Count()); $errors = ($errors || $this->DataSource->Errors->Count()); return $errors; } //End CheckErrors Method //MasterDetail @2-ED598703 function SetPrimaryKeys($keyArray) { $this->PrimaryKeys = $keyArray; } function GetPrimaryKeys() { return $this->PrimaryKeys; } function GetPrimaryKey($keyName) { return $this->PrimaryKeys[$keyName]; } //End MasterDetail //Operation Method @2-B37EF1BC function Operation() { if(!$this->Visible) return; global $Redirect; global $FileName; $this->DataSource->Prepare(); if(!$this->FormSubmitted) { $this->EditMode = $this->DataSource->AllParametersSet; return; } if($this->FormSubmitted) { $this->PressedButton = $this->EditMode ? "Button_Update" : "Button_Insert"; if($this->Button_Insert->Pressed) { $this->PressedButton = "Button_Insert"; } else if($this->Button_Update->Pressed) { $this->PressedButton = "Button_Update"; } else if($this->Button_Delete->Pressed) { $this->PressedButton = "Button_Delete"; } } $Redirect = "buntetes_list.php" . "?" . CCGetQueryString("QueryString", array("ccsForm")); if($this->PressedButton == "Button_Delete" && $this->DeleteAllowed) { $Redirect = "buntetes_list.php" . "?" . CCGetQueryString("QueryString", array("ccsForm")); if(!CCGetEvent($this->Button_Delete->CCSEvents, "OnClick", $this->Button_Delete) || !$this->DeleteRow()) { $Redirect = ""; } } else if($this->Validate()) { if($this->PressedButton == "Button_Insert" && $this->InsertAllowed) { $Redirect = "buntetes_list.php" . "?" . CCGetQueryString("QueryString", array("ccsForm")); if(!CCGetEvent($this->Button_Insert->CCSEvents, "OnClick", $this->Button_Insert) || !$this->InsertRow()) { $Redirect = ""; } } else if($this->PressedButton == "Button_Update" && $this->UpdateAllowed) { $Redirect = "buntetes_list.php" . "?" . CCGetQueryString("QueryString", array("ccsForm")); if(!CCGetEvent($this->Button_Update->CCSEvents, "OnClick", $this->Button_Update) || !$this->UpdateRow()) { $Redirect = ""; } } } else { $Redirect = ""; } if ($Redirect) $this->DataSource->close(); } //End Operation Method //InsertRow Method @2-6DC1337D function InsertRow() { $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeInsert", $this); if(!$this->InsertAllowed) return false; $this->DataSource->LEVONAS_OKA->SetValue($this->LEVONAS_OKA->GetValue(true)); $this->DataSource->LEVONAS->SetValue($this->LEVONAS->GetValue(true)); $this->DataSource->TimeStampInsert->SetValue($this->TimeStampInsert->GetValue(true)); $this->DataSource->Insert_User_ID->SetValue($this->Insert_User_ID->GetValue(true)); $this->DataSource->TimeStampUpdate->SetValue($this->TimeStampUpdate->GetValue(true)); $this->DataSource->Update_User_ID->SetValue($this->Update_User_ID->GetValue(true)); $this->DataSource->ImageLink1->SetValue($this->ImageLink1->GetValue(true)); $this->DataSource->Insert(); $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterInsert", $this); return (!$this->CheckErrors()); } //End InsertRow Method //UpdateRow Method @2-19D92250 function UpdateRow() { $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeUpdate", $this); if(!$this->UpdateAllowed) return false; $this->DataSource->LEVONAS_OKA->SetValue($this->LEVONAS_OKA->GetValue(true)); $this->DataSource->LEVONAS->SetValue($this->LEVONAS->GetValue(true)); $this->DataSource->TimeStampInsert->SetValue($this->TimeStampInsert->GetValue(true)); $this->DataSource->Insert_User_ID->SetValue($this->Insert_User_ID->GetValue(true)); $this->DataSource->TimeStampUpdate->SetValue($this->TimeStampUpdate->GetValue(true)); $this->DataSource->Update_User_ID->SetValue($this->Update_User_ID->GetValue(true)); $this->DataSource->ImageLink1->SetValue($this->ImageLink1->GetValue(true)); $this->DataSource->Update(); $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterUpdate", $this); return (!$this->CheckErrors()); } //End UpdateRow Method //DeleteRow Method @2-299D98C3 function DeleteRow() { $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeDelete", $this); if(!$this->DeleteAllowed) return false; $this->DataSource->Delete(); $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterDelete", $this); return (!$this->CheckErrors()); } //End DeleteRow Method //Show Method @2-8949E5F4 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->LEVONAS_OKA->SetValue($this->DataSource->LEVONAS_OKA->GetValue()); $this->LEVONAS->SetValue($this->DataSource->LEVONAS->GetValue()); $this->TimeStampInsert->SetValue($this->DataSource->TimeStampInsert->GetValue()); $this->Insert_User_ID->SetValue($this->DataSource->Insert_User_ID->GetValue()); $this->TimeStampUpdate->SetValue($this->DataSource->TimeStampUpdate->GetValue()); $this->Update_User_ID->SetValue($this->DataSource->Update_User_ID->GetValue()); } } else { $this->EditMode = false; } } if($this->FormSubmitted || $this->CheckErrors()) { $Error = ""; $Error = ComposeStrings($Error, $this->LEVONAS_OKA->Errors->ToString()); $Error = ComposeStrings($Error, $this->LEVONAS->Errors->ToString()); $Error = ComposeStrings($Error, $this->TimeStampInsert->Errors->ToString()); $Error = ComposeStrings($Error, $this->Insert_User_ID->Errors->ToString()); $Error = ComposeStrings($Error, $this->TimeStampUpdate->Errors->ToString()); $Error = ComposeStrings($Error, $this->Update_User_ID->Errors->ToString()); $Error = ComposeStrings($Error, $this->ImageLink1->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("&", "&", $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->LEVONAS_OKA->Show(); $this->LEVONAS->Show(); $this->TimeStampInsert->Show(); $this->Insert_User_ID->Show(); $this->TimeStampUpdate->Show(); $this->Update_User_ID->Show(); $this->Button_Insert->Show(); $this->Button_Update->Show(); $this->Button_Delete->Show(); $this->ImageLink1->Show(); $Tpl->parse(); $Tpl->block_path = $ParentPath; $this->DataSource->close(); } //End Show Method } //End buntetes Class @2-FCB6E20C class clsbuntetesDataSource extends clsDBConnection1 { //buntetesDataSource Class @2-AB799C8F //DataSource Variables @2-75F86154 public $Parent = ""; public $CCSEvents = ""; public $CCSEventResult; public $ErrorBlock; public $CmdExecution; public $InsertParameters; public $UpdateParameters; public $DeleteParameters; public $wp; public $AllParametersSet; public $InsertFields = array(); public $UpdateFields = array(); // Datasource fields public $LEVONAS_OKA; public $LEVONAS; public $TimeStampInsert; public $Insert_User_ID; public $TimeStampUpdate; public $Update_User_ID; public $ImageLink1; //End DataSource Variables //DataSourceClass_Initialize Event @2-867B96DA function clsbuntetesDataSource(& $Parent) { $this->Parent = & $Parent; $this->ErrorBlock = "Record buntetes/Error"; $this->Initialize(); $this->LEVONAS_OKA = new clsField("LEVONAS_OKA", ccsText, ""); $this->LEVONAS = new clsField("LEVONAS", ccsInteger, ""); $this->TimeStampInsert = new clsField("TimeStampInsert", ccsDate, $this->DateFormat); $this->Insert_User_ID = new clsField("Insert_User_ID", ccsInteger, ""); $this->TimeStampUpdate = new clsField("TimeStampUpdate", ccsDate, $this->DateFormat); $this->Update_User_ID = new clsField("Update_User_ID", ccsText, ""); $this->ImageLink1 = new clsField("ImageLink1", ccsText, ""); $this->InsertFields["LEVONAS_OKA"] = array("Name" => "LEVONAS_OKA", "Value" => "", "DataType" => ccsText, "OmitIfEmpty" => 1); $this->InsertFields["LEVONAS"] = array("Name" => "LEVONAS", "Value" => "", "DataType" => ccsInteger, "OmitIfEmpty" => 1); $this->InsertFields["TimeStampInsert"] = array("Name" => "TimeStampInsert", "Value" => "", "DataType" => ccsDate, "OmitIfEmpty" => 1); $this->InsertFields["Insert_User_ID"] = array("Name" => "Insert_User_ID", "Value" => "", "DataType" => ccsInteger, "OmitIfEmpty" => 1); $this->InsertFields["TimeStampUpdate"] = array("Name" => "TimeStampUpdate", "Value" => "", "DataType" => ccsDate, "OmitIfEmpty" => 1); $this->InsertFields["Update_User_ID"] = array("Name" => "Update_User_ID", "Value" => "", "DataType" => ccsText, "OmitIfEmpty" => 1); $this->UpdateFields["LEVONAS_OKA"] = array("Name" => "LEVONAS_OKA", "Value" => "", "DataType" => ccsText, "OmitIfEmpty" => 1); $this->UpdateFields["LEVONAS"] = array("Name" => "LEVONAS", "Value" => "", "DataType" => ccsInteger, "OmitIfEmpty" => 1); $this->UpdateFields["TimeStampInsert"] = array("Name" => "TimeStampInsert", "Value" => "", "DataType" => ccsDate, "OmitIfEmpty" => 1); $this->UpdateFields["Insert_User_ID"] = array("Name" => "Insert_User_ID", "Value" => "", "DataType" => ccsInteger, "OmitIfEmpty" => 1); $this->UpdateFields["TimeStampUpdate"] = array("Name" => "TimeStampUpdate", "Value" => "", "DataType" => ccsDate, "OmitIfEmpty" => 1); $this->UpdateFields["Update_User_ID"] = array("Name" => "Update_User_ID", "Value" => "", "DataType" => ccsText, "OmitIfEmpty" => 1); } //End DataSourceClass_Initialize Event //Prepare Method @2-C6736E1B function Prepare() { global $CCSLocales; global $DefaultDateFormat; $this->wp = new clsSQLParameters($this->ErrorBlock); $this->wp->AddParameter("1", "urlID", ccsInteger, "", "", $this->Parameters["urlID"], "", false); $this->AllParametersSet = $this->wp->AllParamsSet(); $this->wp->Criterion[1] = $this->wp->Operation(opEqual, "ID", $this->wp->GetDBValue("1"), $this->ToSQL($this->wp->GetDBValue("1"), ccsInteger),false); $this->Where = $this->wp->Criterion[1]; } //End Prepare Method //Open Method @2-4DE70C14 function Open() { $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect", $this->Parent); $this->SQL = "SELECT * \n\n" . "FROM buntetes {SQL_Where} {SQL_OrderBy}"; $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteSelect", $this->Parent); $this->PageSize = 1; $this->query($this->OptimizeSQL(CCBuildSQL($this->SQL, $this->Where, $this->Order))); $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteSelect", $this->Parent); } //End Open Method //SetValues Method @2-F725D6BE function SetValues() { $this->LEVONAS_OKA->SetDBValue($this->f("LEVONAS_OKA")); $this->LEVONAS->SetDBValue(trim($this->f("LEVONAS"))); $this->TimeStampInsert->SetDBValue(trim($this->f("TimeStampInsert"))); $this->Insert_User_ID->SetDBValue(trim($this->f("Insert_User_ID"))); $this->TimeStampUpdate->SetDBValue(trim($this->f("TimeStampUpdate"))); $this->Update_User_ID->SetDBValue($this->f("Update_User_ID")); } //End SetValues Method //Insert Method @2-F734BCF4 function Insert() { global $CCSLocales; global $DefaultDateFormat; $this->CmdExecution = true; $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildInsert", $this->Parent); $this->InsertFields["LEVONAS_OKA"]["Value"] = $this->LEVONAS_OKA->GetDBValue(true); $this->InsertFields["LEVONAS"]["Value"] = $this->LEVONAS->GetDBValue(true); $this->InsertFields["TimeStampInsert"]["Value"] = $this->TimeStampInsert->GetDBValue(true); $this->InsertFields["Insert_User_ID"]["Value"] = $this->Insert_User_ID->GetDBValue(true); $this->InsertFields["TimeStampUpdate"]["Value"] = $this->TimeStampUpdate->GetDBValue(true); $this->InsertFields["Update_User_ID"]["Value"] = $this->Update_User_ID->GetDBValue(true); $this->SQL = CCBuildInsert("buntetes", $this->InsertFields, $this); $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteInsert", $this->Parent); if($this->Errors->Count() == 0 && $this->CmdExecution) { $this->query($this->SQL); $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteInsert", $this->Parent); } } //End Insert Method //Update Method @2-5ABADC21 function Update() { global $CCSLocales; global $DefaultDateFormat; $this->CmdExecution = true; $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildUpdate", $this->Parent); $this->UpdateFields["LEVONAS_OKA"]["Value"] = $this->LEVONAS_OKA->GetDBValue(true); $this->UpdateFields["LEVONAS"]["Value"] = $this->LEVONAS->GetDBValue(true); $this->UpdateFields["TimeStampInsert"]["Value"] = $this->TimeStampInsert->GetDBValue(true); $this->UpdateFields["Insert_User_ID"]["Value"] = $this->Insert_User_ID->GetDBValue(true); $this->UpdateFields["TimeStampUpdate"]["Value"] = $this->TimeStampUpdate->GetDBValue(true); $this->UpdateFields["Update_User_ID"]["Value"] = $this->Update_User_ID->GetDBValue(true); $this->SQL = CCBuildUpdate("buntetes", $this->UpdateFields, $this); $this->SQL .= strlen($this->Where) ? " WHERE " . $this->Where : $this->Where; if (!strlen($this->Where) && $this->Errors->Count() == 0) $this->Errors->addError($CCSLocales->GetText("CCS_CustomOperationError_MissingParameters")); $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteUpdate", $this->Parent); if($this->Errors->Count() == 0 && $this->CmdExecution) { $this->query($this->SQL); $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteUpdate", $this->Parent); } } //End Update Method //Delete Method @2-7238B5EE function Delete() { global $CCSLocales; global $DefaultDateFormat; $this->CmdExecution = true; $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildDelete", $this->Parent); $this->SQL = "DELETE FROM buntetes"; $this->SQL = CCBuildSQL($this->SQL, $this->Where, ""); if (!strlen($this->Where) && $this->Errors->Count() == 0) $this->Errors->addError($CCSLocales->GetText("CCS_CustomOperationError_MissingParameters")); $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteDelete", $this->Parent); if($this->Errors->Count() == 0 && $this->CmdExecution) { $this->query($this->SQL); $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteDelete", $this->Parent); } } //End Delete Method } //End buntetesDataSource Class @2-FCB6E20C //Initialize Page @1-E8993672 // Variables $FileName = ""; $Redirect = ""; $Tpl = ""; $TemplateFileName = ""; $BlockToParse = ""; $ComponentName = ""; $Attributes = ""; // Events; $CCSEvents = ""; $CCSEventResult = ""; $FileName = FileName; $Redirect = ""; $TemplateFileName = "buntetes_maint.html"; $BlockToParse = "main"; $TemplateEncoding = "UTF-8"; $ContentType = "text/html"; $PathToRoot = "./"; $Charset = $Charset ? $Charset : "utf-8"; //End Initialize Page //Authenticate User @1-C8F15CBE CCSecurityRedirect("50", ""); //End Authenticate User //Include events file @1-1873B3FC include_once("./buntetes_maint_events.php"); //End Include events file //Before Initialize @1-E870CEBC $CCSEventResult = CCGetEvent($CCSEvents, "BeforeInitialize", $MainPage); //End Before Initialize //Initialize Objects @1-CF822D55 $DBConnection1 = new clsDBConnection1(); $MainPage->Connections["Connection1"] = & $DBConnection1; $Attributes = new clsAttributes("page:"); $MainPage->Attributes = & $Attributes; // Controls $buntetes = new clsRecordbuntetes("", $MainPage); $MainPage->buntetes = & $buntetes; $buntetes->Initialize(); BindEvents(); $CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize", $MainPage); if ($Charset) { header("Content-Type: " . $ContentType . "; charset=" . $Charset); } else { header("Content-Type: " . $ContentType); } //End Initialize Objects //Initialize HTML Template @1-A06E9207 $CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView", $MainPage); $Tpl = new clsTemplate($FileEncoding, $TemplateEncoding); $Tpl->LoadTemplate(PathToCurrentPage . $TemplateFileName, $BlockToParse, "UTF-8", "replace"); $Tpl->block_path = "/$BlockToParse"; $CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow", $MainPage); $Attributes->SetValue("pathToRoot", ""); $Attributes->Show(); //End Initialize HTML Template //Execute Components @1-A4C20777 $buntetes->Operation(); //End Execute Components //Go to destination page @1-CC89A2B9 if($Redirect) { $CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage); $DBConnection1->close(); header("Location: " . $Redirect); unset($buntetes); unset($Tpl); exit; } //End Go to destination page //Show Page @1-F304B07A $buntetes->Show(); $Tpl->block_path = ""; $Tpl->Parse($BlockToParse, false); if (!isset($main_block)) $main_block = $Tpl->GetVar($BlockToParse); $LGTHP7O3R6L6D = "