forked from aniliam/PenPalforLife
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmatch.php
More file actions
175 lines (140 loc) · 6.71 KB
/
match.php
File metadata and controls
175 lines (140 loc) · 6.71 KB
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
<?php
require('connection.php');
if(isset($_GET['q'])){
$result=selectSpecificUser($_GET['q']);
$row = $result->fetch_assoc();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>SB Admin - Bootstrap Admin Template</title>
<!-- Bootstrap Core CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.3/css/bootstrap.min.css" integrity="sha384-MIwDKRSSImVFAZCVLtU0LMDdON6KVCrZHyVQQj6e8wIEJkW4tvwqXrbMIya1vriY" crossorigin="anonymous">
<!-- Custom CSS -->
<!--<link href="css/sb-admin.css" rel="stylesheet">
<!-- Morris Charts CSS -->
<link href="css/plugins/morris.css" rel="stylesheet">
<link href="css/custom.css" rel="stylesheet">
<!-- Custom Fonts -->
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script>
var value=0;
function loadDoc(id)
{
// alert(id);
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (xhttp.readyState == 4 && xhttp.status == 200) {
// alert(xhttp.responseText);
if(xhttp.responseText.trim()==""){
value=0;
}
else{
document.getElementById("matcheddata").innerHTML = xhttp.responseText;
}
}
};
// alert("ajaxgetdata.php?id="+id);
xhttp.open("GET", "ajaxgetdata.php?id="+value, true);
xhttp.send();
value++;
}
</script>
</head>
<body>
<div class="container ">
<div class="row row-right">
<div class="col-md-1 dropdown">
<button class="btn btn-primary btn-sm dropdown-toggle" type="button" data-toggle="dropdown">Grades
<span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#">10</a></li>
<li><a href="#">9</a></li>
<li><a href="#">8</a></li>
<li><a href="#">7</a></li>
<li><a href="#">6</a></li>
<li><a href="#">5</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">3</a></li>
<li><a href="#">2</a></li>
<li><a href="#">1</a></li>
</ul>
</div>
<div class="col-md-1 dropdown">
<button class="btn btn-primary btn-sm dropdown-toggle" type="button" data-toggle="dropdown">Language
<span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#">HTML</a></li>
<li><a href="#">CSS</a></li>
<li><a href="#">JavaScript</a></li>
</ul>
</div>
<div class="col-md-2 dropdown">
<button class="btn btn-primary btn-sm dropdown-toggle" type="button" data-toggle="dropdown">Location
<span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#">HTML</a></li>
<li><a href="#">CSS</a></li>
<li><a href="#">JavaScript</a></li>
</ul>
</div>
</div>
<div class="row row-centered card-pad">
<div class="col-md-5">
<div class="card">
<div class="card-block">
<h4 class="card-title">Your Student</h4>
<h6 class="card-subtitle text-muted">Name:<?php echo $row['FirstName']." " .$row["LastName"]; ?></h6>
</div>
<div class="col-centered">
<img src="https://cdn3.iconfinder.com/data/icons/avatar-set/512/Avatar02-512.png" alt="Card image"
height="200" width="250">
</div>
<div class="card-block">
<p class="card-text"><?php echo 'School:'.$row["School"].'
<br>
Location:'.$row["City"].",".$row["State"].",".$row["Country"].'
<br>Email:'.$row['Email'].'<br>Bio:'.$row["Bio"]; } ?></p>
</div>
</div>
</div>
<div id="matcheddata">
<div class="col-md-5">
<div class="card">
<div class="card-block">
<h4 class="card-title">Matched With</h4>
<h6 class="card-subtitle text-muted">Name:xxxxxx</h6>
</div>
<div class="col-centered">
<img src="https://cdn3.iconfinder.com/data/icons/avatar-set/512/Avatar02-512.png" alt="Card image"
height="200" width="250">
</div>
<div class="card-block">
</div>
</div>
</div>
</div>
</div>
<div class="row row-centered">
<a type="button" class="btn btn-primary" href>Match</button>
<button class="btn btn-primary" onclick="loadDoc(<?php echo $_REQUEST['q'];?>)">Next</button>
</div>
<!--/.Card content-->
</div>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.min.js" integrity="sha384-THPy051/pYDQGanwU6poAc/hOdQxjnOEXzbT+OuUAFqNqFjL+4IGLBgCJC3ZOShY" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.2.0/js/tether.min.js" integrity="sha384-Plbmg8JY28KFelvJVai01l8WyZzrYWG825m+cZ0eDDS1f7d/js6ikvy1+X+guPIB" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.3/js/bootstrap.min.js" integrity="sha384-ux8v3A6CPtOTqOzMKiuo3d/DomGaaClxFYdCu2HPMBEkf6x2xiDyJ7gkXU0MWwaD" crossorigin="anonymous"></script>
</html>