Viewing file: kontakti_list.php (24.27 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
//Include Common Files @1-5471E0F2
define("RelativePath", ".");
include(RelativePath . "/Common.php");
include(RelativePath . "/Template.php");
include(RelativePath . "/Sorter.php");
include(RelativePath . "/Navigator.php");
//End Include Common Files
//Include Page implementation @50-39DC296A
include_once("./Header.php");
//End Include Page implementation
class clsGridkontakti { //kontakti class @16-835BA0E5
//Variables @16-1E568BE6
// Public variables
var $ComponentName;
var $Visible; var $Errors;
var $ds; var $PageSize;
var $SorterName = "";
var $SorterDirection = "";
var $PageNumber;
var $CCSEvents = "";
var $CCSEventResult;
// Grid Controls
var $StaticControls; var $RowControls;
var $Sorter_ID;
var $Sorter_Ime;
var $Sorter_Prezime;
var $Sorter_Kompanija;
var $Sorter_Telefon;
var $Sorter_Fax;
var $Sorter_Mobilni;
var $Navigator;
//End Variables
//Class_Initialize Event @16-91CD8FA6
function clsGridkontakti()
{
global $FileName;
$this->ComponentName = "kontakti";
$this->Visible = True;
$this->Errors = new clsErrors();
$this->ds = new clskontaktiDataSource();
$this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
if(!is_numeric($this->PageSize) || !strlen($this->PageSize))
$this->PageSize = 20;
else
$this->PageSize = intval($this->PageSize);
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));
$this->SorterName = CCGetParam("kontaktiOrder", "");
$this->SorterDirection = CCGetParam("kontaktiDir", "");
$this->ID = new clsControl(ccsLink, "ID", "ID", ccsInteger, "", CCGetRequestParam("ID", ccsGet));
$this->Ime = new clsControl(ccsLabel, "Ime", "Ime", ccsText, "", CCGetRequestParam("Ime", ccsGet));
$this->Prezime = new clsControl(ccsLabel, "Prezime", "Prezime", ccsText, "", CCGetRequestParam("Prezime", ccsGet));
$this->Kompanija = new clsControl(ccsLabel, "Kompanija", "Kompanija", ccsText, "", CCGetRequestParam("Kompanija", ccsGet));
$this->Telefon = new clsControl(ccsLabel, "Telefon", "Telefon", ccsText, "", CCGetRequestParam("Telefon", ccsGet));
$this->Fax = new clsControl(ccsLabel, "Fax", "Fax", ccsText, "", CCGetRequestParam("Fax", ccsGet));
$this->Mobilni = new clsControl(ccsLabel, "Mobilni", "Mobilni", ccsText, "", CCGetRequestParam("Mobilni", ccsGet));
$this->Sorter_ID = new clsSorter($this->ComponentName, "Sorter_ID", $FileName);
$this->Sorter_Ime = new clsSorter($this->ComponentName, "Sorter_Ime", $FileName);
$this->Sorter_Prezime = new clsSorter($this->ComponentName, "Sorter_Prezime", $FileName);
$this->Sorter_Kompanija = new clsSorter($this->ComponentName, "Sorter_Kompanija", $FileName);
$this->Sorter_Telefon = new clsSorter($this->ComponentName, "Sorter_Telefon", $FileName);
$this->Sorter_Fax = new clsSorter($this->ComponentName, "Sorter_Fax", $FileName);
$this->Sorter_Mobilni = new clsSorter($this->ComponentName, "Sorter_Mobilni", $FileName);
$this->kontakti_Insert = new clsControl(ccsLink, "kontakti_Insert", "kontakti_Insert", ccsText, "", CCGetRequestParam("kontakti_Insert", ccsGet));
$this->kontakti_Insert->Parameters = CCGetQueryString("QueryString", Array("ID", "ccsForm"));
$this->kontakti_Insert->Page = "kontakti_maint.php";
$this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 10, tpSimple);
}
//End Class_Initialize Event
//Initialize Method @16-03626367
function Initialize()
{
if(!$this->Visible) return;
$this->ds->PageSize = $this->PageSize;
$this->ds->AbsolutePage = $this->PageNumber;
$this->ds->SetOrder($this->SorterName, $this->SorterDirection);
}
//End Initialize Method
//Show Method @16-09CFF7F6
function Show()
{
global $Tpl;
if(!$this->Visible) return;
$ShownRecords = 0;
$this->ds->Parameters["urls_Ime"] = CCGetFromGet("s_Ime", "");
$this->ds->Parameters["urls_Prezime"] = CCGetFromGet("s_Prezime", "");
$this->ds->Parameters["urls_Funkcija"] = CCGetFromGet("s_Funkcija", "");
$this->ds->Parameters["urls_Kompanija"] = CCGetFromGet("s_Kompanija", "");
$this->ds->Parameters["urls_Adresa"] = CCGetFromGet("s_Adresa", "");
$this->ds->Parameters["urls_Telefon"] = CCGetFromGet("s_Telefon", "");
$this->ds->Parameters["urls_Fax"] = CCGetFromGet("s_Fax", "");
$this->ds->Parameters["urls_Mobilni"] = CCGetFromGet("s_Mobilni", "");
$this->ds->Parameters["urls_Email"] = CCGetFromGet("s_Email", "");
$this->ds->Parameters["urls_Web"] = CCGetFromGet("s_Web", "");
$this->ds->Parameters["urls_Napomena"] = CCGetFromGet("s_Napomena", "");
$this->ds->Parameters["urls_Unio"] = CCGetFromGet("s_Unio", "");
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect");
$this->ds->Prepare();
$this->ds->Open();
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow");
if(!$this->Visible) return;
$GridBlock = "Grid " . $this->ComponentName;
$ParentPath = $Tpl->block_path;
$Tpl->block_path = $ParentPath . "/" . $GridBlock;
$is_next_record = $this->ds->next_record();
if($is_next_record && $ShownRecords < $this->PageSize)
{
do {
$this->ds->SetValues();
$Tpl->block_path = $ParentPath . "/" . $GridBlock . "/Row";
$this->ID->SetValue($this->ds->ID->GetValue());
$this->ID->Parameters = CCGetQueryString("QueryString", Array("ccsForm"));
$this->ID->Parameters = CCAddParam($this->ID->Parameters, "ID", $this->ds->f("ID"));
$this->ID->Page = "kontakti_maint.php";
$this->Ime->SetValue($this->ds->Ime->GetValue());
$this->Prezime->SetValue($this->ds->Prezime->GetValue());
$this->Kompanija->SetValue($this->ds->Kompanija->GetValue());
$this->Telefon->SetValue($this->ds->Telefon->GetValue());
$this->Fax->SetValue($this->ds->Fax->GetValue());
$this->Mobilni->SetValue($this->ds->Mobilni->GetValue());
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow");
$this->ID->Show();
$this->Ime->Show();
$this->Prezime->Show();
$this->Kompanija->Show();
$this->Telefon->Show();
$this->Fax->Show();
$this->Mobilni->Show();
$Tpl->block_path = $ParentPath . "/" . $GridBlock;
$Tpl->parse("Row", true);
$ShownRecords++;
$is_next_record = $this->ds->next_record();
} while ($is_next_record && $ShownRecords < $this->PageSize);
}
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->ds->AbsolutePage;
$this->Navigator->TotalPages = $this->ds->PageCount();
$this->Sorter_ID->Show();
$this->Sorter_Ime->Show();
$this->Sorter_Prezime->Show();
$this->Sorter_Kompanija->Show();
$this->Sorter_Telefon->Show();
$this->Sorter_Fax->Show();
$this->Sorter_Mobilni->Show();
$this->kontakti_Insert->Show();
$this->Navigator->Show();
$Tpl->parse();
$Tpl->block_path = $ParentPath;
$this->ds->close();
}
//End Show Method
//GetErrors Method @16-260B0D93
function GetErrors()
{
$errors = "";
$errors .= $this->ID->Errors->ToString();
$errors .= $this->Ime->Errors->ToString();
$errors .= $this->Prezime->Errors->ToString();
$errors .= $this->Kompanija->Errors->ToString();
$errors .= $this->Telefon->Errors->ToString();
$errors .= $this->Fax->Errors->ToString();
$errors .= $this->Mobilni->Errors->ToString();
$errors .= $this->Errors->ToString();
$errors .= $this->ds->Errors->ToString();
return $errors;
}
//End GetErrors Method
} //End kontakti Class @16-FCB6E20C
class clskontaktiDataSource extends clsDBConnection1 { //kontaktiDataSource Class @16-1BD7B0C0
//DataSource Variables @16-2C6B4892
var $CCSEvents = "";
var $CCSEventResult;
var $ErrorBlock;
var $CountSQL;
var $wp;
// Datasource fields
var $ID;
var $Ime;
var $Prezime;
var $Kompanija;
var $Telefon;
var $Fax;
var $Mobilni;
//End DataSource Variables
//Class_Initialize Event @16-B388DFBE
function clskontaktiDataSource()
{
$this->ErrorBlock = "Grid kontakti";
$this->Initialize();
$this->ID = new clsField("ID", ccsInteger, "");
$this->Ime = new clsField("Ime", ccsText, "");
$this->Prezime = new clsField("Prezime", ccsText, "");
$this->Kompanija = new clsField("Kompanija", ccsText, "");
$this->Telefon = new clsField("Telefon", ccsText, "");
$this->Fax = new clsField("Fax", ccsText, "");
$this->Mobilni = new clsField("Mobilni", ccsText, "");
}
//End Class_Initialize Event
//SetOrder Method @16-D3F510D3
function SetOrder($SorterName, $SorterDirection)
{
$this->Order = "";
$this->Order = CCGetOrder($this->Order, $SorterName, $SorterDirection,
array("Sorter_ID" => array("ID", ""),
"Sorter_Ime" => array("Ime", ""),
"Sorter_Prezime" => array("Prezime", ""),
"Sorter_Kompanija" => array("Kompanija", ""),
"Sorter_Telefon" => array("Telefon", ""),
"Sorter_Fax" => array("Fax", ""),
"Sorter_Mobilni" => array("Mobilni", "")));
}
//End SetOrder Method
//Prepare Method @16-98F4FAC2
function Prepare()
{
$this->wp = new clsSQLParameters($this->ErrorBlock);
$this->wp->AddParameter("1", "urls_Ime", ccsText, "", "", $this->Parameters["urls_Ime"], "");
$this->wp->AddParameter("2", "urls_Prezime", ccsText, "", "", $this->Parameters["urls_Prezime"], "");
$this->wp->AddParameter("3", "urls_Funkcija", ccsText, "", "", $this->Parameters["urls_Funkcija"], "");
$this->wp->AddParameter("4", "urls_Kompanija", ccsText, "", "", $this->Parameters["urls_Kompanija"], "");
$this->wp->AddParameter("5", "urls_Adresa", ccsMemo, "", "", $this->Parameters["urls_Adresa"], "");
$this->wp->AddParameter("6", "urls_Telefon", ccsText, "", "", $this->Parameters["urls_Telefon"], "");
$this->wp->AddParameter("7", "urls_Fax", ccsText, "", "", $this->Parameters["urls_Fax"], "");
$this->wp->AddParameter("8", "urls_Mobilni", ccsText, "", "", $this->Parameters["urls_Mobilni"], "");
$this->wp->AddParameter("9", "urls_Email", ccsMemo, "", "", $this->Parameters["urls_Email"], "");
$this->wp->AddParameter("10", "urls_Web", ccsMemo, "", "", $this->Parameters["urls_Web"], "");
$this->wp->AddParameter("11", "urls_Napomena", ccsMemo, "", "", $this->Parameters["urls_Napomena"], "");
$this->wp->AddParameter("12", "urls_Unio", ccsMemo, "", "", $this->Parameters["urls_Unio"], "");
$this->wp->Criterion[1] = $this->wp->Operation(opContains, "Ime", $this->wp->GetDBValue("1"), $this->ToSQL($this->wp->GetDBValue("1"), ccsText));
$this->wp->Criterion[2] = $this->wp->Operation(opContains, "Prezime", $this->wp->GetDBValue("2"), $this->ToSQL($this->wp->GetDBValue("2"), ccsText));
$this->wp->Criterion[3] = $this->wp->Operation(opContains, "Funkcija", $this->wp->GetDBValue("3"), $this->ToSQL($this->wp->GetDBValue("3"), ccsText));
$this->wp->Criterion[4] = $this->wp->Operation(opContains, "Kompanija", $this->wp->GetDBValue("4"), $this->ToSQL($this->wp->GetDBValue("4"), ccsText));
$this->wp->Criterion[5] = $this->wp->Operation(opContains, "Adresa", $this->wp->GetDBValue("5"), $this->ToSQL($this->wp->GetDBValue("5"), ccsMemo));
$this->wp->Criterion[6] = $this->wp->Operation(opContains, "Telefon", $this->wp->GetDBValue("6"), $this->ToSQL($this->wp->GetDBValue("6"), ccsText));
$this->wp->Criterion[7] = $this->wp->Operation(opContains, "Fax", $this->wp->GetDBValue("7"), $this->ToSQL($this->wp->GetDBValue("7"), ccsText));
$this->wp->Criterion[8] = $this->wp->Operation(opContains, "Mobilni", $this->wp->GetDBValue("8"), $this->ToSQL($this->wp->GetDBValue("8"), ccsText));
$this->wp->Criterion[9] = $this->wp->Operation(opContains, "Email", $this->wp->GetDBValue("9"), $this->ToSQL($this->wp->GetDBValue("9"), ccsMemo));
$this->wp->Criterion[10] = $this->wp->Operation(opContains, "Web", $this->wp->GetDBValue("10"), $this->ToSQL($this->wp->GetDBValue("10"), ccsMemo));
$this->wp->Criterion[11] = $this->wp->Operation(opContains, "Napomena", $this->wp->GetDBValue("11"), $this->ToSQL($this->wp->GetDBValue("11"), ccsMemo));
$this->wp->Criterion[12] = $this->wp->Operation(opContains, "Unio", $this->wp->GetDBValue("12"), $this->ToSQL($this->wp->GetDBValue("12"), ccsMemo));
$this->Where = $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $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]), $this->wp->Criterion[5]), $this->wp->Criterion[6]), $this->wp->Criterion[7]), $this->wp->Criterion[8]), $this->wp->Criterion[9]), $this->wp->Criterion[10]), $this->wp->Criterion[11]), $this->wp->Criterion[12]);
}
//End Prepare Method
//Open Method @16-B7EE24F0
function Open()
{
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect");
$this->CountSQL = "SELECT COUNT(*) " .
"FROM kontakti";
$this->SQL = "SELECT * " .
"FROM kontakti";
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteSelect");
$this->RecordsCount = CCGetDBValue(CCBuildSQL($this->CountSQL, $this->Where, ""), $this);
$this->query(CCBuildSQL($this->SQL, $this->Where, $this->Order));
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteSelect");
$this->MoveToPage($this->AbsolutePage);
}
//End Open Method
//SetValues Method @16-F4F04E84
function SetValues()
{
$this->ID->SetDBValue(trim($this->f("ID")));
$this->Ime->SetDBValue($this->f("Ime"));
$this->Prezime->SetDBValue($this->f("Prezime"));
$this->Kompanija->SetDBValue($this->f("Kompanija"));
$this->Telefon->SetDBValue($this->f("Telefon"));
$this->Fax->SetDBValue($this->f("Fax"));
$this->Mobilni->SetDBValue($this->f("Mobilni"));
}
//End SetValues Method
} //End kontaktiDataSource Class @16-FCB6E20C
Class clsRecordkontaktiSearch { //kontaktiSearch Class @2-43577A4B
//Variables @2-90DA4C9A
// Public variables
var $ComponentName;
var $HTMLFormAction;
var $PressedButton;
var $Errors;
var $FormSubmitted;
var $Visible;
var $Recordset;
var $CCSEvents = "";
var $CCSEventResult;
var $ds;
var $EditMode;
var $ValidatingControls;
var $Controls;
// Class variables
//End Variables
//Class_Initialize Event @2-519B7BB6
function clsRecordkontaktiSearch()
{
global $FileName;
$this->Visible = true;
$this->Errors = new clsErrors();
if($this->Visible)
{
$this->ComponentName = "kontaktiSearch";
$CCSForm = split(":", CCGetFromGet("ccsForm", ""), 2);
if(sizeof($CCSForm) == 1)
$CCSForm[1] = "";
list($FormName, $FormMethod) = $CCSForm;
$this->EditMode = ($FormMethod == "Edit");
$this->FormSubmitted = ($FormName == $this->ComponentName);
$Method = $this->FormSubmitted ? ccsPost : ccsGet;
$this->s_Ime = new clsControl(ccsTextBox, "s_Ime", "s_Ime", ccsText, "", CCGetRequestParam("s_Ime", $Method));
$this->s_Prezime = new clsControl(ccsTextBox, "s_Prezime", "s_Prezime", ccsText, "", CCGetRequestParam("s_Prezime", $Method));
$this->s_Kompanija = new clsControl(ccsTextBox, "s_Kompanija", "s_Kompanija", ccsText, "", CCGetRequestParam("s_Kompanija", $Method));
$this->s_Adresa = new clsControl(ccsTextBox, "s_Adresa", "s_Adresa", ccsMemo, "", CCGetRequestParam("s_Adresa", $Method));
$this->s_Telefon = new clsControl(ccsTextBox, "s_Telefon", "s_Telefon", ccsText, "", CCGetRequestParam("s_Telefon", $Method));
$this->s_Fax = new clsControl(ccsTextBox, "s_Fax", "s_Fax", ccsText, "", CCGetRequestParam("s_Fax", $Method));
$this->s_Mobilni = new clsControl(ccsTextBox, "s_Mobilni", "s_Mobilni", ccsText, "", CCGetRequestParam("s_Mobilni", $Method));
$this->s_Email = new clsControl(ccsTextBox, "s_Email", "s_Email", ccsMemo, "", CCGetRequestParam("s_Email", $Method));
$this->DoSearch = new clsButton("DoSearch");
}
}
//End Class_Initialize Event
//Validate Method @2-82422871
function Validate()
{
$Validation = true;
$Where = "";
$Validation = ($this->s_Ime->Validate() && $Validation);
$Validation = ($this->s_Prezime->Validate() && $Validation);
$Validation = ($this->s_Kompanija->Validate() && $Validation);
$Validation = ($this->s_Adresa->Validate() && $Validation);
$Validation = ($this->s_Telefon->Validate() && $Validation);
$Validation = ($this->s_Fax->Validate() && $Validation);
$Validation = ($this->s_Mobilni->Validate() && $Validation);
$Validation = ($this->s_Email->Validate() && $Validation);
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "OnValidate");
return (($this->Errors->Count() == 0) && $Validation);
}
//End Validate Method
//CheckErrors Method @2-EDEF0177
function CheckErrors()
{
$errors = false;
$errors = ($errors || $this->s_Ime->Errors->Count());
$errors = ($errors || $this->s_Prezime->Errors->Count());
$errors = ($errors || $this->s_Kompanija->Errors->Count());
$errors = ($errors || $this->s_Adresa->Errors->Count());
$errors = ($errors || $this->s_Telefon->Errors->Count());
$errors = ($errors || $this->s_Fax->Errors->Count());
$errors = ($errors || $this->s_Mobilni->Errors->Count());
$errors = ($errors || $this->s_Email->Errors->Count());
$errors = ($errors || $this->Errors->Count());
return $errors;
}
//End CheckErrors Method
//Operation Method @2-3C7F0FB4
function Operation()
{
if(!$this->Visible)
return;
global $Redirect;
global $FileName;
$this->EditMode = false;
if(!$this->FormSubmitted)
return;
if($this->FormSubmitted) {
$this->PressedButton = "DoSearch";
if(strlen(CCGetParam("DoSearch", ""))) {
$this->PressedButton = "DoSearch";
}
}
$Redirect = "kontakti_list.php?" . CCGetQueryString("Form", Array("ccsForm", "DoSearch"));
if($this->Validate()) {
if($this->PressedButton == "DoSearch") {
if(!CCGetEvent($this->DoSearch->CCSEvents, "OnClick")) {
$Redirect = "";
} else {
$Redirect = "kontakti_list.php?" . CCMergeQueryStrings(CCGetQueryString("Form", Array("DoSearch")));
}
}
} else {
$Redirect = "";
}
}
//End Operation Method
//Show Method @2-AC8AFBE8
function Show()
{
global $Tpl;
global $FileName;
$Error = "";
if(!$this->Visible)
return;
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect");
$RecordBlock = "Record " . $this->ComponentName;
$ParentPath = $Tpl->block_path;
$Tpl->block_path = $ParentPath . "/" . $RecordBlock;
if(!$this->FormSubmitted)
{
}
if($this->FormSubmitted || $this->CheckErrors()) {
$Error .= $this->s_Ime->Errors->ToString();
$Error .= $this->s_Prezime->Errors->ToString();
$Error .= $this->s_Kompanija->Errors->ToString();
$Error .= $this->s_Adresa->Errors->ToString();
$Error .= $this->s_Telefon->Errors->ToString();
$Error .= $this->s_Fax->Errors->ToString();
$Error .= $this->s_Mobilni->Errors->ToString();
$Error .= $this->s_Email->Errors->ToString();
$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", $this->HTMLFormAction);
$Tpl->SetVar("HTMLFormName", $this->ComponentName);
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow");
if(!$this->Visible) {
$Tpl->block_path = $ParentPath;
return;
}
$this->s_Ime->Show();
$this->s_Prezime->Show();
$this->s_Kompanija->Show();
$this->s_Adresa->Show();
$this->s_Telefon->Show();
$this->s_Fax->Show();
$this->s_Mobilni->Show();
$this->s_Email->Show();
$this->DoSearch->Show();
$Tpl->parse();
$Tpl->block_path = $ParentPath;
}
//End Show Method
} //End kontaktiSearch Class @2-FCB6E20C
//Include Page implementation @51-5CD56755
include_once("./Footer.php");
//End Include Page implementation
//Initialize Page @1-CE74AE0F
// Variables
$FileName = "";
$Redirect = "";
$Tpl = "";
$TemplateFileName = "";
$BlockToParse = "";
$ComponentName = "";
// Events;
$CCSEvents = "";
$CCSEventResult = "";
$FileName = "kontakti_list.php";
$Redirect = "";
$TemplateFileName = "kontakti_list.html";
$BlockToParse = "main";
$PathToRoot = "./";
//End Initialize Page
//Initialize Objects @1-68919CC2
$DBConnection1 = new clsDBConnection1();
// Controls
$Header = new clsHeader();
$Header->BindEvents();
$Header->TemplatePath = "./";
$Header->Initialize();
$kontakti = new clsGridkontakti();
$kontaktiSearch = new clsRecordkontaktiSearch();
$Footer = new clsFooter();
$Footer->BindEvents();
$Footer->TemplatePath = "./";
$Footer->Initialize();
$kontakti->Initialize();
$CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize");
//End Initialize Objects
//Initialize HTML Template @1-A0111C9D
$CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView");
$Tpl = new clsTemplate();
$Tpl->LoadTemplate(TemplatePath . $TemplateFileName, "main");
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow");
//End Initialize HTML Template
//Execute Components @1-C70C0201
$Header->Operations();
$kontaktiSearch->Operation();
$Footer->Operations();
//End Execute Components
//Go to destination page @1-BEB91355
if($Redirect)
{
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
header("Location: " . $Redirect);
exit;
}
//End Go to destination page
//Show Page @1-C95F5B0A
$Footer->Show("Footer");
$kontaktiSearch->Show();
$kontakti->Show();
$Header->Show("Header");
$Tpl->PParse("main", false);
//End Show Page
//Unload Page @1-AB7622EF
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
unset($Tpl);
//End Unload Page
?>
|