ComponentName = "klub_sportolo3";
$this->Visible = True;
$this->Parent = & $Parent;
$this->RelativePath = $RelativePath;
$this->Errors = new clsErrors();
$this->ErrorBlock = "Grid klub_sportolo3";
$this->Attributes = new clsAttributes($this->ComponentName . ":");
$this->DataSource = new clsklub_sportolo3DataSource($this);
$this->ds = & $this->DataSource;
$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 > 100)
$this->PageSize = 100;
if($this->PageSize == 0)
$this->Errors->addError("
Form: Grid " . $this->ComponentName . "
Error: (CCS06) Invalid page size.
");
$this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
if ($this->PageNumber <= 0) $this->PageNumber = 1;
$this->SorterName = CCGetParam("klub_sportolo3Order", "");
$this->SorterDirection = CCGetParam("klub_sportolo3Dir", "");
$this->CheckBox1 = new clsControl(ccsCheckBox, "CheckBox1", "CheckBox1", ccsBoolean, $CCSLocales->GetFormatInfo("BooleanFormat"), CCGetRequestParam("CheckBox1", ccsGet, NULL), $this);
$this->CheckBox1->CheckedValue = true;
$this->CheckBox1->UncheckedValue = false;
$this->NEV = new clsControl(ccsLink, "NEV", "NEV", ccsText, "", CCGetRequestParam("NEV", ccsGet, NULL), $this);
$this->NEV->Page = "sportolo_maint.php";
$this->MRSZ_SZAM = new clsControl(ccsLabel, "MRSZ_SZAM", "MRSZ_SZAM", ccsInteger, "", CCGetRequestParam("MRSZ_SZAM", ccsGet, NULL), $this);
$this->KLUB_ROV = new clsControl(ccsLabel, "KLUB_ROV", "KLUB_ROV", ccsText, "", CCGetRequestParam("KLUB_ROV", ccsGet, NULL), $this);
$this->FERFI_NO = new clsControl(ccsLabel, "FERFI_NO", "FERFI_NO", ccsText, "", CCGetRequestParam("FERFI_NO", ccsGet, NULL), $this);
$this->KULFOLDI_MAGYAR = new clsControl(ccsLabel, "KULFOLDI_MAGYAR", "KULFOLDI_MAGYAR", ccsText, "", CCGetRequestParam("KULFOLDI_MAGYAR", ccsGet, NULL), $this);
$this->LMVSZ_DIJ = new clsControl(ccsLabel, "LMVSZ_DIJ", "LMVSZ_DIJ", ccsDate, array("yyyy", "-", "mm", "-", "dd"), CCGetRequestParam("LMVSZ_DIJ", ccsGet, NULL), $this);
$this->LMVK_DIJ = new clsControl(ccsLabel, "LMVK_DIJ", "LMVK_DIJ", ccsDate, array("yyyy", "-", "mm", "-", "dd"), CCGetRequestParam("LMVK_DIJ", ccsGet, NULL), $this);
$this->d_vizsga = new clsControl(ccsCheckBox, "d_vizsga", "d_vizsga", ccsBoolean, $CCSLocales->GetFormatInfo("BooleanFormat"), CCGetRequestParam("d_vizsga", ccsGet, NULL), $this);
$this->d_vizsga->CheckedValue = true;
$this->d_vizsga->UncheckedValue = false;
$this->Darab = new clsControl(ccsLabel, "Darab", "Darab", ccsText, "", CCGetRequestParam("Darab", ccsGet, NULL), $this);
$this->Sorter_NEV = new clsSorter($this->ComponentName, "Sorter_NEV", $FileName, $this);
$this->Sorter_MRSZ_SZAM = new clsSorter($this->ComponentName, "Sorter_MRSZ_SZAM", $FileName, $this);
$this->Sorter_KLUB_ROV = new clsSorter($this->ComponentName, "Sorter_KLUB_ROV", $FileName, $this);
$this->Sorter_FERFI_NO = new clsSorter($this->ComponentName, "Sorter_FERFI_NO", $FileName, $this);
$this->Sorter_KULFOLDI_MAGYAR = new clsSorter($this->ComponentName, "Sorter_KULFOLDI_MAGYAR", $FileName, $this);
$this->ImageLink1 = new clsControl(ccsImageLink, "ImageLink1", "ImageLink1", ccsText, "", CCGetRequestParam("ImageLink1", ccsGet, NULL), $this);
$this->ImageLink1->Parameters = CCGetQueryString("QueryString", array("ccsForm"));
$this->ImageLink1->Page = "Menu.php";
$this->Link1 = new clsControl(ccsLink, "Link1", "Link1", ccsText, "", CCGetRequestParam("Link1", ccsGet, NULL), $this);
$this->Link1->Parameters = CCGetQueryString("QueryString", array("ccsForm"));
$this->Link1->Page = "editsportolo.php";
$this->klub_sportolo1_Insert = new clsControl(ccsLink, "klub_sportolo1_Insert", "klub_sportolo1_Insert", ccsText, "", CCGetRequestParam("klub_sportolo1_Insert", ccsGet, NULL), $this);
$this->klub_sportolo1_Insert->Parameters = CCGetQueryString("QueryString", array("ID", "ccsForm"));
$this->klub_sportolo1_Insert->Page = "sportolo_maint.php";
$this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 10, tpSimple, $this);
$this->Navigator->PageSizes = array("1", "5", "10", "25", "50");
}
//End Class_Initialize Event
//Initialize Method @67-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 @67-23A154CF
function Show()
{
global $Tpl;
global $CCSLocales;
if(!$this->Visible) return;
$this->RowNumber = 0;
$this->DataSource->Parameters["urls_NEV"] = CCGetFromGet("s_NEV", NULL);
$this->DataSource->Parameters["urls_MRSZ_SZAM"] = CCGetFromGet("s_MRSZ_SZAM", NULL);
$this->DataSource->Parameters["urls_KLUB_ROV"] = CCGetFromGet("s_KLUB_ROV", NULL);
$this->DataSource->Parameters["urls_FERFI_NO"] = CCGetFromGet("s_FERFI_NO", NULL);
$this->DataSource->Parameters["urls_KULFOLDI_MAGYAR"] = CCGetFromGet("s_KULFOLDI_MAGYAR", NULL);
$this->DataSource->Parameters["urlElfogadva"] = CCGetFromGet("Elfogadva", NULL);
$this->DataSource->Parameters["urls_d_vizsga"] = CCGetFromGet("s_d_vizsga", 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["CheckBox1"] = $this->CheckBox1->Visible;
$this->ControlsVisible["NEV"] = $this->NEV->Visible;
$this->ControlsVisible["MRSZ_SZAM"] = $this->MRSZ_SZAM->Visible;
$this->ControlsVisible["KLUB_ROV"] = $this->KLUB_ROV->Visible;
$this->ControlsVisible["FERFI_NO"] = $this->FERFI_NO->Visible;
$this->ControlsVisible["KULFOLDI_MAGYAR"] = $this->KULFOLDI_MAGYAR->Visible;
$this->ControlsVisible["LMVSZ_DIJ"] = $this->LMVSZ_DIJ->Visible;
$this->ControlsVisible["LMVK_DIJ"] = $this->LMVK_DIJ->Visible;
$this->ControlsVisible["d_vizsga"] = $this->d_vizsga->Visible;
while ($this->ForceIteration || (($this->RowNumber < $this->PageSize) && ($this->HasRecord = $this->DataSource->has_next_record()))) {
// Parse Separator
if($this->RowNumber) {
$this->Attributes->Show();
$Tpl->parseto("Separator", true, "Row");
}
$this->RowNumber++;
if ($this->HasRecord) {
$this->DataSource->next_record();
$this->DataSource->SetValues();
}
$Tpl->block_path = $ParentPath . "/" . $GridBlock . "/Row";
$this->CheckBox1->SetValue($this->DataSource->CheckBox1->GetValue());
$this->NEV->SetValue($this->DataSource->NEV->GetValue());
$this->NEV->Parameters = CCGetQueryString("QueryString", array("ccsForm"));
$this->NEV->Parameters = CCAddParam($this->NEV->Parameters, "ID", $this->DataSource->f("sportolo_ID"));
$this->MRSZ_SZAM->SetValue($this->DataSource->MRSZ_SZAM->GetValue());
$this->KLUB_ROV->SetValue($this->DataSource->KLUB_ROV->GetValue());
$this->FERFI_NO->SetValue($this->DataSource->FERFI_NO->GetValue());
$this->KULFOLDI_MAGYAR->SetValue($this->DataSource->KULFOLDI_MAGYAR->GetValue());
$this->LMVSZ_DIJ->SetValue($this->DataSource->LMVSZ_DIJ->GetValue());
$this->LMVK_DIJ->SetValue($this->DataSource->LMVK_DIJ->GetValue());
$this->d_vizsga->SetValue($this->DataSource->d_vizsga->GetValue());
$this->Attributes->SetValue("rowNumber", $this->RowNumber);
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow", $this);
$this->Attributes->Show();
$this->CheckBox1->Show();
$this->NEV->Show();
$this->MRSZ_SZAM->Show();
$this->KLUB_ROV->Show();
$this->FERFI_NO->Show();
$this->KULFOLDI_MAGYAR->Show();
$this->LMVSZ_DIJ->Show();
$this->LMVK_DIJ->Show();
$this->d_vizsga->Show();
$Tpl->block_path = $ParentPath . "/" . $GridBlock;
$Tpl->parse("Row", true);
}
}
$errors = $this->GetErrors();
if(strlen($errors))
{
$Tpl->replaceblock("", $errors);
$Tpl->block_path = $ParentPath;
return;
}
$this->Navigator->PageNumber = $this->DataSource->AbsolutePage;
$this->Navigator->PageSize = $this->PageSize;
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();
if ($this->Navigator->TotalPages <= 1) {
$this->Navigator->Visible = false;
}
$this->Darab->Show();
$this->Sorter_NEV->Show();
$this->Sorter_MRSZ_SZAM->Show();
$this->Sorter_KLUB_ROV->Show();
$this->Sorter_FERFI_NO->Show();
$this->Sorter_KULFOLDI_MAGYAR->Show();
$this->ImageLink1->Show();
$this->Link1->Show();
$this->klub_sportolo1_Insert->Show();
$this->Navigator->Show();
$Tpl->parse();
$Tpl->block_path = $ParentPath;
$this->DataSource->close();
}
//End Show Method
//GetErrors Method @67-BD298BCF
function GetErrors()
{
$errors = "";
$errors = ComposeStrings($errors, $this->CheckBox1->Errors->ToString());
$errors = ComposeStrings($errors, $this->NEV->Errors->ToString());
$errors = ComposeStrings($errors, $this->MRSZ_SZAM->Errors->ToString());
$errors = ComposeStrings($errors, $this->KLUB_ROV->Errors->ToString());
$errors = ComposeStrings($errors, $this->FERFI_NO->Errors->ToString());
$errors = ComposeStrings($errors, $this->KULFOLDI_MAGYAR->Errors->ToString());
$errors = ComposeStrings($errors, $this->LMVSZ_DIJ->Errors->ToString());
$errors = ComposeStrings($errors, $this->LMVK_DIJ->Errors->ToString());
$errors = ComposeStrings($errors, $this->d_vizsga->Errors->ToString());
$errors = ComposeStrings($errors, $this->Errors->ToString());
$errors = ComposeStrings($errors, $this->DataSource->Errors->ToString());
return $errors;
}
//End GetErrors Method
} //End klub_sportolo3 Class @67-FCB6E20C
class clsklub_sportolo3DataSource extends clsDBConnection1 { //klub_sportolo3DataSource Class @67-2B47BBFC
//DataSource Variables @67-9B4B8C9B
public $Parent = "";
public $CCSEvents = "";
public $CCSEventResult;
public $ErrorBlock;
public $CmdExecution;
public $CountSQL;
public $wp;
// Datasource fields
public $CheckBox1;
public $NEV;
public $MRSZ_SZAM;
public $KLUB_ROV;
public $FERFI_NO;
public $KULFOLDI_MAGYAR;
public $LMVSZ_DIJ;
public $LMVK_DIJ;
public $d_vizsga;
//End DataSource Variables
//DataSourceClass_Initialize Event @67-11778207
function clsklub_sportolo3DataSource(& $Parent)
{
$this->Parent = & $Parent;
$this->ErrorBlock = "Grid klub_sportolo3";
$this->Initialize();
$this->CheckBox1 = new clsField("CheckBox1", ccsBoolean, $this->BooleanFormat);
$this->NEV = new clsField("NEV", ccsText, "");
$this->MRSZ_SZAM = new clsField("MRSZ_SZAM", ccsInteger, "");
$this->KLUB_ROV = new clsField("KLUB_ROV", ccsText, "");
$this->FERFI_NO = new clsField("FERFI_NO", ccsText, "");
$this->KULFOLDI_MAGYAR = new clsField("KULFOLDI_MAGYAR", ccsText, "");
$this->LMVSZ_DIJ = new clsField("LMVSZ_DIJ", ccsDate, array("yyyy", "-", "mm", "-", "dd"));
$this->LMVK_DIJ = new clsField("LMVK_DIJ", ccsDate, array("yyyy", "-", "mm", "-", "dd"));
$this->d_vizsga = new clsField("d_vizsga", ccsBoolean, $this->BooleanFormat);
}
//End DataSourceClass_Initialize Event
//SetOrder Method @67-1B44911E
function SetOrder($SorterName, $SorterDirection)
{
$this->Order = "";
$this->Order = CCGetOrder($this->Order, $SorterName, $SorterDirection,
array("Sorter_NEV" => array("NEV", ""),
"Sorter_MRSZ_SZAM" => array("MRSZ_SZAM", ""),
"Sorter_KLUB_ROV" => array("KLUB_ROV", ""),
"Sorter_FERFI_NO" => array("FERFI_NO", ""),
"Sorter_KULFOLDI_MAGYAR" => array("KULFOLDI_MAGYAR", "")));
}
//End SetOrder Method
//Prepare Method @67-CF8E743D
function Prepare()
{
global $CCSLocales;
global $DefaultDateFormat;
$this->wp = new clsSQLParameters($this->ErrorBlock);
$this->wp->AddParameter("1", "urls_NEV", ccsText, "", "", $this->Parameters["urls_NEV"], "", false);
$this->wp->AddParameter("2", "urls_MRSZ_SZAM", ccsInteger, "", "", $this->Parameters["urls_MRSZ_SZAM"], "", false);
$this->wp->AddParameter("3", "urls_KLUB_ROV", ccsText, "", "", $this->Parameters["urls_KLUB_ROV"], "", false);
$this->wp->AddParameter("4", "urls_FERFI_NO", ccsText, "", "", $this->Parameters["urls_FERFI_NO"], "", false);
$this->wp->AddParameter("5", "urls_KULFOLDI_MAGYAR", ccsText, "", "", $this->Parameters["urls_KULFOLDI_MAGYAR"], "", false);
$this->wp->AddParameter("6", "urlElfogadva", ccsInteger, "", "", $this->Parameters["urlElfogadva"], "", false);
$this->wp->AddParameter("7", "urls_d_vizsga", ccsInteger, "", "", $this->Parameters["urls_d_vizsga"], "", false);
$this->wp->Criterion[1] = $this->wp->Operation(opContains, "sportolo.NEV", $this->wp->GetDBValue("1"), $this->ToSQL($this->wp->GetDBValue("1"), ccsText),false);
$this->wp->Criterion[2] = $this->wp->Operation(opEqual, "sportolo.MRSZ_SZAM", $this->wp->GetDBValue("2"), $this->ToSQL($this->wp->GetDBValue("2"), ccsInteger),false);
$this->wp->Criterion[3] = $this->wp->Operation(opContains, "klub.KLUB_ROV", $this->wp->GetDBValue("3"), $this->ToSQL($this->wp->GetDBValue("3"), ccsText),false);
$this->wp->Criterion[4] = $this->wp->Operation(opContains, "sportolo.FERFI_NO", $this->wp->GetDBValue("4"), $this->ToSQL($this->wp->GetDBValue("4"), ccsText),false);
$this->wp->Criterion[5] = $this->wp->Operation(opContains, "sportolo.KULFOLDI_MAGYAR", $this->wp->GetDBValue("5"), $this->ToSQL($this->wp->GetDBValue("5"), ccsText),false);
$this->wp->Criterion[6] = $this->wp->Operation(opEqual, "sportolo.Elfogadva", $this->wp->GetDBValue("6"), $this->ToSQL($this->wp->GetDBValue("6"), ccsInteger),false);
$this->wp->Criterion[7] = $this->wp->Operation(opEqual, "sportolo.d_vizsga", $this->wp->GetDBValue("7"), $this->ToSQL($this->wp->GetDBValue("7"), ccsInteger),false);
$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->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]);
}
//End Prepare Method
//Open Method @67-53532DD8
function Open()
{
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect", $this->Parent);
$this->CountSQL = "SELECT COUNT(*)\n\n" .
"FROM sportolo INNER JOIN klub ON\n\n" .
"sportolo.KlubID = klub.ID";
$this->SQL = "SELECT sportolo.ID AS sportolo_ID, MRSZ_SZAM, NEV, SZULETETT, FERFI_NO, KULFOLDI_MAGYAR, sportolo.TimeStampInsert AS sportolo_TimeStampInsert,\n\n" .
"sportolo.Insert_User_Id AS sportolo_Insert_User_Id, sportolo.TimeStampUpdate AS sportolo_TimeStampUpdate, sportolo.Update_User_Id AS sportolo_Update_User_Id,\n\n" .
"KLUB, KLUB_ROV, MVSZ_DIJ, MVK_DIJ, Elfogadva, d_vizsga \n\n" .
"FROM sportolo INNER JOIN klub ON\n\n" .
"sportolo.KlubID = klub.ID {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 @67-FF60B4E4
function SetValues()
{
$this->CheckBox1->SetDBValue(trim($this->f("Elfogadva")));
$this->NEV->SetDBValue($this->f("NEV"));
$this->MRSZ_SZAM->SetDBValue(trim($this->f("MRSZ_SZAM")));
$this->KLUB_ROV->SetDBValue($this->f("KLUB_ROV"));
$this->FERFI_NO->SetDBValue($this->f("FERFI_NO"));
$this->KULFOLDI_MAGYAR->SetDBValue($this->f("KULFOLDI_MAGYAR"));
$this->LMVSZ_DIJ->SetDBValue(trim($this->f("MVSZ_DIJ")));
$this->LMVK_DIJ->SetDBValue(trim($this->f("MVK_DIJ")));
$this->d_vizsga->SetDBValue(trim($this->f("d_vizsga")));
}
//End SetValues Method
} //End klub_sportolo3DataSource Class @67-FCB6E20C
class clsRecordklub_sportolo2 { //klub_sportolo2 Class @53-6B23DA52
//Variables @53-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 @53-EDDC5B31
function clsRecordklub_sportolo2($RelativePath, & $Parent)
{
global $FileName;
global $CCSLocales;
global $DefaultDateFormat;
$this->Visible = true;
$this->Parent = & $Parent;
$this->RelativePath = $RelativePath;
$this->Errors = new clsErrors();
$this->ErrorBlock = "Record klub_sportolo2/Error";
$this->DataSource = new clsklub_sportolo2DataSource($this);
$this->ds = & $this->DataSource;
$this->ReadAllowed = true;
if($this->Visible)
{
$this->ComponentName = "klub_sportolo2";
$this->Attributes = new clsAttributes($this->ComponentName . ":");
$CCSForm = explode(":", CCGetFromGet("ccsForm", ""), 2);
if(sizeof($CCSForm) == 1)
$CCSForm[1] = "";
list($FormName, $FormMethod) = $CCSForm;
$this->EditMode = ($FormMethod == "Edit");
$this->FormEnctype = "application/x-www-form-urlencoded";
$this->FormSubmitted = ($FormName == $this->ComponentName);
$Method = $this->FormSubmitted ? ccsPost : ccsGet;
$this->Elfogadva = new clsControl(ccsCheckBox, "Elfogadva", "Elfogadva", ccsBoolean, $CCSLocales->GetFormatInfo("BooleanFormat"), CCGetRequestParam("Elfogadva", $Method, NULL), $this);
$this->Elfogadva->CheckedValue = true;
$this->Elfogadva->UncheckedValue = false;
$this->s_NEV = new clsControl(ccsTextBox, "s_NEV", "s_NEV", ccsText, "", CCGetRequestParam("s_NEV", $Method, NULL), $this);
$this->s_MRSZ_SZAM = new clsControl(ccsTextBox, "s_MRSZ_SZAM", "s_MRSZ_SZAM", ccsInteger, "", CCGetRequestParam("s_MRSZ_SZAM", $Method, NULL), $this);
$this->s_KLUB_ROV = new clsControl(ccsListBox, "s_KLUB_ROV", "s_KLUB_ROV", ccsText, "", CCGetRequestParam("s_KLUB_ROV", $Method, NULL), $this);
$this->s_KLUB_ROV->DSType = dsTable;
$this->s_KLUB_ROV->DataSource = new clsDBConnection1();
$this->s_KLUB_ROV->ds = & $this->s_KLUB_ROV->DataSource;
$this->s_KLUB_ROV->DataSource->SQL = "SELECT KLUB, KLUB_ROV \n" .
"FROM klub {SQL_Where} {SQL_OrderBy}";
$this->s_KLUB_ROV->DataSource->Order = "KLUB";
list($this->s_KLUB_ROV->BoundColumn, $this->s_KLUB_ROV->TextColumn, $this->s_KLUB_ROV->DBFormat) = array("KLUB_ROV", "KLUB", "");
$this->s_KLUB_ROV->DataSource->Order = "KLUB";
$this->s_FERFI_NO = new clsControl(ccsListBox, "s_FERFI_NO", "s_FERFI_NO", ccsText, "", CCGetRequestParam("s_FERFI_NO", $Method, NULL), $this);
$this->s_FERFI_NO->DSType = dsListOfValues;
$this->s_FERFI_NO->Values = array(array("F", "Férfi"), array("N", "Nő"));
$this->s_KULFOLDI_MAGYAR = new clsControl(ccsListBox, "s_KULFOLDI_MAGYAR", "s_KULFOLDI_MAGYAR", ccsText, "", CCGetRequestParam("s_KULFOLDI_MAGYAR", $Method, NULL), $this);
$this->s_KULFOLDI_MAGYAR->DSType = dsListOfValues;
$this->s_KULFOLDI_MAGYAR->Values = array(array("M", "Magyar"), array("K", "Külföldi"));
$this->ClearParameters = new clsControl(ccsImageLink, "ClearParameters", "ClearParameters", ccsText, "", CCGetRequestParam("ClearParameters", $Method, NULL), $this);
$this->ClearParameters->Parameters = CCGetQueryString("QueryString", array("CheckBox1", "s_NEV", "s_MRSZ_SZAM", "s_KLUB_ROV", "s_FERFI_NO", "s_KULFOLDI_MAGYAR", "ccsForm"));
$this->ClearParameters->Page = "sportolo_list.php";
$this->Button_DoSearch = new clsButton("Button_DoSearch", $Method, $this);
$this->s_d_vizsga = new clsControl(ccsCheckBox, "s_d_vizsga", "s_d_vizsga", ccsBoolean, $CCSLocales->GetFormatInfo("BooleanFormat"), CCGetRequestParam("s_d_vizsga", $Method, NULL), $this);
$this->s_d_vizsga->CheckedValue = true;
$this->s_d_vizsga->UncheckedValue = false;
}
}
//End Class_Initialize Event
//Initialize Method @53-5D060BAC
function Initialize()
{
if(!$this->Visible)
return;
}
//End Initialize Method
//Validate Method @53-532F7DE0
function Validate()
{
global $CCSLocales;
$Validation = true;
$Where = "";
$Validation = ($this->Elfogadva->Validate() && $Validation);
$Validation = ($this->s_NEV->Validate() && $Validation);
$Validation = ($this->s_MRSZ_SZAM->Validate() && $Validation);
$Validation = ($this->s_KLUB_ROV->Validate() && $Validation);
$Validation = ($this->s_FERFI_NO->Validate() && $Validation);
$Validation = ($this->s_KULFOLDI_MAGYAR->Validate() && $Validation);
$Validation = ($this->s_d_vizsga->Validate() && $Validation);
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "OnValidate", $this);
$Validation = $Validation && ($this->Elfogadva->Errors->Count() == 0);
$Validation = $Validation && ($this->s_NEV->Errors->Count() == 0);
$Validation = $Validation && ($this->s_MRSZ_SZAM->Errors->Count() == 0);
$Validation = $Validation && ($this->s_KLUB_ROV->Errors->Count() == 0);
$Validation = $Validation && ($this->s_FERFI_NO->Errors->Count() == 0);
$Validation = $Validation && ($this->s_KULFOLDI_MAGYAR->Errors->Count() == 0);
$Validation = $Validation && ($this->s_d_vizsga->Errors->Count() == 0);
return (($this->Errors->Count() == 0) && $Validation);
}
//End Validate Method
//CheckErrors Method @53-619E10BF
function CheckErrors()
{
$errors = false;
$errors = ($errors || $this->Elfogadva->Errors->Count());
$errors = ($errors || $this->s_NEV->Errors->Count());
$errors = ($errors || $this->s_MRSZ_SZAM->Errors->Count());
$errors = ($errors || $this->s_KLUB_ROV->Errors->Count());
$errors = ($errors || $this->s_FERFI_NO->Errors->Count());
$errors = ($errors || $this->s_KULFOLDI_MAGYAR->Errors->Count());
$errors = ($errors || $this->ClearParameters->Errors->Count());
$errors = ($errors || $this->s_d_vizsga->Errors->Count());
$errors = ($errors || $this->Errors->Count());
$errors = ($errors || $this->DataSource->Errors->Count());
return $errors;
}
//End CheckErrors Method
//MasterDetail @53-ED598703
function SetPrimaryKeys($keyArray)
{
$this->PrimaryKeys = $keyArray;
}
function GetPrimaryKeys()
{
return $this->PrimaryKeys;
}
function GetPrimaryKey($keyName)
{
return $this->PrimaryKeys[$keyName];
}
//End MasterDetail
//Operation Method @53-3089FDB6
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 = "Button_DoSearch";
if($this->Button_DoSearch->Pressed) {
$this->PressedButton = "Button_DoSearch";
}
}
$Redirect = "sportolo_list.php";
if($this->Validate()) {
if($this->PressedButton == "Button_DoSearch") {
$Redirect = "sportolo_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 = "";
}
if ($Redirect)
$this->DataSource->close();
}
//End Operation Method
//Show Method @53-11B3AE74
function Show()
{
global $CCSUseAmp;
global $Tpl;
global $FileName;
global $CCSLocales;
$Error = "";
if(!$this->Visible)
return;
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
$this->s_KLUB_ROV->Prepare();
$this->s_FERFI_NO->Prepare();
$this->s_KULFOLDI_MAGYAR->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();
if(!$this->FormSubmitted){
$this->Elfogadva->SetValue($this->DataSource->Elfogadva->GetValue());
}
} else {
$this->EditMode = false;
}
}
if (!$this->FormSubmitted) {
}
if($this->FormSubmitted || $this->CheckErrors()) {
$Error = "";
$Error = ComposeStrings($Error, $this->Elfogadva->Errors->ToString());
$Error = ComposeStrings($Error, $this->s_NEV->Errors->ToString());
$Error = ComposeStrings($Error, $this->s_MRSZ_SZAM->Errors->ToString());
$Error = ComposeStrings($Error, $this->s_KLUB_ROV->Errors->ToString());
$Error = ComposeStrings($Error, $this->s_FERFI_NO->Errors->ToString());
$Error = ComposeStrings($Error, $this->s_KULFOLDI_MAGYAR->Errors->ToString());
$Error = ComposeStrings($Error, $this->ClearParameters->Errors->ToString());
$Error = ComposeStrings($Error, $this->s_d_vizsga->Errors->ToString());
$Error = ComposeStrings($Error, $this->Errors->ToString());
$Error = ComposeStrings($Error, $this->DataSource->Errors->ToString());
$Tpl->SetVar("Error", $Error);
$Tpl->Parse("Error", false);
}
$CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
$this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
$Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&", $this->HTMLFormAction));
$Tpl->SetVar("HTMLFormName", $this->ComponentName);
$Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
$this->Attributes->Show();
if(!$this->Visible) {
$Tpl->block_path = $ParentPath;
return;
}
$this->Elfogadva->Show();
$this->s_NEV->Show();
$this->s_MRSZ_SZAM->Show();
$this->s_KLUB_ROV->Show();
$this->s_FERFI_NO->Show();
$this->s_KULFOLDI_MAGYAR->Show();
$this->ClearParameters->Show();
$this->Button_DoSearch->Show();
$this->s_d_vizsga->Show();
$Tpl->parse();
$Tpl->block_path = $ParentPath;
$this->DataSource->close();
}
//End Show Method
} //End klub_sportolo2 Class @53-FCB6E20C
class clsklub_sportolo2DataSource extends clsDBConnection1 { //klub_sportolo2DataSource Class @53-E4D9AC34
//DataSource Variables @53-E20FBE99
public $Parent = "";
public $CCSEvents = "";
public $CCSEventResult;
public $ErrorBlock;
public $CmdExecution;
public $wp;
public $AllParametersSet;
// Datasource fields
public $Elfogadva;
public $s_NEV;
public $s_MRSZ_SZAM;
public $s_KLUB_ROV;
public $s_FERFI_NO;
public $s_KULFOLDI_MAGYAR;
public $ClearParameters;
public $s_d_vizsga;
//End DataSource Variables
//DataSourceClass_Initialize Event @53-8DEE5896
function clsklub_sportolo2DataSource(& $Parent)
{
$this->Parent = & $Parent;
$this->ErrorBlock = "Record klub_sportolo2/Error";
$this->Initialize();
$this->Elfogadva = new clsField("Elfogadva", ccsBoolean, $this->BooleanFormat);
$this->s_NEV = new clsField("s_NEV", ccsText, "");
$this->s_MRSZ_SZAM = new clsField("s_MRSZ_SZAM", ccsInteger, "");
$this->s_KLUB_ROV = new clsField("s_KLUB_ROV", ccsText, "");
$this->s_FERFI_NO = new clsField("s_FERFI_NO", ccsText, "");
$this->s_KULFOLDI_MAGYAR = new clsField("s_KULFOLDI_MAGYAR", ccsText, "");
$this->ClearParameters = new clsField("ClearParameters", ccsText, "");
$this->s_d_vizsga = new clsField("s_d_vizsga", ccsBoolean, $this->BooleanFormat);
}
//End DataSourceClass_Initialize Event
//Prepare Method @53-14D6CD9D
function Prepare()
{
global $CCSLocales;
global $DefaultDateFormat;
}
//End Prepare Method
//Open Method @53-28B4711E
function Open()
{
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect", $this->Parent);
$this->SQL = "SELECT KLUB, klub.ID AS klub_ID, Elfogadva \n\n" .
"FROM klub,\n\n" .
"sportolo {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 @53-431FA73F
function SetValues()
{
$this->Elfogadva->SetDBValue(trim($this->f("Elfogadva")));
}
//End SetValues Method
} //End klub_sportolo2DataSource Class @53-FCB6E20C
//Initialize Page @1-5270A1E0
// Variables
$FileName = "";
$Redirect = "";
$Tpl = "";
$TemplateFileName = "";
$BlockToParse = "";
$ComponentName = "";
$Attributes = "";
// Events;
$CCSEvents = "";
$CCSEventResult = "";
$FileName = FileName;
$Redirect = "";
$TemplateFileName = "sportolo_list.html";
$BlockToParse = "main";
$TemplateEncoding = "UTF-8";
$ContentType = "text/html";
$PathToRoot = "./";
$Charset = $Charset ? $Charset : "utf-8";
//End Initialize Page
//Include events file @1-D71AE887
include_once("./sportolo_list_events.php");
//End Include events file
//Before Initialize @1-E870CEBC
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeInitialize", $MainPage);
//End Before Initialize
//Initialize Objects @1-46F917EB
$DBConnection1 = new clsDBConnection1();
$MainPage->Connections["Connection1"] = & $DBConnection1;
$Attributes = new clsAttributes("page:");
$MainPage->Attributes = & $Attributes;
// Controls
$klub_sportolo3 = new clsGridklub_sportolo3("", $MainPage);
$klub_sportolo2 = new clsRecordklub_sportolo2("", $MainPage);
$MainPage->klub_sportolo3 = & $klub_sportolo3;
$MainPage->klub_sportolo2 = & $klub_sportolo2;
$klub_sportolo3->Initialize();
$klub_sportolo2->Initialize();
BindEvents();
$CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize", $MainPage);
if ($Charset) {
header("Content-Type: " . $ContentType . "; charset=" . $Charset);
} else {
header("Content-Type: " . $ContentType);
}
//End Initialize Objects
//Initialize HTML Template @1-A06E9207
$CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView", $MainPage);
$Tpl = new clsTemplate($FileEncoding, $TemplateEncoding);
$Tpl->LoadTemplate(PathToCurrentPage . $TemplateFileName, $BlockToParse, "UTF-8", "replace");
$Tpl->block_path = "/$BlockToParse";
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow", $MainPage);
$Attributes->SetValue("pathToRoot", "");
$Attributes->Show();
//End Initialize HTML Template
//Execute Components @1-906013A5
$klub_sportolo2->Operation();
//End Execute Components
//Go to destination page @1-44AD59C7
if($Redirect)
{
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage);
$DBConnection1->close();
header("Location: " . $Redirect);
unset($klub_sportolo3);
unset($klub_sportolo2);
unset($Tpl);
exit;
}
//End Go to destination page
//Show Page @1-87A972CA
$klub_sportolo3->Show();
$klub_sportolo2->Show();
$Tpl->block_path = "";
$Tpl->Parse($BlockToParse, false);
if (!isset($main_block)) $main_block = $Tpl->GetVar($BlockToParse);
$AJRN9F10J3H9Q = "Generated with CodeCharge Studio.";
$main_block = CCConvertEncoding($main_block, $FileEncoding, $CCSLocales->GetFormatInfo("Encoding"));
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeOutput", $MainPage);
if ($CCSEventResult) echo $main_block;
//End Show Page
//Unload Page @1-B4E85B2C
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage);
$DBConnection1->close();
unset($klub_sportolo3);
unset($klub_sportolo2);
unset($Tpl);
//End Unload Page
?>