-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSponsorhome.php
189 lines (151 loc) · 3.95 KB
/
Sponsorhome.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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="Description" content="A Registration Form">
<meta name="Author" content="">
<center><h1>SPONSOR A KID TODAY</h1></center>
</head>
<style>
body
{
background-image:url("images/yellow.jpg");
background-repeat:no-repeat;
background-size: cover;
margin-left:200px;
margin-right:200px;
margin-top:100px;
}
table
{
background-color:#BAC8DF;
border-radius:20px;
border:1px solid;
}
.table
{
background-color:#484646;
border-radius:20px;
font-color:white;
border:1px solid;
opacity:0.8;
}
form{
text-align:justify;
font-size:20px;
}
input
{
border-radius: 17px;
border-radius: 17px;
border-radius: 17px;
border-radius: 17px;
border:solid 1px;
padding:10px;
}
.text
{
width:200px;
}
.button
{
background-color: white;
border:2px solid #484646;
width:200px;
color: black;
padding: none;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}
.button:hover
{
background-color: #392F2F;
color: white;
}
.logout
{
float: right;
padding-bottom : 200px;
}
.logout a
{
text-decoration: none;
}
button
{
width: 90px;
height: 40px;
border-radius: 10px;
}
p
{
font-family: 'Cairo', sans-serif;
font-size: 20px;
text-align: center;
}
.question
{
font-size: 20px;
text-align: center;
font-family: 'Crete Round', serif;
text-align: center;
}
.pwork
{
font-size: 24px;
text-align: center;
font-family: 'Lobster', cursive;
text-align: center;
}
</style>
<body>
<link rel="stylesheet" type="text/css" href="Horizontal.css">
<link href="https://fonts.googleapis.com/css?family=Cairo|Crete+Round|Lobster" rel="stylesheet">
<ul>
<li style="float:left"><a class="active"href="Home.php">Home</a></li>
<li><a href="">About</a></li>
<li><a href="Signin.php">Application</a></li>
<li><a href="AdminLog.php">Admin</a></li>
<li><a href="DonorSignin.php">Donate</a></li>
<li><a href="SponsorSignin.php">Sponsor</a></li>
<li><a href="contact.php">Contact Us</a></li>
<li><a href="">FAQ</a></li>
<li><a href="">Feedback</a></li>
</ul></align>
<div class="logout">
<h2><button><a href="logout.php">Logout here</a> </h2></button>
</div>
<p>
Hello to all Sponsors. Thanks for registering with
EasyScholarship.<br>
<p class="pwork">Your work can save a child’s future.</p> <br>
<p class="question">Why Sponsor?</p>
<p>The list of students displayed are in need of finance for <br> their education. Your sponsorship can help them finance <br>their education and their other needs.</p>
<p class="question">How it works?</p>
<p>The List of usernames are displayed of the students who <br>have applied for sponsorships. <br>
On clicking on particular username, the details of <br> that student are displayed. <br>
You can click on the sponsor button to sponsor the kid. <br>
The amount to sponsor depends on the sponsor. <br>
After you sponsor the student, the particular contact <br> student details are sent to the sponsor for further <br> clarification and then the transfer of fund happens <br>
</p><br>
<form action="" method="POST">
<?php
$sponsor = $_GET['q'];
?>
<!-- <button class=" sponsor"><a href="http://localhost/Scholarship/Sponsor1.php?q=$sponsor.php">Sponsor</a> </h2></button>
<h2><button class="cancel"><a href="Home.php">Logout here</a></button> -->
<center><b><input type="submit" class="button" name="sponsor" value="Sponsor a Kid Now!"></b></center><br>
<center><input type="submit" class="button" name="cancel" value="Cancel"></center><br>
</form>
</body>
</html>
<?php
if(isset($_POST['sponsor'])){
header("Location: http://localhost/Scholarship/Sponsor1.php?q=$sponsor");
}
if(isset($_POST['cancel'])){
header("Location: Home.php");
}
?>