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 window
.scrollTo(0,document
.body
.scrollHeight
);
34 $
('#exampleModalLower').modal('show');
38 document
.getElementById('text2b').innerHTML
= document
.getElementById('myTextb').value
;
45 $
(document
).ready(function(){
46 $
('#exampleModalCenter').modal('show');
50 document
.getElementById('text2').innerHTML
= document
.getElementById('myText').value
;
58 <div
class="modal fade" id
="exampleModalCenter" tabindex
="-1" role
="dialog" aria
-labelledby
="exampleModalCenterTitle" aria
-hidden
="true">
59 <div
class="modal-dialog" role
="document">
60 <div
class="modal-content">
61 <div
class="modal-header">
62 <h5
class="modal-title" id
="exampleModalLongTitle">Type Your Signature to Sign Petition
</h5
>
63 <button type
="button" class="close" data
-dismiss
="modal" aria
-label
="Close">
64 <span aria
-hidden
="true">×
;</span
>
67 <form action
='petition.php' method
='POST'>
68 <div
class="modal-body">
69 <input name
="signed_name_as" type
="text" id
="myText" onkeyup
="addText()">
70 <div id
="text2" class="sig"></div
>
72 <div
class="modal-footer">
73 <button type
="submit" class="btn btn-primary">Sign
and Next
</button
>
81 <div
class="modal fade" id
="exampleModalLower" tabindex
="-1" role
="dialog" aria
-labelledby
="exampleModalLowerTitle" aria
-hidden
="true">
82 <div
class="modal-dialog modal-dialog-centered" role
="document">
83 <div
class="modal-content">
84 <div
class="modal-header">
85 <h5
class="modal-title" id
="exampleModalLongTitleLower">Type Your Signature to Sign
as Circulator
</h5
>
86 <button type
="button" class="close" data
-dismiss
="modal" aria
-label
="Close">
87 <span aria
-hidden
="true">×
;</span
>
90 <form action
='sign.php' method
='POST'><input type
='hidden' value
='<?PHP echo $_POST['signed_name_as
'];?>' name
='signed_name_as'>
91 <div
class="modal-body">
92 <input name
="signed_name_as_circulator" type
="text" id
="myTextb" onkeyup
="addTextb()">
93 <div id
="text2b" class="sig"></div
>
95 <div
class="modal-footer">
96 <button type
="submit" class="btn btn-primary">Sign
and Submit
</button
>
103 <div
class='col-sm-12'><img
class="img-responsive" src
='hard_copy.php'></div
>
106 <?PHP
include_once('footer.php');