forked from Kowshikreddy007/Botswithdots-SeatingAllotment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setting.php
56 lines (55 loc) · 1.91 KB
/
setting.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
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>setting</title>
</head>
<link rel="stylesheet" href="css/bootstrap.min.css"/>
<link rel="stylesheet" href="css/setting.css"/>
<body>
<?php
$server='localhost';
$dbuser='root';
$dbpass='';
$db='trial';
$conn=mysqli_connect($server,$dbuser,$dbpass,$db);
$sql = "SELECT fullname,adminemail from admintable ";
$retval = mysqli_query( $conn,$sql );
$row=mysqli_fetch_array($retval);
$name=$row[0];
$email=$row[1];
?>
<a href="adminbranchyear.php" class="btn back-button btn-sm"><span class="glyphicon glyphicon-chevron-left"></span>back</a>
<div class="container vertical-align">
<div class="row">
<div class="col-xs-4 col-xs-push-4" style="background-color: #ffffff;">
<div class="panel panel-default" >
<div class="panel-body ">
<form class="form-horizontal content" role="form" method="post" action="<?php $_PHP_SELF?>">
<div class="form-group">
<table class="table table-hover ">
<tr>
<td><b>Administrator Name :</b><td>
<td class="textstyle"><?php echo $name; ?></td><!--administrator name is display here from database-->
</tr>
<tr>
<td><b>Primary Email :</b><td>
<td class="textstyle"><?php echo $email; ?></td><!--email of administrator is display here-->
</tr>
<tr>
<td><b>password :</b><td>
<td><a class="link" href="changepass.php">change password</td><!--password can be change from here-->
</tr>
</table>
</div>
</form>
</div>
</div>
</div>
</div>
</div><?php
mysqli_close($conn); ?>
</body>
</html>