forked from ScriptureEarth/ScriptureEarth
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScripture_Add.php
More file actions
1922 lines (1867 loc) · 111 KB
/
Scripture_Add.php
File metadata and controls
1922 lines (1867 loc) · 111 KB
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
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
// Change PHP.ini from max_input_vars = 1000 to max_input_vars = 3000 because POST has to be set for 3000!
/*************************************************************************************************************************************
*
* CAREFUL when your making any additions! Any "onclick", "change", etc. that occurs on "input", "a", "div", etc.
* should be placed in "_js/CMS_events.js". Also, in "_js/CMS_events.js" any errors in previous statements will
* not works in any of the satesments then on. It can also help in the Firefox browser (version 79.0+) run
* "Scripture_Edit.php", menu "Tools", "Web developement", and "Toggle Tools". Then menu "Debugger". In the left
* side of the windows click on "Scripture Add", Localhost", "_js", and "CMS_events.js". Look down the js file
* and find out if there are errors using the "underline" indicator and fix them if there are any. You can also
* use "Scripture_Add.php" just to make sure that the document.getElementById('...') name is corrent.
* But, BE CAREFUL!
*
**************************************************************************************************************************************/
include './include/session.php';
global $session;
/* Login attempt */
$retval = $session->checklogin();
if (!$retval) {
echo "<br /><div style='text-align: center; font-size: 16pt; font-weight: bold; padding: 10px; color: navy; background-color: #dddddd; '>You are not logged in!</div>";
/* Link back to the main page */
header('Location: login.php');
exit;
}
// <input type='hidden'...> must be place underneath the form
// To tie the script together and prevent direct access to Add_Lang_Validation.php and SumbitConfirmation.php.
define('RIGHT_ON', true);
// To hold error messages
$messages = [];
// Default input values (later, sanitized $_POST inputs)
$inputs = ['iso' => ''];
// Master list of languages for the site to run in
if (empty($_SESSION['nav_ln_array'])) {
require_once './include/conn.inc.php'; // connect to the database named 'scripture'
$db = get_my_db();
$_SESSION['nav_ln_array'] = [];
$query = "SELECT `translation_code`, `name`, `nav_fileName`, `ln_number`, `language_code`, `ln_abbreviation` FROM `translations` ORDER BY `ln_number`";
$result_ln=$db->query($query) or die ('Query failed: ' . $db->error . '</body></html>');
if ($result_ln->num_rows == 0) {
die ('<div style="background-color: white; color: red; font-size: 16pt; padding-top: 20px; padding-bottom: 20px; margin-top: 200px; ">' . translate('The translation_code is not found.', $st, 'sys') . '</div></body></html>');
}
while ($ln_row = $result_ln->fetch_array()){
$ln_temp[0] = $ln_row['translation_code'];
$ln_temp[1] = $ln_row['name'];
$ln_temp[2] = $ln_row['nav_fileName'];
$ln_temp[3] = $ln_row['ln_number'];
$ln_temp[4] = $ln_row['ln_abbreviation'];
$_SESSION['nav_ln_array'][$ln_row['language_code']] = $ln_temp;
}
$db->close();
}
// Checks that the form was submitted after Scripture_Add.php submitted.
if (isset($_POST['btnSubmit'])) {
// Runs the validation script which only returns to the form page if validation fails.
require_once 'Add_Lang_Validation.php';
// Returns from Add_Lang_Validation.php if the validation failed.
}
// Debug for max_input_vars != 3000
// One method to prevent an SQL Injection Attack!
include ('./OT_Books.php'); // include the books of the OT
include ('./NT_Books.php'); // include the books of the NT
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="ObjectType" content="Document" />
<meta http-equiv="Window-target" content="_top" />
<meta name="Created-by" content="Scott Starker" />
<meta name="Updated-by" content="Scott Starker, Lærke Roager" />
<title>Scripture Add</title>
<link type="text/css" rel="stylesheet" href="_css/Scripture_Add.css" />
<script type="text/javascript" language="javascript" src="_js/Scripture_Add.js?v=1.0.3"></script>
<script type="text/javascript" language="javascript" src="_js/AddorChange.js?v=1.1.9"></script>
<script>
//let ALNindex = 1;
//let Otherindex = 1;
</script>
<!-- see the bottom of this html file for CMS_events.js -->
</head>
<body>
<div class='content' style='background-color: white; padding: 20px; width: 1020px; height: 100px; margin-left: auto; margin-right: auto; vertical-align: middle; border-radius: 15px; -moz-border-radius: 15px; -webkit-box-shadow: 15px; '>
<img style='margin-left: 40px; ' src='images/guyReading.png' /><div style="text-align: center; margin-top: -60px; margin-left: 180px; font-size: 18pt; font-weight: bold; color: black; ">Add to the ScriptureEarth Database</div>
</div><br />
<div style='background-color: white; padding: 20px; width: 1020px; margin-left: auto; margin-right: auto; border-radius: 15px; -moz-border-radius: 15px; -webkit-box-shadow: 15px; '>
<a style='float: right; font-size: small; font-weight: normal; vertical-align: bottom; margin: 10px 10px 0px 0px; ' href='process.php'>[Logout]</a>
<a style='float: right; font-size: small; font-weight: normal; vertical-align: bottom; margin: 10px 10px 0px 0px; ' href='Scripture_Edit.php'>[Scripture Edit]</a>
<br />
<?php
if (count($messages) > 0) {
echo 'Please correct these errors:<br />';
// Displays a list of error messages
echo '<ul style="color: red"><li>'.implode('</li><li>', $messages).'</li></ul>';
}
echo "<br />";
?>
<form name='myForm' action='Scripture_Add.php' method='post'>
<input type='hidden' name='rod' id='rod' value="<?php echo isset($rod) ? $rod : $rod = '00000' ?>" />
<input type='hidden' name='variant' id='variant' value="<?php echo isset($var) ? $var : $var = '' ?>" />
<!-- onBlur="ISOShow(this.value)" -->
<!-- AJAX is here. -->
<!-- showResult(this.value) in Scripture_Add.js -->
<div class='enter' style='font-weight: bold; '>Enter the ISO Code: <input type="text" id="iso" name="iso" size="2" onKeyUp="showResult(this.value)" style="color: navy; font-weight: bold; font-size: 12pt; " value="<?php if (isset($_POST['iso'])) echo $_POST['iso'] ?>" /></div>
<br /><br /><br /><div id="livesearch" style="display: none; "></div><br /><br />
<!-- /************************************************
Countries
*************************************************/-->
<div id="Countrys" name="Countrys">
<div class='enter' style='clear: both; font-weight: bold; '>COUNTRIES</div>
<table width="100%" cellpadding="0" cellspacing="0" name="tableEngCountries" id="tableEngCountries">
<tr>
<td width="53%">
<span style='font-size: 10pt; '>In English, enter the <span style='font-size: 11pt; font-weight: bold; '>COUNTRY(IES)</span> in which the Language is indigenous:</span>
</td>
<td width="30%">
<input type='text' name='Eng_country-1' id='Eng_country-1' size='60' value="<?php if (isset($_POST['Eng_country-1'])) echo $_POST['Eng_country-1'] ?>" />
</td>
<td width="17%" style="text-align: right; ">
<input id="addRowTableCountry" style="font-size: 9pt; " type="button" value="Add" />
<input id="removeRowTableCountry" style="font-size: 9pt; " type="button" value="Remove" />
</td>
</tr>
<?php
$i = 2;
while (isset($_POST['Eng_country-'.(string)$i])) {
echo "<tr>";
echo "<td width='53%'>";
echo " ";
echo "</td>";
echo "<td width='30%'>";
echo "<input type='text' name='Eng_country-$i' id='Eng_country-$i' style='color: navy; ' size='60' value='" . htmlentities($_POST['Eng_country-'.(string)$i], ENT_QUOTES) . "' />";
echo "</td>";
echo "<td width='17%'>";
echo " ";
echo "</td>";
echo "</tr>";
$i++;
}
?>
</table>
<br /><br />
<!-- /*********************************************************************
Specific Language Name for the navigational Language Names
***********************************************************************/-->
<?php // $array[1] = English, Chinese, etc.
foreach ($_SESSION['nav_ln_array'] as $code => $array){
$html = "<div class='MajorLang'>In <span>".strtoupper($array[1])."</span>, enter the Language Name: <input type='text' name='".$array[1]."_lang_name' id='".$array[1]."_lang_name' size='35' value=\"switch\" /></div>";
if (isset($_POST[$array[1].'_lang_name'])){
$result = str_replace('switch', $_POST[$array[1].'_lang_name'], $html);
} else {
$result = str_replace('switch', '', $html);
}
echo $result;
} ?>
<br />
<!-- /*********************************************************************
default navigational Langauge
***********************************************************************/-->
<p>Select the default navigational langauge <span style="font-size: 10pt; ">(i.e. the major language from above)</span>:
<select name="DefaultLang" id="DefaultLang">
<?php // $array[1] = English, Chinese, etc.
foreach ($_SESSION['nav_ln_array'] as $code => $array){
$html = '<option value="'.$array[1].'Lang" switch>'.$array[1].'</option>';
if (isset($_POST['DefaultLang'])){
if (substr($_POST['DefaultLang'], 0, -4) == $array[1]){
$result = str_replace("switch", " selected='yes'", $html);
} else {
$result = str_replace("switch", "", $html);
}
} else {
if ($code == "es"){
$result = str_replace("switch", " selected='yes'", $html);
} else {
$result = str_replace("switch", "", $html);
}
}
echo $result;
} ?>
</select>
</p>
<br />
<!-- /************************************************
Alternate Language Name(s)
**************************************************/-->
<table width="100%" cellpadding="0" cellspacing="0" name="tableAltNames" id="tableAltNames">
<tr>
<td width="53%">
Enter the Alternate Language Name(s)<span style="font-size: 9pt; "><br />(only one Language Name per line)</span>:
</td>
<td width="26%">
<input type='text' name='txtAltNames-1' id='txtAltNames-1' style='color: navy; ' size='50' onClick="ALNidx(1)" value="<?php if (isset($_POST['txtAltNames-1'])) echo htmlspecialchars($_POST['txtAltNames-1'], ENT_QUOTES, 'UTF-8'); ?>" />
</td>
<td width="4%" style="text-align: right; ">
<div onclick="moveUpDownALN('tableAltNames', 'up')" style="cursor: pointer; "><img src="images/up.png" width="24" height="20" /></div>
<div onclick="moveUpDownALN('tableAltNames', 'down')" style="cursor: pointer; "><img src="images/down.png" width="24" height="18" /></div>
</td>
<td width="17%" style="text-align: right; ">
<input id="addRowTableAlt" style="font-size: 9pt; " type="button" value="Add" />
<input id="removeRowTableAlt" style="font-size: 9pt; " type="button" value="Remove" />
</td>
</tr>
<?php
$i = 2;
while (isset($_POST['txtAltNames-'.(string)$i])) {
$alt_lang_name = $_POST['txtAltNames-'.(string)$i];
$alt_lang_name = htmlspecialchars($alt_lang_name, ENT_QUOTES, 'UTF-8');
echo "<tr>";
echo "<td width='53%'>";
echo " ";
echo "</td>";
echo "<td width='26%'>";
echo "<input type='text' name='txtAltNames-$i' id='txtAltNames-$i' style='color: navy; ' size='50' onclick='ALNidx($i)' value='" . $alt_lang_name . "' />";
echo "</td>";
echo "<td width='21%' colspan='2'>";
echo " ";
echo "</td>";
echo "</tr>";
$i++;
}
?>
</table>
<br /><br />
<input type='radio' name='GroupAdd' value='AddNo' checked <?php if (isset($_POST['GroupAdd'])) echo ($_POST['GroupAdd'] == 'AddNo' ? ' checked' : '') ?> /> No "The Bible In" or "The Scripture In".<br />
<input type='radio' name='GroupAdd' value='AddTheBibleIn' <?php if (isset($_POST['GroupAdd'])) echo ($_POST['GroupAdd'] == 'AddTheBibleIn' ? ' checked' : '') ?> /> "The Bible In" added to the specific name of the language on the top of the screen.<br />
<input type='radio' name='GroupAdd' value='AddTheScriptureIn' <?php if (isset($_POST['GroupAdd'])) echo ($_POST['GroupAdd'] == 'AddTheScriptureIn' ? ' checked' : '') ?> /> "The Scripture In" added to the specific name of the language on the top of the screen.<br />
</div>
<br /><br />
<?php
/************************************************
isop
*************************************************/
echo 'What is the isoP code for this minority language if it needs one (“<span style="color: navy; font-weight: bold; ">[ISO Code]</span>” plus 4 maximum capital letters or numbers)? ';
if (isset($_POST['isopText'])) {
?>
<input type='text' style='color: navy; ' size='6' name='isopText' id='isopText' value="<?php if (isset($_POST['isopText'])) echo $_POST['isopText']; else echo ''; ?>" />
<?php
}
else {
?>
<input type='text' style='color: navy; ' size='6' name='isopText' id='isopText' value='' />
<?php
}
?>
<br /><br />
<hr align="center" width="90%" color="#0066CC" />
<br />
<?php
/************************************************
whole Bible PDF and complete Scripture publication PDF
*************************************************/
?>
<div class='enter'>Enter the PDF file name of the whole Bible in this language: <input type='text' name='whole_Bible' id='whole_Bible' size='35' value="<?php if (isset($_POST['whole_Bible'])) echo $_POST['whole_Bible'] ?>" /></div>
<br />
<div class='enter'>
<span style='font-size: 11pt; '>Enter the PDF file name of the complete Scripture publication (although NOT the OT nor NT) in this language: </span><input type='text' name='complete_Scripture' id='complete_Scripture' size='35' value="<?php if (isset($_POST['complete_Scripture'])) echo $_POST['complete_Scripture'] ?>" />
<span style='font-size: 11pt; '>description (optional): </span><input type='text' name='ScriptureDescription' id='ScriptureDescription' size='35' value="<?php if (isset($_POST['ScriptureDescription'])) echo $_POST['ScriptureDescription'] ?>" />
</div>
<br />
<hr align="center" width="90%" color="#0066CC" />
<br />
<?php
/************************************************
OT and NT PDFs
*************************************************/
?>
<div class='enter'>Enter the PDF file name of the OT in this language: <input type='text' name='OT_name' id='OT_name' size='35' value="<?php if (isset($_POST['OT_name'])) echo $_POST['OT_name'] ?>" /></div>
<br />
<input type='hidden' name='OT_PDF_Button' id='OT_PDF_Button' value='No' />
<div id='OT_Off_Books'> <!-- The id has to the same because of function classChange in AddorChange.js! -->
<input type='button' id='Open_OT_PDFs' value='Open OT PDFs' /> Are there any of the books in the Old Testament in PDF?<br />
</div>
<div class='enter' id='OT_Books'> <!-- The id has to the same because of function classChange in AddorChange.js! -->
<input type='button' id='Close_OT_PDF' value='Close OT PDFs' /> Here are the books that occur in the Old Testament in PDF:<br />
<input type='button' id='OT_PDF_Books' value='All PDF OT Books' /><span style='font-size: 10pt; font-weight: bold; '> Enter the PDF filename for Genesis and click on this button to have all of the rest of the OT filled in.</span><br />
<input type='button' id='No_OT_PDF_Books' value='No PDF OT Books' /><span style='font-size: 10pt; font-weight: bold; '> Delete the PDF filename for Genesis and click on this button to have none of the rest of the OT deleted.</span>
<br />
<div id='All_OT_Books_Div'>
<div id='None_OT_Books_Div'>
<table id='OT_PDF_Table' width='100%'>
<?php
for ($i = 0; $i < 39; $i++) {
$item_from_array = $OT_array[2][$i];
if ($i % 2)
$color = 'ffffff';
else
$color = 'f0f4f0';
echo "<tr style='background-color: #$color;'><td width='30%'>";
echo " <input type='checkbox' name='OT_PDF_Book-$i' id='OT_PDF_Book-$i'" . (isset($_POST['OT_PDF_Book-'.(string)$i]) ? ' checked' : '') . " /> $item_from_array";
echo "</td><td width='70%'>";
echo "PDF filename: <input type='text' name='OT_PDF_Filename-$i' id='OT_PDF_Filename-$i' size='50' value='" . (isset($_POST['OT_PDF_Filename-'.(string)$i]) ? $_POST['OT_PDF_Filename-'.(string)$i] : '') . "' />";
echo "</td></tr>";
}
echo "<tr valign='bottom' style='background-color: #fff;'><td width='30%'>";
echo '<br />';
echo " <input type='checkbox' name='OT_PDF_appendix' id='OT_PDF_appendix'" . (isset($_POST['OT_PDF_appendix']) ? ' checked' : '') . " /> OT Appendix";
echo '</td><td width="70%">';
echo "PDF filename: <input type='text' name='OT_PDF_Filename_appendix' id='OT_PDF_Filename_appendix' size='50' value='" . (isset($_POST['OT_PDF_Filename_appendix']) ? $_POST['OT_PDF_Filename_appendix'] : '') . "' />";
echo '</td></tr>';
echo "<tr valign='bottom' style='background-color: #f0f4f0;'><td width='30%'>";
echo " <input type='checkbox' name='OT_PDF_glossary' id='OT_PDF_glossary'" . (isset($_POST['OT_PDF_glossary']) ? ' checked' : '') . " /> OT Glossary";
echo '</td><td width="70%">';
echo "PDF filename: <input type='text' name='OT_PDF_Filename_glossary' id='OT_PDF_Filename_glossary' size='50' value='" . (isset($_POST['OT_PDF_Filename_glossary']) ? $_POST['OT_PDF_Filename_glossary'] : '') . "' />";
echo '</td></tr>';
?>
</table>
</div>
</div>
</div>
<br />
<div class='enter'>Enter the PDF file name of the NT in this language: <input type='text' name='NT_name' id='NT_name' size='35' value="<?php if (isset($_POST['NT_name'])) echo $_POST['NT_name'] ?>" /></div>
<br />
<input type='hidden' name='PDF_Button' id='PDF_Button' value='No' />
<div id='NT_Off_Books'> <!-- The id has to the same because of function classChange in AddorChange.js! -->
<input type='button' id='Open_NT_PDFs' value='Open NT PDFs' zonclick="classChange('NT_Books', 'DisplayBlock', 'PDF_Button'); " /> Are there any of the books in the New Testament in PDF?<br />
</div>
<div class='enter' id='NT_Books'> <!-- The id has to the same because of function classChange in AddorChange.js! -->
<input type='button' id='Close_NT_PDF' value='Close NT PDFs' /> Here are the books that ocurr in the New Testament in PDF:<br />
<input type='button' id='NT_PDF_Books' value='All PDF NT Books' /><span style='font-size: 10pt; font-weight: bold; '> Enter the PDF filename for Matthew and click on this button to have all of the rest of the NT filled in.</span><br />
<input type='button' id='No_NT_PDF_Books' value='No PDF NT Books' /><span style='font-size: 10pt; font-weight: bold; '> Delete the PDF filename for Matthew and click on this button to have none of the rest of the NT deleted.</span>
<br />
<div id='All_Books_Div'>
<div id='None_Books_Div'>
<table id='NT_PDF_Table' width='100%'>
<?php
for ($i = 0; $i < 27; $i++) {
$item_from_array = $NT_array[2][$i];
if ($i % 2)
$color = 'ffffff';
else
$color = 'f0f4f0';
echo "<tr style='background-color: #$color;'><td width='30%'>";
echo " <input type='checkbox' name='NT_PDF_Book-$i' id='NT_PDF_Book-$i'" . (isset($_POST['NT_PDF_Book-'.(string)$i]) ? ' checked' : '') . " /> $item_from_array";
echo '</td><td width="70%">';
echo "PDF filename: <input type='text' name='NT_PDF_Filename-$i' id='NT_PDF_Filename-$i' size='50' value='" . (isset($_POST['NT_PDF_Filename-'.(string)$i]) ? $_POST['NT_PDF_Filename-'.(string)$i] : '') . "' />";
echo '</td></tr>';
}
echo "<tr valign='bottom' style='background-color: #fff;'><td width='30%'>";
echo '<br />';
echo " <input type='checkbox' name='NT_PDF_appendix' id='NT_PDF_appendix'" . (isset($_POST['NT_PDF_appendix']) ? ' checked' : '') . " /> NT Appendix";
echo '</td><td width="70%">';
echo "PDF filename: <input type='text' name='NT_PDF_Filename_appendix' id='NT_PDF_Filename_appendix' size='50' value='" . (isset($_POST['NT_PDF_Filename_appendix']) ? $_POST['NT_PDF_Filename_appendix'] : '') . "' />";
echo '</td></tr>';
echo "<tr valign='bottom' style='background-color: #f0f4f0;'><td width='30%'>";
echo " <input type='checkbox' name='NT_PDF_glossary' id='NT_PDF_glossary'" . (isset($_POST['NT_PDF_glossary']) ? ' checked' : '') . " /> NT Glossary";
echo "</td><td width='70%'>";
echo "PDF filename: <input type='text' name='NT_PDF_Filename_glossary' id='NT_PDF_Filename_glossary' size='50' value='" . (isset($_POST['NT_PDF_Filename_glossary']) ? $_POST['NT_PDF_Filename_glossary'] : '') . "' />";
echo '</td></tr>';
?>
</table>
</div>
</div>
</div>
<br />
<hr align="center" width="90%" color="#0066CC" />
<br />
<?php
/************************************************
OT and NT audio
*************************************************/
?>
<input type='hidden' name='OT_Audio_Button' id='OT_Audio_Button' value='No' />
<div id='OT_Off_Audio'> <!-- The id has to the same because of function classChange in AddorChange.js! -->
<input type='button' id='Open_OT_audio' value='Open OT audio' /> Are there any of the books in the Old Testament in audio (mp3) by chapter?<br />
</div>
<div class='enter' id='OT_Audio'> <!-- The id has to the same because of function classChange in AddorChange.js! -->
<input type='button' id="Close_OT_audio" value="Close OT audio" /> Here are the books in the Old Testament in audio (mp3) by chapters:<br />
<input type='button' id='OT_Audio_Chapters' value='All Audio OT Chapters' /><span style='font-size: 9pt; font-weight: bold; '> Enter the audio filename for Genesis chapter 1 and click on this button to have all of the rest of the OT filled in.</span><br />
<input type='button' id='No_OT_Audio_Chapters' value='No Audio OT Chapters' /><span style='font-size: 9pt; font-weight: bold; '> Delete the audio filename for Genesis chapter 1 and click on this button to have none of the rest of the OT deleted.</span>
<br />
<div id='All_OT_Audio_Div'>
<div id='None_OT_Audio_Div'>
<table id='OT_Audio_Table' width="100%">
<?php
// I need the names of the files
for ($i = 0; $i < 39; $i++) {
$item_from_array = $OT_array[2][$i];
$item2_from_array = $OT_array[1][$i];
echo "<tr style='vertical-align: top; '>";
echo "<td width='10%' style='padding: 12px; '>";
echo " $item_from_array:<br />";
//echo "<input style='font-size: 8pt; ' type='button' id='OT_Audio_On-$i' value='Click On' onclick='Audio_On_Or_Off(\"table3-$i\", true)' />";
//echo " <input style='font-size: 8pt; ' type='button' id='OT_Audio_None-$i' value='Click Off' onclick='Audio_On_Or_Off(\"table3-$i\", false)' /><br />";
if ($item2_from_array > 1) {
echo "<input style='font-size: 8pt; ' type='button' id='One_OT_Audio_Chapters-$i' value='Audio OT Chapters in $item_from_array' onclick='One_OT_Audio_Chapters($i)' />";
echo "<br /><span style='font-size: 8pt; '>Enter the audio filename for $item_from_array chapter 1 and click on this button to have all of the rest of $item_from_array filled in.</span>";
}
echo '</td>';
echo "<td width='90%' style='line-height: 18px; padding: 12px; '>";
//echo "table3-$i<br />";
echo "<table id='OT_Audio_Table3-$i' width='100%'>";
echo '<tr>';
for ($z = 0; $z < $item2_from_array; $z++) {
if (($z % 3) == 0 && $z != 0) {
echo '</tr><tr>';
}
$y = $z + 1;
echo "<td width='10%'>";
// $item_from_array_$y doesn't work. The only thing you get is the number!
echo "<input style='font-size: 9pt; ' type='checkbox' name='OT_Audio_Index-$i-$z' id='OT_Audio_Index-$i-$z'" . (isset($_POST['OT_Audio_Index-'.(string)$i.'-'.(string)$z]) ? ' checked' : '') . " /><span style='font-size: 9pt; ' > $y </span>";
echo "</td><td width='20%'>";
echo "<input style='font-size: 9pt; text-align: left; ' type='text' onclick='document.getElementById(\"OT_Audio_Index-$i-$z\").checked = true;' name='OT_Audio_Filename-$i-$z' id='OT_Audio_Filename-$i-$z' size='19' value='" . ( isset($_POST['OT_Audio_Filename-'.(string)$i.'-'.(string)$z]) ? $_POST['OT_Audio_Filename-'.(string)$i.'-'.(string)$z] : '' ) . "' />";
echo '</td>';
}
if (($z % 3) != 0) {
$y = 0;
while ((($z + $y) % 3) != 0) {
echo "<td width='10%'> </td>";
echo "<td width='20%'> </td>";
$y++;
}
}
echo '</tr></table>';
echo '</td></tr>';
}
?>
</table>
</div>
</div>
</div>
<br />
<input type='hidden' name='Audio_Button' id='Audio_Button' value='No' />
<div id='NT_Off_Audio'> <!-- The id has to the same because of function classChange in AddorChange.js! -->
<input type='button' id='Open_NT_audio' value='Open NT audio' /> Are there any of the books in the New Testament in audio (mp3) by chapter?<br />
</div>
<div class='enter' id='NT_Audio'> <!-- The id has to the same because of function classChange in AddorChange.js! -->
<input type='button' id="Close_NT_audio" value="Close NT audio" /> Here are the books in the New Testament in audio (mp3) by chapters:<br />
<input type='button' id='NT_Audio_Chapters' value='All Audio NT Chapters' /><span style='font-size: 9pt; font-weight: bold; '> Enter the audio filename for Matthew chapter 1 and click on this button to have all of the rest of the NT filled in.</span><br />
<input type='button' id='No_NT_Audio_Chapters' value='No Audio NT Chapters' /><span style='font-size: 9pt; font-weight: bold; '> Delete the audio filename for Genesis chapter 1 and click on this button to have none of the rest of the OT deleted.</span>
<br />
<div id='All_Audio_Div'>
<div id='None_Audio_Div'>
<table id='NT_Audio_Table' width="100%">
<?php
// I need the names of the files
for ($i = 0; $i < 27; $i++) {
$item_from_array = $NT_array[2][$i];
$item2_from_array = $NT_array[1][$i];
echo "<tr style='vertical-align: top; '>";
echo "<td width='10%' style='padding: 12px; '>";
echo " $item_from_array:<br />";
if ($item2_from_array > 1) {
echo "<input style='font-size: 8pt; ' type='button' id='One_NT_Audio_Chapters-$i' value='Audio NT Chapters in $item_from_array' onclick='One_NT_Audio_Chapters($i)' />";
echo "<br /><span style='font-size: 8pt; '>Enter the audio filename for $item_from_array chapter 1 and click on this button to have all of the rest of $item_from_array filled in.</span>";
}
echo "</td>";
echo "<td width='90%' style='line-height: 18px; padding: 12px; '>";
echo "<table id='NT_Audio_Table3-$i' width='100%'>";
echo "<tr>";
for ($z = 0; $z < $item2_from_array; $z++) {
if (($z % 3) == 0 && $z != 0) {
echo "</tr><tr>";
}
$y = $z + 1;
echo "<td width='10%'>";
// $item_from_array_$y doesn't work. The only thing you get is the number!
echo "<input style='font-size: 9pt; ' type='checkbox' name='NT_Audio_Index-$i-$z' id='NT_Audio_Index-$i-$z'" . (isset($_POST['NT_Audio_Index-'.(string)$i.'-'.(string)$z]) ? ' checked' : '') . " /><span style='font-size: 9pt; ' > $y </span>";
echo "</td><td width='20%'>";
echo "<input style='font-size: 9pt; text-align: left; ' type='text' onclick='document.getElementById(\"NT_Audio_Index-$i-$z\").checked = true;' name='NT_Audio_Filename-$i-$z' id='NT_Audio_Filename-$i-$z' size='19' value='" . ( isset($_POST['NT_Audio_Filename-'.(string)$i.'-'.(string)$z]) ? $_POST['NT_Audio_Filename-'.(string)$i.'-'.(string)$z] : '' ) . "' />";
echo "</td>";
}
if (($z % 3) != 0) {
$y = 0;
while ((($z + $y) % 3) != 0) {
echo "<td width='10%'> </td>";
echo "<td width='20%'> </td>";
$y++;
}
}
echo "</tr></table>";
echo "</td></tr>";
}
/************************************************
SAB - Scriture Apps Buidler (table SAB) HTML
*************************************************/
?>
</table>
</div>
</div>
</div>
<br />
<hr align="center" width="90%" color="#0066CC" />
<br />
<div>Synchronized text and audio (Scripture Apps Builder) HTMLs:</div>
<table valign="bottom" style="margin-top: 10px; " cellpadding="0" cellspacing="0" width="100%">
<thead>
<tr valign="bottom" style="color: navy; font-size: 8pt; line-height: 10pt; ">
<td width="13%">
</td>
<td width="13%" style="padding-left: 3px; ">
SE subfolder under 'sab/' <!--under 'sab' <span style="font-weight: bold; font-size: 9pt; ">AND</span><br />all of the HTML files that go<br />under the subfolder-->
</td>
<td width="32%" style="padding-left: 3px; ">
<b>OR</b> URL (not on the SE server)
<!--URL (URL or subfolder)-->
</td>
<td width="42%" colspan="2" style="padding-left: 3px; ">
Description <i>(optional)</i>
</td>
</tr>
</thead>
<tbody name="tableSABHTMLAdd" id="tableSABHTMLAdd">
<tr valign="top" style="line-height: 10pt; ">
<td width="13%" style="font-size: 10pt; ">
<div style="margin-top: -4px; ">Enter "SAB HTMLs":</div>For example:
</td>
<td width="13%">
<input type='text' style='color: navy; ' size='15' name='txtSABsubfolderAdd-1' id='txtSABsubfolderAdd-1' value="<?php if (isset($_POST['txtSABsubfolderAdd-1'])) echo $_POST['txtSABsubfolderAdd-1']; ?>" />
<br /><span style="font-size: 10pt; margin-left: 3px; ">tuo <b>or</b> tuoB <b>or</b> tuo2019</span>
</td>
<td width="32%">
<input type='text' style='color: navy; ' size='41' name='txtSABurlAdd-1' id='txtSABurlAdd-1' value="<?php if (isset($_POST['txtSABurlAdd-1'])) echo $_POST['txtSABurlAdd-1']; ?>" />
<span style="font-size: 10pt; margin-left: 1px; ">https://...</span>
</td>
<td width="22%">
<input type='text' style='color: navy; ' size='41' name='txtSABdescriptionAdd-1' id='txtSABdescriptionAdd-1' value="<?php if (isset($_POST['txtSABdescriptionAdd-1'])) echo $_POST['txtSABdescriptionAdd-1']; ?>" />
<br /><span style="font-size: 10pt; margin-left: 1px; ">- Brazil or version 2019</span>
</td>
<td width="20%" style="text-align: right; vertical-align: top; ">
<input id='addSABHTMLAdd' style="font-size: 9pt; " onClick="addRowToTableSABHTMLAdd()" type="button" value="Add" />
<input id='removeSABHTMLAdd' style="font-size: 9pt; " onClick="removeRowFromTable('tableSABHTMLAdd')" type="button" value="Remove" />
</td>
</tr>
<?php
$i = 2;
while (isset($_POST['txtSABsubfolderAdd-'.(string)$i])) {
echo "<tr valign='bottom' style='line-height: 10pt; '>";
echo "<td width='13%' style='font-size: 10pt; '> ";
echo '</td>';
echo "<td width='13%'>";
echo "<input type='text' style='color: navy; ' size='15' name='txtSABsubfolderAdd-$i' id='txtSABsubfolderAdd-$i' value='" . $_POST['txtSABsubfolderAdd-' . (string)$i] . "' />";
echo "</td>";
echo '<td width="32%">';
echo "<input type='text' style='color: navy; ' size='41' name='txtSABurlAdd-$i' id='txtSABurlAdd-$i' value='" . $_POST['txtSABurlAdd-' . (string)$i] . "' />";
echo '</td>';
echo '<td width="22%">';
echo "<input type='text' style='color: navy; ' size='41' name='txtSABdescriptionAdd-$i' id='txtSABdescriptionAdd-$i' value='" . $_POST['txtSABdescriptionAdd-' . (string)$i] . "' />";
echo '</td>';
echo "<td width='20%'>";
echo " ";
echo "</td>";
echo "</tr>";
$i++;
}
?>
</tbody>
</table>
<br />
<?php
/************************************************
Bible.is
*************************************************/
?>
<table valign="bottom" cellpadding="0" cellspacing="0" width="100%">
<thead>
<tr valign="bottom" style="color: navy; font-size: 8pt; line-height: 10pt; ">
<td width="11%">
</td>
<td width="40%" style="padding-left: 3px; ">
URL Link
</td>
<td width="24%" style="padding-left: 3px; ">
Title or Version <i>(optional)</i>
</td>
<td width="25%" colspan="2" style="padding-left: 3px; ">
Which icon?
</td>
</tr>
</thead>
<?php
$num = 0;
if (isset($_POST['txtLinkBibleIsURL-1'])) {
if ($_POST['txtLinkBibleIs-1'] == 'BibleIsDefault-1') $_POST['BibleIsDefault-1']=1; else $_POST['BibleIsDefault-1']=0;
if ($_POST['txtLinkBibleIs-1'] == 'BibleIsText-1') $_POST['BibleIsText-1']=2; else $_POST['BibleIsText-1']=0;
if ($_POST['txtLinkBibleIs-1'] == 'BibleIsAudio-1') $_POST['BibleIsAudio-1']=5; else $_POST['BibleIsAudio-1']=0;
if ($_POST['txtLinkBibleIs-1'] == 'BibleIsVideo-1') $_POST['BibleIsVideo-1']=7; else $_POST['BibleIsVideo-1']=0;
if ($_POST['txtLinkBibleIs-1'] == 'BibleIsTextAudio-1') $_POST['BibleIsTextAudio-1']=3; else $_POST['BibleIsTextAudio-1']=0;
if ($_POST['txtLinkBibleIs-1'] == 'BibleIsTextVideo-1') $_POST['BibleIsTextVideo-1']=8; else $_POST['BibleIsTextVideo-1']=0;
if ($_POST['txtLinkBibleIs-1'] == 'BibleIsAudioVideo-1') $_POST['BibleIsAudioVideo-1']=6; else $_POST['BibleIsAudioVideo-1']=0;
if ($_POST['txtLinkBibleIs-1'] == 'BibleIsTextAudioVideo-1') $_POST['BibleIsTextAudioVideo-1']=4; else $_POST['BibleIsTextAudioVideo-1']=0;
}
else {
${'txtLinkBibleIs-1'}='BibleIsTextAudioVideo';
${'BibleIsDefault-1'}=0;
${'BibleIsText-1'}=0;
${'BibleIsAudio-1'}=0;
${'BibleIsVideo-1'}=0;
${'BibleIsTextAudio-1'}=0;
${'BibleIsTextVideo-1'}=0;
${'BibleIsAudioVideo-1'}=0;
${'BibleIsTextAudioVideo-1'}=4;
}
?>
<tbody name="tableBibleIs" id="tableBibleIs">
<tr valign="top" style="line-height: 10pt; ">
<td width="11%" style="font-size: 10pt; ">
<div style="margin-top: -4px; ">Enter "Bible.is":</div>For example:
</td>
<td width="40%">
<input type='text' style='color: navy; ' size='52' name='txtLinkBibleIsURL-1' id='txtLinkBibleIsURL-1' value="<?php if (isset($_POST['txtLinkBibleIsURL-1'])) echo $_POST['txtLinkBibleIsURL-1']; ?>" />
<br /><span style="font-size: 10pt; margin-left: 3px; ">https://live.bible.is/bible/[FCBH code]/[book]/[chapter]</span>
</td>
<td width="24%">
<input type='text' style='color: navy; ' size='30' name='txtLinkBibleIsTitle-1' id='txtLinkBibleIsTitle-1' value="<?php if (isset($_POST['txtLinkBibleIsTitle-1'])) echo $_POST['txtLinkBibleIsTitle-1']; ?>" />
<br /><span style="font-size: 10pt; margin-left: 1px; ">-NT version 2008</span>
</td>
<td width="8%">
<!--
Default = 1
Read = 2
Listen = 5
Read and Listen = 3
Read, Listen, and View = 4
-->
<select name="txtLinkBibleIs-1" id="txtLinkBibleIs-1" style='color: navy; '>
<option value="BibleIsDefault-1" <?php echo ( isset($_POST['BibleIsDefault-1']) ? ($_POST['BibleIsDefault-1'] == 1 ? " selected='selected'" : "") : '' ) ?>>Default</option>
<option value="BibleIsText-1" <?php echo ( isset($_POST['BibleIsText-1']) ? ($_POST['BibleIsText-1'] == 2 ? " selected='selected'" : "") : '' ) ?>>Read</option>
<option value="BibleIsAudio-1" <?php echo ( isset($_POST['BibleIsAudio-1']) ? ($_POST['BibleIsAudio-1'] == 5 ? " selected='selected'" : "") : '' ) ?>>Listen</option>
<option value="BibleIsVideo-1" <?php echo ( isset($_POST['BibleIsVideo-1']) ? ($_POST['BibleIsVideo-1'] == 7 ? " selected='selected'" : "") : '' ) ?>>View</option>
<option value="BibleIsTextAudio-1" <?php echo ( isset($_POST['BibleIsTextAudio-1']) ? ($_POST['BibleIsTextAudio-1'] == 3 ? " selected='selected'" : "") : '' ) ?>>Read and Listen</option>
<option value="BibleIsTextVideo-1" <?php echo ( isset($_POST['BibleIsTextVideo-1']) ? ($_POST['BibleIsTextVideo-1'] == 8 ? " selected='selected'" : "") : '' ) ?>>Read and View</option>
<option value="BibleIsAudioVideo-1" <?php echo ( isset($_POST['BibleIsAudioVideo-1']) ? ($_POST['BibleIsAudioVideo-1'] == 6 ? " selected='selected'" : "") : '' ) ?>>Listen and View</option>
<option value="BibleIsTextAudioVideo-1" <?php echo ( isset($_POST['BibleIsTextAudioVideo-1']) ? ($_POST['BibleIsTextAudioVideo-1'] == 4 ? " selected='selected'" : "") : '' ) ?>>Read, Listen, and View</option>
</select>
<br /><span style="font-size: 10pt; margin-left: 1px; ">Read, Listen, and View</span>
</td>
<td width="17%" style="text-align: right; vertical-align: top; ">
<input id='addBibleIs' style="font-size: 9pt; " type="button" value="Add" />
<input id='removeBibleIs' style="font-size: 9pt; " type="button" value="Remove" />
</td>
</tr>
<?php
$i = 2;
while (isset($_POST['txtLinkBibleIsURL-'.(string)$i])) {
echo "<tr valign='bottom' style='line-height: 10pt; '>";
echo "<td width='11%' style='font-size: 10pt; '> ";
echo '</td>';
echo "<td width='40%'>";
echo "<input type='text' style='color: navy; ' size='52' name='txtLinkBibleIsURL-$i' id='txtLinkBibleIsURL-$i' value='" . $_POST['txtLinkBibleIsURL-' . (string)$i] . "' />";
echo "</td>";
echo '<td width="24%">';
echo "<input type='text' style='color: navy; ' size='30' name='txtLinkBibleIsTitle-$i' id='txtLinkBibleIsTitle-$i' value='" . $_POST['txtLinkBibleIsTitle-' . (string)$i] . "' />";
echo '</td>';
echo "<td width='8%'>";
//echo "<input type='text' name='txtLinkBibleIs-$i' id='txtLinkBibleIs-$i' style='color: navy; ' size='11' value='" . ( isset($_POST['txtLinkBibleIs-'.(string)$i]) ? $_POST['txtLinkBibleIs-'.(string)$i] : '' ) . "' />";
if ($_POST['BibleIsDefault-'.(string)$i] == 'BibleIsDefault-'.$i) ${'BibleIsDefault-$i'}=1; else ${'BibleIsDefault-$i'}=0;
if ($_POST['BibleIsText-'.(string)$i] == 'BibleIsText-'.$i) ${'BibleIsText-$i'}=2; else ${'BibleIsText-$i'}=0;
if ($_POST['BibleIsAudio-'.(string)$i] == 'BibleIsAudio-'.$i) ${'BibleIsAudio-$i'}=5; else ${'BibleIsAudio-$i'}=0;
if ($_POST['BibleIsVideo-'.(string)$i] == 'BibleIsVideo-'.$i) ${'BibleIsVideo-$i'}=7; else ${'BibleIsVideo-$i'}=0;
if ($_POST['BibleIsTextAudio-'.(string)$i] == 'BibleIsTextAudio-'.$i) ${'BibleIsTextAudio-$i'}=3; else ${'BibleIsTextAudio-$i'}=0;
if ($_POST['BibleIsTextVideo-'.(string)$i] == 'BibleIsTextVideo-'.$i) ${'BibleIsTextVideo-$i'}=8; else ${'BibleIsTextVideo-$i'}=0;
if ($_POST['BibleIsAudioVideo-'.(string)$i] == 'BibleIsAudioVideo-'.$i) ${'BibleIsAudioVideo-$i'}=6; else ${'BibleIsAudioVideo-$i'}=0;
if ($_POST['BibleIsTextAudioVideo-'.(string)$i] == 'BibleIsTextAudioVideo-'.$i) ${'BibleIsTextAudioVideo-$i'}=4; else ${'BibleIsTextAudioVideo-$i'}=0;
?>
<select name="txtLinkBibleIs-<?php echo $i ?>" id="txtLinkBibleIs-<?php echo $i ?>" style='color: navy; '>
<option value="BibleIsDefault-<?php echo $i ?>" <?php echo ( ${'BibleIsDefault-$i'} == 1 ? " selected='selected'" : '' ) ?>>Default</option>
<option value="BibleIsText-<?php echo $i ?>" <?php echo ( ${'BibleIsText-$i'} == 2 ? " selected='selected'" : '' ) ?>>Read</option>
<option value="BibleIsAudio-<?php echo $i ?>" <?php echo ( ${'BibleIsAudio-$i'} == 5 ? " selected='selected'" : '' ) ?>>Listen</option>
<option value="BibleIsVideo-<?php echo $i ?>" <?php echo ( ${'BibleIsVideo-$i'} == 7 ? " selected='selected'" : '' ) ?>>View</option>
<option value="BibleIsTextAudio-<?php echo $i ?>" <?php echo ( ${'BibleIsTextAudio-$i'} == 3 ? " selected='selected'" : '' ) ?>>Read and Listen</option>
<option value="BibleIsTextVideo-<?php echo $i ?>" <?php echo ( ${'BibleIsTextVideo-$i'} == 8 ? " selected='selected'" : '' ) ?>>Read and View</option>
<option value="BibleIsAudioVideo-<?php echo $i ?>" <?php echo ( ${'BibleIsAudioVideo-$i'} == 6 ? " selected='selected'" : '' ) ?>>Listen and View</option>
<option value="BibleIsTextAudioVideo-<?php echo $i ?>" <?php echo ( ${'BibleIsTextAudioVideo-$i'} == 4 ? " selected='selected'" : '' ) ?>>Read, Listen, and View</option>
</select>
<?php
echo "</td>";
echo "<td width='17%'>";
echo " ";
echo "</td>";
echo "</tr>";
$i++;
}
?>
</tbody>
</table>
<br />
<?php
/************************************************
Bible.is Gospel Film
*************************************************/
?>
<table valign="bottom" cellpadding="0" cellspacing="0" width="100%">
<thead>
<tr valign="bottom" style="color: navy; font-size: 8pt; line-height: 10pt; height: 30px; ">
<td width="11%">
</td>
<td width="40%" style="padding-left: 3px; ">
URL Link
</td>
<td width="49%" colspan="2" style="padding-left: 3px; ">
Which Gospel?
</td>
</tr>
</thead>
<?php
$num = 0;
?>
<tbody name="tableBibleIsGospelFilm" id="tableBibleIsGospelFilm">
<tr valign="top" style="line-height: 10pt; ">
<td width="11%" style="font-size: 10pt; ">
<div style="margin-top: -4px; ">Enter "Bible.is Gospel Film":</div>For example:
</td>
<td width="40%">
<input type='text' style='color: navy; ' size='54' name='txtLinkBibleIsGospelFilmURL-1' id='txtLinkBibleIsGospelFilmURL-1' value="<?php if (isset($_POST['txtLinkBibleIsGospelFilmURL-1'])) echo $_POST['txtLinkBibleIsGospelFilmURL-1']; ?>" />
<br /><span style="font-size: 10pt; margin-left: 3px; ">https://www.youtube.com/playlist?list=[Google address]</span>
</td>
<td width="32%">
<input type='text' style='color: navy; ' size='30' name='txtLinkBibleIsGospel-1' id='txtLinkBibleIsGospel-1' value="<?php if (isset($_POST['txtLinkBibleIsGospel-1'])) echo $_POST['txtLinkBibleIsGospel-1']; ?>" />
<br /><span style="font-size: 10pt; margin-left: 1px; "> - Gospel of [which Gospel]</span>
</td>
<td width="17%" style="text-align: right; vertical-align: top; ">
<input id='addBibleIsGospelFilm' style="font-size: 9pt; " type="button" value="Add" />
<input id='removeBibleIsGospelFilm' style="font-size: 9pt; " type="button" value="Remove" />
</td>
</tr>
<?php
$i = 2;
while (isset($_POST['txtLinkBibleIsGospelFilmURL-'.(string)$i])) {
echo "<tr valign='bottom' style='line-height: 10pt; '>";
echo "<td width='11%' style='font-size: 10pt; '> ";
echo '</td>';
echo "<td width='40%'>";
echo "<input type='text' style='color: navy; ' size='53' name='txtLinkBibleIsGospelFilmURL-$i' id='txtLinkBibleIsGospelFilmURL-$i' value='" . $_POST['txtLinkBibleIsGospelFilmURL-' . (string)$i] . "' />";
echo "</td>";
echo '<td width="32%">';
echo "<input type='text' style='color: navy; ' size='30' name='txtLinkBibleIsGospel-$i' id='txtLinkBibleIsGospel-$i' value='" . $_POST['txtLinkBibleIsGospel-' . (string)$i] . "' />";
echo '</td>';
echo "<td width='17%'>";
echo " ";
echo "</td>";
echo "</tr>";
$i++;
}
?>
</tbody>
</table>
<br />
<?php
/************************************************
YouVersion - Read
*************************************************/
?>
<table width="100%" valign="bottom" cellpadding="0" cellspacing="0">
<thead>
<tr valign="bottom" style="color: navy; font-size: 8pt; line-height: 10pt; height: 30px; ">
<td width="14%">
</td>
<td width="12%" style="padding-left: 3px; ">
Words preceding Text
</td>
<td width="11%" style="padding-left: 3px; ">
Text for the website
</td>
<td width="44%" style="padding-left: 3px; ">
URL Link
</td>
<td width="19%">
</td>
</tr>
</thead>
<tbody id="tableYouVersion" name="tableYouVersion">
<tr valign="top" style="line-height: 10pt; ">
<td width="14%" style="font-size: 10pt; ">
<div style="margin-top: 10px; ">Enter "YouVersion":</div>For example:
</td>
<td width="12%">
<input type='text' style='color: navy; ' size='13' name='txtLinkYouVersionName-1' id='txtLinkYouVersionName-1' value="<?php if (isset($_POST['txtLinkYouVersionName-1'])) echo $_POST['txtLinkYouVersionName-1']; ?>" />
<br /><span style="font-size: 10pt; ">Read on</span>
</td>
<td width="11%">
<input type='text' style='color: navy; ' size='20' name='txtLinkYouVersionTitle-1' id='txtLinkYouVersionTitle-1' value="<?php if (isset($_POST['txtLinkYouVersionTitle-1'])) echo $_POST['txtLinkYouVersionTitle-1']; ?>" />
<br /><span style="font-size: 10pt; margin-left: 1px; ">YouVersion.com</span>
</td>
<td width="44%">
<input type='text' style='color: navy; ' size='60' name='txtLinkYouVersionURL-1' id='txtLinkYouVersionURL-1' value="<?php if (isset($_POST['txtLinkYouVersionURL-1'])) echo $_POST['txtLinkYouVersionURL-1']; ?>" />
<br /><span style="font-size: 10pt; margin-left: 3px; ">https://www.bible.com/bible/[YouVersion code]/[book].[chp]</span>
</td>
<td width="19%" style="text-align: right; vertical-align: top; ">
<input style="font-size: 9pt; " type="button" id='addYouVer' value="Add" />
<input style="font-size: 9pt; " type="button" id='removeYouVer' value="Remove" />
</td>
</tr>
<?php
$i = 2;
while (isset($_POST['txtLinkYouVersionURL-'.(string)$i])) {
echo "<tr valign='bottom' style='line-height: 10pt; '>";
echo "<td width='14%'>";
echo " ";
echo "</td>";
echo "<td width='12%'>";
echo "<input type='text' style='color: navy; ' size='13' name='txtLinkYouVersionName-".(string)$i."' id='txtLinkYouVersionName-".(string)$i."' value='" . ( isset($_POST['txtLinkYouVersionName-'.(string)$i]) ? $_POST['txtLinkYouVersionName-'.(string)$i] : '' ) . "' />";
echo "</td>";
echo "<td width='11%'>";
echo "<input type='text' style='color: navy; ' size='20' name='txtLinkYouVersionTitle-".(string)$i."' id='txtLinkYouVersionTitle-".(string)$i."' value='" . ( isset($_POST['txtLinkYouVersionTitle-'.(string)$i]) ? $_POST['txtLinkYouVersionTitle-'.(string)$i] : '' ) . "' />";
echo "</td>";
echo "<td width='44%'>";
echo "<input type='text' style='color: navy; ' size='60' name='txtLinkYouVersionURL-".(string)$i."' id='txtLinkYouVersionURL-".(string)$i."' value='" . ( isset($_POST['txtLinkYouVersionURL-'.(string)$i]) ? $_POST['txtLinkYouVersionURL-'.(string)$i] : '' ) . "' />";
echo "</td>";
echo "<td width='19%'>";
echo " ";
echo "</td>";
echo "</tr>";
$i++;
}
?>
</tbody>
</table>
<br />
<?php
/*************************************************
Bible.org - Study
**************************************************/
?>
<table width="100%" valign="bottom" cellpadding="0" cellspacing="0">
<thead>
<tr valign="bottom" style="color: navy; font-size: 8pt; line-height: 10pt; height: 30px; ">
<td width="14%">
</td>
<td width="12%" style="padding-left: 3px; ">
Words preceding Text
</td>
<td width="11%" style="padding-left: 3px; ">
Text for the website
</td>
<td width="44%" style="padding-left: 3px; ">
URL Link
</td>
<td width="19%">
</td>
</tr>
</thead>
<tbody id="tableBiblesorg" name="tableBiblesorg">
<tr valign="top" style="line-height: 10pt; ">
<td width="14%" style="font-size: 10pt; ">
<div style="margin-top: 10px; ">Enter "Bibles.org":</div>For example:
</td>
<td width="12%">
<input type='text' style='color: navy; ' size='13' name='txtLinkBiblesorgName-1' id='txtLinkBiblesorgName-1' value="<?php if (isset($_POST['txtLinkBiblesorgName-1'])) echo $_POST['txtLinkBiblesorgName-1']; ?>" />
<br /><span style="font-size: 10pt; ">Study on</span>
</td>
<td width="11%">
<input type='text' style='color: navy; ' size='20' name='txtLinkBiblesorgTitle-1' id='txtLinkBiblesorgTitle-1' value="<?php if (isset($_POST['txtLinkBiblesorgTitle-1'])) echo $_POST['txtLinkBiblesorgTitle-1']; ?>" />
<br /><span style="font-size: 10pt; margin-left: 1px; ">Bibles.org</span>
</td>
<td width="44%">
<input type='text' style='color: navy; ' size='60' name='txtLinkBiblesorgURL-1' id='txtLinkBiblesorgURL-1' value="<?php if (isset($_POST['txtLinkBiblesorgURL-1'])) echo $_POST['txtLinkBiblesorgURL-1']; ?>" />
<br /><span style="font-size: 10pt; margin-left: 3px; ">https://www.Bibles.org/[Bibles.org code]/[book]/[chp]</span>
</td>
<td width="19%" style="text-align: right; vertical-align: top; ">
<input style="font-size: 9pt; " type="button" id='addBiblesorg' value="Add" />
<input style="font-size: 9pt; " type="button" id='removeBiblesorg' value="Remove" />
</td>
</tr>
<?php
$i = 2;
while (isset($_POST['txtLinkBiblesorgURL-'.(string)$i])) {
echo "<tr valign='bottom' style='line-height: 10pt; '>";
echo "<td width='14%'>";
echo " ";
echo "</td>";
echo "<td width='12%'>";
echo "<input type='text' style='color: navy; ' size='13' name='txtLinkBiblesorgName-".(string)$i."' id='txtLinkBiblesorgName-".(string)$i."' value='" . ( isset($_POST['txtLinkBiblesorgName-'.(string)$i]) ? $_POST['txtLinkBiblesorgName-'.(string)$i] : '' ) . "' />";
echo "</td>";
echo "<td width='11%'>";
echo "<input type='text' style='color: navy; ' size='20' name='txtLinkBiblesorgTitle-".(string)$i."' id='txtLinkBiblesorgTitle-".(string)$i."' value='" . ( isset($_POST['txtLinkBiblesorgTitle-'.(string)$i]) ? $_POST['txtLinkBiblesorgTitle-'.(string)$i] : '' ) . "' />";
echo "</td>";
echo "<td width='44%'>";
echo "<input type='text' style='color: navy; ' size='60' name='txtLinkBiblesorgURL-".(string)$i."' id='txtLinkBiblesorgURL-".(string)$i."' value='" . ( isset($_POST['txtLinkBiblesorgURL-'.(string)$i]) ? $_POST['txtLinkBiblesorgURL-'.(string)$i] : '' ) . "' />";
echo "</td>";
echo "<td width='19%'>";
echo " ";
echo "</td>";
echo "</tr>";
$i++;
}
?>
</tbody>
</table>
<br />
<?php
/*************************************************
GRN
**************************************************/
?>
<table width="100%" valign="bottom" cellpadding="0" cellspacing="0">
<thead>
<tr valign="bottom" style="color: navy; font-size: 8pt; line-height: 10pt; height: 30px; ">
<td width="14%">
</td>
<td width="11%" style="padding-left: 3px; ">
Text for the website
</td>
<td width="12%" style="padding-left: 3px; ">
Words preceding Text
</td>
<td width="44%" style="padding-left: 3px; ">
URL Link
</td>
<td width="19%">
</td>
</tr>
</thead>
<tbody id="tableGRN" name="tableGRN">
<tr valign="top" style="line-height: 10pt; ">
<td width="14%" style="font-size: 10pt; ">
<div style="margin-top: 10px; ">Enter "GRN":</div>For example:
</td>
<td width="11%">
<input type='text' style='color: navy; ' size='20' name='txtLinkGRNTitle-1' id='txtLinkGRNTitle-1' value="<?php if (isset($_POST['txtLinkGRNTitle-1'])) echo $_POST['txtLinkGRNTitle-1']; ?>" />
<br /><span style="font-size: 10pt; margin-left: 1px; ">Audio recordings</span>
</td>
<td width="12%">
<input type='text' style='color: navy; ' size='13' name='txtLinkGRNName-1' id='txtLinkGRNName-1' value="<?php if (isset($_POST['txtLinkGRNName-1'])) echo $_POST['txtLinkGRNName-1']; ?>" />
<br /><span style="font-size: 10pt; ">Global Recordings Network</span>
</td>
<td width="44%">
<input type='text' style='color: navy; ' size='60' name='txtLinkGRNURL-1' id='txtLinkGRNURL-1' value="<?php if (isset($_POST['txtLinkGRNURL-1'])) echo $_POST['txtLinkGRNURL-1']; ?>" />
<br /><span style="font-size: 10pt; margin-left: 3px; ">https://globalrecordings.net/en/language/[GRN code]</span>
</td>
<td width="19%" style="text-align: right; vertical-align: top; ">
<input style="font-size: 9pt; " type="button" id="addGRN" value="Add" />
<input style="font-size: 9pt; " type="button" id="removeGRN" value="Remove" />
</td>
</tr>
<?php
$i = 2;
while (isset($_POST['txtLinkGRNURL-'.(string)$i])) {
echo "<tr valign='bottom' style='line-height: 10pt; '>";
echo "<td width='14%'>";
echo " ";
echo "</td>";
echo "<td width='11%'>";
echo "<input type='text' style='color: navy; ' size='20' name='txtLinkGRNTitle-".(string)$i."' id='txtLinkGRNTitle-".(string)$i."' value='" . ( isset($_POST['txtLinkGRNTitle-'.(string)$i]) ? $_POST['txtLinkGRNTitle-'.(string)$i] : '' ) . "' />";
echo "</td>";
echo "<td width='12%'>";
echo "<input type='text' style='color: navy; ' size='13' name='txtLinkGRNName-".(string)$i."' id='txtLinkGRNName-".(string)$i."' value='" . ( isset($_POST['txtLinkGRNName-'.(string)$i]) ? $_POST['txtLinkGRNName-'.(string)$i] : '' ) . "' />";
echo "</td>";
echo "<td width='44%'>";
echo "<input type='text' style='color: navy; ' size='60' name='txtLinkGRNURL-".(string)$i."' id='txtLinkGRNURL-".(string)$i."' value='" . ( isset($_POST['txtLinkGRNURL-'.(string)$i]) ? $_POST['txtLinkGRNURL-'.(string)$i] : '' ) . "' />";
echo "</td>";
echo "<td width='19%'>";
echo " ";
echo "</td>";
echo "</tr>";
$i++;
}
?>
</tbody>
</table>
<br /><br />
<?php
/************************************************
checkbox for viewer
*************************************************/
?>
<input type='checkbox' name='viewer' id='viewer' <?php echo (isset($_POST['viewer']) ? ' checked' : '') ?> /> Does this language have the Study online viewer (USFM) files?<br />
<input type='text' style='color: navy; ' size='3' name='viewerText' id='viewerText' value="<?php if (isset($_POST['viewerText'])) echo $_POST['viewerText']; else echo ''; ?>" />
<span style='font-size: 10pt; '>Rarely used. Only when there is more the 1 ROD Code and Variant code with the same ISO code. In order to use this, the letter(s) before the ".sfm" in this text box
indicate which files are to be used for this collection. For example, you enter a "W" in the text box you will then have to put a "W" in all of the filenames before the extension
(i.e., 41-MATaoj.sfm to 41-MATaoj<span style="color: red; ">W</span>.sfm)</span>
<br /><br />
<?php