forked from chaosarium/lwt
-
Notifications
You must be signed in to change notification settings - Fork 20
/
settings.php
766 lines (722 loc) · 28.6 KB
/
settings.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
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
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
<?php
/**
* Preferences / Settings
*
* Call: settings.php?....
* ... op=Save ... do save
* ... op=Reset ... do reset to defaults
*
* PHP version 8.1
*
* @category User_Interface
*/
namespace Lwt\Interface\Settings;
require_once 'inc/session_utility.php';
if (isset($_REQUEST['op'])) {
if ($_REQUEST['op'] == 'Save') {
saveSetting(
'set-theme-dir',
$_REQUEST['set-theme-dir']
);
} else {
runsql("DELETE FROM {$tbpref}settings WHERE StKey LIKE 'set-%'", '');
}
}
pagestart('Settings/Preferences', true);
$message = '';
if (isset($_REQUEST['op'])) {
if ($_REQUEST['op'] == 'Save') {
saveSetting(
'set-text-h-frameheight-no-audio',
$_REQUEST['set-text-h-frameheight-no-audio']
);
saveSetting(
'set-text-h-frameheight-with-audio',
$_REQUEST['set-text-h-frameheight-with-audio']
);
saveSetting(
'set-text-l-framewidth-percent',
$_REQUEST['set-text-l-framewidth-percent']
);
saveSetting(
'set-text-r-frameheight-percent',
$_REQUEST['set-text-r-frameheight-percent']
);
saveSetting(
'set-test-h-frameheight',
$_REQUEST['set-test-h-frameheight']
);
saveSetting(
'set-test-l-framewidth-percent',
$_REQUEST['set-test-l-framewidth-percent']
);
saveSetting(
'set-test-r-frameheight-percent',
$_REQUEST['set-test-r-frameheight-percent']
);
saveSetting(
'set-words-to-do-buttons',
$_REQUEST['set-words-to-do-buttons']
);
saveSetting(
'set-tooltip-mode',
$_REQUEST['set-tooltip-mode']
);
saveSetting(
'set-ggl-translation-per-page',
$_REQUEST['set-ggl-translation-per-page']
);
saveSetting(
'set-test-main-frame-waiting-time',
$_REQUEST['set-test-main-frame-waiting-time']
);
saveSetting(
'set-test-edit-frame-waiting-time',
$_REQUEST['set-test-edit-frame-waiting-time']
);
saveSetting(
'set-test-sentence-count',
$_REQUEST['set-test-sentence-count']
);
saveSetting(
'set-term-sentence-count',
$_REQUEST['set-term-sentence-count']
);
saveSetting(
'set-tts',
(
array_key_exists('set-tts', $_REQUEST) &&
(int)$_REQUEST['set-tts'] ?
1 : 0
)
);
saveSetting(
'set-hts',
$_REQUEST['set-hts']
);
saveSetting(
'set-archivedtexts-per-page',
$_REQUEST['set-archivedtexts-per-page']
);
saveSetting(
'set-texts-per-page',
$_REQUEST['set-texts-per-page']
);
saveSetting(
'set-terms-per-page',
$_REQUEST['set-terms-per-page']
);
saveSetting(
'set-regex-mode',
$_REQUEST['set-regex-mode']
);
saveSetting(
'set-tags-per-page',
$_REQUEST['set-tags-per-page']
);
saveSetting(
'set-articles-per-page',
$_REQUEST['set-articles-per-page']
);
saveSetting(
'set-feeds-per-page',
$_REQUEST['set-feeds-per-page']
);
saveSetting(
'set-max-articles-with-text',
$_REQUEST['set-max-articles-with-text']
);
saveSetting(
'set-max-articles-without-text',
$_REQUEST['set-max-articles-without-text']
);
saveSetting(
'set-max-texts-per-feed',
$_REQUEST['set-max-texts-per-feed']
);
saveSetting(
'set-text-visit-statuses-via-key',
$_REQUEST['set-text-visit-statuses-via-key']
);
saveSetting(
'set-display-text-frame-term-translation',
$_REQUEST['set-display-text-frame-term-translation']
);
saveSetting(
'set-text-frame-annotation-position',
$_REQUEST['set-text-frame-annotation-position']
);
saveSetting(
'set-term-translation-delimiters',
$_REQUEST['set-term-translation-delimiters']
);
saveSetting(
'set-mobile-display-mode',
$_REQUEST['set-mobile-display-mode']
);
saveSetting(
'set-similar-terms-count',
$_REQUEST['set-similar-terms-count']
);
$message = 'Settings saved';
} else {
$message = 'All Settings reset to default values';
}
}
echo error_message_with_hide($message, true);
?>
<script type="text/javascript" charset="utf-8">
$(document).ready(lwtFormCheck.askBeforeExit);
</script>
<form class="validate" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<table class="tab1" cellspacing="0" cellpadding="5">
<!-- ******************************************************* -->
<tr>
<th class="th1">Group</th>
<th class="th1">Description</th>
<th class="th1" colspan="2">Value</th>
</tr>
<!-- ******************************************************* -->
<tr>
<th class="th1 center" rowspan="1">Appearance</th>
<td class="td1 center">Theme</td>
<td class="td1 center">
<select name="set-theme-dir" class="notempty respinput">
<?php
echo get_themes_selectoptions(
getSettingWithDefault('set-theme-dir')
);
?>
</select>
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty"
alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<th class="th1 center" rowspan="7">Read Text Screen</th>
<td class="td1 center">
Height of left top frame <wbr /><b>without</b> audioplayer
</td>
<td class="td1 center">
<input class="notempty posintnumber right setfocus respinput"
type="number" min="0"
name="set-text-h-frameheight-no-audio" data_info="Height of left top frame without audioplayer"
value="<?php echo tohtml(getSettingWithDefault('set-text-h-frameheight-no-audio')); ?>" maxlength="3"
size="3" /><br />Pixel </td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<td class="td1 center">
Height of left top frame <wbr /><b>with</b> audioplayer
</td>
<td class="td1 center">
<input class="notempty posintnumber right respinput" type="number"
min="0"
name="set-text-h-frameheight-with-audio"
data_info="Height of left top frame with audioplayer"
value="<?php echo tohtml(getSettingWithDefault('set-text-h-frameheight-with-audio')); ?>"
maxlength="3" size="3" /><br />
Pixel
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<td class="td1 center">Width of left frames</td>
<td class="td1 center">
<input class="notempty posintnumber right respinput" type="number"
min="0"
name="set-text-l-framewidth-percent" data_info="Width of left frames"
value="<?php echo tohtml(getSettingWithDefault('set-text-l-framewidth-percent')); ?>"
maxlength="2" size="2" />
<br />Percent
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<td class="td1 center">Height of right top frame</td>
<td class="td1 center">
<input class="notempty posintnumber right respinput" type="number"
min="0"
name="set-text-r-frameheight-percent" data_info="Height of right top frame"
value="<?php echo tohtml(getSettingWithDefault('set-text-r-frameheight-percent')); ?>" maxlength="2" size="2" />
<br />Percent
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<td class="td1 center">Button(s) for "words to do"</td>
<td class="td1 center">
<select name="set-words-to-do-buttons" class="notempty respinput">
<?php
echo get_words_to_do_buttons_selectoptions(
getSettingWithDefault('set-words-to-do-buttons')
);
?>
</select>
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<td class="td1 center">Tooltips</td>
<td class="td1 center">
<select name="set-tooltip-mode" class="notempty respinput">
<?php
echo get_tooltip_selectoptions(
getSettingWithDefault('set-tooltip-mode')
);
?>
</select>
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty"
alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<td class="td1 center">New Term Translations per Page</td>
<td class="td1 center">
<input class="notempty posintnumber right respinput" type="number"
min="0"
name="set-ggl-translation-per-page" data_info="New Term Translations per Page"
value="<?php echo tohtml(getSettingWithDefault('set-ggl-translation-per-page')); ?>"
maxlength="4" size="4" />
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty"
alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<th class="th1 center middle" rowspan="5">Test<br />Screen</th>
<td class="td1 center">Height of left top frame</td>
<td class="td1 center">
<input class="notempty posintnumber right respinput" type="number"
min="0"
name="set-test-h-frameheight" data_info="Height of left top frame"
value="<?php echo tohtml(getSettingWithDefault('set-test-h-frameheight')); ?>"
maxlength="3" size="3" />
<br />Pixel
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<td class="td1 center">Width of left frames</td>
<td class="td1 center">
<input class="notempty posintnumber right respinput" type="number"
min="0"
name="set-test-l-framewidth-percent" data_info="Width of left frames"
value="<?php echo tohtml(getSettingWithDefault('set-test-l-framewidth-percent')); ?>"
maxlength="2" size="2" />
<br />Percent
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<td class="td1 center">Height of right top frame</td>
<td class="td1 center">
<input class="notempty posintnumber right respinput" type="number"
min="0"
name="set-test-r-frameheight-percent" data_info="Height of right top frame"
value="<?php echo tohtml(getSettingWithDefault('set-test-r-frameheight-percent')); ?>"
maxlength="2" size="2" /><br />
Percent
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<td class="td1 center">
Waiting time after assessment to display next test
</td>
<td class="td1 center">
<input class="notempty zeroposintnumber right respinput"
type="number" min="0"
name="set-test-main-frame-waiting-time"
data_info="Waiting time after assessment to display next test"
value="<?php echo tohtml(getSettingWithDefault('set-test-main-frame-waiting-time')); ?>"
maxlength="4" size="4" /><br />
Milliseconds
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<td class="td1 center">
Waiting Time to clear the message/edit frame
</td>
<td class="td1 center">
<input class="notempty zeroposintnumber right respinput"
type="number" min="0"
name="set-test-edit-frame-waiting-time"
data_info="Waiting Time to clear the message/edit frame"
value="<?php echo tohtml(getSettingWithDefault('set-test-edit-frame-waiting-time')); ?>"
maxlength="8" size="8" /><br />
Milliseconds
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty"
alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<th class="th1 center">Frame Set<br />Display Mode</th>
<td class="td1 center">Select how frame sets are<br />displayed on different devices</td>
<td class="td1 center">
<select name="set-mobile-display-mode" class="respinput">
<?php
echo get_mobile_display_mode_selectoptions(
getSettingWithDefault('set-mobile-display-mode') // , true, true, true what is it???
);
?>
</select>
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty"
alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<th class="th1 center" rowspan="3">Reading</th>
<td class="td1 center">
Visit only saved terms with status(es)...<br />
(via keystrokes RIGHT, SPACE, LEFT, etc.)
</td>
<td class="td1 center">
<select name="set-text-visit-statuses-via-key" class="respinput">
<?php
echo get_wordstatus_selectoptions(
getSettingWithDefault('set-text-visit-statuses-via-key'), true, true, true
);
?>
</select>
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty"
alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<td class="td1 center">Display translations of terms with status(es)</td>
<td class="td1 center">
<select name="set-display-text-frame-term-translation" class="respinput">
<?php
echo get_wordstatus_selectoptions(
getSettingWithDefault('set-display-text-frame-term-translation'), true, true, true
);
?>
</select>
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty"
alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<td class="td1 center">Position of translations</td>
<td class="td1 center">
<select name="set-text-frame-annotation-position" class="notempty respinput">
<?php
echo get_annotation_position_selectoptions(
getSettingWithDefault('set-text-frame-annotation-position')
);
?>
</select>
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<th class="th1 center">Testing</th>
<td class="td1 center">Number of sentences <br />displayed from text, if available</td>
<td class="td1 center">
<select name="set-test-sentence-count" class="notempty respinput">
<?php
echo get_sentence_count_selectoptions(
getSettingWithDefault('set-test-sentence-count')
);
?>
</select>
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<th class="th1 center">Term Sentence<br />Generation</th>
<td class="td1 center">Number of sentences <br />generated from text, if available</td>
<td class="td1 center">
<select name="set-term-sentence-count" class="notempty respinput">
<?php
echo get_sentence_count_selectoptions(
getSettingWithDefault('set-term-sentence-count')
);
?>
</select>
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<th class="th1 center">Similar<br />Terms</th>
<td class="td1 center">
Similar terms to be displayed<br />while adding/editing a term
</td>
<td class="td1 center">
<input class="notempty zeroposintnumber right respinput"
type="number" min="0"
name="set-similar-terms-count"
data_info="Similar terms to be displayed while adding/editing a term"
value="<?php echo tohtml(getSettingWithDefault('set-similar-terms-count')); ?>"
maxlength="1" size="1" />
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<th class="th1 center">Term<br />Translations</th>
<td class="td1 center">
List of characters that<br />delimit different translations<br />
(used in annotation selection)
</td>
<td class="td1 center">
<input class="notempty center respinput" type="text"
name="set-term-translation-delimiters"
value="<?php echo tohtml(getSettingWithDefault('set-term-translation-delimiters')); ?>" maxlength="8" size="8" />
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<th class="th1 center" rowspan="2">Text to Speech</th>
<td class="td1 center">Save Audio Files to Disk</td>
<td class="td1 center">
<input type="checkbox" name="set-tts" value="1"
<?php echo ((int)getSettingWithDefault('set-tts') ? "checked" : ""); ?> />
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty"
alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<td class="td1 center">Read word aloud</td>
<td class="td1 center">
<select name="set-hts" class="notempty respinput">
<?php
echo get_hts_selectoptions(
getSettingWithDefault('set-hts')
);
?>
</select>
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<th class="th1 center" rowspan="7">Text, Term,<br />Newsfeed &<br />Tag Tables</th>
<td class="td1 center">Texts per Page</td>
<td class="td1 center">
<input class="notempty posintnumber right respinput" type="number"
min="0" name="set-texts-per-page" data_info="Texts per Page"
value="<?php echo tohtml(getSettingWithDefault('set-texts-per-page')); ?>"
maxlength="4" size="4" />
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty"
alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<td class="td1 center">Archived Texts per Page</td>
<td class="td1 center">
<input class="notempty posintnumber right respinput" type="number"
min="0" name="set-archivedtexts-per-page"
data_info="Archived Texts per Page"
value="<?php echo tohtml(getSettingWithDefault('set-archivedtexts-per-page')); ?>" maxlength="4" size="4" />
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<td class="td1 center">Terms per Page</td>
<td class="td1 center">
<input class="notempty posintnumber right respinput" type="number"
min="0" name="set-terms-per-page" data_info="Terms per Page"
value="<?php echo tohtml(getSettingWithDefault('set-terms-per-page')); ?>" maxlength="4" size="4" />
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<td class="td1 center">Tags per Page</td>
<td class="td1 center">
<input class="notempty posintnumber right respinput" type="number"
min="0" name="set-tags-per-page" data_info="Tags per Page"
value="<?php echo tohtml(getSettingWithDefault('set-tags-per-page')); ?>"
maxlength="4" size="4" />
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<td class="td1 center">Feed Articles per Page</td>
<td class="td1 center">
<input class="notempty posintnumber right respinput" type="number"
min="0" name="set-articles-per-page" data_info="Feed Articles per Page"
value="<?php echo tohtml(getSettingWithDefault('set-articles-per-page')); ?>"
maxlength="4" size="4" />
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<td class="td1 center">Feeds per Page</td>
<td class="td1 center">
<input class="notempty posintnumber right respinput" type="number"
min="0" name="set-feeds-per-page" data_info="Feeds per Page"
value="<?php echo tohtml(getSettingWithDefault('set-feeds-per-page')); ?>"
maxlength="4" size="4" />
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty"
alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<td class="td1 center">Query Mode</td>
<td class="td1 center">
<select name="set-regex-mode" class="respinput">
<?php
echo get_regex_selectoptions(
getSettingWithDefault('set-regex-mode')
);
?>
</select>
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty"
alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<th class="th1 center" rowspan="3">Newsfeeds</th>
<td class="td1 center">Max Articles per Feed <b>with</b> cached text</td>
<td class="td1 center">
<input class="notempty posintnumber right respinput" type="number"
min="0" name="set-max-articles-with-text"
data_info="Max Articles per Feed with cached text"
value="<?php echo tohtml(getSettingWithDefault('set-max-articles-with-text')); ?>"
maxlength="4" size="4" />
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty"
alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<td class="td1 center">
Max Articles per Feed <b>without</b> cached text
</td>
<td class="td1 center">
<input class="notempty posintnumber right respinput" type="number"
min="0" name="set-max-articles-without-text"
data_info="Max Articles per Feed without cached text"
value="<?php echo tohtml(getSettingWithDefault('set-max-articles-without-text')); ?>"
maxlength="4" size="4" />
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty" alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<td class="td1 center">
Max Texts per Feed<br />(older Texts are moved into "Text Archive")
</td>
<td class="td1 center">
<input class="notempty posintnumber right respinput" type="number"
min="0" name="set-max-texts-per-feed" data_info="Max Texts per Feed"
value="<?php echo tohtml(getSettingWithDefault('set-max-texts-per-feed')); ?>"
maxlength="4" size="4" />
</td>
<td class="td1 center">
<img src="icn/status-busy.png" title="Field must not be empty"
alt="Field must not be empty" />
</td>
</tr>
<!-- ******************************************************* -->
<tr>
<td class="td1 right" colspan="4">
<input type="button" value="<< Back"
onclick="{lwtFormCheck.resetDirty(); location.href='index.php';}" />
<span class="nowrap"></span>
<input type="button" value="Reset all settings to default"
onclick="{lwtFormCheck.resetDirty(); location.href='settings.php?op=reset';}" />
<span class="nowrap"></span>
<input type="submit" name="op" value="Save" />
</td>
</tr>
<!-- ******************************************************* -->
</table>
</form>
<?php
pageend();
?>