1
|
<html>
|
2
|
<head>
|
3
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
4
|
<LINK REL=StyleSheet HREF="/utf/obtc1.css" TYPE="text/css" MEDIA="screen, print">
|
5
|
<title>Description of the selected items from the Old Babylonian Corpus</title>
|
6
|
</head>
|
7
|
<body>
|
8
|
<FONT FACE='Verdana' Color="#9bbad6">
|
9
|
<h2 align=center>Bibliographic and other sources to selected text</FONT></h2>
|
10
|
<h3><FONT color=#8080ff face=Verdana size=4>List of items according to previous selection</FONT></h3>
|
11
|
<?
|
12
|
$status = true;
|
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
|
$pod1 = ("bookandchapterp like '%'");
|
21
|
$pod1 = ("bookandchapterp like '%$bookandchapter%'");
|
22
|
if (@$result = @Pg_Exec (
|
23
|
"SELECT * FROM obtextp WHERE $pod1"))
|
24
|
{
|
25
|
if (($pocethesel = @Pg_NumRows ($result)) > 0)
|
26
|
{
|
27
|
echo "<FONT FACE='Arial Unicode MS' SIZE=3>$pocethesel item(s) found.\n<BR>";
|
28
|
echo "<table border=0 bgcolor=\"#ecece6\" cellspacing=0 cellpadding=3>";
|
29
|
echo "<tr><td class=td1>book</td><td class=td1>description</td><td class=td1>chapter</td><td class=td1>book and chapter</td><td class=td1>author</td><td class=td1>date</td></tr>";
|
30
|
for ($i = 0; $i < $pocethesel; $i++)
|
31
|
{
|
32
|
List ($book, $chapter, $descriptionp, $bookandchapterp, $autor, $datum) = Pg_Fetch_Row ($result, $i);
|
33
|
echo "<tr><td class=td2>$book</td><td class=td2>$chapter</td><td class=td2>$descriptionp</td><td class=td2>$bookandchapterp</td><td class=td2>$autor</td><td class=td2>$datum</td></tr>";
|
34
|
}
|
35
|
echo "</table>";
|
36
|
}
|
37
|
else
|
38
|
echo ("it looks like there is nothing!<br>$bookandchapter");
|
39
|
}
|
40
|
else
|
41
|
echo ("Wow, sorry, too many queries, maybe try it again later<br>");
|
42
|
Pg_Close($connection);
|
43
|
}
|
44
|
?>
|
45
|
<BR>
|
46
|
</FONT>
|
47
|
</body>
|
48
|
</html>
|