Passed
Push — master ( 41940e...005d4f )
by Michael
36s queued 18s
created

admin/colors.php (1 issue)

Labels
Severity
1
<?php
2
/*
3
 * You may not change or alter any portion of this comment or credits
4
 * of supporting developers from this source code or any supporting source code
5
 * which is considered copyrighted (c) material of the original comment or credit authors.
6
 *
7
 * This program is distributed in the hope that it will be useful,
8
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
 */
11
12
/**
13
 * @copyright       {@link https://xoops.org/ XOOPS Project}
14
 * @license         {@link http://www.gnu.org/licenses/gpl-2.0.html GNU GPL 2 or later}
15
 * @package         pedigree
16
 * @since
17
 * @author          XOOPS Module Dev Team
18
 */
19
20
use XoopsModules\Pedigree;
21
22
require_once  dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
23
24
$helper = Pedigree\Helper::getInstance();
25
$helper->loadLanguage('main');
26
27
require_once $helper->path('admin/menu.php');
28
29
xoops_cp_header();
30
31
$c = Request::getString('c', null, 'GET');
0 ignored issues
show
The type Request was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
32
33
if (null == $c) {
34
    $SQL    = 'SELECT conf_value FROM ' . $GLOBALS['xoopsDB']->prefix('config') . " WHERE conf_name = 'pedigreeColours'";
35
    $result = $GLOBALS['xoopsDB']->query($SQL);
36
    while (false !== ($row = $GLOBALS['xoopsDB']->fetchArray($result))) {
37
        $c = $row['conf_value'];
38
    }
39
}
40
41
$colors = explode(';', $c);
42
//define text-string makeup
43
$mainBackColour     = $colors[0];
44
$selectedBackColour = $colors[1];
45
$selectedTextColour = $colors[2];
46
$selectedTextFont   = $colors[3];
47
$selectedTextSize   = $colors[4];
48
$selectedTextStyle  = $colors[5];
49
$maleBackColour     = $colors[6];
50
$maleTextColour     = $colors[7];
51
$maleTextFont       = $colors[8];
52
$maleTextSize       = $colors[9];
53
$maleTextStyle      = $colors[10];
54
$femaleBackColour   = $colors[11];
55
$femaleTextColour   = $colors[12];
56
$femaleTextFont     = $colors[13];
57
$femaleTextSize     = $colors[14];
58
$femaleTextStyle    = $colors[15];
59
$borderStyle        = $colors[16];
60
$borderWidth        = $colors[17];
61
$borderColour       = $colors[18];
62
63
echo "<script type=\"text/javascript\" src=\"assets/js/picker.js\"></script>\n"
64
   . "<script type=\"text/javascript\" src=\"assets/js/colors.js\"></script>\n";
65
echo '
66
<table id="background" cellspacing="0" style="width: 90%; background-color: #'
67
     . $mainBackColour
68
     . ';">
69
<tr>
70
<td style="text-align: center">
71
<br>
72
73
<table id="spacer" style="width: 100%;">
74
<tr>
75
<td>
76
&nbsp;
77
</td>
78
<td>
79
80
<table id="maintable" cellspacing="0" style="width: 100%; background-color: #'
81
     . $mainBackColour
82
     . ';">
83
    <!-- header (dog name) -->
84
    <tr>
85
        <th colspan="4" style="text-align:center; background-color: #'
86
     . $selectedBackColour
87
     . ';" id="selected1">
88
            Pedigree Database
89
        </th>
90
    </tr>
91
    <tr>
92
        <!-- selected dog -->
93
        <td rowspan="8" style="width: 25%; background-color: #'
94
     . $selectedBackColour
95
     . '; border-style: '
96
     . $borderStyle
97
     . '; border-color: #'
98
     . $borderColour
99
     . '; border-width: '
100
     . $borderWidth
101
     . 'px; color: #'
102
     . $selectedTextColour
103
     . '; font-family: '
104
     . $selectedTextFont
105
     . '; font-size: '
106
     . $selectedTextSize
107
     . '; font-style: '
108
     . $selectedTextStyle
109
     . ';" id="selected2">
110
            Selected animal
111
        </td>
112
        <!-- father -->
113
        <td rowspan="4" style="width: 25%; background-color: #'
114
     . $maleBackColour
115
     . '; color: #'
116
     . $maleTextColour
117
     . '; font-family: '
118
     . $maleTextFont
119
     . '; font-size: '
120
     . $maleTextSize
121
     . '; font-style: '
122
     . $maleTextStyle
123
     . '; border-style: '
124
     . $borderStyle
125
     . '; border-color: #'
126
     . $borderColour
127
     . '; border-width: '
128
     . $borderWidth
129
     . 'px;" id="fathercell1">
130
            Father
131
        </td>
132
        <!-- father father -->
133
        <td rowspan="2" style="width: 25%; background-color: #'
134
     . $maleBackColour
135
     . '; color: #'
136
     . $maleTextColour
137
     . '; font-family: '
138
     . $maleTextFont
139
     . '; font-size: '
140
     . $maleTextSize
141
     . '; font-style: '
142
     . $maleTextStyle
143
     . '; border-style: '
144
     . $borderStyle
145
     . '; border-color: #'
146
     . $borderColour
147
     . '; border-width: '
148
     . $borderWidth
149
     . 'px;" id="fathercell2">
150
            Father Father
151
        </td>
152
        <!-- father father father -->
153
        <td style="width: 25%; background-color: #'
154
     . $maleBackColour
155
     . '; color: #'
156
     . $maleTextColour
157
     . '; font-family: '
158
     . $maleTextFont
159
     . '; font-size: '
160
     . $maleTextSize
161
     . '; font-style: '
162
     . $maleTextStyle
163
     . '; border-style: '
164
     . $borderStyle
165
     . '; border-color: #'
166
     . $borderColour
167
     . '; border-width: '
168
     . $borderWidth
169
     . 'px;" id="fathercell3">
170
            Father Father Father
171
        </td>
172
    </tr>
173
    <tr>
174
        <!-- father father mother -->
175
        <td style="width: 25%; background-color: #'
176
     . $femaleBackColour
177
     . '; color: #'
178
     . $femaleTextColour
179
     . '; font-family: '
180
     . $femaleTextFont
181
     . '; font-size: '
182
     . $femaleTextSize
183
     . '; font-style: '
184
     . $femaleTextStyle
185
     . '; border-style: '
186
     . $borderStyle
187
     . '; border-color: #'
188
     . $borderColour
189
     . '; border-width: '
190
     . $borderWidth
191
     . 'px;" id="mothercell1">
192
            Father Father Mother
193
        </td>
194
    </tr>
195
    <tr>
196
        <!-- father mother -->
197
        <td rowspan="2" style="width: 25%; background-color: #'
198
     . $femaleBackColour
199
     . '; color: #'
200
     . $femaleTextColour
201
     . ';  font-family: '
202
     . $femaleTextFont
203
     . '; font-size: '
204
     . $femaleTextSize
205
     . '; font-style: '
206
     . $femaleTextStyle
207
     . '; border-style: '
208
     . $borderStyle
209
     . '; border-color: #'
210
     . $borderColour
211
     . '; border-width: '
212
     . $borderWidth
213
     . 'px;" id="mothercell2">
214
            Father Mother
215
        </td>
216
        <!-- father mother father -->
217
        <td style="width: 25%; background-color: #'
218
     . $maleBackColour
219
     . '; color: #'
220
     . $maleTextColour
221
     . '; font-family: '
222
     . $maleTextFont
223
     . '; font-size: '
224
     . $maleTextSize
225
     . '; font-style: '
226
     . $maleTextStyle
227
     . '; border-style: '
228
     . $borderStyle
229
     . '; border-color: #'
230
     . $borderColour
231
     . '; border-width: '
232
     . $borderWidth
233
     . 'px;" id="fathercell4">
234
            Father Mother Father
235
        </td>
236
    </tr>
237
    <tr>
238
        <!-- father mother mother -->
239
        <td style="style: 25%; background-color: #'
240
     . $femaleBackColour
241
     . '; color: #'
242
     . $femaleTextColour
243
     . ';  font-family: '
244
     . $femaleTextFont
245
     . '; font-size: '
246
     . $femaleTextSize
247
     . '; font-style: '
248
     . $femaleTextStyle
249
     . '; border-style: '
250
     . $borderStyle
251
     . '; border-color: #'
252
     . $borderColour
253
     . '; border-width: '
254
     . $borderWidth
255
     . 'px;" id="mothercell3">
256
            Father Mother Mother
257
        </td>
258
    </tr>
259
    <tr>
260
        <!-- mother -->
261
        <td rowspan="4" style="width: 25%; background-color: #'
262
     . $femaleBackColour
263
     . '; color: #'
264
     . $femaleTextColour
265
     . '; font-family: '
266
     . $femaleTextFont
267
     . '; font-size: '
268
     . $femaleTextSize
269
     . '; font-style: '
270
     . $femaleTextStyle
271
     . '; border-style: '
272
     . $borderStyle
273
     . '; border-color: #'
274
     . $borderColour
275
     . '; border-width: '
276
     . $borderWidth
277
     . 'px;" id="mothercell4">
278
            Mother
279
        </td>
280
        <!-- mother father -->
281
        <td rowspan="2" style="width: 25%; background-color: #'
282
     . $maleBackColour
283
     . '; color: #'
284
     . $maleTextColour
285
     . '; font-family: '
286
     . $maleTextFont
287
     . '; font-size: '
288
     . $maleTextSize
289
     . '; font-style: '
290
     . $maleTextStyle
291
     . '; border-style: '
292
     . $borderStyle
293
     . '; border-color: #'
294
     . $borderColour
295
     . '; border-width: '
296
     . $borderWidth
297
     . 'px;" id="fathercell5">
298
            Mother Father
299
        </td>
300
        <!-- mother father father -->
301
        <td style="width: 25%; background-color: #'
302
     . $maleBackColour
303
     . '; color: #'
304
     . $maleTextColour
305
     . '; font-family: '
306
     . $maleTextFont
307
     . '; font-size: '
308
     . $maleTextSize
309
     . '; font-style: '
310
     . $maleTextStyle
311
     . '; border-style: '
312
     . $borderStyle
313
     . '; border-color: #'
314
     . $borderColour
315
     . '; border-width: '
316
     . $borderWidth
317
     . 'px;" id="fathercell6">
318
            Mother Father Father
319
        </td>
320
    </tr>
321
    <tr>
322
        <!-- mother father mother -->
323
        <td style="width: 25%; background-color: #'
324
     . $femaleBackColour
325
     . '; color: #'
326
     . $femaleTextColour
327
     . ';  font-family: '
328
     . $femaleTextFont
329
     . '; font-size: '
330
     . $femaleTextSize
331
     . '; font-style: '
332
     . $femaleTextStyle
333
     . '; border-style: '
334
     . $borderStyle
335
     . '; border-color: #'
336
     . $borderColour
337
     . '; border-width: '
338
     . $borderWidth
339
     . 'px;" id="mothercell5">
340
            Mother Father Mother
341
        </td>
342
    </tr>
343
    <tr>
344
        <!-- mother mother -->
345
        <td rowspan="2" style="width: 25%; background-color: #'
346
     . $femaleBackColour
347
     . '; color: #'
348
     . $femaleTextColour
349
     . '; font-family: '
350
     . $femaleTextFont
351
     . '; font-size: '
352
     . $femaleTextSize
353
     . '; font-style: '
354
     . $femaleTextStyle
355
     . '; border-style: '
356
     . $borderStyle
357
     . '; border-color: #'
358
     . $borderColour
359
     . '; border-width: '
360
     . $borderWidth
361
     . 'px;" id="mothercell6">
362
            Mother Mother
363
        </td>
364
        <!-- mother mother father -->
365
        <td style="width: 25%; background-color: #'
366
     . $maleBackColour
367
     . '; color: #'
368
     . $maleTextColour
369
     . '; font-family: '
370
     . $maleTextFont
371
     . '; font-size: '
372
     . $maleTextSize
373
     . '; font-style: '
374
     . $maleTextStyle
375
     . '; border-style: '
376
     . $borderStyle
377
     . '; border-color: #'
378
     . $borderColour
379
     . '; border-width: '
380
     . $borderWidth
381
     . 'px;" id="fathercell7">
382
            Mother Mother Father
383
        </td>
384
    </tr>
385
    <tr>
386
        <!-- mother mother mother -->
387
        <td style="width: 25%; background-color: #'
388
     . $femaleBackColour
389
     . '; color: #'
390
     . $femaleTextColour
391
     . '; font-family: '
392
     . $femaleTextFont
393
     . '; font-size: '
394
     . $femaleTextSize
395
     . '; font-style: '
396
     . $femaleTextStyle
397
     . '; border-style: '
398
     . $borderStyle
399
     . '; border-color: #'
400
     . $borderColour
401
     . '; border-width: '
402
     . $borderWidth
403
     . 'px;" id="mothercell7">
404
            Mother Mother Mother
405
        </td>
406
    </tr>
407
</table>
408
409
</td>
410
<td>
411
&nbsp;
412
</td>
413
</tr>
414
</table>
415
416
<br>
417
</td>
418
</tr>
419
</table>
420
421
422
<table>
423
    <tr>
424
        <td style="width: 25%; vertical-align: top;">
425
            <div style="text-align: center;">Selected properties</div>
426
            <form name="myForm" action=\'savecolors.php\' method=\'POST\'>'
427
         . $GLOBALS['xoopsSecurity']->getTokenHTML()
428
         . '<hr style="width: 90%;">
429
            <table>
430
                <tr>
431
                    <td style="width: 50%;">Background colour</td>
432
                    <td>
433
                        <input type="text" id="sbgcolor" name="sbgcolor" value="#'
434
     . $selectedBackColour
435
     . '" size="11" maxlength="7">
436
                        <!-- Color Picker initialization and ancor icon to call a picker -->
437
                        <a href="javascript:TCP.popup(document.forms[\'myForm\'].elements[\'sbgcolor\'])">
438
                        <img style="width: 15px; height: 13px; border-width: 0px;" alt="Click here to pick the color" src="img/sel.gif"></a>
439
                    </td>
440
                </tr>
441
                <tr>
442
                    <td>Text colour</td>
443
                    <td>
444
                        <input type="text" id="stxtcolor" name="stxtcolor" value="#'
445
     . $selectedTextColour
446
     . '" size="11" maxlength="7">
447
                        <!-- Color Picker initialization and ancor icon to call a picker -->
448
                        <a href="javascript:TCP.popup(document.forms[\'myForm\'].elements[\'stxtcolor\'])">
449
                        <img style="width: 15px; height: 13px; border-width: 0px;" alt="Click here to pick the color" src="img/sel.gif"></a>
450
                    </td>
451
                </tr>
452
                <tr>
453
                    <td>Font</td>
454
                    <td>
455
                        <select id=\'sfont\' name="sfont" onchange="changeCol()">
456
                        <option value=\''
457
     . $selectedTextFont
458
     . '\' selected>'
459
     . $selectedTextFont
460
     . '</option>
461
                        <option value=\'Arial\'>Arial</option>
462
                        <option value=\'Courier\'>Courier</option>
463
                        <option value=\'Georgia\'>Georgia</option>
464
                        <option value=\'Helvetica\'>Helvetica</option>
465
                        <option value=\'Impact\'>Impact</option>
466
                        <option value=\'Verdana\'>Verdana</option>
467
                        </select>
468
                    </td>
469
                </tr>
470
                <tr>
471
                    <td>Size</td>
472
                    <td>
473
                        <select id=\'sfontsize\' name="sfontsize" onchange="changeCol()">
474
                        <option value=\''
475
     . $selectedTextSize
476
     . '\' selected>'
477
     . $selectedTextSize
478
     . '</option>
479
                        <option value=\'xx-small\'>xx-small</option>
480
                        <option value=\'x-small\'>x-small</option>
481
                        <option value=\'small\'>small</option>
482
                        <option value=\'medium\'>medium</option>
483
                        <option value=\'large\'>large</option>
484
                        <option value=\'x-large\'>x-large</option>
485
                        <option value=\'xx-large\'>xx-large</option>
486
                        </select>
487
                    </td>
488
                </tr>
489
                <tr>
490
                    <td>Style</td>
491
                    <td>
492
                        <select id=\'sfontstyle\' name="sfontstyle" onchange="changeCol()">
493
                        <option value=\''
494
     . $selectedTextStyle
495
     . '\' selected>'
496
     . $selectedTextStyle
497
     . '</option>
498
                        <option value=\'italic\'>Italic</option>
499
                        <option value=\'normal\'>Normal</option>
500
                        </select>
501
                    </td>
502
                </tr>
503
            </table>
504
        </td>
505
        <td style="width: 25%;">
506
            <div style="text-align: center; vertical-align: top;">Male properties</div>
507
            <hr style="width: 90%;">
508
            <table style="width: 100%;">
509
                <tr>
510
                    <td style="width: 50%;">Background colour</td>
511
                    <td>
512
                        <input type="text" id="mbgcolor" name="mbgcolor" value="#'
513
     . $maleBackColour
514
     . '" size="11" maxlength="7">
515
                        <!-- Color Picker initialization and ancor icon to call a picker -->
516
                        <a href="javascript:TCP.popup(document.forms[\'myForm\'].elements[\'mbgcolor\'])">
517
                        <img style="width: 15px; height: 13px; border-width: 0px;" alt="Click here to pick the color" src="img/sel.gif"></a>
518
                    </td>
519
                </tr>
520
                <tr>
521
                    <td>Text colour</td>
522
                    <td>
523
                        <input type="text" id="mtxtcolor" name="mtxtcolor" value="#'
524
     . $maleTextColour
525
     . '" size="11" maxlength="7">
526
                        <!-- Color Picker initialization and ancor icon to call a picker -->
527
                        <a href="javascript:TCP.popup(document.forms[\'myForm\'].elements[\'mtxtcolor\'])">
528
                        <img style="width: 15px; height: 13px; border-width: 0px;" alt="Click here to pick the color" src="img/sel.gif"></a>
529
                    </td>
530
                </tr>
531
                <tr>
532
                    <td>Font</td>
533
                    <td>
534
                        <select id=\'mfont\' name="mfont" onchange="changeCol()">
535
                        <option value=\''
536
     . $maleTextFont
537
     . '\' selected>'
538
     . $maleTextFont
539
     . '</option>
540
                        <option value=\'Arial\'>Arial</option>
541
                        <option value=\'Courier\'>Courier</option>
542
                        <option value=\'Georgia\'>Georgia</option>
543
                        <option value=\'Helvetica\'>Helvetica</option>
544
                        <option value=\'Impact\'>Impact</option>
545
                        <option value=\'Verdana\'>Verdana</option>
546
                        </select>
547
                    </td>
548
                </tr>
549
                <tr>
550
                    <td>Size</td>
551
                    <td>
552
                        <select id=\'mfontsize\' name="mfontsize" onchange="changeCol()">
553
                        <option value=\''
554
     . $maleTextSize
555
     . '\' selected>'
556
     . $maleTextSize
557
     . '</option>
558
                        <option value=\'xx-small\'>xx-small</option>
559
                        <option value=\'x-small\'>x-small</option>
560
                        <option value=\'small\'>small</option>
561
                        <option value=\'medium\'>medium</option>
562
                        <option value=\'large\'>large</option>
563
                        <option value=\'x-large\'>x-large</option>
564
                        <option value=\'xx-large\'>xx-large</option>
565
                        </select>
566
                    </td>
567
                </tr>
568
                <tr>
569
                    <td>Style</td>
570
                    <td>
571
                        <select id=\'mfontstyle\' name="mfontstyle" onchange="changeCol()">
572
                        <option value=\''
573
     . $maleTextStyle
574
     . '\' selected>'
575
     . $maleTextStyle
576
     . '</option>
577
                        <option value=\'italic\'>Italic</option>
578
                        <option value=\'normal\'>Normal</option>
579
                        </select>
580
                    </td>
581
                </tr>
582
            </table>
583
        </td>
584
        <td style="width: 25%; vertical-align: top;">
585
            <div style="text-align: center;">Female properties</div>
586
            <hr style="width: 90%;">
587
            <table style="width: 100%;">
588
                <tr>
589
                    <td style="width: 50%;">Background colour</td>
590
                    <td>
591
                        <input type="text" id="fbgcolor" name="fbgcolor" value="#'
592
     . $femaleBackColour
593
     . '" size="11" maxlength="7">
594
                        <!-- Color Picker initialization and ancor icon to call a picker -->
595
                        <a href="javascript:TCP.popup(document.forms[\'myForm\'].elements[\'fbgcolor\'])">
596
                        <img style="width: 15px; height: 13px; border-width: 0px;" alt="Click here to pick the color" src="img/sel.gif"></a>
597
                    </td>
598
                </tr>
599
                <tr>
600
                    <td>Text colour</td>
601
                    <td>
602
                        <input type="text" id="ftxtcolor" name="ftxtcolor" value="#'
603
     . $femaleTextColour
604
     . '" size="11" maxlength="7">
605
                        <!-- Color Picker initialization and ancor icon to call a picker -->
606
                        <a href="javascript:TCP.popup(document.forms[\'myForm\'].elements[\'ftxtcolor\'])">
607
                        <img style="width: 15px; height: 13px; border-width: 0px;" alt="Click here to pick the color" src="img/sel.gif"></a>
608
                    </td>
609
                </tr>
610
                <tr>
611
                    <td>Font</td>
612
                    <td>
613
                        <select id=\'ffont\' name="ffont" onchange="changeCol()">
614
                        <option value=\''
615
     . $femaleTextFont
616
     . '\' selected>'
617
     . $femaleTextFont
618
     . '</option>
619
                        <option value=\'Arial\'>Arial</option>
620
                        <option value=\'Courier\'>Courier</option>
621
                        <option value=\'Georgia\'>Georgia</option>
622
                        <option value=\'Helvetica\'>Helvetica</option>
623
                        <option value=\'Impact\'>Impact</option>
624
                        <option value=\'Verdana\'>Verdana</option>
625
                        </select>
626
                    </td>
627
                </tr>
628
                <tr>
629
                    <td>Size</td>
630
                    <td>
631
                        <select id=\'ffontsize\' name="ffontsize" onchange="changeCol()">
632
                        <option value=\''
633
     . $femaleTextSize
634
     . '\' selected>'
635
     . $femaleTextSize
636
     . '</option>
637
                        <option value=\'xx-small\'>xx-small</option>
638
                        <option value=\'x-small\'>x-small</option>
639
                        <option value=\'small\'>small</option>
640
                        <option value=\'medium\'>medium</option>
641
                        <option value=\'large\'>large</option>
642
                        <option value=\'x-large\'>x-large</option>
643
                        <option value=\'xx-large\'>xx-large</option>
644
                        </select>
645
                    </td>
646
                </tr>
647
                <tr>
648
                    <td>Style</td>
649
                    <td>
650
                        <select id=\'ffontstyle\' name="ffontstyle" onchange="changeCol()">
651
                        <option value=\''
652
     . $femaleTextStyle
653
     . '\' selected>'
654
     . $femaleTextStyle
655
     . '</option>
656
                        <option value=\'italic\'>Italic</option>
657
                        <option value=\'normal\'>Normal</option>
658
                        </select>
659
                    </td>
660
                </tr>
661
            </table>
662
663
        </td>
664
        <td style="width: 25%; vertical-align: top;">
665
            <div style="text-align: center;">Border properties</div>
666
            <hr style="width: 90%;">
667
            <table style="width: 100%;">
668
                <tr>
669
                    <td style="width: 50%;">Style</td>
670
                    <td>
671
                        <select id=\'bstyle\' name="bstyle" onchange="changeCol()">
672
                        <option value=\''
673
     . $borderStyle
674
     . '\' selected>'
675
     . $borderStyle
676
     . '</option>
677
                        <option value=\'dotted\'>Dotted</option>
678
                        <option value=\'solid\'>Solid</option>
679
                        <option value=\'dashed\'>Dashed</option>
680
                        <option value=\'none\'>None</option>
681
                        </select>
682
                    </td>
683
                </tr>
684
                <tr>
685
                    <td>Width</td>
686
                    <td>
687
                        <input type="text" id="bwidth" name="bwidth" value="'
688
     . $borderWidth
689
     . 'px" size="11" maxlength="7">
690
                    </td>
691
                </tr>
692
                <tr>
693
                    <td>Colour</td>
694
                    <td>
695
                        <input type="text" id="bcolor" name="bcolor" value="#'
696
     . $borderColour
697
     . '" size="11" maxlength="7">
698
                        <!-- Color Picker initialization and ancor icon to call a picker -->
699
                        <a href="javascript:TCP.popup(document.forms[\'myForm\'].elements[\'bcolor\'])">
700
                        <img style="width: 15px; height: 13px; border-width: 0;" alt="Click here to pick the color" src="img/sel.gif"></a>
701
                    </td>
702
                </tr>
703
            </table>
704
        </td>
705
    </tr>
706
</table>
707
<hr>
708
main background color :
709
<input type="text" id="mainbgcolor" name="mainbgcolor" value="#'
710
     . $mainBackColour
711
     . '">
712
<!-- Color Picker initialization and ancor icon to call a picker -->
713
<a href="javascript:TCP.popup(document.forms[\'myForm\'].elements[\'mainbgcolor\'])">
714
<img style="width: 15px; height: 13px; border-width: 0px;" alt="Click here to pick the color" src="img/sel.gif"></a>
715
<hr>
716
<input type="button" name="myButton" onClick="changeCol()" value="preview"> Press \'preview\' to view the pedigree with the changes you have made<br><br>
717
<input type="submit" value="submit"> Press submit to store the settings. You can change these at any time.
718
</form>
719
<hr>
720
Or you may select any of the following predefined styles : <br>
721
<a href="colors.php?c=d6e7f5;C3E085;000000;arial;small;normal;d7EAAE;000000;arial;small;normal;ebf5D6;000000;arial;small;normal;solid;1;FFFFFF">Spring</a> -- <a href="colors.php?c=FFFFFF;FBFF66;000000;arial;small;normal;FEFFCC;000000;arial;small;normal;FCFF99;000000;arial;small;normal;solid;1;FFD200">Summer</a> -- <a href="colors.php?c=FFFFFF;8F8F8F;000000;arial;small;normal;CCCCCC;000000;arial;small;normal;E6E6E6;000000;arial;small;normal;solid;1;FFFFFF">Winter</a>
722
';
723
724
xoops_cp_footer();
725