style buttons
[clinton/MarylandElectronicPetitionSignature.git] / index.php
1 <?PHP
2 if (isset($_GET['invite'])){
3 setcookie("invite", $_GET['invite']);
4 header('Location: index.php');
5 }
6 $title = 'MEPS - Are you Registered?';
7 if ($_COOKIE['invite'] != ''){
8 $title = 'MEPS ('.strtoupper($_COOKIE['invite']).') - Are you Registered?';
9 }
10 include_once('header.php');
11
12 $q = "select * from website_text where id = '1'";
13 $r = $petition->query($q);
14 $d = mysqli_fetch_array($r);
15 ?>
16 <script>document.title = "<?PHP echo $title;?>";</script>
17 <div class='col-sm-12' style='height:100px; text-align:center;'><h2><?PHP echo $d['text_title'];?></h2><p><?PHP echo $d['text_block'];?></p></div>
18
19 <div class='col-sm-6' style='height:100px; text-align:center;'><button type="button" class="btn btn-success btn-lg btn-block" onclick="window.location.href='enter_information.php'">YES</button></div>
20
21 <div class='col-sm-6' style='height:100px; text-align:center;'><button type="button" class="btn btn-danger btn-lg btn-block" onclick="window.location.href='not_a_registered_voter.php'">NO</button> </div>
22
23 <?PHP include_once('footer.php');