-
Notifications
You must be signed in to change notification settings - Fork 0
/
ediitadmindata.php
117 lines (91 loc) · 4.95 KB
/
ediitadmindata.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
<?php
session_start();
?>
<head>
<script type="text/javascript">
function showmenu(elmnt)
{
document.getElementById(elmnt).style.visibility="visible"
}
function hidemenu(elmnt)
{
document.getElementById(elmnt).style.visibility="hidden"
}
</script>
</head>
<?php
include("student.php");
extract($_POST);
if (isset($_SESSION[admin]))
{
$Query="SELECT * from adminlbs where id = '$_SESSION[admin]' and password = '$_SESSION[rafh]' ";
$dbresult=mysql_query($Query);
require("main1.php");
if(mysql_num_rows($dbresult) >0)
{
while($row=mysql_fetch_row($dbresult))
{
echo "<div class='str'>hello : "."$row[0]"."</div>";
echo "<div class='fixed'><div class='title' align='center'>EDIT ADMIN DATA</div>" ;
echo "<form method=post name=f1 action='editsavee3.php' enctype='multipart/form-data'>";
echo "<div class='content'><div class='menu'>ID Number:   " . "$row[1] <br>";
echo "<font color = red> University Register Number can't changed </font> " . "</div>";
echo "<div class='menu'>Photo:
  " . "<div class='galery'><img src='$row[9]'></div><br>";
echo "<font color = red> Edit Photo </font> : " . "<input type='file' name='fileToUpload' id='fileToUpload' value = '$row[9]'>" . "</div>";
echo "<div class='menu'>FULL NAME:
  " . "$row[0] <br>";
echo "<font color = red> Edit Full Name </font> : " . "<input name = editfn id = editfn type = text value = '$row[0]'>" . "</div>";
echo "<div class='menu'>Password:   " . "$row[2] <br>";
echo "<font color = red> Edit Password: </font> : " . "<input name = editpad id = editpad type = password value = '$row[2]'>" . "</div>";
echo "<div class='menu'>MOBILE NUMBER:
  " . "$row[3] <br>";
echo "<font color = red> Edit Mobile Number </font> : " . "<input name = editmn id = editmn type = text value = '$row[3]'>" . "</div>";
echo "<div class='menu'>Date Of Birth:
  " . "$row[4] <br>";
echo "<font color = red> Edit Date Of Birth </font> : " . "<input name = editdate id = editdate type = text value = '$row[4]'>" . "</div>";
echo "<div class='menu'>Gender :    " . "$row[5] <br>";
echo "<font color = red> Edit Gender </font> : ";
echo "<select name='editg' id = 'editg'><option value='$row[5]'>$row[5]</option><option value='Male'>Male</option><option value='Female'>Famale</option></select>" . "</div>";
echo "<div class='menu'>Blood Group:
  " . "$row[6] <br>";
echo "<font color = red> Edit blood group </font> : ";
echo "<select name='editblood' id = 'editblood'><option value='$row[6]'>$row[6]</option><option value='ab+'>AB +ve</option>
<option value='ab-'>AB -ve</option>
<option value='a+'>A +ve</option>
<option value='a-'>A -ve</option>
<option value='b+'>B +ve</option>
<option value='b-'>B -ve</option>
<option value='o+'>O +ve</option>
<option value='o-'>O -ve</option></select>" . "</div>";
echo "<div class='menu'>DEPARTMENT:
  " . "$row[7] <br>";
echo "<font color = red> Edit Department </font> : ";
echo "<select name='editbranch' id = 'editbranch'><option value='$row[7]'>$row[7]</option><option value='CSE'>CSE</option><option value='IT'>IT</option><option value='EC'>EC</option><option value='CIVIL'>CIVIL</option><option value='MECHNICAL'>MECHNICAL</option><option value='EEE'>EEE</option></select>" . "</div>";
echo "<div class='menu'>Email:   " . "$row[8] <br>";
echo "<font color = red> Edit Email </font> : " . "<input name = editem id = editem type = text value = '$row[8]'>" . "</div></div>";
echo "<div class='title' align='center'><input name='Submit' type='Submit' value='Update' />   <input name='submit2' type='reset' value='Reset' />";
echo "</div></div></form></div>";
}
}
else
{
}
require("footer.php");
exit();
}
?>
<?php
require("main.php");
?><div class="fixed"><div class="title" align="center">ADMIN LOGIN</div>
<form id="form1" name="form1" method="post" action="editadmin.php">
<div class='content'> <div class='menu'> ID Number:- <input name="username" type="text" class="menu" id="username" size="25" maxlength="255" /></div>
<p>
<div class='menu'>password :-
<input name="password" type="password" class="menu" id="password" size="25" maxlength="255" />
</div>
</p>
<div class='menu'> <input name="submit12" type="submit" class="menu" value="Login" " />    <input name="Submit2" type="reset" class="menu" value="Reset" />
</div><div class='menu'> New Student ? <a href="insertstudent.php">Register Now</a> </div>
</div>
</form></div>