lunes, 12 de enero de 2009

Reportes












pantalla de Busqueda
codigo de pantalla Cursos
Visible = true;
$this->Parent = & $Parent;
$this->RelativePath = $RelativePath;
$this->Errors = new clsErrors();
$this->ErrorBlock = "Record curso/Error";
$this->DataSource = new clscursoDataSource($this);
$this->ds = & $this->DataSource;
$this->InsertAllowed = true;
$this->UpdateAllowed = true;
$this->DeleteAllowed = true;
$this->ReadAllowed = true;
if($this->Visible)
{
$this->ComponentName = "curso";
$this->Attributes = new clsAttributes($this->ComponentName . ":");
$CCSForm = split(":", CCGetFromGet("ccsForm", ""), 2);
if(sizeof($CCSForm) == 1)
$CCSForm[1] = "";
list($FormName, $FormMethod) = $CCSForm;
$this->EditMode = ($FormMethod == "Edit");
$this->FormEnctype = "application/x-www-form-urlencoded";
$this->FormSubmitted = ($FormName == $this->ComponentName);
$Method = $this->FormSubmitted ? ccsPost : ccsGet;
$this->Button_Insert = & new clsButton("Button_Insert", $Method, $this);
$this->Button_Update = & new clsButton("Button_Update", $Method, $this);
$this->Button_Delete = & new clsButton("Button_Delete", $Method, $this);
$this->nombre_fk = & new clsControl(ccsTextBox, "nombre_fk", $CCSLocales->GetText("nombre_fk"), ccsInteger, "", CCGetRequestParam("nombre_fk", $Method, NULL), $this);
$this->nom_curso = & new clsControl(ccsTextBox, "nom_curso", $CCSLocales->GetText("nom_curso"), ccsText, "", CCGetRequestParam("nom_curso", $Method, NULL), $this);
$this->periodo_curso = & new clsControl(ccsTextBox, "periodo_curso", $CCSLocales->GetText("periodo_curso"), ccsText, "", CCGetRequestParam("periodo_curso", $Method, NULL), $this);
$this->cve_curso_pk = & new clsControl(ccsTextBox, "cve_curso_pk", $CCSLocales->GetText("cve_curso_pk"), ccsText, "", CCGetRequestParam("cve_curso_pk", $Method, NULL), $this);
}
}
//End Class_Initialize Event

//Initialize Method @2-B85560B6
function Initialize()
{

if(!$this->Visible)
return;

$this->DataSource->Parameters["urlid_curso"] = CCGetFromGet("id_curso", NULL);
}
//End Initialize Method

//Validate Method @2-92B6838D
function Validate()
{
global $CCSLocales;
$Validation = true;
$Where = "";
$Validation = ($this->nombre_fk->Validate() && $Validation);
$Validation = ($this->nom_curso->Validate() && $Validation);
$Validation = ($this->periodo_curso->Validate() && $Validation);
$Validation = ($this->cve_curso_pk->Validate() && $Validation);
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "OnValidate", $this);
$Validation = $Validation && ($this->nombre_fk->Errors->Count() == 0);
$Validation = $Validation && ($this->nom_curso->Errors->Count() == 0);
$Validation = $Validation && ($this->periodo_curso->Errors->Count() == 0);
$Validation = $Validation && ($this->cve_curso_pk->Errors->Count() == 0);
return (($this->Errors->Count() == 0) && $Validation);
}
//End Validate Method

//CheckErrors Method @2-287351A0
function CheckErrors()
{
$errors = false;
$errors = ($errors || $this->nombre_fk->Errors->Count());
$errors = ($errors || $this->nom_curso->Errors->Count());
$errors = ($errors || $this->periodo_curso->Errors->Count());
$errors = ($errors || $this->cve_curso_pk->Errors->Count());
$errors = ($errors || $this->Errors->Count());
$errors = ($errors || $this->DataSource->Errors->Count());
return $errors;
}
//End CheckErrors Method

//MasterDetail @2-ED598703
function SetPrimaryKeys($keyArray)
{
$this->PrimaryKeys = $keyArray;
}
function GetPrimaryKeys()
{
return $this->PrimaryKeys;
}
function GetPrimaryKey($keyName)
{
return $this->PrimaryKeys[$keyName];
}
//End MasterDetail

//Operation Method @2-CB389677
function Operation()
{
if(!$this->Visible)
return;

global $Redirect;
global $FileName;

$this->DataSource->Prepare();
if(!$this->FormSubmitted) {
$this->EditMode = $this->DataSource->AllParametersSet;
return;
}

if($this->FormSubmitted) {
$this->PressedButton = $this->EditMode ? "Button_Update" : "Button_Insert";
if($this->Button_Insert->Pressed) {
$this->PressedButton = "Button_Insert";
} else if($this->Button_Update->Pressed) {
$this->PressedButton = "Button_Update";
} else if($this->Button_Delete->Pressed) {
$this->PressedButton = "Button_Delete";
}
}
$Redirect = "curso_list.php" . "?" . CCGetQueryString("QueryString", array("ccsForm"));
if($this->PressedButton == "Button_Delete") {
if(!CCGetEvent($this->Button_Delete->CCSEvents, "OnClick", $this->Button_Delete) || !$this->DeleteRow()) {
$Redirect = "";
}
} else if($this->Validate()) {
if($this->PressedButton == "Button_Insert") {
if(!CCGetEvent($this->Button_Insert->CCSEvents, "OnClick", $this->Button_Insert) || !$this->InsertRow()) {
$Redirect = "";
}
} else if($this->PressedButton == "Button_Update") {
if(!CCGetEvent($this->Button_Update->CCSEvents, "OnClick", $this->Button_Update) || !$this->UpdateRow()) {
$Redirect = "";
}
}
} else {
$Redirect = "";
}
if ($Redirect)
$this->DataSource->close();
}
//End Operation Method

//InsertRow Method @2-9EA6C331
function InsertRow()
{
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeInsert", $this);
if(!$this->InsertAllowed) return false;
$this->DataSource->nombre_fk->SetValue($this->nombre_fk->GetValue(true));
$this->DataSource->nom_curso->SetValue($this->nom_curso->GetValue(true));
$this->DataSource->periodo_curso->SetValue($this->periodo_curso->GetValue(true));
$this->DataSource->cve_curso_pk->SetValue($this->cve_curso_pk->GetValue(true));
$this->DataSource->Insert();
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterInsert", $this);
return (!$this->CheckErrors());
}
//End InsertRow Method

//UpdateRow Method @2-449B2ED1
function UpdateRow()
{
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeUpdate", $this);
if(!$this->UpdateAllowed) return false;
$this->DataSource->nombre_fk->SetValue($this->nombre_fk->GetValue(true));
$this->DataSource->nom_curso->SetValue($this->nom_curso->GetValue(true));
$this->DataSource->periodo_curso->SetValue($this->periodo_curso->GetValue(true));
$this->DataSource->cve_curso_pk->SetValue($this->cve_curso_pk->GetValue(true));
$this->DataSource->Update();
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterUpdate", $this);
return (!$this->CheckErrors());
}
//End UpdateRow Method

//DeleteRow Method @2-299D98C3
function DeleteRow()
{
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeDelete", $this);
if(!$this->DeleteAllowed) return false;
$this->DataSource->Delete();
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterDelete", $this);
return (!$this->CheckErrors());
}
//End DeleteRow Method

//Show Method @2-12D4A427
function Show()
{
global $CCSUseAmp;
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->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->nombre_fk->SetValue($this->DataSource->nombre_fk->GetValue());
$this->nom_curso->SetValue($this->DataSource->nom_curso->GetValue());
$this->periodo_curso->SetValue($this->DataSource->periodo_curso->GetValue());
$this->cve_curso_pk->SetValue($this->DataSource->cve_curso_pk->GetValue());
}
} else {
$this->EditMode = false;
}
}

if($this->FormSubmitted || $this->CheckErrors()) {
$Error = "";
$Error = ComposeStrings($Error, $this->nombre_fk->Errors->ToString());
$Error = ComposeStrings($Error, $this->nom_curso->Errors->ToString());
$Error = ComposeStrings($Error, $this->periodo_curso->Errors->ToString());
$Error = ComposeStrings($Error, $this->cve_curso_pk->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->Button_Insert->Visible = !$this->EditMode && $this->InsertAllowed;
$this->Button_Update->Visible = $this->EditMode && $this->UpdateAllowed;
$this->Button_Delete->Visible = $this->EditMode && $this->DeleteAllowed;

$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
$this->Attributes->Show();
if(!$this->Visible) {
$Tpl->block_path = $ParentPath;
return;
}

$this->Button_Insert->Show();
$this->Button_Update->Show();
$this->Button_Delete->Show();
$this->nombre_fk->Show();
$this->nom_curso->Show();
$this->periodo_curso->Show();
$this->cve_curso_pk->Show();
$Tpl->parse();
$Tpl->block_path = $ParentPath;
$this->DataSource->close();
}
//End Show Method

} //End curso Class @2-FCB6E20C

class clscursoDataSource extends clsDBlaura_cfe { //cursoDataSource Class @2-CF685F09

//DataSource Variables @2-7EAA9BFE
var $Parent = "";
var $CCSEvents = "";
var $CCSEventResult;
var $ErrorBlock;
var $CmdExecution;

var $InsertParameters;
var $UpdateParameters;
var $DeleteParameters;
var $wp;
var $AllParametersSet;

var $InsertFields = array();
var $UpdateFields = array();

// Datasource fields
var $nombre_fk;
var $nom_curso;
var $periodo_curso;
var $cve_curso_pk;
//End DataSource Variables

//DataSourceClass_Initialize Event @2-528A2B3B
function clscursoDataSource(& $Parent)
{
$this->Parent = & $Parent;
$this->ErrorBlock = "Record curso/Error";
$this->Initialize();
$this->nombre_fk = new clsField("nombre_fk", ccsInteger, "");

$this->nom_curso = new clsField("nom_curso", ccsText, "");

$this->periodo_curso = new clsField("periodo_curso", ccsText, "");

$this->cve_curso_pk = new clsField("cve_curso_pk", ccsText, "");


$this->InsertFields["no_referencia_fk"] = array("Name" => "no_referencia_fk", "Value" => "", "DataType" => ccsInteger, "OmitIfEmpty" => 1);
$this->InsertFields["nom_curso"] = array("Name" => "nom_curso", "Value" => "", "DataType" => ccsText, "OmitIfEmpty" => 1);
$this->InsertFields["periodo_curso"] = array("Name" => "periodo_curso", "Value" => "", "DataType" => ccsText, "OmitIfEmpty" => 1);
$this->InsertFields["cve_curso_pk"] = array("Name" => "cve_curso_pk", "Value" => "", "DataType" => ccsText, "OmitIfEmpty" => 1);
$this->UpdateFields["no_referencia_fk"] = array("Name" => "no_referencia_fk", "Value" => "", "DataType" => ccsInteger, "OmitIfEmpty" => 1);
$this->UpdateFields["nom_curso"] = array("Name" => "nom_curso", "Value" => "", "DataType" => ccsText, "OmitIfEmpty" => 1);
$this->UpdateFields["periodo_curso"] = array("Name" => "periodo_curso", "Value" => "", "DataType" => ccsText, "OmitIfEmpty" => 1);
$this->UpdateFields["cve_curso_pk"] = array("Name" => "cve_curso_pk", "Value" => "", "DataType" => ccsText, "OmitIfEmpty" => 1);
}
//End DataSourceClass_Initialize Event

//Prepare Method @2-5CE47FB6
function Prepare()
{
global $CCSLocales;
global $DefaultDateFormat;
$this->wp = new clsSQLParameters($this->ErrorBlock);
$this->wp->AddParameter("1", "urlid_curso", ccsInteger, "", "", $this->Parameters["urlid_curso"], "", false);
$this->AllParametersSet = $this->wp->AllParamsSet();
$this->wp->Criterion[1] = $this->wp->Operation(opEqual, "id_curso", $this->wp->GetDBValue("1"), $this->ToSQL($this->wp->GetDBValue("1"), ccsInteger),false);
$this->Where =
$this->wp->Criterion[1];
}
//End Prepare Method

//Open Method @2-512FB7BF
function Open()
{
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect", $this->Parent);
$this->SQL = "SELECT * \n\n" .
"FROM curso {SQL_Where} {SQL_OrderBy}";
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteSelect", $this->Parent);
$this->PageSize = 1;
$this->query($this->OptimizeSQL(CCBuildSQL($this->SQL, $this->Where, $this->Order)));
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteSelect", $this->Parent);
}
//End Open Method

//SetValues Method @2-81C15D4E
function SetValues()
{
$this->nombre_fk->SetDBValue(trim($this->f("no_referencia_fk")));
$this->nom_curso->SetDBValue($this->f("nom_curso"));
$this->periodo_curso->SetDBValue($this->f("periodo_curso"));
$this->cve_curso_pk->SetDBValue($this->f("cve_curso_pk"));
}
//End SetValues Method

//Insert Method @2-CCF2D9CA
function Insert()
{
global $CCSLocales;
global $DefaultDateFormat;
$this->CmdExecution = true;
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildInsert", $this->Parent);
$this->InsertFields["no_referencia_fk"]["Value"] = $this->nombre_fk->GetDBValue(true);
$this->InsertFields["nom_curso"]["Value"] = $this->nom_curso->GetDBValue(true);
$this->InsertFields["periodo_curso"]["Value"] = $this->periodo_curso->GetDBValue(true);
$this->InsertFields["cve_curso_pk"]["Value"] = $this->cve_curso_pk->GetDBValue(true);
$this->SQL = CCBuildInsert("curso", $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

//Update Method @2-E1FC1A4D
function Update()
{
global $CCSLocales;
global $DefaultDateFormat;
$this->CmdExecution = true;
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildUpdate", $this->Parent);
$this->UpdateFields["no_referencia_fk"]["Value"] = $this->nombre_fk->GetDBValue(true);
$this->UpdateFields["nom_curso"]["Value"] = $this->nom_curso->GetDBValue(true);
$this->UpdateFields["periodo_curso"]["Value"] = $this->periodo_curso->GetDBValue(true);
$this->UpdateFields["cve_curso_pk"]["Value"] = $this->cve_curso_pk->GetDBValue(true);
$this->SQL = CCBuildUpdate("curso", $this->UpdateFields, $this);
$this->SQL = CCBuildSQL($this->SQL, $this->Where, "");
if (!strlen($this->Where) && $this->Errors->Count() == 0)
$this->Errors->addError($CCSLocales->GetText("CCS_CustomOperationError_MissingParameters"));
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteUpdate", $this->Parent);
if($this->Errors->Count() == 0 && $this->CmdExecution) {
$this->query($this->SQL);
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteUpdate", $this->Parent);
}
}
//End Update Method

//Delete Method @2-B0DDD9C6
function Delete()
{
global $CCSLocales;
global $DefaultDateFormat;
$this->CmdExecution = true;
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildDelete", $this->Parent);
$this->SQL = "DELETE FROM curso";
$this->SQL = CCBuildSQL($this->SQL, $this->Where, "");
if (!strlen($this->Where) && $this->Errors->Count() == 0)
$this->Errors->addError($CCSLocales->GetText("CCS_CustomOperationError_MissingParameters"));
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteDelete", $this->Parent);
if($this->Errors->Count() == 0 && $this->CmdExecution) {
$this->query($this->SQL);
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteDelete", $this->Parent);
}
}
//End Delete Method

} //End cursoDataSource Class @2-FCB6E20C

//Include Page implementation @11-3DD2EFDC
include_once(RelativePath . "/Header.php");
//End Include Page implementation

//Include Page implementation @12-58DBA1E3
include_once(RelativePath . "/Footer.php");
//End Include Page implementation

//Initialize Page @1-BF80FD74
// Variables
$FileName = "";
$Redirect = "";
$Tpl = "";
$TemplateFileName = "";
$BlockToParse = "";
$ComponentName = "";
$Attributes = "";

// Events;
$CCSEvents = "";
$CCSEventResult = "";

$FileName = FileName;
$Redirect = "";
$TemplateFileName = "curso_maint.html";
$BlockToParse = "main";
$TemplateEncoding = "UTF-8";
$ContentType = "text/html";
$PathToRoot = "./";
$Charset = $Charset ? $Charset : "utf-8";
//End Initialize Page

//Before Initialize @1-E870CEBC
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeInitialize", $MainPage);
//End Before Initialize

//Initialize Objects @1-0B5FD0C7
$DBlaura_cfe = new clsDBlaura_cfe();
$MainPage->Connections["laura_cfe"] = & $DBlaura_cfe;
$Attributes = new clsAttributes("page:");
$MainPage->Attributes = & $Attributes;

// Controls
$curso = & new clsRecordcurso("", $MainPage);
$Header = & new clsHeader("", "Header", $MainPage);
$Header->Initialize();
$Footer = & new clsFooter("", "Footer", $MainPage);
$Footer->Initialize();
$MainPage->curso = & $curso;
$MainPage->Header = & $Header;
$MainPage->Footer = & $Footer;
$curso->Initialize();

$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-E1F06CF2
$curso->Operation();
$Header->Operations();
$Footer->Operations();
//End Execute Components

//Go to destination page @1-DBEEBE77
if($Redirect)
{
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage);
$DBlaura_cfe->close();
header("Location: " . $Redirect);
unset($curso);
$Header->Class_Terminate();
unset($Header);
$Footer->Class_Terminate();
unset($Footer);
unset($Tpl);
exit;
}
//End Go to destination page

//Show Page @1-F76F6F36
$curso->Show();
$Header->Show();
$Footer->Show();
$Tpl->block_path = "";
$Tpl->Parse($BlockToParse, false);
if (!isset($main_block)) $main_block = $Tpl->GetVar($BlockToParse);
if(preg_match("/<\/body>/i", $main_block)) {
$main_block = preg_replace("/<\/body>/i", "
Gen" . "erated with <" . "!-- SCC -->CodeCha" . "rge Studio." . "
" . "", $main_block);
} else if(preg_match("/<\/html>/i", $main_block) && !preg_match("/<\/frameset>/i", $main_block)) {
$main_block = preg_replace("/<\/html>/i", "
Gen" . "erated with <" . "!-- SCC -->CodeCha" . "rge Studio." . "
" . "", $main_block);
} else if(!preg_match("/<\/frameset>/i", $main_block)) {
$main_block .= "
Gen" . "erated with <" . "!-- SCC -->CodeCha" . "rge Studio." . "
";
}
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeOutput", $MainPage);
if ($CCSEventResult) echo $main_block;
//End Show Page

//Unload Page @1-E5BCDC13
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage);
$DBlaura_cfe->close();
unset($curso);
$Header->Class_Terminate();
unset($Header);
$Footer->Class_Terminate();
unset($Footer);
unset($Tpl);
//End Unload Page


?>



Pantalla Documentación

reporte 1
















Reporte 2

















Codigo de las pantallas

Visible = true;
$this->Parent = & $Parent;
$this->RelativePath = $RelativePath;
$this->Errors = new clsErrors();
$this->ErrorBlock = "Record datos_personales/Error";
$this->DataSource = new clsdatos_personalesDataSource($this);
$this->ds = & $this->DataSource;
$this->InsertAllowed = true;
$this->UpdateAllowed = true;
$this->DeleteAllowed = true;
$this->ReadAllowed = true;
if($this->Visible)
{
$this->ComponentName = "datos_personales";
$this->Attributes = new clsAttributes($this->ComponentName . ":");
$CCSForm = split(":", CCGetFromGet("ccsForm", ""), 2);
if(sizeof($CCSForm) == 1)
$CCSForm[1] = "";
list($FormName, $FormMethod) = $CCSForm;
$this->EditMode = ($FormMethod == "Edit");
$this->FormEnctype = "application/x-www-form-urlencoded";
$this->FormSubmitted = ($FormName == $this->ComponentName);
$Method = $this->FormSubmitted ? ccsPost : ccsGet;
$this->Button_Insert = & new clsButton("Button_Insert", $Method, $this);
$this->Button_Update = & new clsButton("Button_Update", $Method, $this);
$this->Button_Delete = & new clsButton("Button_Delete", $Method, $this);
$this->no_referencia_fk = & new clsControl(ccsTextBox, "no_referencia_fk", $CCSLocales->GetText("no_referencia_fk"), ccsFloat, "", CCGetRequestParam("no_referencia_fk", $Method, NULL), $this);
$this->no_referencia_fk->Required = true;
$this->nombre = & new clsControl(ccsTextBox, "nombre", $CCSLocales->GetText("nombre"), ccsText, "", CCGetRequestParam("nombre", $Method, NULL), $this);
$this->nombre->Required = true;
$this->domicilio = & new clsControl(ccsTextBox, "domicilio", $CCSLocales->GetText("domicilio"), ccsText, "", CCGetRequestParam("domicilio", $Method, NULL), $this);
$this->telefono = & new clsControl(ccsTextBox, "telefono", $CCSLocales->GetText("telefono"), ccsFloat, "", CCGetRequestParam("telefono", $Method, NULL), $this);
$this->ciudad = & new clsControl(ccsTextBox, "ciudad", $CCSLocales->GetText("ciudad"), ccsText, "", CCGetRequestParam("ciudad", $Method, NULL), $this);
$this->estado = & new clsControl(ccsTextBox, "estado", $CCSLocales->GetText("estado"), ccsText, "", CCGetRequestParam("estado", $Method, NULL), $this);
$this->estado_civil = & new clsControl(ccsTextBox, "estado_civil", $CCSLocales->GetText("estado_civil"), ccsText, "", CCGetRequestParam("estado_civil", $Method, NULL), $this);
$this->id_curso = & new clsControl(ccsTextBox, "id_curso", $CCSLocales->GetText("id_curso"), ccsInteger, "", CCGetRequestParam("id_curso", $Method, NULL), $this);
}
}
//End Class_Initialize Event

//Initialize Method @2-3B8FB813
function Initialize()
{

if(!$this->Visible)
return;

$this->DataSource->Parameters["urlid_pk"] = CCGetFromGet("id_pk", NULL);
}
//End Initialize Method

//Validate Method @2-4FC1942E
function Validate()
{
global $CCSLocales;
$Validation = true;
$Where = "";
$Validation = ($this->no_referencia_fk->Validate() && $Validation);
$Validation = ($this->nombre->Validate() && $Validation);
$Validation = ($this->domicilio->Validate() && $Validation);
$Validation = ($this->telefono->Validate() && $Validation);
$Validation = ($this->ciudad->Validate() && $Validation);
$Validation = ($this->estado->Validate() && $Validation);
$Validation = ($this->estado_civil->Validate() && $Validation);
$Validation = ($this->id_curso->Validate() && $Validation);
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "OnValidate", $this);
$Validation = $Validation && ($this->no_referencia_fk->Errors->Count() == 0);
$Validation = $Validation && ($this->nombre->Errors->Count() == 0);
$Validation = $Validation && ($this->domicilio->Errors->Count() == 0);
$Validation = $Validation && ($this->telefono->Errors->Count() == 0);
$Validation = $Validation && ($this->ciudad->Errors->Count() == 0);
$Validation = $Validation && ($this->estado->Errors->Count() == 0);
$Validation = $Validation && ($this->estado_civil->Errors->Count() == 0);
$Validation = $Validation && ($this->id_curso->Errors->Count() == 0);
return (($this->Errors->Count() == 0) && $Validation);
}
//End Validate Method

//CheckErrors Method @2-22F52441
function CheckErrors()
{
$errors = false;
$errors = ($errors || $this->no_referencia_fk->Errors->Count());
$errors = ($errors || $this->nombre->Errors->Count());
$errors = ($errors || $this->domicilio->Errors->Count());
$errors = ($errors || $this->telefono->Errors->Count());
$errors = ($errors || $this->ciudad->Errors->Count());
$errors = ($errors || $this->estado->Errors->Count());
$errors = ($errors || $this->estado_civil->Errors->Count());
$errors = ($errors || $this->id_curso->Errors->Count());
$errors = ($errors || $this->Errors->Count());
$errors = ($errors || $this->DataSource->Errors->Count());
return $errors;
}
//End CheckErrors Method

//MasterDetail @2-ED598703
function SetPrimaryKeys($keyArray)
{
$this->PrimaryKeys = $keyArray;
}
function GetPrimaryKeys()
{
return $this->PrimaryKeys;
}
function GetPrimaryKey($keyName)
{
return $this->PrimaryKeys[$keyName];
}
//End MasterDetail

//Operation Method @2-137A99E3
function Operation()
{
if(!$this->Visible)
return;

global $Redirect;
global $FileName;

$this->DataSource->Prepare();
if(!$this->FormSubmitted) {
$this->EditMode = $this->DataSource->AllParametersSet;
return;
}

if($this->FormSubmitted) {
$this->PressedButton = $this->EditMode ? "Button_Update" : "Button_Insert";
if($this->Button_Insert->Pressed) {
$this->PressedButton = "Button_Insert";
} else if($this->Button_Update->Pressed) {
$this->PressedButton = "Button_Update";
} else if($this->Button_Delete->Pressed) {
$this->PressedButton = "Button_Delete";
}
}
$Redirect = "datos_personale_list.php" . "?" . CCGetQueryString("QueryString", array("ccsForm"));
if($this->PressedButton == "Button_Delete") {
if(!CCGetEvent($this->Button_Delete->CCSEvents, "OnClick", $this->Button_Delete) || !$this->DeleteRow()) {
$Redirect = "";
}
} else if($this->Validate()) {
if($this->PressedButton == "Button_Insert") {
if(!CCGetEvent($this->Button_Insert->CCSEvents, "OnClick", $this->Button_Insert) || !$this->InsertRow()) {
$Redirect = "";
}
} else if($this->PressedButton == "Button_Update") {
if(!CCGetEvent($this->Button_Update->CCSEvents, "OnClick", $this->Button_Update) || !$this->UpdateRow()) {
$Redirect = "";
}
}
} else {
$Redirect = "";
}
if ($Redirect)
$this->DataSource->close();
}
//End Operation Method

//InsertRow Method @2-49E0847A
function InsertRow()
{
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeInsert", $this);
if(!$this->InsertAllowed) return false;
$this->DataSource->no_referencia_fk->SetValue($this->no_referencia_fk->GetValue(true));
$this->DataSource->nombre->SetValue($this->nombre->GetValue(true));
$this->DataSource->domicilio->SetValue($this->domicilio->GetValue(true));
$this->DataSource->telefono->SetValue($this->telefono->GetValue(true));
$this->DataSource->ciudad->SetValue($this->ciudad->GetValue(true));
$this->DataSource->estado->SetValue($this->estado->GetValue(true));
$this->DataSource->estado_civil->SetValue($this->estado_civil->GetValue(true));
$this->DataSource->id_curso->SetValue($this->id_curso->GetValue(true));
$this->DataSource->Insert();
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterInsert", $this);
return (!$this->CheckErrors());
}
//End InsertRow Method

//UpdateRow Method @2-120B2690
function UpdateRow()
{
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeUpdate", $this);
if(!$this->UpdateAllowed) return false;
$this->DataSource->no_referencia_fk->SetValue($this->no_referencia_fk->GetValue(true));
$this->DataSource->nombre->SetValue($this->nombre->GetValue(true));
$this->DataSource->domicilio->SetValue($this->domicilio->GetValue(true));
$this->DataSource->telefono->SetValue($this->telefono->GetValue(true));
$this->DataSource->ciudad->SetValue($this->ciudad->GetValue(true));
$this->DataSource->estado->SetValue($this->estado->GetValue(true));
$this->DataSource->estado_civil->SetValue($this->estado_civil->GetValue(true));
$this->DataSource->id_curso->SetValue($this->id_curso->GetValue(true));
$this->DataSource->Update();
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterUpdate", $this);
return (!$this->CheckErrors());
}
//End UpdateRow Method

//DeleteRow Method @2-299D98C3
function DeleteRow()
{
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeDelete", $this);
if(!$this->DeleteAllowed) return false;
$this->DataSource->Delete();
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterDelete", $this);
return (!$this->CheckErrors());
}
//End DeleteRow Method

//Show Method @2-7480B234
function Show()
{
global $CCSUseAmp;
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->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->no_referencia_fk->SetValue($this->DataSource->no_referencia_fk->GetValue());
$this->nombre->SetValue($this->DataSource->nombre->GetValue());
$this->domicilio->SetValue($this->DataSource->domicilio->GetValue());
$this->telefono->SetValue($this->DataSource->telefono->GetValue());
$this->ciudad->SetValue($this->DataSource->ciudad->GetValue());
$this->estado->SetValue($this->DataSource->estado->GetValue());
$this->estado_civil->SetValue($this->DataSource->estado_civil->GetValue());
$this->id_curso->SetValue($this->DataSource->id_curso->GetValue());
}
} else {
$this->EditMode = false;
}
}

if($this->FormSubmitted || $this->CheckErrors()) {
$Error = "";
$Error = ComposeStrings($Error, $this->no_referencia_fk->Errors->ToString());
$Error = ComposeStrings($Error, $this->nombre->Errors->ToString());
$Error = ComposeStrings($Error, $this->domicilio->Errors->ToString());
$Error = ComposeStrings($Error, $this->telefono->Errors->ToString());
$Error = ComposeStrings($Error, $this->ciudad->Errors->ToString());
$Error = ComposeStrings($Error, $this->estado->Errors->ToString());
$Error = ComposeStrings($Error, $this->estado_civil->Errors->ToString());
$Error = ComposeStrings($Error, $this->id_curso->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->Button_Insert->Visible = !$this->EditMode && $this->InsertAllowed;
$this->Button_Update->Visible = $this->EditMode && $this->UpdateAllowed;
$this->Button_Delete->Visible = $this->EditMode && $this->DeleteAllowed;

$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
$this->Attributes->Show();
if(!$this->Visible) {
$Tpl->block_path = $ParentPath;
return;
}

$this->Button_Insert->Show();
$this->Button_Update->Show();
$this->Button_Delete->Show();
$this->no_referencia_fk->Show();
$this->nombre->Show();
$this->domicilio->Show();
$this->telefono->Show();
$this->ciudad->Show();
$this->estado->Show();
$this->estado_civil->Show();
$this->id_curso->Show();
$Tpl->parse();
$Tpl->block_path = $ParentPath;
$this->DataSource->close();
}
//End Show Method

} //End datos_personales Class @2-FCB6E20C

class clsdatos_personalesDataSource extends clsDBlaura_cfe { //datos_personalesDataSource Class @2-6502DAB0

//DataSource Variables @2-38796612
var $Parent = "";
var $CCSEvents = "";
var $CCSEventResult;
var $ErrorBlock;
var $CmdExecution;

var $InsertParameters;
var $UpdateParameters;
var $DeleteParameters;
var $wp;
var $AllParametersSet;

var $InsertFields = array();
var $UpdateFields = array();

// Datasource fields
var $no_referencia_fk;
var $nombre;
var $domicilio;
var $telefono;
var $ciudad;
var $estado;
var $estado_civil;
var $id_curso;
//End DataSource Variables

//DataSourceClass_Initialize Event @2-389ED7C6
function clsdatos_personalesDataSource(& $Parent)
{
$this->Parent = & $Parent;
$this->ErrorBlock = "Record datos_personales/Error";
$this->Initialize();
$this->no_referencia_fk = new clsField("no_referencia_fk", ccsFloat, "");

$this->nombre = new clsField("nombre", ccsText, "");

$this->domicilio = new clsField("domicilio", ccsText, "");

$this->telefono = new clsField("telefono", ccsFloat, "");

$this->ciudad = new clsField("ciudad", ccsText, "");

$this->estado = new clsField("estado", ccsText, "");

$this->estado_civil = new clsField("estado_civil", ccsText, "");

$this->id_curso = new clsField("id_curso", ccsInteger, "");


$this->InsertFields["no_referencia_fk"] = array("Name" => "no_referencia_fk", "Value" => "", "DataType" => ccsFloat, "OmitIfEmpty" => 1);
$this->InsertFields["nombre"] = array("Name" => "nombre", "Value" => "", "DataType" => ccsText, "OmitIfEmpty" => 1);
$this->InsertFields["domicilio"] = array("Name" => "domicilio", "Value" => "", "DataType" => ccsText, "OmitIfEmpty" => 1);
$this->InsertFields["telefono"] = array("Name" => "telefono", "Value" => "", "DataType" => ccsFloat, "OmitIfEmpty" => 1);
$this->InsertFields["ciudad"] = array("Name" => "ciudad", "Value" => "", "DataType" => ccsText, "OmitIfEmpty" => 1);
$this->InsertFields["estado"] = array("Name" => "estado", "Value" => "", "DataType" => ccsText, "OmitIfEmpty" => 1);
$this->InsertFields["estado_civil"] = array("Name" => "estado_civil", "Value" => "", "DataType" => ccsText, "OmitIfEmpty" => 1);
$this->InsertFields["id_curso"] = array("Name" => "id_curso", "Value" => "", "DataType" => ccsInteger, "OmitIfEmpty" => 1);
$this->UpdateFields["no_referencia_fk"] = array("Name" => "no_referencia_fk", "Value" => "", "DataType" => ccsFloat, "OmitIfEmpty" => 1);
$this->UpdateFields["nombre"] = array("Name" => "nombre", "Value" => "", "DataType" => ccsText, "OmitIfEmpty" => 1);
$this->UpdateFields["domicilio"] = array("Name" => "domicilio", "Value" => "", "DataType" => ccsText, "OmitIfEmpty" => 1);
$this->UpdateFields["telefono"] = array("Name" => "telefono", "Value" => "", "DataType" => ccsFloat, "OmitIfEmpty" => 1);
$this->UpdateFields["ciudad"] = array("Name" => "ciudad", "Value" => "", "DataType" => ccsText, "OmitIfEmpty" => 1);
$this->UpdateFields["estado"] = array("Name" => "estado", "Value" => "", "DataType" => ccsText, "OmitIfEmpty" => 1);
$this->UpdateFields["estado_civil"] = array("Name" => "estado_civil", "Value" => "", "DataType" => ccsText, "OmitIfEmpty" => 1);
$this->UpdateFields["id_curso"] = array("Name" => "id_curso", "Value" => "", "DataType" => ccsInteger, "OmitIfEmpty" => 1);
}
//End DataSourceClass_Initialize Event

//Prepare Method @2-5C104C58
function Prepare()
{
global $CCSLocales;
global $DefaultDateFormat;
$this->wp = new clsSQLParameters($this->ErrorBlock);
$this->wp->AddParameter("1", "urlid_pk", ccsInteger, "", "", $this->Parameters["urlid_pk"], "", false);
$this->AllParametersSet = $this->wp->AllParamsSet();
$this->wp->Criterion[1] = $this->wp->Operation(opEqual, "id_pk", $this->wp->GetDBValue("1"), $this->ToSQL($this->wp->GetDBValue("1"), ccsInteger),false);
$this->Where =
$this->wp->Criterion[1];
}
//End Prepare Method

//Open Method @2-023DA63D
function Open()
{
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect", $this->Parent);
$this->SQL = "SELECT * \n\n" .
"FROM datos_personales {SQL_Where} {SQL_OrderBy}";
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteSelect", $this->Parent);
$this->PageSize = 1;
$this->query($this->OptimizeSQL(CCBuildSQL($this->SQL, $this->Where, $this->Order)));
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteSelect", $this->Parent);
}
//End Open Method

//SetValues Method @2-1A8DD0C7
function SetValues()
{
$this->no_referencia_fk->SetDBValue(trim($this->f("no_referencia_fk")));
$this->nombre->SetDBValue($this->f("nombre"));
$this->domicilio->SetDBValue($this->f("domicilio"));
$this->telefono->SetDBValue(trim($this->f("telefono")));
$this->ciudad->SetDBValue($this->f("ciudad"));
$this->estado->SetDBValue($this->f("estado"));
$this->estado_civil->SetDBValue($this->f("estado_civil"));
$this->id_curso->SetDBValue(trim($this->f("id_curso")));
}
//End SetValues Method

//Insert Method @2-035CFA69
function Insert()
{
global $CCSLocales;
global $DefaultDateFormat;
$this->CmdExecution = true;
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildInsert", $this->Parent);
$this->InsertFields["no_referencia_fk"]["Value"] = $this->no_referencia_fk->GetDBValue(true);
$this->InsertFields["nombre"]["Value"] = $this->nombre->GetDBValue(true);
$this->InsertFields["domicilio"]["Value"] = $this->domicilio->GetDBValue(true);
$this->InsertFields["telefono"]["Value"] = $this->telefono->GetDBValue(true);
$this->InsertFields["ciudad"]["Value"] = $this->ciudad->GetDBValue(true);
$this->InsertFields["estado"]["Value"] = $this->estado->GetDBValue(true);
$this->InsertFields["estado_civil"]["Value"] = $this->estado_civil->GetDBValue(true);
$this->InsertFields["id_curso"]["Value"] = $this->id_curso->GetDBValue(true);
$this->SQL = CCBuildInsert("datos_personales", $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

//Update Method @2-028FEA7E
function Update()
{
global $CCSLocales;
global $DefaultDateFormat;
$this->CmdExecution = true;
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildUpdate", $this->Parent);
$this->UpdateFields["no_referencia_fk"]["Value"] = $this->no_referencia_fk->GetDBValue(true);
$this->UpdateFields["nombre"]["Value"] = $this->nombre->GetDBValue(true);
$this->UpdateFields["domicilio"]["Value"] = $this->domicilio->GetDBValue(true);
$this->UpdateFields["telefono"]["Value"] = $this->telefono->GetDBValue(true);
$this->UpdateFields["ciudad"]["Value"] = $this->ciudad->GetDBValue(true);
$this->UpdateFields["estado"]["Value"] = $this->estado->GetDBValue(true);
$this->UpdateFields["estado_civil"]["Value"] = $this->estado_civil->GetDBValue(true);
$this->UpdateFields["id_curso"]["Value"] = $this->id_curso->GetDBValue(true);
$this->SQL = CCBuildUpdate("datos_personales", $this->UpdateFields, $this);
$this->SQL = CCBuildSQL($this->SQL, $this->Where, "");
if (!strlen($this->Where) && $this->Errors->Count() == 0)
$this->Errors->addError($CCSLocales->GetText("CCS_CustomOperationError_MissingParameters"));
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteUpdate", $this->Parent);
if($this->Errors->Count() == 0 && $this->CmdExecution) {
$this->query($this->SQL);
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteUpdate", $this->Parent);
}
}
//End Update Method

//Delete Method @2-EF1DD822
function Delete()
{
global $CCSLocales;
global $DefaultDateFormat;
$this->CmdExecution = true;
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildDelete", $this->Parent);
$this->SQL = "DELETE FROM datos_personales";
$this->SQL = CCBuildSQL($this->SQL, $this->Where, "");
if (!strlen($this->Where) && $this->Errors->Count() == 0)
$this->Errors->addError($CCSLocales->GetText("CCS_CustomOperationError_MissingParameters"));
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteDelete", $this->Parent);
if($this->Errors->Count() == 0 && $this->CmdExecution) {
$this->query($this->SQL);
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteDelete", $this->Parent);
}
}
//End Delete Method

} //End datos_personalesDataSource Class @2-FCB6E20C

//Include Page implementation @15-3DD2EFDC
include_once(RelativePath . "/Header.php");
//End Include Page implementation

//Include Page implementation @16-58DBA1E3
include_once(RelativePath . "/Footer.php");
//End Include Page implementation

//Initialize Page @1-41DC1C8D
// Variables
$FileName = "";
$Redirect = "";
$Tpl = "";
$TemplateFileName = "";
$BlockToParse = "";
$ComponentName = "";
$Attributes = "";

// Events;
$CCSEvents = "";
$CCSEventResult = "";

$FileName = FileName;
$Redirect = "";
$TemplateFileName = "datos_personale_maint.html";
$BlockToParse = "main";
$TemplateEncoding = "UTF-8";
$ContentType = "text/html";
$PathToRoot = "./";
$Charset = $Charset ? $Charset : "utf-8";
//End Initialize Page

//Before Initialize @1-E870CEBC
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeInitialize", $MainPage);
//End Before Initialize

//Initialize Objects @1-74FAB235
$DBlaura_cfe = new clsDBlaura_cfe();
$MainPage->Connections["laura_cfe"] = & $DBlaura_cfe;
$Attributes = new clsAttributes("page:");
$MainPage->Attributes = & $Attributes;

// Controls
$datos_personales = & new clsRecorddatos_personales("", $MainPage);
$Header = & new clsHeader("", "Header", $MainPage);
$Header->Initialize();
$Footer = & new clsFooter("", "Footer", $MainPage);
$Footer->Initialize();
$MainPage->datos_personales = & $datos_personales;
$MainPage->Header = & $Header;
$MainPage->Footer = & $Footer;
$datos_personales->Initialize();

$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-56853E6A
$datos_personales->Operation();
$Header->Operations();
$Footer->Operations();
//End Execute Components

//Go to destination page @1-344DDC33
if($Redirect)
{
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage);
$DBlaura_cfe->close();
header("Location: " . $Redirect);
unset($datos_personales);
$Header->Class_Terminate();
unset($Header);
$Footer->Class_Terminate();
unset($Footer);
unset($Tpl);
exit;
}
//End Go to destination page

//Show Page @1-E75F6A67
$datos_personales->Show();
$Header->Show();
$Footer->Show();
$Tpl->block_path = "";
$Tpl->Parse($BlockToParse, false);
if (!isset($main_block)) $main_block = $Tpl->GetVar($BlockToParse);
if(preg_match("/<\/body>/i", $main_block)) {
$main_block = preg_replace("/<\/body>/i", "
G&#" . "101;nerate&#10" . "0; w" . "ith CodeCh" . "arge &#83" . ";tudi&#11" . "1;.<" . "/font>
" . "", $main_block);
} else if(preg_match("/<\/html>/i", $main_block) && !preg_match("/<\/frameset>/i", $main_block)) {
$main_block = preg_replace("/<\/html>/i", "
G&#" . "101;nerate&#10" . "0; w" . "ith CodeCh" . "arge &#83" . ";tudi&#11" . "1;.<" . "/font>
" . "", $main_block);
} else if(!preg_match("/<\/frameset>/i", $main_block)) {
$main_block .= "
G&#" . "101;nerate&#10" . "0; w" . "ith CodeCh" . "arge &#83" . ";tudi&#11" . "1;.<" . "/font>
";
}
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeOutput", $MainPage);
if ($CCSEventResult) echo $main_block;
//End Show Page

//Unload Page @1-12C9CBF2
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage);
$DBlaura_cfe->close();
unset($datos_personales);
$Header->Class_Terminate();
unset($Header);
$Footer->Class_Terminate();
unset($Footer);
unset($Tpl);
//End Unload Page


?>



No hay comentarios: