Projekt

Obecné

Profil

Stáhnout (2.41 KB) Statistiky
| Větev: | Tag: | Revize:
1
<html>
2
<head>
3
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
4
    <LINK REL=StyleSheet HREF="/utf/obtc1.css" TYPE="text/css" MEDIA="screen, print">
5
    <title>Selected items from used texts in the Old Babylonian Graphemic Analyses</title>
6
</head>
7
<body>
8
<FORM ACTION="hledej2.php" METHOD="post">
9
    <FONT FACE='Verdana' Color="#9bbad6">
10
        <h2>
11
            <center>Selected text group in the Old Babylonian Graphemic Analyses</center>
12
    </FONT></h2>
13
    <h3><FONT color=#8080ff face=Verdana size=4>List of items according to previous selection</FONT></h3>
14
    <?php
15
    $conn = new mysqli("filek.cz", "dbowner", "", "aswi-klinopis");
16
    $conn->set_charset("utf8");
17

    
18
    if ($conn->connect_error) {
19
        die("Connection failed: " . $conn->connect_error);
20
    }
21
    echo "<FONT FACE='Arial Unicode MS' SIZE=3><BR>";
22

    
23
    $type2 = $_POST["type2"];
24
    $type = $_POST["type"];
25

    
26
    $query = "SELECT * FROM graf02 WHERE documenttype='$type' OR ancientplace='$type2'";
27
    $result = $conn->query($query);
28

    
29
    if ($result->num_rows > 0) {
30
        echo "<FONT FACE='Arial Unicode MS' SIZE=3>$pocethesel item(s) found.\n<BR>";
31
        echo "<table border=0 bgcolor=\"#ecece6\" cellspacing=0 cellpadding=3>";
32
        echo "<tr><td class=td1>edition abbrv.</td><td class=td1>edition number</td><td class=td1>edition number</td><td class=td1>year</td><td class=td1>month</td><td class=td1>day</td><td class=td1>ancient place</td><td class=td1>document type</td><td class=td1>transliteration</td><td class=td1>ancient ruler</td><td class=td1>ancient year</td></tr>";
33

    
34
        for ($i = 0; $i < $result->num_rows; $i++) {
35
            List ($editionabbreviation, $editionnumber1, $editionnumber2, $dateyear, $datemonth, $dateday, $ancientplace, $documenttype, $transliteration, $ancientruler, $ancientyear) = mysqli_fetch_row($result);
36
            echo "<tr><td class=td2>$editionabbreviation</td><td class=td2>$editionnumber1</td><td class=td2>$editionnumber2</td><td class=td2>$dateyear</td><td class=td2>$datemonth</td><td class=td2>$dateday</td><td class=td2>$ancientplace</td><td class=td2>$documenttype</td><td class=td2>$transliteration</td><td class=td2>$ancientruler</td><td class=td2>$ancientyear</td></tr>";
37
//echo "<tr><td>$editionabbreviation</td></tr>";
38
        }
39
        echo "</table>";
40
    } else {
41
        echo("Nothing found, try again.");
42
    }
43

    
44
    mysqli_close($conn);
45
    ?>
46
    <BR>
47
    </FONT>
48
</FORM>
49
</body>
50
</html>
(132-132/135)