pull Party Information from db
[clinton/MarylandElectronicPetitionSignature.git] / enter_information.php
index db24c18..7efb9f9 100644 (file)
@@ -1,4 +1,12 @@
 <?PHP
+if (isset($_COOKIE['form_version'])){
+  if ($_COOKIE['form_version'] == '2'){ 
+   header('Location: enter_information_v2.php');
+  } 
+  if ($_COOKIE['form_version'] == '3'){ 
+    header('Location: enter_information_v2.php'); 
+  }  
+}
 if (empty($_COOKIE['signature_status'])){
    setcookie("signature_status", 'unverified');
 }
@@ -117,18 +125,23 @@ slack_general('Enter Information ('.$_COOKIE['invite'].')','md-petition');
   <div class='row'>
      <div class='col-sm-3' style='text-align:right; background-color:lightyellow;'><h3>Phone Format</h3></div>
      <div class='col-sm-6' style='text-align:left; background-color:lightyellow;'><h3>443-123-4567</h3></div>
-     <div class='col-sm-1' style='text-align:center;'><button type="submit" class="btn btn-success btn-lg btn-block">↴</button></div>
+     <div class='col-sm-1' style='text-align:center;'></div>
   </div>
   <div class='row'>
-    <div class='col-sm-3' style='text-align:right;'><h2>House Number</h2></div>
+    <div class='col-sm-3' style='text-align:right;'><h2>Building Number</h2></div>
     <div class='col-sm-6' style='text-align:left;'><input class="form-control input-lg" name='web_house_number' type='number' required oninvalid="this.setCustomValidity('Please enter your house number without street name')" oninput="this.setCustomValidity('')"> </div>
     <div class='col-sm-1' style='text-align:center;'><button type="submit" class="btn btn-success btn-lg btn-block">↴</button></div>
   </div>  
   <div class='row'>
-     <div class='col-sm-3' style='text-align:right; background-color:lightyellow;'><h3>House Format</h3></div>
-     <div class='col-sm-6' style='text-align:left; background-color:lightyellow;'><h3>321</h3></div>
-     <div class='col-sm-1' style='text-align:center;'><button type="submit" class="btn btn-success btn-lg btn-block">↴</button></div>
-  </div>     
+     <div class='col-sm-3' style='text-align:right; background-color:lightyellow;'><h3>House: 321 Here St.</h3></div>
+     <div class='col-sm-6' style='text-align:left; background-color:lightyellow;'><h3>Use: 321</h3></div>
+     <div class='col-sm-1' style='text-align:center;'></div>
+  </div>
+  <div class='row'>
+     <div class='col-sm-3' style='text-align:right; background-color:lightyellow;'><h3>Apartment: 21 Here St. Apt 1323</h3></div>
+     <div class='col-sm-6' style='text-align:left; background-color:lightyellow;'><h3>Use: 21</h3></div>
+     <div class='col-sm-1' style='text-align:center;'></div>
+  </div>  
   <div class='row'>
      <div class='col-sm-3' style='text-align:right;'><h2>ZIP Code</h2></div>
      <div class='col-sm-6' style='text-align:left;'><input class="form-control input-lg" name='web_zip_code' type='number' required oninvalid="this.setCustomValidity('Please enter your five digit zip code')" oninput="this.setCustomValidity('')"> </div>
@@ -137,7 +150,7 @@ slack_general('Enter Information ('.$_COOKIE['invite'].')','md-petition');
   <div class='row'>
      <div class='col-sm-3' style='text-align:right; background-color:lightyellow;'><h3>ZIP Code Format</h3></div>
      <div class='col-sm-6' style='text-align:left; background-color:lightyellow;'><h3>55555</h3></div>
-     <div class='col-sm-1' style='text-align:center;'><button type="submit" class="btn btn-success btn-lg btn-block">↴</button></div>
+     <div class='col-sm-1' style='text-align:center;'></div>
   </div> 
   <div class='row'>
      <div class='col-sm-10' style='text-align:center;'><button type="submit" class="btn btn-success btn-lg btn-block"><img alt='Click Here to Continue' class='click_me' src="files/click_here.gif">Next</button></div>
@@ -146,10 +159,10 @@ slack_general('Enter Information ('.$_COOKIE['invite'].')','md-petition');
      <div class='col-sm-10' style='text-align:center;'><button type="reset" class="btn btn-warning btn-lg btn-block not_me">Clear</button></div>
   </div>
   <div class='row'>
-     <div class='col-sm-10' style='text-align:center;'>* E-Mail is not required, and will only be used internally, if we need to reach you. It will never sold or given out.</div>
+     <div class='col-sm-10' style='text-align:center;'>* E-Mail is not required, and will only be used with the petitioners to reach you. It will never be sold.</div>
   </div>
      <div class='row'>
-     <div class='col-sm-10' style='text-align:center;'>** WE WILL NEVER USE YOUR PHONE NUMBER - NEVER CALL - NEVER FOR TEXT MESSAGES.</div>
+     <div class='col-sm-10' style='text-align:center;'>** PHONE NUMBER IS REQUIRED BY STATE OF MARYLAND. WE WILL NEVER USE YOUR PHONE NUMBER - NEVER CALL - NEVER FOR TEXT MESSAGES.</div>
   </div>
 </form>