-
Notifications
You must be signed in to change notification settings - Fork 0
/
controls.html.php
262 lines (239 loc) · 8.43 KB
/
controls.html.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<?#Register Src="~/Controls/Message.php" TagPrefix="php" TagName="Message"?>
<?#Register Src="~/Controls/TabControl.php" TagPrefix="php" TagName="TabControl"?>
<?#Register Src="~/Controls/Panel.php" TagPrefix="php" TagName="Panel"?>
<html xmlns:php="http://aleksey.nemiro.ru/php-webforms">
<body>
<php:Content ID="MainContent">
<h2>${Introduction}</h2>
<p>${IntroductionText1}</p>
<p>${IntroductionText2}</p>
<p>${IntroductionText3}</p>
<p>${IntroductionText4}</p>
<p>${IntroductionText5}</p>
<p>${IntroductionText6}</p>
<h3 id="contents">${Contents}</h3>
<ul>
<li><a href="#registration">${RegistrationAndPlacement}</a></li>
<li><a href="#include">${UserControlsAsIncludeFiles}</a></li>
<li><a href="#object">${ObjectModel}</a></li>
<li>
<a href="#control">${Class} Control</a>
<ul>
<li><a href="#properties">${Properties}</a></li>
<li>
<a href="#events">${Events}</a>
<ul>
<li><a href="#load">Load</a></li>
<li><a href="#loadСomplete">LoadComplete</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#localization">${Localization}</a></li>
</ul>
<h2 id="registration">${RegistrationAndPlacement}</h2>
<p>${RegistrationAndPlacementText1}</p>
<p>${RegistrationAndPlacementText2}</p>
<p>${RegistrationAndPlacementText3}</p>
<pre><code class="html"><?#Register Src="~/Controls/Message.php" TagPrefix="php" TagName="Message"?></code></pre>
<p>${RegistrationAndPlacementText4}</p>
<p>${RegistrationAndPlacementText5}</p>
<pre><code class="html"><php:Message>${ExampleMessage1}</php:Message>
<php:Message>${ExampleMessage2}</php:Message>
<php:Message>${ExampleMessage3}</php:Message></code></pre>
<p>${RegistrationAndPlacementText6}</p>
<p>${RegistrationAndPlacementText7}</p>
<pre><code class="html"><?#Register Src="~/Controls/Message.php" TagPrefix="my" TagName="Information"?>
<my:Information>${HelloWorld}</my:Information>
</code></pre>
<p>${RegistrationAndPlacementText8}</p>
<h2 id="include">${UserControlsAsIncludeFiles}</h2>
<p>${UserControlsAsIncludeFilesText1}</p>
<p>${UserControlsAsIncludeFilesText2}</p>
<pre><code class="html">${SimpleExampleText1}
<br /><br />
<?="${SimpleExampleText2}"?></code></pre>
<p>${UserControlsAsIncludeFilesText3}</p>
<p>${UserControlsAsIncludeFilesText4}</p>
<php:TabControl>
<php:Items>
<php:TabItem Key="Control" Title="Panel.php">
<pre><code class="html"><?=str_replace("\t", ' ', \Nemiro\Text::HtmlEncode(file_get_contents(\Nemiro\Server::MapPath('~/Controls/Panel.php'))))?></code></pre>
</php:TabItem>
<php:TabItem Key="Place" Title="${PlacementOnPage}">
<pre><code class="php"><?#Register Src="~/Controls/Panel.php" TagPrefix="php" TagName="Panel"?>
<php:Panel Title="${ExampleTitle}" Content="${HelloWorld}" /></code></pre>
</php:TabItem>
<php:TabItem Key="Result" Title="${Result}">
<php:Panel Title="${ExampleTitle}" Content="${HelloWorld}" />
</php:TabItem>
</php:Items>
</php:TabControl>
<h2 id="object">${ObjectModel}</h2>
<p>${ObjectModelText1}</p>
<p>${ObjectModelText2}</p>
<php:TabControl>
<php:Items>
<php:TabItem Key="Design" Title="Message.html.php">
<pre><code class="html"><?=str_replace("\t", ' ', \Nemiro\Text::HtmlEncode(file_get_contents(\Nemiro\Server::MapPath('~/Controls/Message.html.php'))))?></code></pre>
</php:TabItem>
<php:TabItem Key="Class" Title="Message.php">
<pre><code class="php"><?=str_replace("\t", ' ', \Nemiro\Text::HtmlEncode(file_get_contents(\Nemiro\Server::MapPath('~/Controls/Message.php'))))?></code></pre>
</php:TabItem>
</php:Items>
</php:TabControl>
<p>${ObjectModelText3}</p>
<p>${ObjectModelText4}</p>
<php:Message Type="Warning">${ObjectModelText5}</php:Message>
<p>${ObjectModelText6}</p>
<pre><code class="html"><php:Message ID="MyMessage1">${Example2Message1}</php:Message>
<php:Message ID="AnyMessage">${Example2Message2}</php:Message></code></pre>
<p>${ObjectModelText7}</p>
<pre><code class="php">function Load()
{
$this->Controls['MyMessage1']->Content = '${Example3Message1}';
$this->Controls['AnyMessage']->Content = '${Example3Message2}';
}</code></pre>
<p>${ObjectModelText8}</p>
<p>${ObjectModelText9}</p>
<php:TabControl>
<php:Items>
<php:TabItem Key="TabControl" Title="TabControl.php">
<pre><code class="php"><?=str_replace("\t", ' ', \Nemiro\Text::HtmlEncode(file_get_contents(\Nemiro\Server::MapPath('~/Controls/TabControl.php'))))?></code></pre>
</php:TabItem>
<php:TabItem Key="TabItem" Title="TabItem.php">
<pre><code class="php"><?=str_replace("\t", ' ', \Nemiro\Text::HtmlEncode(file_get_contents(\Nemiro\Server::MapPath('~/Controls/TabItem.php'))))?></code></pre>
</php:TabItem>
<php:TabItem Key="TabControlHtml" Title="TabControl.html.php">
<pre><code class="html"><?=str_replace("\t", ' ', \Nemiro\Text::HtmlEncode(file_get_contents(\Nemiro\Server::MapPath('~/Controls/TabControl.html.php'))))?></code></pre>
</php:TabItem>
</php:Items>
</php:TabControl>
<p>${ObjectModelText10}</p>
<p>${ObjectModelText11}</p>
<pre><code class="html"><php:TabControl>
<php:Items>
<php:TabItem Key="Item1" Title="${Tab} #1">
${TabContent} #1
</php:TabItem>
<php:TabItem Key="Item2" Title="${Tab} #2">
${TabContent} #2
</php:TabItem>
<php:TabItem Key="Item3" Title="${Tab} #3">
${TabContent} #3
</php:TabItem>
</php:Items>
</php:TabControl></code></pre>
<h2 id="control">${Class} Control</h2>
<p>${ClassControlText1}</p>
<p>${ClassControlText2}</p>
<p>${ClassControlText3}</p>
<p>${ClassControlText4}</p>
<pre><code class="php"><?php
class Menu extends \Nemiro\UI\Control
{
}
?></code></pre>
<h3 id="properties">${Properties}</h3>
<p>${PropertiesControlText1}</p>
<table class="table">
<thead>
<tr>
<th>${Property}</th>
<th><nobr>${ValueType}</nobr></th>
<th>${Description}</th>
</tr>
</thead>
<tbody>
<tr>
<td>DefaultValues</td>
<td>${Dictionary}</td>
<td>
<strong>${ReadOnly}.</strong> ${ControlDefaultValues}
</td>
</tr>
<tr>
<td>Source</td>
<td>${String}</td>
<td>
<strong>${ReadOnly}.</strong> ${ControlSource}
</td>
</tr>
<tr>
<td>TagPrefix</td>
<td>${String}</td>
<td>
<strong>${ReadOnly}.</strong> ${ControlTagPrefix}
</td>
</tr>
<tr>
<td>TagName</td>
<td>${String}</td>
<td>
<strong>${ReadOnly}.</strong> ${ControlTagName}
</td>
</tr>
<tr>
<td>Name</td>
<td>${String}</td>
<td>
<strong>${ReadOnly}.</strong> ${ControlName}
</td>
</tr>
<tr>
<td>Parent</td>
<td>${Object}</td>
<td>
<strong>${ReadOnly}.</strong> ${ControlParent}
</td>
</tr>
<tr>
<td>Body</td>
<td>${String}</td>
<td>${ControlBody}</td>
</tr>
</tbody>
</table>
<p>${PropertiesControlText2}</p>
<p>${PropertiesControlText3}</p>
<p>${PropertiesControlText4}</p>
<pre><code class="html"><php:Message>${PropertiesControlText5}</php:Message>
<php:Message Content="${PropertiesControlText6}" /></code></pre>
<h3 id="events">${Events}</h3>
<p>${EventsControlText1}</p>
<p>${EventsControlText2}</p>
<h4 id="load">Load</h4>
<p>${EventLoadText1}</p>
<p>${EventLoadText2}</p>
<p>${EventLoadText3}</p>
<p>${EventLoadText4}</p>
<pre><code class="php"><?php
class Message extends \Nemiro\UI\Control
{
public $Content = '';
function Load()
{
$this->Content = '${ExampleEventsMessageText1}: '.$this->Content;
}
}
?></code></pre>
<h4 id="loadComplete">LoadComplete</h4>
<p>${EventLoadCompleteText1}</p>
<p>${EventLoadCompleteText2}</p>
<p>${EventLoadCompleteText3}</p>
<pre><code class="php"><?php
class Message extends \Nemiro\UI\Control
{
public $Content = '';
function LoadComplete()
{
$this->Body = '${ExampleEventsMessageText2}: '.$this->Content;
}
}
?></code></pre>
<h2 id="localization">${Localization}</h2>
<p>${LocalizationText1}</p>
<p><a href="/localization.php${Lang}">${ReadMoreAboutLocalization}</a>.</p>
</php:Content>
</body>
</html>