Projekt

Obecné

Profil

Stáhnout (2.13 KB) Statistiky
| Větev: | Revize:
1
<!-- TESTOVACI INDEX-->
2
<?
3
include "../controller/TableController.php";
4
include "../controller/UpdateController.php";
5
?>
6
<script>
7
    function doSearch () {
8
        // (A1) GET SEARCH TERM
9
        var data = new FormData();
10
        //data.append("manuscript", "0,3"); //příklad pro filtraci manuscriptů, asi se ještě uprav
11
       /* data.append("page", "0");
12
        data.append("items_per_page", "50");
13
        data.append("lemma", "megaultranováLemma");
14
        data.append("word", "novéWord2");
15
        data.append("context", "novýContext");
16
        data.append("description", "novádescription");
17
        data.append("description2", "novádescription2");
18
        data.append("description3", "novádescription3");
19
        data.append("ending", "novéEnding");
20
        data.append("finished", false);
21
        data.append("namedentity",1);
22
        data.append("position1", "1");
23
        data.append("position2", "2");
24
        data.append("positiondetail", "posdet");
25
        data.append("prefix", "prefix");
26
        data.append("suffix", "suffix");
27
        data.append("id", 9);*/
28

    
29
        data.append("id", 4);
30
        data.append("wordform_id", 4);
31
        //data.append("lemma_id", 3686);
32
        //data.append("tag_id", 1219);
33
        /*data.append("pos", 6);
34
        data.append("manuscript", [1,2,3,4,5]);
35
        data.append("wordform_id", 9);
36
        data.append("tag", "A---------");*/
37
        //data.append("finished", "false");
38
        // data.append("tag_pos", "V");
39
        // data.append("tag_verb_aspect", "P");
40
        // data.append("tag_number", "S");
41
        // data.append("word", "okáza");
42
        var xhr = new XMLHttpRequest();
43
        xhr.open("POST", "../controller/RemoveController.php");
44
        /*xhr.onload = function(){
45
            let results = document.getElementById("results"),
46
                //if anything returned then do this
47
                search = JSON.parse(this.response);
48
            results.innerHTML = "";
49
            console.log(search);
50
        };*/
51
        xhr.send(data);
52
        return false;
53
    }
54
</script>
55

    
56
<form onsubmit="return doSearch()">
57
    <input type="submit" value="Search"/>
58
</form>
59

    
60
<div id="results"></div>
(1-1/8)