Projekt

Obecné

Profil

Stáhnout (1.73 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 used texts in the Old Babylonian Graphemic Analyses</title>
5
</head>
6
<body>
7
<FONT FACE='Verdana' Color="#9bbad6">
8
<h2><center>Selected text group in the Old Babylonian Graphemic Analyses</center></FONT></h2>
9
<h3><FONT color=#8080ff face=Verdana size=4>List of items according to previous selection</FONT></h3>
10
<?
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 = "(item like '$chain%')";
21
  if (@$result = @Pg_Exec (
22
                "SELECT oid, item, text1, text2, autor, datum FROM obdict WHERE ($pod1)"))
23
	{
24
  if (($pocethesel = @Pg_NumRows ($result)) > 0)
25
	{
26
  echo "<FONT FACE='Arial Unicode MS' SIZE=3>$pocethesel item(s) found.\n<BR>";
27
  echo "<table border=0 bgcolor=\"#ecece6\" cellspacing=0 cellpadding=3>";
28
  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>";
29
			for ($i = 0; $i < $pocethesel; $i++)
30
				{
31
					List ($oid, $item, $text1, $text2, $autor, $datum) = Pg_Fetch_Row ($result, $i);
32
          echo "<tr><td>$item&nbsp;&nbsp;&nbsp;<td>$text1</td><td><small>$autor</small></td><td><small>$datum</small></td>
33 3249a620 Petr Lukašík
		      <td> <a href=\"../utf/obdictedit1.php?co=$oid\">edit</a></td></tr>";
34 6daefa8c Petr Lukašík
				}
35
				echo "</table>";
36
			}
37
			else
38
				echo ("it looks like there is nothing!<br>");
39
		}
40
		else
41
			echo ("Wow, sorry, too many queries, maybe try again later<br>");
42
  Pg_Close($connection);
43
}
44
?>
45
<BR>
46
</FONT>
47
</body>
48
</html>