-
Notifications
You must be signed in to change notification settings - Fork 8
/
lecturevieww.php
101 lines (89 loc) · 2.32 KB
/
lecturevieww.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
<?php
/**
* @System HP-pc Rax
* @author Rakshit shah <Rakshitshah1994@gmail.com>
* @copyright 2015-2017 |Rakshit shah
* @license http://rakshit.in/license/license.php | PHP License 3.0
* @version 1.1
* @since File available since Release 1.0.0
*/
session_start();
include("header.php");
include("conection.php");
$result = mysql_query("SELECT * FROM lectures WHERE lecid='$_SESSION[userid]'");
while($row1 = mysql_fetch_array($result))
{
$lecid = $row1['lecid'];
$pass = $row1['password'];
$couseid = $row1['courseid'];
$lecname = $row1['lecname'];
$address = $row1['address'];
$contno = $row1['contactno'];
}
$result12 = mysql_query("SELECT * FROM course WHERE courseid ='$courseid'");
while($row2 = mysql_fetch_array($result12))
{
$cbane = $row2["coursename"];
}
?>
<section id="page">
<header id="pageheader" class="normalheader">
<h2 class="sitedescription">
</h2>
</header>
<section id="contents">
<article class="post">
<header class="postheader">
<h2>Lecture Profile</h2>
</header>
<section class="entry">
<font size="3">
<form action="" method="post" class="form">
<table width="501" height="228" border="1">
<tr>
<td width="198" height="34"><strong> Lecture ID :</strong></td>
<td width="287"> <?php echo $lecid ;?></td>
</tr>
<tr>
<td height="42"><strong> Name :</strong></td>
<td> <?php echo $lecname ;?></td>
</tr>
<tr>
<td height="64"><strong> Address : </strong></td>
<td> <?php echo $address ;?></td>
</tr>
<tr>
<td height="39"><strong> Contact No. : </strong></td>
<td> <?php echo $contno;?></td>
</tr>
<tr>
<td height="35"><strong> Course :</strong></td>
<td> <?php echo $cbane ;?></td>
</tr>
</table>
</font>
<p class="textfield"> </p>
<div class="clear"></div>
</form>
</section>
</article>
<article class="post">
<header class="postheader"></header>
<section class="entry">
<form action="" method="post" class="form">
<div class="clear"></div>
</form>
<div class="clear"></div>
</section>
</article>
</section>
<?php
if($_SESSION["type"]=="admin")
{
include("adminmenu.php");
}
else
{
include("lecturemenu.php");
}
include("footer.php"); ?>