Subversion Repositories cheapmusic

Rev

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

Rev 111 Rev 112
Line 217... Line 217...
217
            }
217
            }
218
        }
218
        }
219
    }
219
    }
220
    else if ($_POST["submit"] == "unsubscribe") {
220
    else if ($_POST["submit"] == "unsubscribe") {
221
// bugbug
221
// bugbug
222
    }
-
 
223
    else if (in_array($_POST["submit"], $buttonArr)) {
-
 
224
        $_SESSION["currentView"] = $_POST["submit"];
-
 
225
        filterResults();
-
 
226
    }
222
    }
227
}
223
}
228
else if ($_SERVER["REQUEST_METHOD"] == "GET") {
224
else if ($_SERVER["REQUEST_METHOD"] == "GET") {
229
    if (isset($_GET['z'])) {
225
    if (isset($_GET['z'])) {
230
        $_SESSION["buyer"]["Zip"] = "";
226
        $_SESSION["buyer"]["Zip"] = "";
Line 244... Line 240...
244
}
240
}
245
?>
241
?>
246
    <form method="post" action="/index.php">
242
    <form method="post" action="/index.php">
247
        <input type="hidden" name="sessionTab" value="<?php echo MySessionHandler::getSessionTab(); ?>">
243
        <input type="hidden" name="sessionTab" value="<?php echo MySessionHandler::getSessionTab(); ?>">
248
       	<input type="hidden" name="searchTerm" value="<?php echo getSV("searchTerm") ?>">
244
       	<input type="hidden" name="searchTerm" value="<?php echo getSV("searchTerm") ?>">
249
       	<input type="hidden" name="buyerZip" value="<?php echo $_SESSION["buyer"]["Zip"]; ?>">
-
 
250
        <nav class="navbar navbar-expand-sm bg-black navbar-dark fixed-top">
245
        <nav class="navbar navbar-expand-sm bg-black navbar-dark fixed-top">
251
            <div class="navbar-header">
246
            <div class="navbar-header">
252
                <button type="submit" name="submit" value="Search" class="btn text-white" aria-label="Go to home page">Find Cheap Music</button>
247
                <button type="submit" name="submit" value="Search" class="btn text-white" aria-label="Go to home page">Find Cheap Music</button>
253
            </div>
248
            </div>
254
            <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar" aria-label="Open Menu">
249
            <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar" aria-label="Open Menu">
Line 462... Line 457...
462
?>
457
?>
463
    <div class="container-fluid text-center mb-2">
458
    <div class="container-fluid text-center mb-2">
464
    <form method="post" action="/index.php">
459
    <form method="post" action="/index.php">
465
        <input type="hidden" name="sessionTab" value="<?php echo MySessionHandler::getSessionTab(); ?>">
460
        <input type="hidden" name="sessionTab" value="<?php echo MySessionHandler::getSessionTab(); ?>">
466
       	<input type="hidden" name="searchTerm" value="<?php echo getSV("searchTerm") ?>">
461
       	<input type="hidden" name="searchTerm" value="<?php echo getSV("searchTerm") ?>">
467
       	<input type="hidden" name="buyerZip" value="<?php echo $_SESSION["buyer"]["Zip"]; ?>">
-
 
468
        <button id="randomBtn" type="submit" class="btn btn-success mt-5 rounded" name="submit" value="random">Random Album Suggestions</button>
462
        <button id="randomBtn" type="submit" class="btn btn-success mt-5 rounded" name="submit" value="random">Random Album Suggestions</button>
469
    </form>
463
    </form>
470
    </div>
464
    </div>
471
    <div class="container bg-secondary border py-2 mt-4">
465
    <div class="container bg-secondary border py-2 mt-4">
472
    <h2 class="text-center py-2">Getting Started</h2>
466
    <h2 class="text-center py-2">Getting Started</h2>
Line 507... Line 501...
507
}
501
}
508
?>
502
?>
509
        <form method="post" action="/index.php">
503
        <form method="post" action="/index.php">
510
            <input type="hidden" name="sessionTab" value="<?php echo MySessionHandler::getSessionTab(); ?>">
504
            <input type="hidden" name="sessionTab" value="<?php echo MySessionHandler::getSessionTab(); ?>">
511
       	    <input type="hidden" name="searchTerm" value="<?php echo getSV("searchTerm") ?>">
505
       	    <input type="hidden" name="searchTerm" value="<?php echo getSV("searchTerm") ?>">
512
           	<input type="hidden" name="buyerZip" value="<?php echo $_SESSION["buyer"]["Zip"]; ?>">
-
 
513
            <ul class="list-inline text-center">
506
            <ul class="list-inline text-center">
514
                <li class="list-inline-item">
507
                <li class="list-inline-item">
515
                    <button class="btn btn-sm btn-light" type="submit" name="submit" value="terms">Terms of Service</button>
508
                    <button class="btn btn-sm btn-light" type="submit" name="submit" value="terms">Terms of Service</button>
516
                </li>
509
                </li>
517
                <li class="list-inline-item">
510
                <li class="list-inline-item">