-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.php
More file actions
143 lines (110 loc) · 3.51 KB
/
admin.php
File metadata and controls
143 lines (110 loc) · 3.51 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
<?php
session_start();
$email = $_COOKIE['email'];
if(!($email == 'akshay@jaaga.in' || $email == 'freeman@jaaga.in')){
header("location:./index.php?id=y");
}
include ('./goals.php');
$users = allUserInfo();
if($email == 'akshay@jaaga.in'){
$name = "Akshay";
}
elseif ($email == 'freeman@jaaga.in') {
$name = "Freeman";
}
else{
header("location:./index.php?id=y");
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Admin Panel</title>
<link href="./bootstrap.css" rel="stylesheet">
<link href="./custom.css" rel="stylesheet" type='text/css'>
<!-- <link href='http://fonts.googleapis.com/css?family=Cabin+Sketch' rel='stylesheet' type='text/css'>-->
<script language="javascript" src="./jquery-2.1.0.min.js">
</script>
<style type="text/css">
@font-face{
font-family:'KGSecondChancesSketch';
src:url('fonts/KGSecondChancesSketch.ttf');
/* font-family: 'CabinSketch';
src: url('fonts/CabinSketch-Regular.otf');*/
}
body{
background: url("./backb.jpg");
background-repeat:repeat;
padding-top: 80px;
}
/*img {
position: relative;
float:left;
}*/
img {
float:left;
height: auto;
width: auto;
max-width: 94%;
max-height: 600px;
margin:10px;
margin-right:30px;
}
</style>
</head>
<body>
<!-- Navbar section -->
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation" style=" background-color: #25383c; border-color: #25383c;">
<div class="container">
<div class="navbar-header" style="height: 50px;">
<a class="navbar-brand" href="index.php"><h1 style="font-family:'KGSecondChancesSketch';
margin-top: -9px;color: white;">Goals.4.Jaaga</h1></a>
</div>
<div class="collapse navbar-collapse">
<div class="navbar-collapse collapse">
<div class="navbar-form navbar-right">
<a href="./logout.php" class="btn btn-danger">LOGOUT</a>
<!--<button class="btn btn-success" data-toggle="modal" data-target="#myModal">Sign in</button> -->
</div><!--/.navbar-collapse -->
</div>
</div><!--/.navbar-collapse -->
</div>
</div>
<div class="container">
<div class="row" style="margin-left: auto; margin-right: auto; padding-bottom: 20px;">
<h1 style="text-align:center; font-family:'KGSecondChancesSketch' cursive;">
Hello <?php echo $name; ?>,Nice to see you.
</h1>
</div>
</div>
<div class="container">
<div class="row" align="center">
<div class="col-lg-2"></div>
<div class="col-lg-8" >
<div class="well">
<div id="freshtilledsoil_embed_widget" class="video-chat-widget"></div>
<script id="fts" src="http://freshtilledsoil.com/embed/webrtc-v5.js?r=FTS0316-CZ6NqG97"></script>
<!--<div style="margin: 0 auto; width:100%; height:400px;">
<object type="text/html" data="https://apprtc.appspot.com/?r=886374872344"
style="width:100%; height:100%; margin:1%;">
</object> -->
<br />
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<?php foreach($users as $user): ?>
<div class="col-lg-3">
<div class="well admin" >
<!-- style="width: 340px;"-->
<h3><?php echo $user['name'];?></h3>
<p><?php echo $user['course'];?> </p>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
</body>
</html>