Update header.php
[clinton/MarylandElectronicPetitionSignature.git] / header.php
CommitLineData
f71d99ec
PM
1<?PHP
2if ($_GET['debug'] == 'on'){
3 setcookie("debug", 'on');
4 header('Location: index.php');
5}
6if ($_GET['debug'] == 'off'){
7 setcookie("debug", 'off');
8 header('Location: index.php');
9}
10?>
4fdccf60 11<!DOCTYPE html>
4d0af031 12<html lang="en">
0b056f39 13<head>
1264618f
PM
14 <!-- Global site tag (gtag.js) - Google Analytics -->
15 <script async src="https://www.googletagmanager.com/gtag/js?id=UA-165887820-1"></script>
16 <script>
17 window.dataLayer = window.dataLayer || [];
18 function gtag(){dataLayer.push(arguments);}
19 gtag('js', new Date());
20
21 gtag('config', 'UA-165887820-1');
22 </script>
4a113be1
PM
23 <?PHP
24 include_once('/var/www/secure.php'); //outside webserver
25 include_once('slack.php');
26 ?>
3005470c
PM
27 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
28 <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
29 <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
39e01dd9 30 <title>MEPS - Maryland Eletronic Petition Software</title>
5ecdde8f
PM
31<style>
32* {
33 margin: 0;
34}
35html, body {
36 height: 100%;
37}
38.page-wrap {
39 min-height: 100%;
40 /* equal to footer height */
41 margin-bottom: -100px;
42}
43.page-wrap:after {
44 content: "";
45 display: block;
46}
47.site-footer, .page-wrap:after {
48 height: 100px;
49}
50.site-footer {
51 background: lightblue;
52}
53</style>
0b056f39
PM
54</head>
55<body>
5b5fc0ee 56 <div class="page-wrap">
578cb72f 57 <div class="container-fluid">
e547b0e7 58 <?PHP /*
0b056f39 59 <ul class="nav nav-pills">
b80693ef
PM
60 <li role='presentation' <?PHP if($_SERVER['SCRIPT_NAME'] == '/index.php'){ echo "class='active'"; } ?> ><a href='index.php'>1: Are You Registered?</a></li>
61 <li role='presentation' <?PHP if($_SERVER['SCRIPT_NAME'] == '/not_a_registered_voter.php'){ echo "class='active'"; } ?> ><a>2: How to Register?</a></li>
62 <li role='presentation' <?PHP if($_SERVER['SCRIPT_NAME'] == '/enter_information.php'){ echo "class='active'"; } ?> ><a>3: Enter Information</a></li>
63 <li role='presentation' <?PHP if($_SERVER['SCRIPT_NAME'] == '/is_the_information_correct.php'){ echo "class='active'"; } ?> ><a>4: Confirm Information</a></li>
9299d09b 64 <?PHP if ($_COOKIE['invite'] == ''){ ?>
b80693ef
PM
65 <li role='presentation' <?PHP if($_SERVER['SCRIPT_NAME'] == '/eligible.php'){ echo "class='active'"; } ?> ><a>5: Select Petition</a></li>
66 <li role='presentation' <?PHP if($_SERVER['SCRIPT_NAME'] == '/petition.php'){ echo "class='active'"; } ?> ><a>6: Sign Petition</a></li>
cae07d22 67 <?PHP }else{ ?>
b80693ef
PM
68 <li role='presentation' <?PHP if($_SERVER['SCRIPT_NAME'] == '/petition.php'){ echo "class='active'"; } ?> ><a>5: Sign <?PHP echo strtoupper($_COOKIE['invite']);?> Petition</a></li>
69 <li role='presentation' <?PHP if($_SERVER['SCRIPT_NAME'] == '/eligible.php'){ echo "class='active'"; } ?> ><a>6: Select Next Petition</a></li>
cae07d22
PM
70 <?PHP } ?>
71
b2ab3095 72 <?PHP if ($_COOKIE['web_name'] != ''){ ?>
b80693ef 73 <li role='presentation'><a href="/reset.php">RESET</a></li>
6821392f 74 <?PHP } ?>
0b056f39 75 </ul>
e547b0e7 76 */ ?>