Projekt

Obecné

Profil

Stáhnout (1.84 KB) Statistiky
| Větev: | Tag: | Revize:
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 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"><h2><center>Attested chains - in the Old Babylonian Text Corpus</center></FONT></h2>
9
<?
10
$status = true;
11
	echo ("<FONT FACE='Arial Unicode MS, Code2000, Titus Cyberbit Basic' SIZE=3>");
12
  @$connection = Pg_Connect ("user=dbowner dbname=klinopis");
13
  if (!$connection)
14
	{
15
    echo "There are probably too many querries, please try again later!";
16
	}
17
  else
18
	{
19
  $popis2 = URLDecode ($chain);
20
  echo "$popis2<BR>";
21
  echo ("For the searched item <b>$popis2</b> there was ");
22
//  $pod = ("stransliteration like '%$popis2%'");
23
//  $pod = $popis2;
24
  if (@$result = @Pg_Exec (
25
//                "SELECT * FROM cad WHERE $popis2"))
26
                "SELECT * FROM cad"))
27
	{
28
  if (($pocethesel = @Pg_NumRows ($result)) > 0)
29
	{
30
  echo "$pocethesel item(s) found.<BR><BR>";
31
  echo "<table border=0 bgcolor=\"#ecece6\" cellspacing=0 cellpadding=3>";
32
  echo "<tr><em><td>volume</td><td><FONT color=#8080ff face=Verdana size=4><small>page in the printed original</small></FONT></td></em><td><FONT color=#8080ff face=Verdana size=3>text</FONT></td></tr>";
33
		for ($i = 0; $i < $pocethesel; $i++)
34
				{
35
					List ($volume, $page, $dicttext) = Pg_Fetch_Row ($result, $i);
36
          echo "<tr><td>$volume</td><td>$page</td><td><FONT FACE=\"Arial Unicode MS, Code2000, Titus Cyberbit Basic\">$dicttext</FONT></td></tr>";
37
				}
38
				echo "</table>";
39
}
40
		else
41
		echo "nothing found!";
42
		echo "<form>";
43
					echo "<BR>&nbsp;&nbsp;&nbsp;";
44
					echo "<INPUT TYPE=\"Button\" VALUE=\"Bring me back to search other text chain.\" onClick=\"history.go(-1)\">";
45
		echo "</form>";
46
}
47
  Pg_Close($connection);
48
}
49
?>
50
</FONT>
51
</body>
52
</html>