Subversion Repositories cheapmusic

Rev

Rev 70 | Rev 112 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 70 Rev 108
Line 21... Line 21...
21
session_start();
21
session_start();
22
 
22
 
23
initSessionVariables();
23
initSessionVariables();
24
 
24
 
25
if ($_SERVER["REQUEST_METHOD"] == "POST") {
25
if ($_SERVER["REQUEST_METHOD"] == "POST") {
26
    if (in_array($_POST["submit"], $buttonArr)) {
-
 
27
        $_SESSION["currentView"] = $_POST["submit"];
-
 
28
        filterResults();
-
 
29
        echo printResultHeader();
-
 
30
        echo printResult();
-
 
31
        MySessionHandler::commit(session_id());
-
 
32
    }
-
 
33
    else if (in_array($_POST["submit"], array(
26
    if (in_array($_POST["submit"], array(
34
        'TableView',
27
        'TableView',
35
        'CardView'
28
        'CardView'
36
    ))) {
29
    ))) {
37
        $_SESSION["currentLayout"] = $_POST["submit"];
30
        $_SESSION["currentLayout"] = $_POST["submit"];
-
 
31
        echo "<h2 class=\"text-center py-2\">Store Offers</h2>";
38
        echo printResultHeader();
32
        echo printResultHeader();
39
        echo printResult();
33
        echo printResult();
40
        MySessionHandler::commit(session_id());
34
        MySessionHandler::commit(session_id());
41
    } else if (in_array($_POST["submit"], array("Apply", "Reset"))) {
35
    } else if (in_array($_POST["submit"], array("Apply", "Reset"))) {
42
        if ($_POST["submit"] == "Reset") {
36
        if ($_POST["submit"] == "Reset") {
Line 45... Line 39...
45
        } else {
39
        } else {
46
            $_SESSION["currentView"] = $_POST["submit"];
40
            $_SESSION["currentView"] = $_POST["submit"];
47
            detailFilterResults($_POST);
41
            detailFilterResults($_POST);
48
        }
42
        }
49
 
43
 
-
 
44
        echo "<h2 class=\"text-center py-2\">Store Offers</h2>";
50
        echo printResultHeader();
45
        echo printResultHeader();
51
        echo printResult();
46
        echo printResult();
52
        MySessionHandler::commit(session_id());
47
        MySessionHandler::commit(session_id());
53
    }
48
    }
54
}
49
}