Projekt

Obecné

Profil

Stáhnout (2.58 KB) Statistiky
| Větev: | Tag: | Revize:
1 6daefa8c Petr Lukašík
<html>
2
<head>
3
  <meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
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>Select a text group in the Old Babylonian Graphemic Analyses</center></h2>
9
<h1><FONT color=#8080ff face=Verdana size=4>List of items according to previous selection</FONT></h1>
10
<h3><FONT color=#000099 face=Verdana size=2></FONT><h3>
11
<FONT color=#8080ff FACE='Arial Unicode MS' SIZE=3><BR>
12
<p>
13
<?
14
$status = true;
15
do
16
{
17
  @$connection = Pg_Connect ("user=dbowner dbname=klinopis");
18
  if (!$connection):
19
    echo "Nepoda?ilo se p?ipojit k datab?zi!";
20
    break;
21
  endif;
22
23
  $pod1 = "(documenttype='$type' AND ancientplace='$type2')";
24
  @$result = Pg_Exec (
25
                "SELECT * FROM graf02 WHERE ($pod1)");
26
  $pocethesel = @Pg_NumRows ($result);
27
  echo "$pocethesel item(s) found.";
28
  if ($pocethesel == 0):
29
  echo "<br>Nothing found, try again.";
30
  break;
31
  endif;
32
33
  if (!$result):
34
    echo "there was probably an error, please, try again!";
35
    break;
36
  endif;
37
38
  echo "<BR>";
39
  echo "<table border=1 cellspacing=1 cellpadding=5>";
40
    echo "<tr><td><FONT color=#8080ff face=Verdana size=4>edition abbrv.</FONT></td><td><FONT color=#8080ff face=Verdana size=4>edition number</FONT></td><td><FONT color=#8080ff face=Verdana size=4>edition number</FONT></td><td><FONT color=#8080ff face=Verdana size=4>year</FONT></td><td><FONT color=#8080ff face=Verdana size=4>month</FONT></td><td><FONT color=#8080ff face=Verdana size=4>day</FONT></td><td><FONT color=#8080ff face=Verdana size=4>ancient place</FONT></td><td><FONT color=#8080ff face=Verdana size=4>document type</FONT></td><td><FONT color=#8080ff face=Verdana size=4>transliteration</FONT></td><td><FONT color=#8080ff face=Verdana size=4>ancient ruler</FONT></td><td><FONT color=#8080ff face=Verdana size=4>ancient year</FONT></td></tr><FONT face=Verdana size=4>\n";
41
42
  while ($row = Pg_Fetch_Array($result))
43
    echo "<tr><td>".$row["editionabbreviation"]."</td><td>".$row["editionnumber1"]."</td><td>".$row["editionnumber2"]."</td><td>".$row["dateyear"]."</td><td>".$row["datemonth"]."</td><td>".$row["dateday"]."</td><td>".$row["ancientplace"]."</td><td>".$row["documenttype"]."</td><td>".$row["transliteration"]."</td><td>".$row["ancientruler"]."</td><td>".$row["ancientyear"]."</td></tr>\n";
44
// <td>&nbsp; <a href=\"./deleteg1.php?koho=$ncislo\">delete</a> &nbsp;</td>"."<td><a href=\"./editg1.php?co=$ncislo\">edit</a> &nbsp;"."</td>
45
  echo "</table>";
46
} while (false);
47
48
  Pg_Close($connection);
49
?>
50
</p>
51
<BR>
52
</FONT>
53
</body>
54
</html>