-
Notifications
You must be signed in to change notification settings - Fork 0
/
plans.php
161 lines (148 loc) · 5.91 KB
/
plans.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<?php
$conn = mysqli_connect('localhost','root','','admindb');
?>
<!DOCTYPE html>
<html>
<head>
<title>Sample page!</title>
<link rel="stylesheet" href="css/plans.css">
</head>
<body>
<br>
<br>
<br>
<br>
<div id="price">
<!--price tab-->
<div class="plan basic">
<div class="plan-inner">
<div class="entry-title">
<h3>Basic</h3>
<div class="price">$0<span style="font-family: cursive;" id="span">FREE</span>
</div>
</div>
<div class="entry-content">
<ul>
<li ><strong >1x</strong> Free Workout tutorial </li>
</ul>
</div>
<form action="updateuser.php?email=<?php echo $_GET['email']; ?>" method="post" >
<div class="btn btn1">
<input id="paypal1" type="submit" value="Book Now">
</div>
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="stayfit@gmail.com">
<input type="hidden" name="item_name_1" value="Basic Plan">
<input type="hidden" name="amount_1" value="0">
<input type="hidden" name="quantity_1" value="1">
<input type="hidden" value=" http://333c0bd743a7.ngrok.io/final/dummyregister.php?email=<?php echo $_GET['email'];?>" name="return">
<input type="hidden" value="2" name="rm">
</form>
</div>
</div>
<!-- end of price tab-->
<!--price tab-->
<!-- end of price tab-->
<!--price tab-->
<div class="plan standard">
<div class="plan-inner">
<div class="entry-title">
<h3>Standard</h3>
<div class="price">$50<span ></span>
</div>
</div>
<div class="entry-content">
<ul>
<li><strong>5x</strong> Free Workout tutorials</li>
<li><strong>Custom</strong> Workout Recommendations</li>
</ul>
</div>
<form action="updateuser.php?email=<?php echo $_GET['email']; ?>" method="post">
<!-- https://www.sandbox.paypal.com/cgi-bin/webscr -->
<div class="btn btn2">
<input id="paypal1" type="submit" value="Book Now" style="background-color: #3772aa">
</div>
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="stayfit@gmail.com">
<input type="hidden" name="item_name_1" value="Standard">
<input type="hidden" name="amount_1" value="50">
<input type="hidden" name="quantity_1" value="1">
<input type="hidden" value="http://333c0bd743a7.ngrok.io/final/dummyregister.php?email=<?php echo $_GET['email'];?>" name="return">
<input type="hidden" value="2" name="rm">
</form>
</div>
</div>
<!-- end of price tab-->
<!--price tab-->
<div class="plan ultimite">
<div class="plan-inner">
<!-- <div class="hot"> hot </div> -->
<img src="images/fire.jpg" width="50" height="50">
<div class="entry-title">
<!-- <img src="fire.jpg" width="50" height="30"> -->
<h3>Premium</h3>
<div class="price">$100<span></span>
</div>
</div>
<div class="entry-content">
<ul>
<li><strong>5x</strong> Free Workout tutorials</li>
<li><strong>Custom</strong> Workout Recommendations</li>
<li><strong>Custom</strong> Food Recommendations</li>
<li><strong>Free</strong> Complemtary Book</li>
</ul>
</div>
<form action="updateuser.php?email=<?php echo $_GET['email']; ?>" method="post">
<!-- https://www.sandbox.paypal.com/cgi-bin/webscr -->
<div class="btn btn3">
<input id="paypal1" type="submit" value="Book Now" style="background-color: #DD4B5E">
</div>
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="stayfit@gmail.com">
<input type="hidden" name="item_name_1" value="Premium">
<input type="hidden" name="amount_1" value="100">
<input type="hidden" name="quantity_1" value="1">
<input type="hidden" value="http://333c0bd743a7.ngrok.io/final/dummyregister.php?email=<?php echo $_GET['email'];?>" name="return">
<input type="hidden" value="2" name="rm">
</form>
</div>
</div>
<?php
$query="SELECT * FROM PLANS";
$data=mysqli_query($conn,$query);
while($result=mysqli_fetch_assoc($data)){ ?>
<div class="plan general" >
<div class="plan-inner">
<div class="entry-title" style="background-color: #00e07a">
<h3 style="background-color: #00a65a"><?php echo $result['name'] ?></h3>
<div class="price" style="background-color: #00a65a">$<?php echo $result['cost'] ?><span ></span>
</div>
</div>
<div class="entry-content">
<ul>
<li><?php echo $result['features'] ?></li>
</ul>
</div>
<form action="updateuser.php?email=<?php echo $_GET['email']; ?>" method="post">
<!-- https://www.sandbox.paypal.com/cgi-bin/webscr -->
<div class="btn btn2">
<input id="paypal1" type="submit" value="Book Now" style="background-color: #00a65a">
</div>
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="stayfit@gmail.com">
<input type="hidden" name="item_name_1" value="<?php echo $result['name'] ?>">
<input type="hidden" name="amount_1" value="<?php echo $result['cost'] ?>">
<input type="hidden" name="quantity_1" value="1">
<input type="hidden" value="http://333c0bd743a7.ngrok.io/final/dummyregister.php?email=<?php echo $_GET['email'];?>" name="return">
<input type="hidden" value="2" name="rm">
</form>
</div>
</div>
<?php } ?>
</div>
</body>
</html>