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
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
|
<?
# Lifter002: TODO
# Lifter007: TODO
# Lifter003: TODO
# Lifter010: TODO
/**
* ExternEditHtml.class.php
*
* Form templates to edit values of html-tag attributes.
*
*
* @author Peter Thienel <pthienel@web.de>, Suchi & Berg GmbH <info@data-quest.de>
* @access public
* @modulegroup extern
* @module ExternEditHtml
* @package studip_extern
*/
// +---------------------------------------------------------------------------+
// This file is part of Stud.IP
// ExternEditHtml.class.php
// Form templates to edit values of html-tag attributes.
// Copyright (C) 2003 Peter Thienel <pthienel@web.de>,
// Suchi & Berg GmbH <info@data-quest.de>
// +---------------------------------------------------------------------------+
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or any later version.
// +---------------------------------------------------------------------------+
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// +---------------------------------------------------------------------------+
require_once "lib/extern/views/ExternEditGeneric.class.php";
class ExternEditHtml extends ExternEditGeneric {
function __construct (&$config, $form_values = "", $faulty_values = "",
$edit_element = "") {
parent::__construct($config, $form_values, $faulty_values, $edit_element);
}
/**
* Prints out a form for entering the height of a html-element (e.g. <tr>, <th>)
*
* @access public
* @param string attribute The name of the attribute (syntax: HTML-TAG_HTML-ATTRIBUTE).
* @return string A complete table row includes a closed table with the form.
*/
function editHeight ($attribute) {
$info = _("Geben Sie die Höhe der Tabellenzeile in Pixeln an.");
$form_name = $this->element_name . "_" . $attribute;
$value = $this->getValue($attribute);
$invalidClass = $this->faulty_values[$form_name][0] ? "class=\"invalid\" " : "";
$out = "<label $invalidClass for=\"$form_name\">";
$out .= _("Zeilenhöhe:");
$out .= tooltipIcon($info);
$out .= "</label>";
$out .= "<section class=\"hgroup\">";
$out .= "<label>";
$out .= "<input type=\"text\" name=\"$form_name\" size=\"3\"";
$out .= " maxlength=\"3\" class=\"no-hint \" value=\"$value\"> Pixel";
$out .= "</label>";
$out .= "</section>";
return $out;
}
/**
* Prints out a form for entering the border-width of a table.
*
* @access public
* @param string attribute The name of the attribute (syntax: HTML-TAG_HTML-ATTRIBUTE).
* @return string A complete table row includes a closed table with the form.
*/
function editBorder ($attribute) {
$info = _("Geben Sie die Breite des äußeren Tabellenrahmens in Pixeln an.");
$form_name = $this->element_name . "_" . $attribute;
$value = $this->getValue($attribute);
$invalidClass = $this->faulty_values[$form_name][0] ? "class=\"invalid\" " : "";
$out = "<label $invalidClass for=\"$form_name\">";
$out .= _("Rahmendicke:");
$out .= tooltipIcon($info);
$out .= "<section class=\"hgroup\">";
$out .= "<input type=\"text\" name=\"$form_name\" size=\"2\"";
$out .= " maxlength=\"2\" class=\"no-hint size-s \" value=\"$value\"> Pixel";
$out .= "</section>";
$out .= "</label>";
return $out;
}
/**
* Prints out a form for entering the font-color.
*
* @access public
* @param string attribute The name of the attribute (syntax: HTML-TAG_HTML-ATTRIBUTE).
* @return string A complete table row includes a closed table with the form.
*/
function editColor ($attribute) {
$info = _("Geben Sie einen HTML-Farbnamen oder eine Farbe im Hex-Format (#RRGGBB) in das Textfeld ein, oder wählen Sie eine Farbe aus der Auswahlliste.");
$titel = _("Schriftfarbe");
return $this->editColorGeneric($attribute, $titel, $info);
}
/**
* Prints out a form for entering the backgroung-color of a table- or td-tag
*
* @access public
* @param string attribute The name of the attribute (syntax: HTML-TAG_HTML-ATTRIBUTE).
* @return string A complete table row includes a closed table with the form.
*/
function editBgcolor ($attribute) {
$info = _("Geben Sie einen HTML-Farbnamen oder eine Farbe im Hex-Format (#RRGGBB) in das Textfeld ein, oder wählen Sie eine Farbe aus der Auswahlliste.");
$title = _("Hintergrundfarbe:");
return $this->editColorGeneric($attribute, $title, $info);
}
/**
* Prints out a form for entering the bordercolor of a table.
*
* @access public
* @param string attribute The name of the attribute (syntax: HTML-TAG_HTML-ATTRIBUTE).
* @return string A complete table row includes a closed table with the form.
*/
function editBordercolor ($attribute) {
$info = _("Geben Sie einen HTML-Farbnamen oder eine Farbe im Hex-Format (#RRGGBB) in das Textfeld ein, oder wählen Sie eine Farbe aus der Auswahlliste.");
$title = _("Rahmenfarbe");
return $this->editColorGeneric($attribute, $title, $info);
}
/**
* Prints out a form for entering the second backgroung-color of a td- or th-tag (only for
* zebra-effect.
*
* @param string name The name of the text field.
* @param string value The value for the text pre-emption.
*/
function editBgcolor2 ($attribute) {
$info = _("Geben Sie einen HTML-Farbnamen oder eine Farbe im Hex-Format (#RRGGBB) in das Textfeld ein, oder wählen Sie eine Farbe aus der Auswahlliste. ");
$info .= _("Diese Farbe wird als zweite Farbe bei aktiviertem Zebra-Effekt ausgegeben.");
$title = _("2. Hintergrundf.:");
return $this->editColorGeneric($attribute, $title, $info);
}
/**
* Prints out a form for entering the link color in the body tag
*
* @param string name The name of the text field.
* @param string value The value for the text pre-emption.
*/
function editText ($attribute) {
$info = _("Geben Sie einen HTML-Farbnamen oder eine Farbe im Hex-Format (#RRGGBB) in das Textfeld ein, oder wählen Sie eine Farbe aus der Auswahlliste. ");
$info .= _("Diese Farbe wird seitenweit als Schriftfarbe benutzt.");
$title = _("Schriftfarbe:");
return $this->editColorGeneric($attribute, $title, $info);
}
/**
* Prints out a form for entering the link color in the body tag
*
* @param string name The name of the text field.
* @param string value The value for the text pre-emption.
*/
function editLink ($attribute) {
$info = _("Geben Sie einen HTML-Farbnamen oder eine Farbe im Hex-Format (#RRGGBB) in das Textfeld ein, oder wählen Sie eine Farbe aus der Auswahlliste. ");
$info .= _("Diese Farbe wird seitenweit für Verweise zu noch nicht besuchten Zielen benutzt.");
$title = _("Linkfarbe (nicht besucht):");
return $this->editColorGeneric($attribute, $title, $info);
}
/**
* Prints out a form for entering the link color in the body tag
*
* @param string name The name of the text field.
* @param string value The value for the text pre-emption.
*/
function editVlink ($attribute) {
$info = _("Geben Sie einen HTML-Farbnamen oder eine Farbe im Hex-Format (#RRGGBB) in das Textfeld ein, oder wählen Sie eine Farbe aus der Auswahlliste. ");
$info .= _("Diese Farbe wird seitenweit für Verweise zu bereits besuchten Zielen benutzt.");
$title = _("Linkfarbe (besucht):");
return $this->editColorGeneric($attribute, $title, $info);
}
/**
* Prints out a form for entering the link color in the body tag
*
* @param string name The name of the text field.
* @param string value The value for the text pre-emption.
*/
function editAlink ($attribute) {
$info = _("Geben Sie einen HTML-Farbnamen oder eine Farbe im Hex-Format (#RRGGBB) in das Textfeld ein, oder wählen Sie eine Farbe aus der Auswahlliste. ");
$info .= _("Diese Farbe wird seitenweit für aktivierte Verweise benutzt.");
$title = _("Linkfarbe (aktiviert):");
return $this->editColorGeneric($attribute, $title, $info);
}
/**
* Prints out a text field and a selection list for entering the color of
* a table border.
*
* The name of the text field is given by $name. The name of the selection list
* is $name . "_list".
*
* @param string title the
* @param string name the name of the text field and selection list
* @param string value
*/
function editColorGeneric ($attribute, $title, $info) {
$form_name = $this->element_name . "_" . $attribute;
$value = $this->getValue($attribute);
$colors = [_("keine Auswahl") => "", "aliceblue" => "#F0F8FF", "antiquewhite" => "#FAEBD7",
"aquamarine" => "#7FFFD4", "azure" => "#F0FFFF", "beige" => "#F5F5DC",
"blueviolet" => "#8A2BE2", "brown" => "#A52A2A", "burlywood" => "#DEB887",
"cadetblue" => "#5F9EA0", "chartreuse" => "#7FFF00",
"chocolate" => "#D2691E", "coral" => "#FF7F50",
"cornflowerblue" => "#6495ED", "cornsilk" => "#FFF8DC",
"crimson" => "#DC143C", "darkblue" => "#00008B", "darkcyan" => "#008B8B",
"darkgoldenrod" => "#B8860B", "darkgray" => "#A9A9A9",
"darkgreen" => "#006400", "darkkhaki" => "#BDB76B",
"darkmagenta" => "#8B008B", "darkolivegreen" => "#556B2F",
"darkorange" => "#FF8C00", "darkorchid" => "#9932CC",
"darkred" => "#8B0000", "darksalmon" => "#E9967A",
"darkseagreen" => "#8FBC8F", "darkslateblue" => "#483D8B",
"darkslategray" => "#2F4F4F", "darkturquoise" => "#00CED1",
"darkviolet" => "#9400D3", "deeppink" => "#FF1493",
"deepskyblue" => "#00BFFF", "dimgray" => "#696969",
"dodgerblue" => "#1E90FF", "firebrick" => "#B22222",
"floralwhite" => "#FFFAF0", "forestgreen" => "#228B22",
"gainsboro" => "#DCDCDC", "ghostwhite" => "#F8F8FF", "gold" => "#FFD700",
"goldenrod" => "#DAA520", "greenyellow" => "#ADFF2F",
"honeydew" => "#F0FFF0", "hotpink" => "#FF69B4", "indianred" => "#CD5C5C",
"indigo" => "#4B0082", "ivory" => "#FFFFF0", "khaki" => "#F0E68C",
"lavender" => "#E6E6FA", "lavenderblush" => "#FFF0F5",
"lawngreen" => "#7CFC00", "lemonchiffon" => "#FFFACD",
"lightblue" => "#ADD8E6", "lightcoral" => "#F08080",
"lightcyan" => "#E0FFFF", "lightgoldenrodyellow" => "#FAFAD2",
"lightgreen" => "#90EE90", "lightgrey" => "#D3D3D3",
"lightpink" => "#FFB6C1", "lightsalmon" => "#FFA07A",
"lightseagreen" => "#20B2AA", "lightskyblue" => "#87CEFA",
"lightslategray" => "#778899", "lightsteelblue" => "#B0C4DE",
"lightyellow" => "#FFFFE0", "limegreen" => "#32CD32",
"linen" => "#FAF0E6", "mediumaquamarine" => "#66CDAA",
"mediumblue" => "#0000CD", "mediumorchid" => "#BA55D3",
"mediumpurple" => "#9370DB", "mediumseagreen" => "#3CB371",
"mediumslateblue" => "#7B68EE", "mediumspringgreen" => "#00FA9A",
"mediumturquoise" => "#48D1CC", "mediumvioletred" => "#C71585",
"midnightblue" => "#191970", "mintcream" => "#F5FFFA",
"mistyrose" => "#FFE4E1", "moccasin" => "#FFE4B5",
"navajowhite" => "#FFDEAD", "oldlace" => "#FDF5E6",
"olivedrab" => "#6B8E23", "orange" => "#FFA500", "orangered" => "#FF4500",
"orchid" => "#DA70D6", "palegoldenrod" => "#EEE8AA", "palegreen" => "#98FB98",
"paleturquoise" => "#AFEEEE", "palevioletred" => "#DB7093", "papayawhip" => "#FFEFD5",
"peachpuff" => "#FFDAB9", "peru" => "#CD853F", "pink" => "#FFC0CB",
"plum" => "#DDA0DD", "powderblue" => "#B0E0E6", "rosybrown" => "#BC8F8F",
"royalblue" => "#4169E1", "saddlebrown" => "#8B4513", "salmon" => "#FA8072",
"sandybrown" => "#F4A460", "seagreen" => "#2E8B57", "seashell" => "#FFF5EE",
"sienna" => "#A0522D", "skyblue" => "#87CEEB", "slateblue" => "#6A5ACD",
"slategray" => "#708090", "snow" => "#FFFAFA", "springgreen" => "#00FF7F",
"steelblue" => "#4682B4", "tan" => "#D2B48C", "thistle" => "#D8BFD8",
"tomato" => "#FF6347", "turquoise" => "#40E0D0", "violet" => "#EE82EE",
"wheat" => "#F5DEB3", "whitesmoke" => "#F5F5F5", "yellowgreen" => "#9ACD32"];
$invalidClass = $this->faulty_values[$form_name][0] ? "class=\"invalid\" " : "";
$out = "<label $invalidClass for=\"_${form_name}\">$title";
$out .= tooltipIcon($info);
$out .= "<section class=\"hgroup\">";
$out .= "<input type=\"text\" name=\"$form_name\" class=\"no-hint\" ";
$out .= " maxlength=\"20\" value=\"$value\">\n";
$out .= "<select name=\"_{$form_name}\"";
$out .= "onChange=\"document.edit_form.{$form_name}.value=document.edit_form._{$form_name}.";
$out .= "options[document.edit_form._{$form_name}.selectedIndex].value;\" ";
$out .= " class=\"nested-select\">\n";
foreach ($colors as $color_name => $color_value) {
if ($value == $color_value) {
$out .= "<option selected=\"selected\" ";
} else {
$out .= "<option ";
}
if (!$color_value) {
$out .= ' class="is-placeholder" ';
}
$out .= "data-text-color=\"$color_value\" value=\"$color_value\">";
$out .= $color_name . "</option>";
}
$out .= "</select>";
$out .= "</section>";
$out .= "</label>";
return $out;
}
/**
* Prints out a form for entering the cellpadding of a table.
*
* @access public
* @param string attribute The name of the attribute (syntax: HTML-TAG_HTML-ATTRIBUTE).
* @return string A complete table row includes a closed table with the form.
*/
function editCellpadding ($attribute) {
$info = _("Geben Sie den Abstand zwischen Zelleninhalt und Zellenrand in Pixeln an.");
$form_name = $this->element_name . "_" . $attribute;
$value = $this->getValue($attribute);
$invalidClass = $this->faulty_values[$form_name][0] ? "class=\"invalid\" " : "";
$out = "<label $invalidClass>";
$out .= _("Cellpadding:");
$out .= tooltipIcon($info);
$out .= "<section class=\"hgroup\">";
$out .= "<input type=\"text\" name=\"$form_name\" size=\"2\"";
$out .= " maxlength=\"2\" class=\"no-hint size-s \" value=\"$value\"> Pixel";
$out .= "</section>";
$out .= "</label>";
return $out;
}
/**
* Prints out a form for entering the cellspacing of a table.
*
* @access public
* @param string attribute The name of the attribute (syntax: HTML-TAG_HTML-ATTRIBUTE).
* @return string A complete table row includes a closed table with the form.
*/
function editCellspacing ($attribute) {
$info = _("Geben Sie den Abstand zwischen benachbarten Zellen in Pixeln an.");
$form_name = $this->element_name . "_" . $attribute;
$value = $this->getValue($attribute);
$invalidClass = $this->faulty_values[$form_name][0] ? "class=\"invalid\" " : "";
$out = "<label ".$invalidClass.">";
$out .= _("Cellspacing:");
$out .= tooltipIcon($info);
$out .= "<section class=\"hgroup\">";
$out .= "<input type=\"text\" name=\"$form_name\" size=\"2\"";
$out .= " maxlength=\"2\" class=\"no-hint size-s\" value=\"$value\"> Pixel";
$out .= "</section>";
$out .= "</label>";
return $out;
}
/**
* Prints out a form for entering the width of a html-element (e.g. <td>, <table>).
*
* @access public
* @param string attribute The name of the attribute (syntax: HTML-TAG_HTML-ATTRIBUTE).
* @return string A complete table row includes a closed table with the form.
*/
function editWidth ($attribute) {
$info = _("Geben Sie die Breite des Elements in Prozent oder Pixeln an.");
$form_name = $this->element_name . "_" . $attribute;
$value = $this->getValue($attribute);
$value_pp = "";
if (mb_substr($value, -1) == "%") {
$value_pp = "%";
$value = mb_substr($value, 0, -1);
}
$invalidClass = $this->faulty_values[$form_name][0] ? "class=\"invalid\" " : "";
$out = "<label $invalidClass for=\"$form_name\">";
$out .= _("Breite:");
$out .= tooltipIcon($info);
$out .= "</label>";
$out .= "<section class=\"hgroup\">";
$out .= "<input type=\"text\" name=\"$form_name\" size=\"3\"";
$out .= " maxlength=\"3\" class=\"no-hint size-s\" value=\"$value\"> \n";
$out .= "<label $invalidClass>";
$out .= "<input type=\"radio\" name=\"{$form_name}pp\" value=\"%\"";
if ($value_pp == "%")
$out .= " checked=\"checked\"";
$out .= ">";
$out .= _("Prozent");
$out .= "</label><label $invalidClass>";
$out .= "<input type=\"radio\" name=\"";
$out .= $form_name . "pp\" value=\"\"";
if ($value_pp == "")
$out .= " checked=\"checked\"";
$out .= ">";
$out .= _("Pixel");
$out .= "</label>";
$out .= "</section>";
return $out;
}
/**
* Prints out a form for entering the horizontal alignment of a html-element (e.g. <td>, <table>).
*
* @access public
* @param string attribute The name of the attribute (syntax: HTML-TAG_HTML-ATTRIBUTE).
* @return string A complete table row includes a closed table with the form.
*/
function editAlign ($attribute) {
$info = _("Wählen Sie aus der Auswahlliste die Art der horizontalen Ausrichtung.");
$form_name = $this->element_name . "_" . $attribute;
$value = $this->getValue($attribute);
$align_types = [
"" => _("keine Auswahl"),
"left" => _("linksbündig"),
"right" => _("rechtsbündig"),
"center" => _("zentriert")
];
$invalidClass = $this->faulty_values[$form_name][0] ? "class=\"invalid\" " : "";
$out = "<label $invalidClass>";
$out .= _("horizontale Ausrichtung:")."\n";
$out .= tooltipIcon($info);
$out .= "<select name=\"$form_name\" size=\"1\">\n";
foreach ($align_types as $align_type => $align_name) {
if ($value == $align_type)
$out .= "<option selected=\"selected\" ";
else
$out .= "<option ";
$out .= "value=\"$align_type\">";
$out .= $align_name . "</option>";
}
$out .= "</select>";
$out .= "</label>";
return $out;
}
/**
* Prints out a form for entering the vertikal alignment of a html-element (e.g. <td>, <table>).
*
* @access public
* @param string attribute The name of the attribute (syntax: HTML-TAG_HTML-ATTRIBUTE).
* @return string A complete table row includes a closed table with the form.
*/
function editValign ($attribute) {
$info = _("Wählen Sie aus der Auswahlliste die Art der vertikalen Ausrichtung.");
$form_name = $this->element_name . "_" . $attribute;
$value = $this->getValue($attribute);
$valign_types = [
"" => _("keine Auswahl"),
"top" => _("obenbündig"),
"bottom" => _("untenbündig"),
"center" => _("zentriert")
];
$invalidClass = $this->faulty_values[$form_name][0] ? "class=\"invalid\" " : "";
$out = "<label $invalidClass>";
$out .= _("vertikale Ausrichtung:")."\n";
$out .= "<select name=\"$form_name\" size=\"1\">\n";
foreach ($valign_types as $valign_type => $valign_name) {
if ($value == $valign_type)
$out .= "<option selected=\"selected\" ";
else
$out .= "<option ";
$out .= "value=\"$valign_type\">";
$out .= $valign_name . "</option>";
}
$out .= "</select>";
$out .= "</label>";
return $out;
}
/**
* Prints out a form for entering the font-size.
*
* @access public
* @param string attribute The name of the attribute (syntax: HTML-TAG_HTML-ATTRIBUTE).
* @return string A complete table row includes a closed table with the form.
*/
function editSize ($attribute) {
$info = _("Geben Sie die relative Schriftgröße an.");
$title = _("Schriftgröße:");
$values = ["", "1", "2", "3", "4", "5", "6", "7"];
$names = [_("keine Auswahl"), "1", "2", "3", "4", "5", "6", "7"];
return $this->editOptionGeneric($attribute, $title, $info, $values, $names, 1, FALSE);
}
/**
* Prints out a form for entering the font-face.
*
* @access public
* @param string attribute The name of the attribute (syntax: HTML-TAG_HTML-ATTRIBUTE).
* @return string A complete table row includes a closed table with the form.
*/
function editFace ($attribute) {
$title = _("Schriftart:");
$info = _("Wählen Sie eine Schriftart aus.");
return $this->editFaceGeneric($attribute, $title, $info);
}
/**
* Prints out a form for entering the css-classname of a html-element.
*
* @access public
* @param string attribute The name of the attribute (syntax: HTML-TAG_HTML-ATTRIBUTE).
* @return string A complete table row includes a closed table with the form.
*/
function editClass ($attribute) {
$info = _("Geben Sie einen CSS-Klassennamen aus Ihrer Stylesheet-Definition an.");
$title = _("CSS-Klasse:");
return $this->editTextfieldGeneric($attribute, $title, $info, 30, 128);
}
/**
* Prints out a form for entering css-styles of a html-element
*
* @access public
* @param string attribute The name of the attribute (syntax: HTML-TAG_HTML-ATTRIBUTE).
* @return string A complete table row includes a closed table with the form.
*/
function editStyle ($attribute) {
$info = _("Geben Sie Style-Sheet-Angaben ein.");
$title = _("Style:");
return $this->editTextfieldGeneric($attribute, $title, $info, 35, 250);
}
/**
* Prints out a form for entering the title of a html-page.
*
* @access public
* @param string attribute The name of the attribute (syntax: HTML-TAG_HTML-ATTRIBUTE).
* @return string A complete table row includes a closed table with the form.
*/
function editTitle ($attribute) {
$info = _("Geben Sie einen Seitentitel an.");
$title = _("Seiten-Titel:");
return $this->editTextfieldGeneric($attribute, $title, $info, 35, 128);
}
/**
* Prints out a form for choosing between a horizontal or vertikal zebra-effect
* on table rows/columns.
*
* @access public
* @param string attribute The name of the attribute (syntax: HTML-TAG_HTML-ATTRIBUTE).
* @return string A complete table row includes a closed table with the form.
*/
function editZebraTd ($attribute) {
$info = _("Aktivieren Sie einen vertikalen oder horizontalen Zebra-Effekt für Tabellenzeilen/-spalten. ");
$info .= _("Geben Sie hierfür eine zweite Hintergrundfarbe an.");
$title = _("Zebra-Effekt:");
$names = [_("aus"), _("horizontal"), _("vertikal")];
$values = ["", "HORIZONTAL", "VERTICAL"];
return $this->editRadioGeneric($attribute, $title, $info, $values, $names);
}
/**
* Prints out a form for activating a zebra-effect on th-tags.
*
* @access public
* @param string attribute The name of the attribute (syntax: HTML-TAG_HTML-ATTRIBUTE).
* @return string A complete table row includes a closed table with the form.
*/
function editZebraTh ($attribute) {
$info = _("Aktivieren Sie einen Zebra-Effekt für die Spaltenüberschriften. ");
$info .= _("Geben Sie hierfür eine zweite Hintergrundfarbe an.");
$title = _("Zebra-Effekt:");
$names = [_("aus"), _("an")];
$values = ["", "1"];
return $this->editRadioGeneric($attribute, $title, $info, $values, $names);
}
/**
* Prints out a form for entering the URL of a background picture for the hole document.
*
* @access public
* @param string attribute The name of the attribute (syntax: HTML-TAG_HTML-ATTRIBUTE).
* @return string A complete table row includes a closed table with the form.
*/
function editBackground ($attribute) {
$info = _("Geben Sie die URL eines Bildes an, das als Hintergrundbild für die gesamte Seite dienen soll.");
$title = _("Hintergrundbild:");
return $this->editTextfieldGeneric($attribute, $title, $info, 35, 150);
}
}
?>
|