-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHeader_live.php
116 lines (103 loc) · 3.79 KB
/
Header_live.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php
class clsHeader_live { //Header_live class @1-9CDEF164
//Variables @1-51D7F06F
public $ComponentType = "IncludablePage";
public $Connections = array();
public $FileName = "";
public $Redirect = "";
public $Tpl = "";
public $TemplateFileName = "";
public $BlockToParse = "";
public $ComponentName = "";
public $Attributes = "";
// Events;
public $CCSEvents = "";
public $CCSEventResult = "";
public $RelativePath;
public $Visible;
public $Parent;
//End Variables
//Class_Initialize Event @1-2990DB55
function clsHeader_live($RelativePath, $ComponentName, & $Parent)
{
global $CCSLocales;
global $DefaultDateFormat;
$this->ComponentName = $ComponentName;
$this->RelativePath = $RelativePath;
$this->Visible = true;
$this->Parent = & $Parent;
$this->FileName = "Header_live.php";
$this->Redirect = "";
$this->TemplateFileName = "Header_live.html";
$this->BlockToParse = "main";
$this->TemplateEncoding = "CP1252";
$this->ContentType = "text/html";
}
//End Class_Initialize Event
//Class_Terminate Event @1-32FD4740
function Class_Terminate()
{
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeUnload", $this);
}
//End Class_Terminate Event
//BindEvents Method @1-0DAD0D56
function BindEvents()
{
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterInitialize", $this);
}
//End BindEvents Method
//Operations Method @1-7E2A14CF
function Operations()
{
global $Redirect;
if(!$this->Visible)
return "";
}
//End Operations Method
//Initialize Method @1-5FF9CEF9
function Initialize()
{
global $FileName;
global $CCSLocales;
global $DefaultDateFormat;
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeInitialize", $this);
if(!$this->Visible)
return "";
$this->Attributes = & $this->Parent->Attributes;
// Create Components
$this->Study_Setup = new clsControl(ccsLink, "Study_Setup", "Study_Setup", ccsText, "", CCGetRequestParam("Study_Setup", ccsGet, NULL), $this);
$this->Study_Setup->Page = $this->RelativePath . "Studies.php";
$this->Subjects = new clsControl(ccsLink, "Subjects", "Subjects", ccsText, "", CCGetRequestParam("Subjects", ccsGet, NULL), $this);
$this->Subjects->Page = $this->RelativePath . "Subjects.php";
$this->Intakes = new clsControl(ccsLink, "Intakes", "Intakes", ccsText, "", CCGetRequestParam("Intakes", ccsGet, NULL), $this);
$this->Intakes->Page = $this->RelativePath . "index.php";
$this->BindEvents();
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "OnInitializeView", $this);
}
//End Initialize Method
//Show Method @1-3EA20958
function Show()
{
global $Tpl;
global $CCSLocales;
$block_path = $Tpl->block_path;
$Tpl->LoadTemplate("/" . $this->TemplateFileName, $this->ComponentName, $this->TemplateEncoding, "remove");
$Tpl->block_path = $Tpl->block_path . "/" . $this->ComponentName;
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
if(!$this->Visible) {
$Tpl->block_path = $block_path;
$Tpl->SetVar($this->ComponentName, "");
return "";
}
$this->Attributes->Show();
$this->Study_Setup->Show();
$this->Subjects->Show();
$this->Intakes->Show();
$Tpl->Parse();
$Tpl->block_path = $block_path;
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeOutput", $this);
$Tpl->SetVar($this->ComponentName, $Tpl->GetVar($this->ComponentName));
}
//End Show Method
} //End Header_live Class @1-FCB6E20C
?>