Update hard_copy.php
[clinton/MarylandElectronicPetitionSignature.git] / petition.php
CommitLineData
de92e95d
PM
1<?PHP
2include_once('header.php');
3if (isset($_POST['petition'])){
4 $id = $_POST['petition'];
70e2de61 5 setcookie("pID", $id);
de92e95d
PM
6 $q = "select * from petitions where petition_id = '$id'";
7 $r = $petition->query($q);
8 $d = mysqli_fetch_array($r);
9}
10?>
9545d56d
PM
11<style>
12@font-face {
13 font-family: "myFirstFont";
32286a4c 14 src: url("files/Claston Script.ttf");
9545d56d
PM
15}
16.sig {
17 font-family: "myFirstFont";
8e6694a5 18 font-size: 40px;
9545d56d
PM
19}
20</style>
21
56b829ee 22<script>
3ffbb5c9
PM
23 $(document).ready(function(){
24 $('#exampleModalCenter').modal('show');
25 });
398ca4df
PM
26 function addText()
27 {
28 document.getElementById('text2').innerHTML = document.getElementById('myText').value;
29 }
56b829ee 30</script>
162b6ce2 31
56b829ee
PM
32<!-- Modal -->
33<div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
34 <div class="modal-dialog modal-dialog-centered" role="document">
35 <div class="modal-content">
36 <div class="modal-header">
398ca4df 37 <h5 class="modal-title" id="exampleModalLongTitle">Type Your Signature</h5>
56b829ee
PM
38 <button type="button" class="close" data-dismiss="modal" aria-label="Close">
39 <span aria-hidden="true">&times;</span>
40 </button>
41 </div>
42 <div class="modal-body">
398ca4df
PM
43 <input type="text" id="myText" onkeyup="addText()">
44 <div id="text2" class="sig"></div>
56b829ee
PM
45 </div>
46 <div class="modal-footer">
17149f6d 47 <button type="button" class="btn btn-primary" onclick="window.location.href='sign.php'">Sign and Submit</button>
56b829ee
PM
48 </div>
49 </div>
50 </div>
51</div>
5f7975e1 52<div class='col-sm-12'><img class="img-responsive" src='hard_copy.php'></div>
162b6ce2 53
162b6ce2 54
1fb7899f 55<?PHP include_once('footer.php');