Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 12de28ea

Přidáno uživatelem Tomáš Pašek před téměř 4 roky(ů)

Feature #8638 Implementovat filtr pro Poznámka 2

Zobrazit rozdíly:

application/controller/TableController.php
53 53
        $array['lemma'] = $_POST['lemma']."%";
54 54
        $whereQuery .= " upper(l.lemma) LIKE upper(:lemma) AND";
55 55
    }
56
    if (array_key_exists("description2", $_POST) && $_POST['description2'] != "") {
57
        $array['description2'] = "%".$_POST['description2']."%";
58
        $whereQuery .= " upper(description2) LIKE upper(:description2) AND";
59
    }
56 60
    if (array_key_exists("word", $_POST) && $_POST['word'] != "") {
57 61
        $array['word'] = $_POST['word'];
58 62
        $whereQuery .= " upper(w.word) = upper(:word) AND";
application/model/DB.php
51 51
            if (array_key_exists("finished", $params)) {
52 52
                $this->stmt->bindParam(':finished',$params['finished']);
53 53
            }
54
            if (array_key_exists("description2", $params)) {
55
                $this->stmt->bindParam(':description2',$params['description2']);
56
            }
54 57
            if (array_key_exists("manuscript", $params)) {
55 58
                for ($x = 0; $x < count($params["manuscript"]); $x += 1) {
56 59
                    $this->stmt->bindParam(':manuscript'.$x,$params["manuscript"][$x], PDO::PARAM_INT);

Také k dispozici: Unified diff