-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcourse_3.php
147 lines (135 loc) · 4.1 KB
/
course_3.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
<?php
session_start();
if(!isset($_SESSION['username'])){
header('location:login.php');
}
$_SESSION['username2'] = $_SESSION['username1'] ;
?>
<!DOCTYPE html>
<html>
<head>
<title>Course: "Course Name"</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<style>
/* Set black background color, white text and some padding */
footer {
background-color:black;
color: white;
padding: 15px;
}
.bg-1 {
background: #2d2d30;
color: #bdbdbd;
}
.bg-1 p {color:white;}
.main {
text-align:center;
}
.marq {
padding-top:30px;
padding-bottom:30px;
}
.geek1 {
font-size:36px;
font-weight:bold;
color:white;
padding-bottom:10px;
}
</style>
</head>
<body bgcolor="lightcyan">
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!--<img src="iit logo.png" class="img.circle" height="65" width="65">-->
<ul class="nav navbar-nav">
<li><a href="https://www.iitdh.ac.in/">IIT DHARWAD</a></li>
</ul>
<ul class="nav navbar-nav">
<li><a href="home1.php">DASHBOARD</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="logout.php"><style="color:red">LOGOUT</style></a></li>
</ul>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="studentprofile.php"><style="color:red">PROFILE</style></a></li>
</ul>
</div>
</div>
</nav>
<br><br>
<?php
$total="";
$total2="";
$con = mysqli_connect('localhost','root');
mysqli_select_db($con, 'sessionpractical');
$query = " select * from signin ";
$result = mysqli_query($con, $query);
$result = mysqli_query($con, $query);
$i=1;
while ($row = $result->fetch_assoc()) {
if((strcasecmp($row['course_1'], $_SESSION['course_31'])==0)&&(strcasecmp($row['designation'], 'teacher')==0)){
if($i>0){
$notifier=$row['name'];
$message1= $row['notification1'];
$announce1=$row['announcements1'];
$message1=' '.$message1;
$announce1=' '.$announce1;
$total=$message1.$total;
$total2=$announce1.$total2;
$i=$i-1;
?>
<?php
}
}
}
?>
<center><img src="daniel-korpai-pSaWOYGv-Tk-unsplash.jpg" height="300" width="600"></center><br>
<div class = "main">
<marquee class="marq" bgcolor = "black" direction = "left" loop="" >
<div class="geek1"><?php echo $_SESSION['course_3']; ?></div>
</marquee>
</div> <br>
<div class="container-fluid text-center ">
<div class="row">
<div class="col-lg-6 well">
<div class="row">
<div class="col-lg-12 well bg-1">
<p>ASSIGNMENTS</p>
</div>
</div>
<div class="row">
<div class="col-lg-12 well">
<a href="lab.php">LAB ASSIGNMENT-1</a>
</div>
</div>
</div>
<div class="col-lg-6 well">
<div class="row">
<div class="col-lg-12 well bg-1">
<p>announcements....</p>
</div>
</div>
<div class="row">
<div class="col-lg-12 well ">
<p><?php echo $total2; ?></p>
</div>
</div>
</div>
</div>
</div>
<footer class="container-fluid text-center">
<p><a href="home.php">GO TO DASHBOARD</p>
</footer>
</body>
</html>