1 |
6daefa8c
|
Petr Lukašík
|
<html>
|
2 |
|
|
<head>
|
3 |
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
4 |
|
|
<title>Selected items from used texts in the Old Babylonian Graphemic Analyses</title>
|
5 |
|
|
</head>
|
6 |
|
|
<body>
|
7 |
|
|
<LINK REL=StyleSheet HREF="/utf/obtc1.css" TYPE="text/css" MEDIA="screen, print">
|
8 |
|
|
<FONT FACE='Verdana' Color="#9bbad6">
|
9 |
|
|
<h2><center>Selected items - the Old Babylonian Text Corpus</center></FONT></h2>
|
10 |
|
|
<?
|
11 |
|
|
$status = true;
|
12 |
|
|
echo ("<FONT FACE='Arial Unicode MS' SIZE=3>");
|
13 |
|
|
@$connection = Pg_Connect ("user=dbowner dbname=klinopis");
|
14 |
|
|
if (!$connection)
|
15 |
|
|
{
|
16 |
|
|
echo "There are probably too many querries, please try again later!";
|
17 |
|
|
}
|
18 |
|
|
else
|
19 |
|
|
{
|
20 |
|
|
if ($paragraph2 == 2) {
|
21 |
|
|
$parag = $paragraph2 -1;
|
22 |
|
|
}
|
23 |
|
|
else if ($paragraph2 < 3) {
|
24 |
|
|
$parag = $paragraph2;
|
25 |
|
|
}
|
26 |
|
|
else
|
27 |
|
|
{
|
28 |
|
|
$parag = $paragraph2 - 2;
|
29 |
|
|
}
|
30 |
|
|
$pod = ("paragraph='$parag' AND bookandchapter='$bookandchapter'");
|
31 |
|
|
if (@$result = @Pg_Exec (
|
32 |
|
|
"SELECT * FROM obtexts WHERE $pod"))
|
33 |
|
|
{
|
34 |
|
|
if (($pocethesel = @Pg_NumRows ($result)) > 0)
|
35 |
|
|
{
|
36 |
|
|
echo "<table border=0 bgcolor=\"#ecece6\" cellspacing=0 cellpadding=3>";
|
37 |
|
|
echo "<tr><td><FONT color=#8080ff face=Verdana size=3>text in transliteration</FONT></td>";
|
38 |
|
|
echo "<td><FONT color=#8080ff face=Verdana size=3>text quotation</FONT></td></tr>";
|
39 |
|
|
for ($i = 0; $i < $pocethesel; $i++)
|
40 |
|
|
{
|
41 |
|
|
List ($bookandchapter, $paragraph, $transliteration) = Pg_Fetch_Row ($result, $i);
|
42 |
|
|
echo "<tr><td><FONT FACE=\"Arial Unicode MS\">$transliteration<br></FONT></td>"; echo "<td><a href=\"./catalogue.php?bookandchapter=$bookandchapter\">$bookandchapter</a></td></TR>";
|
43 |
|
|
echo "<TR><td><a href=\"./obtextcoment.php?paragraph2=$paragraph&bookandchapter=$bookandchapter\">$paragraph</A></td></TR>";
|
44 |
|
|
}
|
45 |
|
|
for ($r = 0; $r < 7; $r++)
|
46 |
|
|
{
|
47 |
|
|
$k = 1;
|
48 |
|
|
$konec2 = ($paragraph + $k);
|
49 |
|
|
$pod2 = ("bookandchapter='$bookandchapter' AND paragraph='$konec2'");
|
50 |
|
|
if (@$result2 = @Pg_Exec (
|
51 |
|
|
"SELECT * FROM obtexts WHERE $pod2"))
|
52 |
|
|
{
|
53 |
|
|
if (($pocethesel2 = @Pg_NumRows ($result2)) > 0)
|
54 |
|
|
{
|
55 |
|
|
for ($j = 0; $j < $pocethesel2; $j++)
|
56 |
|
|
{
|
57 |
|
|
List ($bookandchapter, $paragraph, $transliteration) = Pg_Fetch_Row ($result2, $j);
|
58 |
|
|
echo "<tr><td><FONT FACE=\"Arial Unicode MS\">$transliteration</FONT></td>
|
59 |
|
|
<td><a href=\"./obtextcoment.php?paragraph2=$paragraph&bookandchapter=$bookandchapter\">$paragraph</A></td></TR>";
|
60 |
|
|
}
|
61 |
|
|
}
|
62 |
|
|
}
|
63 |
|
|
}
|
64 |
|
|
}
|
65 |
|
|
}
|
66 |
|
|
echo "</table>";
|
67 |
|
|
Pg_Close($connection);
|
68 |
|
|
}
|
69 |
|
|
?>
|
70 |
|
|
<BR>
|
71 |
|
|
</FONT>
|
72 |
|
|
</body>
|
73 |
|
|
</html>
|