-
Notifications
You must be signed in to change notification settings - Fork 0
/
teacher1.php
102 lines (78 loc) · 3.34 KB
/
teacher1.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
<?php
include 'dbc.php';
page_protect();
$pagetitle="Staff Profile";
include "includes/header2.php";
$db1 = new db1(); ?>
<div class="container">
<?php
$query=$db->query("select * from users where id='$_SESSION[user_id]'");
?>
<?php while($key=$query->fetch_assoc()) {?>
<div class="row">
<div class="templatemo-line-header" style="margin-top: 0px;" >
<div class="text-center">
<hr class="team_hr team_hr_left hr_gray"/><span class="span_blog txt_darkgrey txt_orange">Staff Profile</span>
<hr class="team_hr team_hr_right hr_gray" />
</div>
</div>
</div>
<?php if (isset($status)): ?>
<div class="alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<?php endif ?>
<div class="form-container">
<form method="post" role="form" action="teacher12.php?user_name=<?php echo $key['user_name']; ?>">
<div class="container">
<div class="row">
<div class="col-lg-4">
<div class="form-group">
<label for="user_name"> Employee ID </label>
<input type="text" name="user_name" class="form-control" value="<?php echo $key['user_name']; ?>" required id="user_name" disabled=disabled >
</div>
</div>
<div class="col-lg-4">
<div class="form-group">
<label for="full_name"> Staff Name</label>
<input type="text" name="full_name" class="form-control" value="<?php echo $key['full_name']; ?>" id="full_name" disabled >
</div>
</div>
</div>
</div> <!-- col-container-->
<div class="container">
<div class="row">
<div class="col-lg-4">
<div class="form-group">
<label for="user_email">Email ID</label>
<input type="email" name="user_email" class="form-control" value="<?php echo $key['user_email']; ?>" id="user_email" disabled >
</div>
</div>
<div class="col-lg-4">
<div class="form-group">
<label for="tel">Phone/Mob. No. </label>
<input type="text" name="tel" class="form-control" value="<?php echo $key['tel']; ?>" id="tel" disabled>
</div>
</div>
<div class="col-lg-4">
<div class="form-group">
<label for="program">Program </label>
<input type="text" name="program" class="form-control" value="<?php echo $key['program']; ?>" id="program" disabled>
</div>
</div>
</div>
</div><!-- col-container-->
<div class="container">
<div class="row">
<div "form-actions"> <br><br>
<a href="home.php" type="submit" class="ui mini button" name="back">Back</a>
</div>
</div>
</div>
</div>
</div><!-- col-container-->
</form>
<?php } ?>
</div>
</div><!--container-->
<?php include "includes/footer.php"; ?>