-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathteacher_update_quiz_set.php
53 lines (49 loc) · 2.17 KB
/
teacher_update_quiz_set.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
<?php
session_start();
include 'teacher_nav.php';
include ("database.php");
?>
<html>
<head>
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link href="ss.css" rel="stylesheet" type="text/css" />
</head>
<body background="images/background.jpg" height="100" >
<!--Import jQuery before materialize.js-->
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="js/materialize.min.js"></script>
<?php
$email = $_SESSION['email'];
$testid = $_REQUEST['testid'];
//echo $email;
$sql = mysqli_query($con, "select * from quizset where test_id='$testid'");
if(mysqli_num_rows($sql)<1)
{
echo "<center>No sets present</center>";
}
echo "<div>";
echo "<div class='row' style='margin-left: 350px; margin-top: 100px;'>";
while($row1=mysqli_fetch_row($sql))
{
echo "
<div class='col s6 m3 ' style='width:250px; margin-left:20px; margin-bottom:30px; margin-right:20px;'>
<a href='teacher_update_quiz_set2.php?setid=$row1[0]'>
<div class='card'>
<div class='card-image'>
<img src='images/card4.png' style='height: 150px; border-radius: 15px;'>
<span class='card-title'><h5 style='color: white;'><center>".strtoupper($row1[2])."</center></span>
</div>
</div>
</a>
</div> ";
}
echo " </div></div>";
$_SESSION['testid']=$row1['0'];
?>
</body>
</html>