Viewing file: statistika_list.php (25.95 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-F607D3A5
// Public variables
var $ComponentType = "Record";
var $ComponentName;
var $Parent;
var $HTMLFormAction;
var $PressedButton;
var $Errors;
var $ErrorBlock;
var $FormSubmitted;
var $FormEnctype;
var $Visible;
var $Recordset;
var $CCSEvents = "";
var $CCSEventResult;
var $RelativePath = "";
var $InsertAllowed = false;
var $UpdateAllowed = false;
var $DeleteAllowed = false;
var $ReadAllowed = false;
var $EditMode = false;
var $ds;
var $DataSource;
var $ValidatingControls;
var $Controls;
// Class variables
//End Variables
//Class_Initialize Event @2-AF5D467E
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";
$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), $this);
$this->s_user = & new clsControl(ccsListBox, "s_user", "s_user", ccsText, "", CCGetRequestParam("s_user", $Method), $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 * " .
"FROM phpSP_users {SQL_Where} {SQL_OrderBy}";
$this->s_date = & new clsControl(ccsTextBox, "s_date", "s_date", ccsDate, array("GeneralDate"), CCGetRequestParam("s_date", $Method), $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), $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-939DBB32
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("QueryString", 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-C41BC8A4
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);
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-A90FD6E5
var $Parent = "";
var $CCSEvents = "";
var $CCSEventResult;
var $ErrorBlock;
var $CmdExecution;
var $wp;
var $AllParametersSet;
// Datasource fields
var $s_request;
var $s_user;
var $s_date;
var $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-334950D6
function Open()
{
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect", $this->Parent);
$this->SQL = "SELECT phpSP_users.`user` AS phpSP_users_user, statistika.* " .
"FROM statistika INNER JOIN phpSP_users ON " .
"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-C22A444A
// Public variables
var $ComponentType = "Grid";
var $ComponentName;
var $Visible;
var $Errors;
var $ErrorBlock;
var $ds;
var $DataSource;
var $PageSize;
var $SorterName = "";
var $SorterDirection = "";
var $PageNumber;
var $CCSEvents = "";
var $CCSEventResult;
var $RelativePath = "";
// Grid Controls
var $StaticControls;
var $RowControls;
var $Sorter_id;
var $Sorter_request;
var $Sorter_host;
var $Sorter_user;
var $Sorter_date;
//End Variables
//Class_Initialize Event @9-798B33B1
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->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), $this);
$this->request = & new clsControl(ccsLabel, "request", "request", ccsText, "", CCGetRequestParam("request", ccsGet), $this);
$this->host = & new clsControl(ccsLabel, "host", "host", ccsText, "", CCGetRequestParam("host", ccsGet), $this);
$this->user = & new clsControl(ccsLabel, "user", "user", ccsText, "", CCGetRequestParam("user", ccsGet), $this);
$this->date = & new clsControl(ccsLabel, "date", "date", ccsDate, array("GeneralDate"), CCGetRequestParam("date", ccsGet), $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-D25D4EC1
function Show()
{
global $Tpl;
global $CCSLocales;
if(!$this->Visible) return;
$ShownRecords = 0;
$this->DataSource->Parameters["urls_request"] = CCGetFromGet("s_request", "");
$this->DataSource->Parameters["urls_host"] = CCGetFromGet("s_host", "");
$this->DataSource->Parameters["urls_address"] = CCGetFromGet("s_address", "");
$this->DataSource->Parameters["urls_user"] = CCGetFromGet("s_user", "");
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
$this->DataSource->Prepare();
$this->DataSource->Open();
$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(($ShownRecords < $this->PageSize) && $this->DataSource->next_record())
{
do {
$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->id->Show();
$this->request->Show();
$this->host->Show();
$this->user->Show();
$this->date->Show();
$Tpl->block_path = $ParentPath . "/" . $GridBlock;
$Tpl->parse("Row", true);
$ShownRecords++;
} while (($ShownRecords < $this->PageSize) && $this->DataSource->next_record());
}
else // Show NoRecords block if no records are found
{
$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 clsDBConnection1 { //statistikaDataSource Class @9-E6ADE34E
//DataSource Variables @9-5DC9D851
var $Parent = "";
var $CCSEvents = "";
var $CCSEventResult;
var $ErrorBlock;
var $CmdExecution;
var $CountSQL;
var $wp;
// Datasource fields
var $id;
var $request;
var $host;
var $user;
var $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-F75058C4
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-74E52C32
function Open()
{
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect", $this->Parent);
$this->CountSQL = "SELECT COUNT(*) " .
"FROM statistika";
$this->SQL = "SELECT * " .
"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-89EFCB80
// Variables
$FileName = "";
$Redirect = "";
$Tpl = "";
$TemplateFileName = "";
$BlockToParse = "";
$ComponentName = "";
// 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
//Initialize Objects @1-9930AACE
$DBConnection1 = new clsDBConnection1();
$MainPage->Connections["Connection1"] = & $DBConnection1;
// 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-8F4531F3
$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);
//End Initialize HTML Template
//Execute Components @1-DBA7D96A
$Header->Operations();
$statistikaSearch->Operation();
$Footer->Operations();
//End Execute Components
//Go to destination page @1-86B53FBC
if($Redirect)
{
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage);
$DBConnection1->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-07393D73
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage);
$DBConnection1->close();
$Header->Class_Terminate();
unset($Header);
unset($statistikaSearch);
unset($statistika);
$Footer->Class_Terminate();
unset($Footer);
unset($Tpl);
//End Unload Page
?>
|