Create pull_request_template.md
[clinton/MarylandElectronicPetitionSignature.git] / is_the_information_correct.php
index a47575d..79622c5 100644 (file)
@@ -3,6 +3,8 @@ $web_first_name   = $_COOKIE['web_first_name'];
 $web_last_name    = $_COOKIE['web_last_name'];
 $web_house_number = $_COOKIE['web_house_number'];
 $web_zip_code     = $_COOKIE['web_zip_code'];
+$DOB              = $_COOKIE['pDOB'];
+$PHONE             = $_COOKIE['pPHONE'];
 if ($web_first_name != '' && $web_last_name != '' && $web_house_number != '' && $web_zip_code != ''){
   // ok to check for records
 }else{
@@ -21,33 +23,53 @@ if ($d['VTRID'] != ''){
    $RESIDENTIALCITY   = $d['RESIDENTIALCITY'];
    $COUNTY            = $d['COUNTY'];
    $RESIDENTIALZIP5   = $d['RESIDENTIALZIP5'];
+  // set cookies for hard_copy.php
+  setcookie("pCOUNTY", $COUNTY);
+  setcookie("pNAME", "$FIRSTNAME $MIDDLENAME $LASTNAME");
+  setcookie("pADDRESS", "$ADDRESS $RESIDENTIALCITY $RESIDENTIALZIP5");
+  setcookie("pADDRESS1", "$ADDRESS");
+  setcookie("pADDRESS2", "$RESIDENTIALCITY MD $RESIDENTIALZIP5");
+  setcookie("pVTRID", $VTRID);
+  setcookie("signature_status", 'verified');
 }else{
+   setcookie("signature_status", 'notfound');
    header('Location: warning_not_found.php');
 }
+
+$qX = "select * from website_text where id = '6'";
+ $rX = $petition->query($qX);
+ $dX = mysqli_fetch_array($rX);
 ?>
-  <div class='row'>
-    <div class='col-sm-12' style='height:100px; text-align:center;'><h2>Is this information correct?</h2></div>
-  </div>
- <div class='row'>
+<script>document.title = "MEPS - Confirm information";</script>
+<div class='row'>
+    <div class='col-sm-12' style='height:100px; text-align:center;'><h2><?PHP echo $dX['text_title'];?></h2><p><?PHP echo $dX['text_block'];?></p></div>
+</div>
+<div class='row'>
   <div class='col-sm-6' style='height:50px; text-align:center;'>First Name</div><div class='col-sm-6' style='height:50px; text-align:center;'><?PHP echo $FIRSTNAME;?></div>
 </div>
- <div class='row'>
-  <div class='col-sm-6'>Middle Name </div><div class='col-sm-6'>Edward</div>
+<div class='row'>
+  <div class='col-sm-6' style='height:50px; text-align:center;'>Middle Name </div><div class='col-sm-6' style='height:50px; text-align:center;'><?PHP echo $MIDDLENAME;?></div>
+</div>
+<div class='row'>
+  <div class='col-sm-6' style='height:50px; text-align:center;'>Last Name </div><div class='col-sm-6' style='height:50px; text-align:center;'><?PHP echo $LASTNAME;?></div>
+</div>
+<div class='row'>
+  <div class='col-sm-6' style='height:50px; text-align:center;'>Date of Birth </div><div class='col-sm-6' style='height:50px; text-align:center;'><?PHP echo $DOB;?></div>
 </div>
- <div class='row'>
-  <div class='col-sm-6'>Last Name </div><div class='col-sm-6'>Smith</div>
+<div class='row'>
+  <div class='col-sm-6' style='height:50px; text-align:center;'>Full Addresss </div><div class='col-sm-6' style='height:50px; text-align:center;'><?PHP echo $ADDRESS;?></div>
 </div>
- <div class='row'>
-  <div class='col-sm-6'>Full Addresss </div><div class='col-sm-6'>1232 Roadly Ct.</div>
+<div class='row'>
+  <div class='col-sm-6' style='height:50px; text-align:center;'>Phone </div><div class='col-sm-6' style='height:50px; text-align:center;'><?PHP echo $PHONE;?></div>
 </div>
- <div class='row'>
-  <div class='col-sm-2'>City</div><div class='col-sm-2'>Baltimore</div>
-  <div class='col-sm-2'>County</div><div class='col-sm-2'>Baltimore City</div>
-  <div class='col-sm-2'>Zip</div><div class='col-sm-2'>21204</div>
+<div class='row'>
+  <div class='col-sm-2' style='height:50px; text-align:center;'>City</div><div class='col-sm-2'><?PHP echo $RESIDENTIALCITY;?></div>
+  <div class='col-sm-2'>County</div><div class='col-sm-2'><?PHP echo $COUNTY;?></div>
+  <div class='col-sm-2'>Zip</div><div class='col-sm-2'><?PHP echo $RESIDENTIALZIP5;?></div>
 </div>
 <div class='row'>
-  <div class='col-sm-6'><button type="button" class="btn btn-success">YES</button></div>
-  <div class='col-sm-6'><button type="button" class="btn btn-danger">NO</button></div>
+  <div class='col-sm-6' style='height:50px; text-align:center;'><button type="button" class="btn btn-success" onclick="window.location.href='eligible.php'">YES</button></div>
+  <div class='col-sm-6' style='height:50px; text-align:center;'><button type="button" class="btn btn-danger" onclick="window.location.href='reset.php'">NO</button></div>
 </div>