-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathviewColumns.php
99 lines (79 loc) · 2.96 KB
/
viewColumns.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
<?php
/******************************************************************************/
/* Ottoman Turkish project - view documents in multiple columns */
/******************************************************************************/
/* Developed by: Steve Bagwell */
/******************************************************************************/
require "config.php";
require "viewUtils.php";
require "viewScript.php";
$bibleTitleResults = getBibleTitleSqlResults(
mysql_real_escape_string($_GET['iso']));
$viewData = getViewData($bibleTitleResults,
'bibleTitle',
'bookName');
$bibleTitleOptions = $viewData->bibleTitleOptions;
$bookNameOptions = $viewData->bookNameOptions;
$chapterOptions = $viewData->chapterOptions;
$notationData = $viewData->notnData;
$jsAnnotations = "
annotations = {" .
$notationData->jsAnnotations . "};
";
?>
<!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title><?php translate('View documents', $st, 'sys'); ?></title>
<link type="text/css" rel="stylesheet" href="style.css?d=20161227">
<script language=JavaScript>
<?php echo $jsAnnotations .
$jsSetAnnotations .
$jsScrollFunctions;
echo getSetAnnotationsText();
?>
<?php echo $jsAnnotationsOff; ?>
</script>
</head>
<body class="viewColumns" onclick="annotationsOff();" >
<div>
<div id="viewAnnotationsDiv" class="viewColumns">
<img style='position:absolute; top:0px; right:0px;' src='images/close.jpg'
onclick="document.getElementById('viewAnnotationsDiv').style.visibility='hidden';
if(lastNotation) {lastNotation.style.background='';}"
title="<?php echo translate('Close', $st, 'sys'); ?>">
<div id="viewAnnotations"></div>
</div>
<table>
<tr>
<td>
<form id="formViewCols" action="" method=post enctype="mulitpart/form-data">
<select id="bibleTitle" name="bibleTitle" onchange="submit();">
<option value=""> -- <?php echo translate('Select a current title', $st, 'sys'); ?> -- </option>
<?php echo $bibleTitleOptions; ?>
</select>
<br>
<select class="book_name" name="bookName" id="bookName" onchange="submit();">
<option value=""> -- <?php echo translate('Select a current name', $st, 'sys'); ?> --</option>
<?php echo $bookNameOptions; ?>
</select>
<select name=chapter" id="chapter" onchange="scroll2Chapter(this);">
<option value=""></option>
<?php echo $chapterOptions; ?>
</select>
</form>
</td>
</tr>
<tr>
<?php
echo '<td class="bookColumn" id="bookContents">';
echo ' <div id="viewNotations" class="viewColumns">' .
$notationData->detail . '</div>';
echo '</td>';
?>
</tr>
</table>
</div>
</body>
</html>