Viewing file: statistika_list.php (26.89 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php //Include Common Files @1-1FECE38A define("RelativePath", "."); define("PathToCurrentPage", "/"); define("FileName", "statistika_list.php"); include(RelativePath . "/Common.php"); include(RelativePath . "/Template.php"); include(RelativePath . "/Sorter.php"); include(RelativePath . "/Navigator.php"); //End Include Common Files
//Include Page implementation @29-3DD2EFDC include_once(RelativePath . "/Header.php"); //End Include Page implementation
class clsRecordstatistikaSearch { //statistikaSearch Class @2-A104BE37
//Variables @2-9E315808
// Public variables public $ComponentType = "Record"; public $ComponentName; public $Parent; public $HTMLFormAction; public $PressedButton; public $Errors; public $ErrorBlock; public $FormSubmitted; public $FormEnctype; public $Visible; public $IsEmpty;
public $CCSEvents = ""; public $CCSEventResult;
public $RelativePath = "";
public $InsertAllowed = false; public $UpdateAllowed = false; public $DeleteAllowed = false; public $ReadAllowed = false; public $EditMode = false; public $ds; public $DataSource; public $ValidatingControls; public $Controls; public $Attributes;
// Class variables //End Variables
//Class_Initialize Event @2-804408FC function clsRecordstatistikaSearch($RelativePath, & $Parent) {
global $FileName; global $CCSLocales; global $DefaultDateFormat; $this->Visible = true; $this->Parent = & $Parent; $this->RelativePath = $RelativePath; $this->Errors = new clsErrors(); $this->ErrorBlock = "Record statistikaSearch/Error"; $this->DataSource = new clsstatistikaSearchDataSource($this); $this->ds = & $this->DataSource; $this->ReadAllowed = true; if($this->Visible) { $this->ComponentName = "statistikaSearch"; $this->Attributes = new clsAttributes($this->ComponentName . ":"); $CCSForm = split(":", 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->s_request = new clsControl(ccsListBox, "s_request", "s_request", ccsText, "", CCGetRequestParam("s_request", $Method, NULL), $this); $this->s_user = new clsControl(ccsListBox, "s_user", "s_user", ccsText, "", CCGetRequestParam("s_user", $Method, NULL), $this); $this->s_user->DSType = dsTable; list($this->s_user->BoundColumn, $this->s_user->TextColumn, $this->s_user->DBFormat) = array("user", "user", ""); $this->s_user->DataSource = new clsDBConnection1(); $this->s_user->ds = & $this->s_user->DataSource; $this->s_user->DataSource->SQL = "SELECT * \n" . "FROM phpSP_users {SQL_Where} {SQL_OrderBy}"; $this->s_date = new clsControl(ccsTextBox, "s_date", "s_date", ccsDate, array("GeneralDate"), CCGetRequestParam("s_date", $Method, NULL), $this); $this->DatePicker_s_date = new clsDatePicker("DatePicker_s_date", "statistikaSearch", "s_date", $this); $this->s_host = new clsControl(ccsTextBox, "s_host", "s_host", ccsText, "", CCGetRequestParam("s_host", $Method, NULL), $this); $this->DoSearch = new clsButton("DoSearch", $Method, $this); } } //End Class_Initialize Event
//Initialize Method @2-5D060BAC function Initialize() {
if(!$this->Visible) return;
} //End Initialize Method
//Validate Method @2-7757E8A8 function Validate() { global $CCSLocales; $Validation = true; $Where = ""; $Validation = ($this->s_request->Validate() && $Validation); $Validation = ($this->s_user->Validate() && $Validation); $Validation = ($this->s_date->Validate() && $Validation); $Validation = ($this->s_host->Validate() && $Validation); $this->CCSEventResult = CCGetEvent($this->CCSEvents, "OnValidate", $this); $Validation = $Validation && ($this->s_request->Errors->Count() == 0); $Validation = $Validation && ($this->s_user->Errors->Count() == 0); $Validation = $Validation && ($this->s_date->Errors->Count() == 0); $Validation = $Validation && ($this->s_host->Errors->Count() == 0); return (($this->Errors->Count() == 0) && $Validation); } //End Validate Method
//CheckErrors Method @2-4BB0902F function CheckErrors() { $errors = false; $errors = ($errors || $this->s_request->Errors->Count()); $errors = ($errors || $this->s_user->Errors->Count()); $errors = ($errors || $this->s_date->Errors->Count()); $errors = ($errors || $this->DatePicker_s_date->Errors->Count()); $errors = ($errors || $this->s_host->Errors->Count()); $errors = ($errors || $this->Errors->Count()); $errors = ($errors || $this->DataSource->Errors->Count()); return $errors; } //End CheckErrors Method
//Operation Method @2-B8A65A99 function Operation() { if(!$this->Visible) return;
global $Redirect; global $FileName;
$this->DataSource->Prepare(); if(!$this->FormSubmitted) { $this->EditMode = true; return; }
if($this->FormSubmitted) { $this->PressedButton = "DoSearch"; if($this->DoSearch->Pressed) { $this->PressedButton = "DoSearch"; } } $Redirect = "statistika_list.php" . "?" . CCGetQueryString("Form", array("ccsForm")); if($this->Validate()) { if($this->PressedButton == "DoSearch") { $Redirect = "statistika_list.php" . "?" . CCMergeQueryStrings(CCGetQueryString("Form", array("DoSearch", "DoSearch_x", "DoSearch_y"))); if(!CCGetEvent($this->DoSearch->CCSEvents, "OnClick", $this->DoSearch)) { $Redirect = ""; } } } else { $Redirect = ""; } if ($Redirect) $this->DataSource->close(); } //End Operation Method
//Show Method @2-6F3D627B function Show() { global $Tpl; global $FileName; global $CCSLocales; $Error = "";
if(!$this->Visible) return;
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
$this->s_request->Prepare(); $this->s_user->Prepare();
$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->s_request->Errors->ToString()); $Error = ComposeStrings($Error, $this->s_user->Errors->ToString()); $Error = ComposeStrings($Error, $this->s_date->Errors->ToString()); $Error = ComposeStrings($Error, $this->DatePicker_s_date->Errors->ToString()); $Error = ComposeStrings($Error, $this->s_host->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", $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->s_request->Show(); $this->s_user->Show(); $this->s_date->Show(); $this->DatePicker_s_date->Show(); $this->s_host->Show(); $this->DoSearch->Show(); $Tpl->parse(); $Tpl->block_path = $ParentPath; $this->DataSource->close(); } //End Show Method
} //End statistikaSearch Class @2-FCB6E20C
class clsstatistikaSearchDataSource extends clsDBConnection1 { //statistikaSearchDataSource Class @2-FE8353D3
//DataSource Variables @2-6AA3549D public $Parent = ""; public $CCSEvents = ""; public $CCSEventResult; public $ErrorBlock; public $CmdExecution;
public $wp; public $AllParametersSet;
// Datasource fields public $s_request; public $s_user; public $s_date; public $s_host; //End DataSource Variables
//DataSourceClass_Initialize Event @2-6F8024C9 function clsstatistikaSearchDataSource(& $Parent) { $this->Parent = & $Parent; $this->ErrorBlock = "Record statistikaSearch/Error"; $this->Initialize(); $this->s_request = new clsField("s_request", ccsText, ""); $this->s_user = new clsField("s_user", ccsText, ""); $this->s_date = new clsField("s_date", ccsDate, array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss")); $this->s_host = new clsField("s_host", ccsText, "");
} //End DataSourceClass_Initialize Event
//Prepare Method @2-14D6CD9D function Prepare() { global $CCSLocales; global $DefaultDateFormat; } //End Prepare Method
//Open Method @2-73663384 function Open() { $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect", $this->Parent); $this->SQL = "SELECT phpSP_users.user AS phpSP_users_user, statistika.* \n\n" . "FROM statistika INNER JOIN phpSP_users ON\n\n" . "statistika.user = phpSP_users.user {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-BAF0975B function SetValues() { } //End SetValues Method
} //End statistikaSearchDataSource Class @2-FCB6E20C
class clsGridstatistika { //statistika class @9-DBB93A16
//Variables @9-B558346F
// Public variables public $ComponentType = "Grid"; public $ComponentName; public $Visible; public $Errors; public $ErrorBlock; public $ds; public $DataSource; public $PageSize; public $IsEmpty; public $ForceIteration = false; public $HasRecord = false; public $SorterName = ""; public $SorterDirection = ""; public $PageNumber; public $RowNumber; public $ControlsVisible = array();
public $CCSEvents = ""; public $CCSEventResult;
public $RelativePath = ""; public $Attributes;
// Grid Controls public $StaticControls; public $RowControls; public $Sorter_id; public $Sorter_request; public $Sorter_host; public $Sorter_user; public $Sorter_date; //End Variables
//Class_Initialize Event @9-98CFC9D6 function clsGridstatistika($RelativePath, & $Parent) { global $FileName; global $CCSLocales; global $DefaultDateFormat; $this->ComponentName = "statistika"; $this->Visible = True; $this->Parent = & $Parent; $this->RelativePath = $RelativePath; $this->Errors = new clsErrors(); $this->ErrorBlock = "Grid statistika"; $this->Attributes = new clsAttributes($this->ComponentName . ":"); $this->DataSource = new clsstatistikaDataSource($this); $this->ds = & $this->DataSource; $this->PageSize = CCGetParam($this->ComponentName . "PageSize", ""); if(!is_numeric($this->PageSize) || !strlen($this->PageSize)) $this->PageSize = 300; else $this->PageSize = intval($this->PageSize); if ($this->PageSize > 300) $this->PageSize = 300; if($this->PageSize == 0) $this->Errors->addError("<p>Form: Grid " . $this->ComponentName . "<br>Error: (CCS06) Invalid page size.</p>"); $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1)); if ($this->PageNumber <= 0) $this->PageNumber = 1; $this->Visible = (CCSecurityAccessCheck("") == "success"); $this->SorterName = CCGetParam("statistikaOrder", ""); $this->SorterDirection = CCGetParam("statistikaDir", "");
$this->id = new clsControl(ccsLabel, "id", "id", ccsInteger, "", CCGetRequestParam("id", ccsGet, NULL), $this); $this->request = new clsControl(ccsLabel, "request", "request", ccsText, "", CCGetRequestParam("request", ccsGet, NULL), $this); $this->host = new clsControl(ccsLabel, "host", "host", ccsText, "", CCGetRequestParam("host", ccsGet, NULL), $this); $this->user = new clsControl(ccsLabel, "user", "user", ccsText, "", CCGetRequestParam("user", ccsGet, NULL), $this); $this->date = new clsControl(ccsLabel, "date", "date", ccsDate, array("GeneralDate"), CCGetRequestParam("date", ccsGet, NULL), $this); $this->Sorter_id = new clsSorter($this->ComponentName, "Sorter_id", $FileName, $this); $this->Sorter_request = new clsSorter($this->ComponentName, "Sorter_request", $FileName, $this); $this->Sorter_host = new clsSorter($this->ComponentName, "Sorter_host", $FileName, $this); $this->Sorter_user = new clsSorter($this->ComponentName, "Sorter_user", $FileName, $this); $this->Sorter_date = new clsSorter($this->ComponentName, "Sorter_date", $FileName, $this); $this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 10, tpSimple, $this); } //End Class_Initialize Event
//Initialize Method @9-90E704C5 function Initialize() { if(!$this->Visible) return;
$this->DataSource->PageSize = & $this->PageSize; $this->DataSource->AbsolutePage = & $this->PageNumber; $this->DataSource->SetOrder($this->SorterName, $this->SorterDirection); } //End Initialize Method
//Show Method @9-011CD1A9 function Show() { global $Tpl; global $CCSLocales; if(!$this->Visible) return;
$this->RowNumber = 0;
$this->DataSource->Parameters["urls_request"] = CCGetFromGet("s_request", NULL); $this->DataSource->Parameters["urls_host"] = CCGetFromGet("s_host", NULL); $this->DataSource->Parameters["urls_address"] = CCGetFromGet("s_address", NULL); $this->DataSource->Parameters["urls_user"] = CCGetFromGet("s_user", 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["id"] = $this->id->Visible; $this->ControlsVisible["request"] = $this->request->Visible; $this->ControlsVisible["host"] = $this->host->Visible; $this->ControlsVisible["user"] = $this->user->Visible; $this->ControlsVisible["date"] = $this->date->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->id->SetValue($this->DataSource->id->GetValue()); $this->request->SetValue($this->DataSource->request->GetValue()); $this->host->SetValue($this->DataSource->host->GetValue()); $this->user->SetValue($this->DataSource->user->GetValue()); $this->date->SetValue($this->DataSource->date->GetValue()); $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow", $this); $this->Attributes->Show(); $this->id->Show(); $this->request->Show(); $this->host->Show(); $this->user->Show(); $this->date->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; 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(); $this->Sorter_id->Show(); $this->Sorter_request->Show(); $this->Sorter_host->Show(); $this->Sorter_user->Show(); $this->Sorter_date->Show(); $this->Navigator->Show(); $Tpl->parse(); $Tpl->block_path = $ParentPath; $this->DataSource->close(); } //End Show Method
//GetErrors Method @9-B273ED3C function GetErrors() { $errors = ""; $errors = ComposeStrings($errors, $this->id->Errors->ToString()); $errors = ComposeStrings($errors, $this->request->Errors->ToString()); $errors = ComposeStrings($errors, $this->host->Errors->ToString()); $errors = ComposeStrings($errors, $this->user->Errors->ToString()); $errors = ComposeStrings($errors, $this->date->Errors->ToString()); $errors = ComposeStrings($errors, $this->Errors->ToString()); $errors = ComposeStrings($errors, $this->DataSource->Errors->ToString()); return $errors; } //End GetErrors Method
} //End statistika Class @9-FCB6E20C
class clsstatistikaDataSource extends clsDBConnection2 { //statistikaDataSource Class @9-CD80B08D
//DataSource Variables @9-1EB0F45B public $Parent = ""; public $CCSEvents = ""; public $CCSEventResult; public $ErrorBlock; public $CmdExecution;
public $CountSQL; public $wp;
// Datasource fields public $id; public $request; public $host; public $user; public $date; //End DataSource Variables
//DataSourceClass_Initialize Event @9-B13A5A1B function clsstatistikaDataSource(& $Parent) { $this->Parent = & $Parent; $this->ErrorBlock = "Grid statistika"; $this->Initialize(); $this->id = new clsField("id", ccsInteger, ""); $this->request = new clsField("request", ccsText, ""); $this->host = new clsField("host", ccsText, ""); $this->user = new clsField("user", ccsText, ""); $this->date = new clsField("date", ccsDate, array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"));
} //End DataSourceClass_Initialize Event
//SetOrder Method @9-F30724FE function SetOrder($SorterName, $SorterDirection) { $this->Order = "id desc"; $this->Order = CCGetOrder($this->Order, $SorterName, $SorterDirection, array("Sorter_id" => array("id desc", "id"), "Sorter_request" => array("request", ""), "Sorter_host" => array("host", ""), "Sorter_user" => array("user", ""), "Sorter_date" => array("date", ""))); } //End SetOrder Method
//Prepare Method @9-4AACD2EA function Prepare() { global $CCSLocales; global $DefaultDateFormat; $this->wp = new clsSQLParameters($this->ErrorBlock); $this->wp->AddParameter("1", "urls_request", ccsText, "", "", $this->Parameters["urls_request"], "", false); $this->wp->AddParameter("2", "urls_host", ccsText, "", "", $this->Parameters["urls_host"], "", false); $this->wp->AddParameter("3", "urls_address", ccsText, "", "", $this->Parameters["urls_address"], "", false); $this->wp->AddParameter("4", "urls_user", ccsText, "", "", $this->Parameters["urls_user"], "", false); $this->wp->Criterion[1] = $this->wp->Operation(opContains, "request", $this->wp->GetDBValue("1"), $this->ToSQL($this->wp->GetDBValue("1"), ccsText),false); $this->wp->Criterion[2] = $this->wp->Operation(opContains, "host", $this->wp->GetDBValue("2"), $this->ToSQL($this->wp->GetDBValue("2"), ccsText),false); $this->wp->Criterion[3] = $this->wp->Operation(opContains, "address", $this->wp->GetDBValue("3"), $this->ToSQL($this->wp->GetDBValue("3"), ccsText),false); $this->wp->Criterion[4] = $this->wp->Operation(opContains, "user", $this->wp->GetDBValue("4"), $this->ToSQL($this->wp->GetDBValue("4"), ccsText),false); $this->Where = $this->wp->opAND( false, $this->wp->opAND( false, $this->wp->opAND( false, $this->wp->Criterion[1], $this->wp->Criterion[2]), $this->wp->Criterion[3]), $this->wp->Criterion[4]); } //End Prepare Method
//Open Method @9-02C2E13B function Open() { $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect", $this->Parent); $this->CountSQL = "SELECT COUNT(*)\n\n" . "FROM statistika"; $this->SQL = "SELECT * \n\n" . "FROM statistika {SQL_Where} {SQL_OrderBy}"; $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteSelect", $this->Parent); if ($this->CountSQL) $this->RecordsCount = CCGetDBValue(CCBuildSQL($this->CountSQL, $this->Where, ""), $this); else $this->RecordsCount = "CCS not counted"; $this->query($this->OptimizeSQL(CCBuildSQL($this->SQL, $this->Where, $this->Order))); $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteSelect", $this->Parent); } //End Open Method
//SetValues Method @9-2AB767B0 function SetValues() { $this->id->SetDBValue(trim($this->f("id"))); $this->request->SetDBValue($this->f("request")); $this->host->SetDBValue($this->f("host")); $this->user->SetDBValue($this->f("user")); $this->date->SetDBValue(trim($this->f("date"))); } //End SetValues Method
} //End statistikaDataSource Class @9-FCB6E20C
//Include Page implementation @30-58DBA1E3 include_once(RelativePath . "/Footer.php"); //End Include Page implementation
//Initialize Page @1-83303C01 // Variables $FileName = ""; $Redirect = ""; $Tpl = ""; $TemplateFileName = ""; $BlockToParse = ""; $ComponentName = ""; $Attributes = "";
// Events; $CCSEvents = ""; $CCSEventResult = "";
$FileName = FileName; $Redirect = ""; $TemplateFileName = "statistika_list.html"; $BlockToParse = "main"; $TemplateEncoding = "CP1252"; $PathToRoot = "./"; //End Initialize Page
//Authenticate User @1-DC94A87D CCSecurityRedirect("1", ""); //End Authenticate User
//Before Initialize @1-E870CEBC $CCSEventResult = CCGetEvent($CCSEvents, "BeforeInitialize", $MainPage); //End Before Initialize
//Initialize Objects @1-7FBABC9D $DBConnection1 = new clsDBConnection1(); $MainPage->Connections["Connection1"] = & $DBConnection1; $DBConnection2 = new clsDBConnection2(); $MainPage->Connections["Connection2"] = & $DBConnection2; $Attributes = new clsAttributes("page:"); $MainPage->Attributes = & $Attributes;
// Controls $Header = new clsHeader("", "Header", $MainPage); $Header->Initialize(); $statistikaSearch = new clsRecordstatistikaSearch("", $MainPage); $statistika = new clsGridstatistika("", $MainPage); $Footer = new clsFooter("", "Footer", $MainPage); $Footer->Initialize(); $MainPage->Header = & $Header; $MainPage->statistikaSearch = & $statistikaSearch; $MainPage->statistika = & $statistika; $MainPage->Footer = & $Footer; $statistikaSearch->Initialize(); $statistika->Initialize();
$CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize", $MainPage);
if ($Charset) header("Content-Type: text/html; charset=" . $Charset); //End Initialize Objects
//Initialize HTML Template @1-593C2978 $CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView", $MainPage); $Tpl = new clsTemplate($FileEncoding, $TemplateEncoding); $Tpl->LoadTemplate(PathToCurrentPage . $TemplateFileName, $BlockToParse, "CP1252"); $Tpl->block_path = "/$BlockToParse"; $CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow", $MainPage); $Attributes->Show(); //End Initialize HTML Template
//Execute Components @1-DBA7D96A $Header->Operations(); $statistikaSearch->Operation(); $Footer->Operations(); //End Execute Components
//Go to destination page @1-7E174258 if($Redirect) { $CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage); $DBConnection1->close(); $DBConnection2->close(); header("Location: " . $Redirect); $Header->Class_Terminate(); unset($Header); unset($statistikaSearch); unset($statistika); $Footer->Class_Terminate(); unset($Footer); unset($Tpl); exit; } //End Go to destination page
//Show Page @1-3BF6B1B6 $Header->Show(); $statistikaSearch->Show(); $statistika->Show(); $Footer->Show(); $Tpl->block_path = ""; $Tpl->Parse($BlockToParse, false); $main_block = $Tpl->GetVar($BlockToParse); $CCSEventResult = CCGetEvent($CCSEvents, "BeforeOutput", $MainPage); if ($CCSEventResult) echo $main_block; //End Show Page
//Unload Page @1-F6561708 $CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage); $DBConnection1->close(); $DBConnection2->close(); $Header->Class_Terminate(); unset($Header); unset($statistikaSearch); unset($statistika); $Footer->Class_Terminate(); unset($Footer); unset($Tpl); //End Unload Page
?>
|