Projekt

Obecné

Profil

Stáhnout (2.03 KB) Statistiky
| Větev: | Tag: | Revize:
1
<html>
2
<head>
3
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
4
  <title>Selected items from the Old Babylonian Text Corpus</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 from the Old Babylonian Text Corpus</center></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
  $radek2.="(";
21
  $radek2.=$selection;
22
  $selection == $radek2;
23
  $apostroph = "ʾ";
24
  $selection2 = ($selection.=$apostroph);
25
  $selection3 = ($selection2.=$apostroph);
26
  $selection4 = ($selection3.=$apostroph);
27
  echo "<FONT FACE=\"Arial Unicode MS\"><B>$radek2)</B></FONT><BR>";
28
  $pod1 = "bookandchapter='$radek2,' OR bookandchapter='$selection2,' OR bookandchapter='$selection3,' OR bookandchapter='$selection4,'";
29
  if (@$result = @Pg_Exec ("SELECT * FROM obtexts WHERE ($pod1) ORDER BY OID"))
30
	{
31
  if (($pocethesel = @Pg_NumRows ($result)) > 0)
32
	{
33
  echo "<FONT FACE='Arial Unicode MS' SIZE=3>There are $pocethesel lines of this text.\n<BR>";
34
  echo "<table border=0 bgcolor=\"#ecece6\" cellspacing=0 cellpadding=3>";
35
  echo "<tr><td><FONT color=#8080ff size=3><small>paragraph</small></td><td><FONT color=#8080ff size=4><small>transliteration</small></FONT></td></tr>";
36
			for ($i = 0; $i < $pocethesel; $i++)
37
				{
38
				List ($bookandchapter,$paragraph,$transliteration) = Pg_Fetch_Row ($result, $i);
39
          echo "<tr><td>$paragraph</td><td>$transliteration</td></tr>";
40
				}
41
echo "<td>$bookandchapter$paragraph)</td></tr>";
42
				echo "</table>";
43
			}
44
			else
45
				echo ("it looks like there is nothing! You can try another search with a part of an item.<br>$radek2");
46
		}
47
		else
48
			echo ("Wow, sorry, too many queries, maybe try again later<br>");
49
  Pg_Close($connection);
50
}
51
?>
52
<BR>
53
</FONT>
54
</body>
55
</html>
(117-117/135)