2 include_once('header.php');
3 if (isset($_POST['petition'])){
4 $id = $_POST['petition'];
6 $q = "select * from petitions where petition_id = '$id'";
7 $r = $petition->query($q);
8 $d = mysqli_fetch_array($r);
9 }elseif($_COOKIE['pID'] != ''){
10 $id = $_COOKIE['pID'];
11 $q = "select * from petitions where petition_id = '$id'";
12 $r = $petition->query($q);
13 $d = mysqli_fetch_array($r);
20 font
-family
: "myFirstFont";
21 src
: url("files/Claston Script.ttf");
24 font
-family
: "myFirstFont";
29 if (isset($_POST['signed_name_as'])){
32 $
(document
).ready(function(){
33 $
('#exampleModalLower').modal('show');
37 document
.getElementById('text2b').innerHTML
= document
.getElementById('myTextb').value
;
44 $
(document
).ready(function(){
45 $
('#exampleModalCenter').modal('show');
49 document
.getElementById('text2').innerHTML
= document
.getElementById('myText').value
;
57 <div
class="modal fade" id
="exampleModalCenter" tabindex
="-1" role
="dialog" aria
-labelledby
="exampleModalCenterTitle" aria
-hidden
="true">
58 <div
class="modal-dialog" role
="document">
59 <div
class="modal-content">
60 <div
class="modal-header">
61 <h5
class="modal-title" id
="exampleModalLongTitle">Type Your Signature to Sign Petition
</h5
>
62 <button type
="button" class="close" data
-dismiss
="modal" aria
-label
="Close">
63 <span aria
-hidden
="true">×
;</span
>
66 <form action
='petition.php' method
='POST'>
67 <div
class="modal-body">
68 <input name
="signed_name_as" type
="text" id
="myText" onkeyup
="addText()">
69 <div id
="text2" class="sig"></div
>
71 <div
class="modal-footer">
72 <button type
="submit" class="btn btn-primary">Sign
and Next
</button
>
80 <div
class="modal fade" id
="exampleModalLower" tabindex
="-1" role
="dialog" aria
-labelledby
="exampleModalLowerTitle" aria
-hidden
="true">
81 <div
class="modal-dialog modal-dialog-centered" role
="document">
82 <div
class="modal-content">
83 <div
class="modal-header">
84 <h5
class="modal-title" id
="exampleModalLongTitle">Type Your Signature to Sign
as Circulator
</h5
>
85 <button type
="button" class="close" data
-dismiss
="modal" aria
-label
="Close">
86 <span aria
-hidden
="true">×
;</span
>
89 <form action
='sign.php' method
='POST'>
90 <div
class="modal-body">
91 <input name
="signed_name_as" type
="text" id
="myTextb" onkeyup
="addTextb()">
92 <div id
="text2b" class="sig"></div
>
94 <div
class="modal-footer">
95 <button type
="submit" class="btn btn-primary">Sign
and Submit
</button
>
102 <div
class='col-sm-12'><img
class="img-responsive" src
='hard_copy.php'></div
>
105 <?PHP
include_once('footer.php');