-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhome.php
86 lines (82 loc) · 3.26 KB
/
home.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
<?php
include 'class/users.php';
$email=$_SESSION['email'];
$profile=new users;
$profile->users_profile($email);
//print_r($profile->data);
?>
<html xmlns="http://www.w3.org/1999/html" xmlns="http://www.w3.org/1999/html">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link type="text/css" href="styles/bootstrap.css" rel="stylesheet">
<script src="styles/jq.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<title>Home</title>
</head>
<body>
<div class="container">
<div class="col-lg-12">
<div>
<h3>Online Examination tool</h3>
</div>
<ul class="nav nav-tabs">
<li class="active"><a href="#home" data-toggle="tab">Home</a></li>
<li class=""><a href="#profile" data-toggle="tab">Profile</a></li>
<li class=""><a href="#logout" data-toggle="tab">Logout</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane fade in active" id="home">
<h3>Home</h3>
<center><button class="btn btn-primary" data-toggle="tab" href="#select">Start Quiz</button></center>
<div class="col-sm-4"></div>
<div class="col-sm-4"><br>
<div class="tab-pane fade" id="select">
<form action="ques_show.php" method="post">
<select class="form-control" id="" name="cat">
<option>Select category</option>
<?php
$profile->cat_show();
foreach ($profile->cat as $category){
?>
<option value="<?php echo $category['id'];?>"><?php echo $category['cat_name']; ?></option>
<?php
}
?>
</select>
<br><center><input type="submit" value="submit" class="btn btn-primary" /></center>
</form>
</div>
</div>
<div class="col-sm-4"></div>
</div>
<div class="tab-pane fade" id="profile">
<table class="table table-striped table-hover ">
<thead>
<tr>
<th>Id</th>
<th>Name</th>
<th>Email</th>
<th>Image</th>
</tr>
</thead>
<tbody>
<?php foreach($profile->data as $profi ){
?>
<tr>
<td><?php echo $profi['id'];?></td>
<td><?php echo $profi['name'];?></td>
<td><?php echo $profi['email'];?></td>
<td><img src="img/<?php echo $profi['img'];?>" alt="" width="25px" height="30px"/> </td>
</tr>
</table><?php }?>
</div>
<div class="tab-pane fade" id="logout">
<h1>Logout</h1>
</div>
</div>
</div>
</div>
</body>
</html>