Projekt

Obecné

Profil

Stáhnout (1.83 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 Dictionary</title>
5
</head>
6
<body>
7
<FONT FACE='Verdana' Color="#9bbad6">
8
<h2><center>Selected items from the Old Babylonian Dictionary</center></FONT></h2>
9
<h3><FONT color=#8080ff face=Verdana size=4>List of items according to previous selection</FONT></h3>
10
<?
11
$status = true;
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
  $chain2 = URLDecode ($chain);
20
  echo "<FONT FACE=\"Arial Unicode MS\">$chain2&nbsp;</FONT><BR>";
21
  $pod1 = "(OID=75908)";
22
  if (@$result = @Pg_Exec (
23
                "SELECT oid, item, text1, text2, autor, datum FROM obdict 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><FONT color=#8080ff size=3><small>item</small></td><td><FONT color=#8080ff size=4><small>provisional dictionary definition</small></FONT></td><td><FONT color=#8080ff size=4><small>last autor</SMALL></FONT></TD></tr>";
30
			for ($i = 0; $i < $pocethesel; $i++)
31
				{
32
					List ($oid, $item, $text1, $text2, $autor, $datum) = Pg_Fetch_Row ($result, $i);
33
          echo "<tr><td>$item&nbsp;&nbsp;&nbsp;<td>$text1</td><td><small>$autor</small></td><td><small>$datum</small></td>
34
		      <td> <a href=\"../utf/obdictedit1.php?co=$oid\">edit</a></td></tr>";
35
				}
36
				echo "</table>";
37
			}
38
			else
39
				echo ("it looks like there is nothing! You can try another search with a part of an item.<br>");
40
		}
41
		else
42
			echo ("Wow, sorry, too many queries, maybe try again later<br>");
43
  Pg_Close($connection);
44
}
45
?>
46
<BR>
47
</FONT>
48
</body>
49
</html>
(70-70/135)