Viewing file: phpSP_user_list.php (49.18 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php //Include Common Files @1-EFCCB017 define("RelativePath", "."); define("PathToCurrentPage", "/"); define("FileName", "phpSP_user_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 @69-3DD2EFDC include_once(RelativePath . "/Header.php"); //End Include Page implementation
class clsRecordklijenti2 { //klijenti2 Class @133-0D6E93BD
//Variables @133-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 @133-1539BF4D function clsRecordklijenti2($RelativePath, & $Parent) {
global $FileName; global $CCSLocales; global $DefaultDateFormat; $this->Visible = true; $this->Parent = & $Parent; $this->RelativePath = $RelativePath; $this->Errors = new clsErrors(); $this->ErrorBlock = "Record klijenti2/Error"; $this->ReadAllowed = true; if($this->Visible) { $this->ComponentName = "klijenti2"; $this->Attributes = new clsAttributes($this->ComponentName . ":"); $CCSForm = split(":", CCGetFromGet("ccsForm", ""), 2); if(sizeof($CCSForm) == 1) $CCSForm[1] = ""; list($FormName, $FormMethod) = $CCSForm; $this->FormEnctype = "application/x-www-form-urlencoded"; $this->FormSubmitted = ($FormName == $this->ComponentName); $Method = $this->FormSubmitted ? ccsPost : ccsGet; $this->s_kontakt = new clsControl(ccsTextBox, "s_kontakt", "s_kontakt", ccsText, "", CCGetRequestParam("s_kontakt", $Method, NULL), $this); $this->s_Organizacija = new clsControl(ccsTextBox, "s_Organizacija", "s_Organizacija", ccsMemo, "", CCGetRequestParam("s_Organizacija", $Method, NULL), $this); $this->s_napomena = new clsControl(ccsTextBox, "s_napomena", "s_napomena", ccsMemo, "", CCGetRequestParam("s_napomena", $Method, NULL), $this); $this->Button_DoSearch = new clsButton("Button_DoSearch", $Method, $this); } } //End Class_Initialize Event
//Validate Method @133-805A1F60 function Validate() { global $CCSLocales; $Validation = true; $Where = ""; $Validation = ($this->s_kontakt->Validate() && $Validation); $Validation = ($this->s_Organizacija->Validate() && $Validation); $Validation = ($this->s_napomena->Validate() && $Validation); $this->CCSEventResult = CCGetEvent($this->CCSEvents, "OnValidate", $this); $Validation = $Validation && ($this->s_kontakt->Errors->Count() == 0); $Validation = $Validation && ($this->s_Organizacija->Errors->Count() == 0); $Validation = $Validation && ($this->s_napomena->Errors->Count() == 0); return (($this->Errors->Count() == 0) && $Validation); } //End Validate Method
//CheckErrors Method @133-EA8A1061 function CheckErrors() { $errors = false; $errors = ($errors || $this->s_kontakt->Errors->Count()); $errors = ($errors || $this->s_Organizacija->Errors->Count()); $errors = ($errors || $this->s_napomena->Errors->Count()); $errors = ($errors || $this->Errors->Count()); return $errors; } //End CheckErrors Method
//Operation Method @133-93EE9C00 function Operation() { if(!$this->Visible) return;
global $Redirect; global $FileName;
if(!$this->FormSubmitted) { return; }
if($this->FormSubmitted) { $this->PressedButton = "Button_DoSearch"; if($this->Button_DoSearch->Pressed) { $this->PressedButton = "Button_DoSearch"; } } $Redirect = "phpSP_user_list.php"; if($this->Validate()) { if($this->PressedButton == "Button_DoSearch") { $Redirect = "phpSP_user_list.php" . "?" . CCMergeQueryStrings(CCGetQueryString("Form", array("Button_DoSearch", "Button_DoSearch_x", "Button_DoSearch_y"))); if(!CCGetEvent($this->Button_DoSearch->CCSEvents, "OnClick", $this->Button_DoSearch)) { $Redirect = ""; } } } else { $Redirect = ""; } } //End Operation Method
//Show Method @133-F8D6A180 function Show() { 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->s_kontakt->Errors->ToString()); $Error = ComposeStrings($Error, $this->s_Organizacija->Errors->ToString()); $Error = ComposeStrings($Error, $this->s_napomena->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", $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_kontakt->Show(); $this->s_Organizacija->Show(); $this->s_napomena->Show(); $this->Button_DoSearch->Show(); $Tpl->parse(); $Tpl->block_path = $ParentPath; } //End Show Method
} //End klijenti2 Class @133-FCB6E20C
class clsGridklijenti { //klijenti class @97-33F1AC91
//Variables @97-EDB62025
// 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 $Sorter1; public $Sorter_kontakt; public $Sorter_Telefon; //End Variables
//Class_Initialize Event @97-4922645F function clsGridklijenti($RelativePath, & $Parent) { global $FileName; global $CCSLocales; global $DefaultDateFormat; $this->ComponentName = "klijenti"; $this->Visible = True; $this->Parent = & $Parent; $this->RelativePath = $RelativePath; $this->Errors = new clsErrors(); $this->ErrorBlock = "Grid klijenti"; $this->Attributes = new clsAttributes($this->ComponentName . ":"); $this->DataSource = new clsklijentiDataSource($this); $this->ds = & $this->DataSource; $this->PageSize = CCGetParam($this->ComponentName . "PageSize", ""); if(!is_numeric($this->PageSize) || !strlen($this->PageSize)) $this->PageSize = 40; else $this->PageSize = intval($this->PageSize); if ($this->PageSize > 100) $this->PageSize = 100; 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->SorterName = CCGetParam("klijentiOrder", ""); $this->SorterDirection = CCGetParam("klijentiDir", "");
$this->Organizacija = new clsControl(ccsLink, "Organizacija", "Organizacija", ccsMemo, "", CCGetRequestParam("Organizacija", ccsGet, NULL), $this); $this->Organizacija->Page = "phpSP_user_maint.php"; $this->kontakt = new clsControl(ccsLabel, "kontakt", "kontakt", ccsText, "", CCGetRequestParam("kontakt", ccsGet, NULL), $this); $this->E_mail = new clsControl(ccsLabel, "E_mail", "E_mail", ccsMemo, "", CCGetRequestParam("E_mail", ccsGet, NULL), $this); $this->Telefon = new clsControl(ccsLabel, "Telefon", "Telefon", ccsText, "", CCGetRequestParam("Telefon", ccsGet, NULL), $this); $this->Sorter1 = new clsSorter($this->ComponentName, "Sorter1", $FileName, $this); $this->Sorter_kontakt = new clsSorter($this->ComponentName, "Sorter_kontakt", $FileName, $this); $this->Sorter_Telefon = new clsSorter($this->ComponentName, "Sorter_Telefon", $FileName, $this); $this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 10, tpCentered, $this); } //End Class_Initialize Event
//Initialize Method @97-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 @97-9BBD0127 function Show() { global $Tpl; global $CCSLocales; if(!$this->Visible) return;
$this->RowNumber = 0;
$this->DataSource->Parameters["urls_keyword"] = CCGetFromGet("s_keyword", NULL); $this->DataSource->Parameters["urls_kontakt"] = CCGetFromGet("s_kontakt", NULL); $this->DataSource->Parameters["urls_Organizacija"] = CCGetFromGet("s_Organizacija", NULL); $this->DataSource->Parameters["urls_napomena"] = CCGetFromGet("s_napomena", 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["Organizacija"] = $this->Organizacija->Visible; $this->ControlsVisible["kontakt"] = $this->kontakt->Visible; $this->ControlsVisible["E_mail"] = $this->E_mail->Visible; $this->ControlsVisible["Telefon"] = $this->Telefon->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->Organizacija->SetValue($this->DataSource->Organizacija->GetValue()); $this->Organizacija->Parameters = CCGetQueryString("QueryString", array("ccsForm")); $this->Organizacija->Parameters = CCAddParam($this->Organizacija->Parameters, "klijent", $this->DataSource->f("primary_key")); $this->kontakt->SetValue($this->DataSource->kontakt->GetValue()); $this->E_mail->SetValue($this->DataSource->E_mail->GetValue()); $this->Telefon->SetValue($this->DataSource->Telefon->GetValue()); $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow", $this); $this->Attributes->Show(); $this->Organizacija->Show(); $this->kontakt->Show(); $this->E_mail->Show(); $this->Telefon->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->Sorter1->Show(); $this->Sorter_kontakt->Show(); $this->Sorter_Telefon->Show(); $this->Navigator->Show(); $Tpl->parse(); $Tpl->block_path = $ParentPath; $this->DataSource->close(); } //End Show Method
//GetErrors Method @97-94F5A4A3 function GetErrors() { $errors = ""; $errors = ComposeStrings($errors, $this->Organizacija->Errors->ToString()); $errors = ComposeStrings($errors, $this->kontakt->Errors->ToString()); $errors = ComposeStrings($errors, $this->E_mail->Errors->ToString()); $errors = ComposeStrings($errors, $this->Telefon->Errors->ToString()); $errors = ComposeStrings($errors, $this->Errors->ToString()); $errors = ComposeStrings($errors, $this->DataSource->Errors->ToString()); return $errors; } //End GetErrors Method
} //End klijenti Class @97-FCB6E20C
class clsklijentiDataSource extends clsDBConnection1 { //klijentiDataSource Class @97-E19A8FF4
//DataSource Variables @97-C97910B8 public $Parent = ""; public $CCSEvents = ""; public $CCSEventResult; public $ErrorBlock; public $CmdExecution;
public $CountSQL; public $wp;
// Datasource fields public $Organizacija; public $kontakt; public $E_mail; public $Telefon; //End DataSource Variables
//DataSourceClass_Initialize Event @97-2DA606E9 function clsklijentiDataSource(& $Parent) { $this->Parent = & $Parent; $this->ErrorBlock = "Grid klijenti"; $this->Initialize(); $this->Organizacija = new clsField("Organizacija", ccsMemo, ""); $this->kontakt = new clsField("kontakt", ccsText, ""); $this->E_mail = new clsField("E_mail", ccsMemo, ""); $this->Telefon = new clsField("Telefon", ccsText, "");
} //End DataSourceClass_Initialize Event
//SetOrder Method @97-4BA27F09 function SetOrder($SorterName, $SorterDirection) { $this->Order = "primary_key desc"; $this->Order = CCGetOrder($this->Order, $SorterName, $SorterDirection, array("Sorter1" => array("Organizacija", ""), "Sorter_kontakt" => array("kontakt", ""), "Sorter_Telefon" => array("Telefon", ""))); } //End SetOrder Method
//Prepare Method @97-0D4BB42C function Prepare() { global $CCSLocales; global $DefaultDateFormat; $this->wp = new clsSQLParameters($this->ErrorBlock); $this->wp->AddParameter("1", "urls_keyword", ccsText, "", "", $this->Parameters["urls_keyword"], "", false); $this->wp->AddParameter("2", "urls_keyword", ccsDate, $DefaultDateFormat, array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"), $this->Parameters["urls_keyword"], "", false); $this->wp->AddParameter("3", "urls_keyword", ccsMemo, "", "", $this->Parameters["urls_keyword"], "", false); $this->wp->AddParameter("4", "urls_keyword", ccsMemo, "", "", $this->Parameters["urls_keyword"], "", false); $this->wp->AddParameter("5", "urls_keyword", ccsMemo, "", "", $this->Parameters["urls_keyword"], "", false); $this->wp->AddParameter("6", "urls_keyword", ccsMemo, "", "", $this->Parameters["urls_keyword"], "", false); $this->wp->AddParameter("7", "urls_keyword", ccsText, "", "", $this->Parameters["urls_keyword"], "", false); $this->wp->AddParameter("8", "urls_keyword", ccsText, "", "", $this->Parameters["urls_keyword"], "", false); $this->wp->AddParameter("9", "urls_keyword", ccsText, "", "", $this->Parameters["urls_keyword"], "", false); $this->wp->AddParameter("10", "urls_keyword", ccsMemo, "", "", $this->Parameters["urls_keyword"], "", false); $this->wp->AddParameter("11", "urls_keyword", ccsDate, $DefaultDateFormat, array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"), $this->Parameters["urls_keyword"], "", false); $this->wp->AddParameter("12", "urls_keyword", ccsDate, $DefaultDateFormat, array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"), $this->Parameters["urls_keyword"], "", false); $this->wp->AddParameter("13", "urls_keyword", ccsDate, $DefaultDateFormat, array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"), $this->Parameters["urls_keyword"], "", false); $this->wp->AddParameter("14", "urls_keyword", ccsDate, $DefaultDateFormat, array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"), $this->Parameters["urls_keyword"], "", false); $this->wp->AddParameter("15", "urls_keyword", ccsInteger, "", "", $this->Parameters["urls_keyword"], "", false); $this->wp->AddParameter("16", "urls_kontakt", ccsText, "", "", $this->Parameters["urls_kontakt"], "", false); $this->wp->AddParameter("17", "urls_Organizacija", ccsMemo, "", "", $this->Parameters["urls_Organizacija"], "", false); $this->wp->AddParameter("18", "urls_napomena", ccsMemo, "", "", $this->Parameters["urls_napomena"], "", false); $this->wp->Criterion[1] = $this->wp->Operation(opContains, "kontakt", $this->wp->GetDBValue("1"), $this->ToSQL($this->wp->GetDBValue("1"), ccsText),false); $this->wp->Criterion[2] = $this->wp->Operation(opContains, "Pocetak_saradnje", $this->wp->GetDBValue("2"), $this->ToSQL($this->wp->GetDBValue("2"), ccsDate),false); $this->wp->Criterion[3] = $this->wp->Operation(opContains, "napomena", $this->wp->GetDBValue("3"), $this->ToSQL($this->wp->GetDBValue("3"), ccsMemo),false); $this->wp->Criterion[4] = $this->wp->Operation(opContains, "Organizacija", $this->wp->GetDBValue("4"), $this->ToSQL($this->wp->GetDBValue("4"), ccsMemo),false); $this->wp->Criterion[5] = $this->wp->Operation(opContains, "Adresa", $this->wp->GetDBValue("5"), $this->ToSQL($this->wp->GetDBValue("5"), ccsMemo),false); $this->wp->Criterion[6] = $this->wp->Operation(opContains, "E_mail", $this->wp->GetDBValue("6"), $this->ToSQL($this->wp->GetDBValue("6"), ccsMemo),false); $this->wp->Criterion[7] = $this->wp->Operation(opContains, "Telefon", $this->wp->GetDBValue("7"), $this->ToSQL($this->wp->GetDBValue("7"), ccsText),false); $this->wp->Criterion[8] = $this->wp->Operation(opContains, "Fax", $this->wp->GetDBValue("8"), $this->ToSQL($this->wp->GetDBValue("8"), ccsText),false); $this->wp->Criterion[9] = $this->wp->Operation(opContains, "Mobilni", $this->wp->GetDBValue("9"), $this->ToSQL($this->wp->GetDBValue("9"), ccsText),false); $this->wp->Criterion[10] = $this->wp->Operation(opContains, "Web", $this->wp->GetDBValue("10"), $this->ToSQL($this->wp->GetDBValue("10"), ccsMemo),false); $this->wp->Criterion[11] = $this->wp->Operation(opContains, "MinaCijeli_site_do", $this->wp->GetDBValue("11"), $this->ToSQL($this->wp->GetDBValue("11"), ccsDate),false); $this->wp->Criterion[12] = $this->wp->Operation(opContains, "MinaGen_site_do", $this->wp->GetDBValue("12"), $this->ToSQL($this->wp->GetDBValue("12"), ccsDate),false); $this->wp->Criterion[13] = $this->wp->Operation(opContains, "MinaBiz_site_do", $this->wp->GetDBValue("13"), $this->ToSQL($this->wp->GetDBValue("13"), ccsDate),false); $this->wp->Criterion[14] = $this->wp->Operation(opContains, "Daily_site_do", $this->wp->GetDBValue("14"), $this->ToSQL($this->wp->GetDBValue("14"), ccsDate),false); $this->wp->Criterion[15] = $this->wp->Operation(opContains, "Korisnickagrupa", $this->wp->GetDBValue("15"), $this->ToSQL($this->wp->GetDBValue("15"), ccsInteger),false); $this->wp->Criterion[16] = $this->wp->Operation(opContains, "kontakt", $this->wp->GetDBValue("16"), $this->ToSQL($this->wp->GetDBValue("16"), ccsText),false); $this->wp->Criterion[17] = $this->wp->Operation(opContains, "Organizacija", $this->wp->GetDBValue("17"), $this->ToSQL($this->wp->GetDBValue("17"), ccsMemo),false); $this->wp->Criterion[18] = $this->wp->Operation(opContains, "napomena", $this->wp->GetDBValue("18"), $this->ToSQL($this->wp->GetDBValue("18"), ccsMemo),false); $this->Where = $this->wp->opAND( false, $this->wp->opAND( false, $this->wp->opOR( false, $this->wp->opOR( true, $this->wp->opOR( false, $this->wp->opOR( false, $this->wp->opOR( false, $this->wp->opOR( false, $this->wp->opOR( false, $this->wp->opOR( false, $this->wp->opOR( false, $this->wp->opOR( false, $this->wp->opOR( false, $this->wp->opOR( false, $this->wp->opOR( false, $this->wp->opOR( false, $this->wp->opOR( 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]), $this->wp->Criterion[13]), $this->wp->Criterion[14]), $this->wp->Criterion[15]), $this->wp->Criterion[16]), $this->wp->Criterion[17]), $this->wp->Criterion[18]); } //End Prepare Method
//Open Method @97-8AB8BECE function Open() { $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect", $this->Parent); $this->CountSQL = "SELECT COUNT(*)\n\n" . "FROM klijenti"; $this->SQL = "SELECT * \n\n" . "FROM klijenti {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 @97-ACA9715D function SetValues() { $this->Organizacija->SetDBValue($this->f("Organizacija")); $this->kontakt->SetDBValue($this->f("kontakt")); $this->E_mail->SetDBValue($this->f("napomena")); $this->Telefon->SetDBValue($this->f("Telefon")); } //End SetValues Method
} //End klijentiDataSource Class @97-FCB6E20C
class clsEditableGridklijenti1 { //klijenti1 Class @124-81BC54C9
//Variables @124-7D3BCDA2
// Public variables public $ComponentType = "EditableGrid"; public $ComponentName; public $HTMLFormAction; public $PressedButton; public $Errors; public $ErrorBlock; public $FormSubmitted; public $FormParameters; public $FormState; public $FormEnctype; public $CachedColumns; public $TotalRows; public $UpdatedRows; public $EmptyRows; public $Visible; public $RowsErrors; public $ds; public $DataSource; public $PageSize; public $IsEmpty; public $SorterName = ""; public $SorterDirection = ""; public $PageNumber; public $ControlsVisible = array();
public $CCSEvents = ""; public $CCSEventResult;
public $RelativePath = "";
public $InsertAllowed = false; public $UpdateAllowed = false; public $DeleteAllowed = false; public $ReadAllowed = false; public $EditMode; public $ValidatingControls; public $Controls; public $ControlsErrors; public $RowNumber; public $Attributes;
// Class variables public $Sorter_Pocetak_saradnje; //End Variables
//Class_Initialize Event @124-25058BD1 function clsEditableGridklijenti1($RelativePath, & $Parent) {
global $FileName; global $CCSLocales; global $DefaultDateFormat; $this->Visible = true; $this->Parent = & $Parent; $this->RelativePath = $RelativePath; $this->Errors = new clsErrors(); $this->ErrorBlock = "EditableGrid klijenti1/Error"; $this->ControlsErrors = array(); $this->ComponentName = "klijenti1"; $this->Attributes = new clsAttributes($this->ComponentName . ":"); $this->CachedColumns["primary_key"][0] = "primary_key"; $this->DataSource = new clsklijenti1DataSource($this); $this->ds = & $this->DataSource; $this->PageSize = CCGetParam($this->ComponentName . "PageSize", ""); if(!is_numeric($this->PageSize) || !strlen($this->PageSize)) $this->PageSize = 10; else $this->PageSize = intval($this->PageSize); if ($this->PageSize > 100) $this->PageSize = 100; if($this->PageSize == 0) $this->Errors->addError("<p>Form: EditableGrid " . $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->EmptyRows = 1; $this->InsertAllowed = true; if(!$this->Visible) return;
$CCSForm = CCGetFromGet("ccsForm", ""); $this->FormEnctype = "application/x-www-form-urlencoded"; $this->FormSubmitted = ($CCSForm == $this->ComponentName); if($this->FormSubmitted) { $this->FormState = CCGetFromPost("FormState", ""); $this->SetFormState($this->FormState); } else { $this->FormState = ""; } $Method = $this->FormSubmitted ? ccsPost : ccsGet;
$this->SorterName = CCGetParam("klijenti1Order", ""); $this->SorterDirection = CCGetParam("klijenti1Dir", "");
$this->Sorter_Pocetak_saradnje = new clsSorter($this->ComponentName, "Sorter_Pocetak_saradnje", $FileName, $this); $this->Organizacija = new clsControl(ccsTextArea, "Organizacija", "Organizacija", ccsMemo, "", NULL, $this); $this->Pocetak_saradnje = new clsControl(ccsTextBox, "Pocetak_saradnje", "Pocetak Saradnje", ccsDate, array("dd", "/", "mm", "/", "yyyy"), NULL, $this); $this->DatePicker_Pocetak_saradnje = new clsDatePicker("DatePicker_Pocetak_saradnje", "klijenti1", "Pocetak_saradnje", $this); $this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 10, tpCentered, $this); $this->Button_Submit = new clsButton("Button_Submit", $Method, $this); } //End Class_Initialize Event
//Initialize Method @124-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
//GetFormParameters Method @124-01935587 function GetFormParameters() { for($RowNumber = 1; $RowNumber <= $this->TotalRows; $RowNumber++) { $this->FormParameters["Organizacija"][$RowNumber] = CCGetFromPost("Organizacija_" . $RowNumber, NULL); $this->FormParameters["Pocetak_saradnje"][$RowNumber] = CCGetFromPost("Pocetak_saradnje_" . $RowNumber, NULL); } } //End GetFormParameters Method
//Validate Method @124-8D15A3AA function Validate() { $Validation = true; $this->CCSEventResult = CCGetEvent($this->CCSEvents, "OnValidate", $this);
for($this->RowNumber = 1; $this->RowNumber <= $this->TotalRows; $this->RowNumber++) { $this->DataSource->CachedColumns["primary_key"] = $this->CachedColumns["primary_key"][$this->RowNumber]; $this->DataSource->CurrentRow = $this->RowNumber; $this->Organizacija->SetText($this->FormParameters["Organizacija"][$this->RowNumber], $this->RowNumber); $this->Pocetak_saradnje->SetText($this->FormParameters["Pocetak_saradnje"][$this->RowNumber], $this->RowNumber); if ($this->UpdatedRows >= $this->RowNumber) { $Validation = ($this->ValidateRow($this->RowNumber) && $Validation); } else if($this->CheckInsert()) { $Validation = ($this->ValidateRow() && $Validation); } } return (($this->Errors->Count() == 0) && $Validation); } //End Validate Method
//ValidateRow Method @124-376F2DEF function ValidateRow() { global $CCSLocales; $this->Organizacija->Validate(); $this->Pocetak_saradnje->Validate(); $this->RowErrors = new clsErrors(); $this->CCSEventResult = CCGetEvent($this->CCSEvents, "OnValidateRow", $this); $errors = ""; $errors = ComposeStrings($errors, $this->Organizacija->Errors->ToString()); $errors = ComposeStrings($errors, $this->Pocetak_saradnje->Errors->ToString()); $this->Organizacija->Errors->Clear(); $this->Pocetak_saradnje->Errors->Clear(); $errors = ComposeStrings($errors, $this->RowErrors->ToString()); $this->RowsErrors[$this->RowNumber] = $errors; return $errors != "" ? 0 : 1; } //End ValidateRow Method
//CheckInsert Method @124-F1B9B730 function CheckInsert() { $filed = false; $filed = ($filed || strlen($this->FormParameters["Organizacija"][$this->RowNumber])); $filed = ($filed || strlen($this->FormParameters["Pocetak_saradnje"][$this->RowNumber])); return $filed; } //End CheckInsert Method
//CheckErrors Method @124-F5A3B433 function CheckErrors() { $errors = false; $errors = ($errors || $this->Errors->Count()); $errors = ($errors || $this->DataSource->Errors->Count()); return $errors; } //End CheckErrors Method
//Operation Method @124-909F269B function Operation() { if(!$this->Visible) return;
global $Redirect; global $FileName;
$this->DataSource->Prepare(); if(!$this->FormSubmitted) return;
$this->GetFormParameters(); $this->PressedButton = "Button_Submit"; if($this->Button_Submit->Pressed) { $this->PressedButton = "Button_Submit"; }
$Redirect = $FileName . "?" . CCGetQueryString("QueryString", array("ccsForm")); if($this->PressedButton == "Button_Submit") { if(!CCGetEvent($this->Button_Submit->CCSEvents, "OnClick", $this->Button_Submit) || !$this->UpdateGrid()) { $Redirect = ""; } } else { $Redirect = ""; } if ($Redirect) $this->DataSource->close(); } //End Operation Method
//UpdateGrid Method @124-0096C113 function UpdateGrid() { $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSubmit", $this); if(!$this->Validate()) return; $Validation = true; for($this->RowNumber = 1; $this->RowNumber <= $this->TotalRows; $this->RowNumber++) { $this->DataSource->CachedColumns["primary_key"] = $this->CachedColumns["primary_key"][$this->RowNumber]; $this->DataSource->CurrentRow = $this->RowNumber; $this->Organizacija->SetText($this->FormParameters["Organizacija"][$this->RowNumber], $this->RowNumber); $this->Pocetak_saradnje->SetText($this->FormParameters["Pocetak_saradnje"][$this->RowNumber], $this->RowNumber); if ($this->UpdatedRows >= $this->RowNumber) { if($this->UpdateAllowed) { $Validation = ($this->UpdateRow() && $Validation); } } else if($this->CheckInsert() && $this->InsertAllowed) { $Validation = ($Validation && $this->InsertRow()); } } $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterSubmit", $this); if ($this->Errors->Count() == 0 && $Validation){ $this->DataSource->close(); return true; } return false; } //End UpdateGrid Method
//InsertRow Method @124-1BD634E0 function InsertRow() { if(!$this->InsertAllowed) return false; $this->DataSource->Organizacija->SetValue($this->Organizacija->GetValue(true)); $this->DataSource->Pocetak_saradnje->SetValue($this->Pocetak_saradnje->GetValue(true)); $this->DataSource->Insert(); $errors = ""; if($this->DataSource->Errors->Count() > 0) { $errors = $this->DataSource->Errors->ToString(); $this->RowsErrors[$this->RowNumber] = $errors; $this->DataSource->Errors->Clear(); } return (($this->Errors->Count() == 0) && !strlen($errors)); } //End InsertRow Method
//FormScript Method @124-59800DB5 function FormScript($TotalRows) { $script = ""; return $script; } //End FormScript Method
//SetFormState Method @124-06093E30 function SetFormState($FormState) { if(strlen($FormState)) { $FormState = str_replace("\\\\", "\\" . ord("\\"), $FormState); $FormState = str_replace("\\;", "\\" . ord(";"), $FormState); $pieces = explode(";", $FormState); $this->UpdatedRows = $pieces[0]; $this->EmptyRows = $pieces[1]; $this->TotalRows = $this->UpdatedRows + $this->EmptyRows; $RowNumber = 0; for($i = 2; $i < sizeof($pieces); $i = $i + 1) { $piece = $pieces[$i + 0]; $piece = str_replace("\\" . ord("\\"), "\\", $piece); $piece = str_replace("\\" . ord(";"), ";", $piece); $this->CachedColumns["primary_key"][$RowNumber] = $piece; $RowNumber++; }
if(!$RowNumber) { $RowNumber = 1; } for($i = 1; $i <= $this->EmptyRows; $i++) { $this->CachedColumns["primary_key"][$RowNumber] = ""; $RowNumber++; } } } //End SetFormState Method
//GetFormState Method @124-D047B610 function GetFormState($NonEmptyRows) { if(!$this->FormSubmitted) { $this->FormState = $NonEmptyRows . ";"; $this->FormState .= $this->InsertAllowed ? $this->EmptyRows : "0"; if($NonEmptyRows) { for($i = 0; $i <= $NonEmptyRows; $i++) { $this->FormState .= ";" . str_replace(";", "\\;", str_replace("\\", "\\\\", $this->CachedColumns["primary_key"][$i])); } } } return $this->FormState; } //End GetFormState Method
//Show Method @124-9C9D729A function Show() { global $Tpl; global $FileName; global $CCSLocales; $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["Organizacija"] = $this->Organizacija->Visible; $this->ControlsVisible["Pocetak_saradnje"] = $this->Pocetak_saradnje->Visible; $this->ControlsVisible["DatePicker_Pocetak_saradnje"] = $this->DatePicker_Pocetak_saradnje->Visible; if ($is_next_record || ($EmptyRowsLeft && $this->InsertAllowed)) { do { $this->RowNumber++; if($is_next_record) { $NonEmptyRows++; $this->DataSource->SetValues(); } if (!($this->FormSubmitted) && $is_next_record) { $this->CachedColumns["primary_key"][$this->RowNumber] = $this->DataSource->CachedColumns["primary_key"]; $this->Organizacija->SetValue($this->DataSource->Organizacija->GetValue()); $this->Pocetak_saradnje->SetValue($this->DataSource->Pocetak_saradnje->GetValue()); } elseif ($this->FormSubmitted && $is_next_record) { $this->Organizacija->SetText($this->FormParameters["Organizacija"][$this->RowNumber], $this->RowNumber); $this->Pocetak_saradnje->SetText($this->FormParameters["Pocetak_saradnje"][$this->RowNumber], $this->RowNumber); } elseif (!$this->FormSubmitted) { $this->CachedColumns["primary_key"][$this->RowNumber] = ""; $this->Organizacija->SetText(""); $this->Pocetak_saradnje->SetValue(time()); } else { $this->Organizacija->SetText($this->FormParameters["Organizacija"][$this->RowNumber], $this->RowNumber); $this->Pocetak_saradnje->SetText($this->FormParameters["Pocetak_saradnje"][$this->RowNumber], $this->RowNumber); } $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow", $this); $this->Attributes->Show(); $this->Organizacija->Show($this->RowNumber); $this->Pocetak_saradnje->Show($this->RowNumber); $this->DatePicker_Pocetak_saradnje->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["primary_key"] == $this->CachedColumns["primary_key"][$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->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_Pocetak_saradnje->Show(); $this->Navigator->Show(); $this->Button_Submit->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", $this->HTMLFormAction); $Tpl->SetVar("HTMLFormName", $this->ComponentName); $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype); $Tpl->SetVar("HTMLFormProperties", "method=\"POST\" action=\"" . $this->HTMLFormAction . "\" name=\"" . $this->ComponentName . "\""); $Tpl->SetVar("FormState", CCToHTML($this->GetFormState($NonEmptyRows))); $Tpl->parse(); $Tpl->block_path = $ParentPath; $this->DataSource->close(); } //End Show Method
} //End klijenti1 Class @124-FCB6E20C
class clsklijenti1DataSource extends clsDBConnection1 { //klijenti1DataSource Class @124-4773D55D
//DataSource Variables @124-298ECE9D public $Parent = ""; public $CCSEvents = ""; public $CCSEventResult; public $ErrorBlock; public $CmdExecution;
public $InsertParameters; public $CountSQL; public $wp; public $AllParametersSet;
public $CachedColumns; public $CurrentRow; public $InsertFields = array();
// Datasource fields public $Organizacija; public $Pocetak_saradnje; //End DataSource Variables
//DataSourceClass_Initialize Event @124-68213CCB function clsklijenti1DataSource(& $Parent) { $this->Parent = & $Parent; $this->ErrorBlock = "EditableGrid klijenti1/Error"; $this->Initialize(); $this->Organizacija = new clsField("Organizacija", ccsMemo, ""); $this->Pocetak_saradnje = new clsField("Pocetak_saradnje", ccsDate, array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"));
$this->InsertFields["Organizacija"] = array("Name" => "Organizacija", "Value" => "", "DataType" => ccsMemo); $this->InsertFields["Pocetak_saradnje"] = array("Name" => "Pocetak_saradnje", "Value" => "", "DataType" => ccsDate); } //End DataSourceClass_Initialize Event
//SetOrder Method @124-454CBEC4 function SetOrder($SorterName, $SorterDirection) { $this->Order = ""; $this->Order = CCGetOrder($this->Order, $SorterName, $SorterDirection, array("Sorter_Pocetak_saradnje" => array("Pocetak_saradnje", ""))); } //End SetOrder Method
//Prepare Method @124-14D6CD9D function Prepare() { global $CCSLocales; global $DefaultDateFormat; } //End Prepare Method
//Open Method @124-8AB8BECE function Open() { $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect", $this->Parent); $this->CountSQL = "SELECT COUNT(*)\n\n" . "FROM klijenti"; $this->SQL = "SELECT * \n\n" . "FROM klijenti {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 @124-A850EFCD function SetValues() { $this->CachedColumns["primary_key"] = $this->f("primary_key"); $this->Organizacija->SetDBValue($this->f("Organizacija")); $this->Pocetak_saradnje->SetDBValue(trim($this->f("Pocetak_saradnje"))); } //End SetValues Method
//Insert Method @124-FF6AF506 function Insert() { global $CCSLocales; global $DefaultDateFormat; $this->CmdExecution = true; $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildInsert", $this->Parent); $this->InsertFields["Organizacija"]["Value"] = $this->Organizacija->GetDBValue(true); $this->InsertFields["Pocetak_saradnje"]["Value"] = $this->Pocetak_saradnje->GetDBValue(true); $this->SQL = CCBuildInsert("klijenti", $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
} //End klijenti1DataSource Class @124-FCB6E20C
//Include Page implementation @70-58DBA1E3 include_once(RelativePath . "/Footer.php"); //End Include Page implementation
//Initialize Page @1-874A4387 // Variables $FileName = ""; $Redirect = ""; $Tpl = ""; $TemplateFileName = ""; $BlockToParse = ""; $ComponentName = ""; $Attributes = "";
// Events; $CCSEvents = ""; $CCSEventResult = "";
$FileName = FileName; $Redirect = ""; $TemplateFileName = "phpSP_user_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-AAADBB09 $DBConnection1 = new clsDBConnection1(); $MainPage->Connections["Connection1"] = & $DBConnection1; $Attributes = new clsAttributes("page:"); $MainPage->Attributes = & $Attributes;
// Controls $Header = new clsHeader("", "Header", $MainPage); $Header->Initialize(); $klijenti2 = new clsRecordklijenti2("", $MainPage); $klijenti = new clsGridklijenti("", $MainPage); $klijenti1 = new clsEditableGridklijenti1("", $MainPage); $Footer = new clsFooter("", "Footer", $MainPage); $Footer->Initialize(); $MainPage->Header = & $Header; $MainPage->klijenti2 = & $klijenti2; $MainPage->klijenti = & $klijenti; $MainPage->klijenti1 = & $klijenti1; $MainPage->Footer = & $Footer; $klijenti->Initialize(); $klijenti1->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-FAD65817 $Header->Operations(); $klijenti2->Operation(); $klijenti1->Operation(); $Footer->Operations(); //End Execute Components
//Go to destination page @1-803F09EC if($Redirect) { $CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage); $DBConnection1->close(); header("Location: " . $Redirect); $Header->Class_Terminate(); unset($Header); unset($klijenti2); unset($klijenti); unset($klijenti1); $Footer->Class_Terminate(); unset($Footer); unset($Tpl); exit; } //End Go to destination page
//Show Page @1-48C84802 $Header->Show(); $klijenti2->Show(); $klijenti->Show(); $klijenti1->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-67346C52 $CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage); $DBConnection1->close(); $Header->Class_Terminate(); unset($Header); unset($klijenti2); unset($klijenti); unset($klijenti1); $Footer->Class_Terminate(); unset($Footer); unset($Tpl); //End Unload Page
?>
|