forked from RGClary/ACM-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdues.php
93 lines (93 loc) · 4.2 KB
/
dues.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<html>
<head>
<?php
require('common/head-includes.php');
?>
<title>Pay Dues | Association for Computing Machinery UTSA</title>
<script type="text/javascript">
//redirect if not secure and not on local dev machine
if(location.protocol.toLowerCase().indexOf("s") < 0 && location.hostname != 'localhost' && location.hostname != '127.0.0.1'){
window.location.href = 'https://' + location.hostname + location.pathname;
}
</script>
</head>
<body>
<?php
require('common/menu.php');
?>
<div id="content" class="container">
<div class="row">
<div class="col-sm-12">
<!-- content here! -->
<h1 class="content-title">
Dues
</h1>
<?php
require_once('./config.php');
$month = date('n', time());
$year = date('Y', time());
$current_semester;
if($month < 6){
$current_semester = 'Spring ' . $year;
}
else{
$current_semester = 'Fall ' . $year;
}
?>
<div id="stripe-button-container">
<script type="text/javascript">
$(document).ready(function(){
$("#fake-stripe-button").on('click',function(){
$(".stripe-button-el").click();
});
});
</script>
<div style="display:none;">
<form action="process_dues.php" method="post">
<script src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="<?php echo $stripe['publishable_key']; ?>"
data-description="Dues for <?php echo($current_semester); ?>"
data-amount="1500"
data-locale="auto"
data-label="Pay with Card or Bitcoin"
data-currency="usd"
data-bitcoin="true"
>
</script>
</form>
</div>
</div>
<div>
</div>
<div class="row section-container" style="margin-top:50px;">
<div class="col-sm-1">
</div>
<div class="col-sm-7" style="font-size:24px;">
<p>
We think it's awesome to have snacks at meetings. Prizes, travel reimbursements, t-shirts,
and other cool benefits for ACM members are all funded by dues. Dues are just $15 per semester. We spend all of our funds giving back to members and doing cool stuff.
</p>
</div>
<div class="col-sm-1">
</div>
<div class="col-sm-3" style="padding-top:60px;text-align:center;">
<!--
<h3>
Coming Soon
</h3>
<div style="background-color:grey;color:white;padding:5px;border-radius:3px;display:inline-block;cursor:default;">
Pay Dues
</div>
-->
<input type="button" value="Pay Dues" id="fake-stripe-button" />
</div>
</div>
</div>
</div>
</div>
<?php
require('common/footer.php');
?>
</body>
</html>