forked from prameshbajra/BVC-Student-Portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalumini.php
194 lines (163 loc) · 7.43 KB
/
alumini.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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<!-- Developed by Saurav Bajracharya and Pramesh Bajracharya -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Login</title>
<link rel="shortcut icon" href="bvc.png" type="image/x-icon" />
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="animate.css">
<script type="text/javascript" src="date_time.js"></script>
</head>
<?php
include "functions.php";
create();
?>
<body>
<div class="topDiv">
<div class="imageLeft">
<img src="round.png" />
</div>
<div id="asideCont">
<h2>BVC Engineering College, Odalarevu</h2>
<h3>Affiliated To JNTUK, Kakinada</h3> Accredited By NBA New Delhi and NAAC With 'A' Grade<br> Approved By AICTE, New Delhi<br> Established in 1997
</div>
<div class="imageRight">
<span id="date_time"></span>
<script type="text/javascript">
window.onload = date_time('date_time');
</script>
<img src="group.png" />
</div>
</div>
<div class="clear"></div>
<div id="main" role="main">
<center>
<ul class="menu">
<li><a class="active" href="index.php">Home</a></li>
<li><a href="contact.php">Contact</a></li>
<li><a href="About.php">About Us</a></li>
<li><a href="vision.php">Vision & Mission</a></li>
<li><a href="asd.php">Management</a>
<ul class="submenu">
<li><a href="founderchairman.php">Founder-Chairman</a></li>
<li><a href="secretary.php">Secretary</a></li>
<li><a href="chairman.php">Chairman</a></li>
<li><a href="vicechairman.php">Vice-Chairman</a></li>
</ul>
</li>
<li><a href="#">Principal</a></li>
<li><a href="faculty.php">Faculty</a></li>
<li><a href="#">Students</a></li>
<li><a href="Department.php"> Departments</a>
<ul class="submenu">
<li><a href="Department.php">CSE</a></li>
<li><a href="civil.php">CE</a></li>
<li><a href="mech.php">ME</a></li>
<li><a href="eee.php">EEE</a></li>
<li><a href="ece.php">ECE</a></li>
</ul>
</li>
<li><a href="#">Accredition</a>
<ul class="submenu1">
<li><a href="naac.php">NAAC</a></li>
<li><a href="nba.php">NBA</a></li>
<li><a href="pio.php">PIO</a></li>
</ul>
</li>
<li><a href="#">Help</a></li>
</ul>
<div class="bodyDiv">
<div class="forAside">
<aside id="buttonsAside">
<form class="navBar">
<nav id="navigationBar">
<ul class="sideBar" style="margin-left:-90px;">
<li><a href="acadamic.php">Academics</a></li>
<li><a href="#">Administration</a></li>
<li><a href="#">BVC News</a></li>
<li><a href="#">Forthcoming Event</a></li>
<li><a href="emailnew.php">E-mail to students</a></li>
<li><a href="#">SMS to Parents/Students</a></li>
<li><a href="#">Recruitment</a></li>
<li><a href="#">Professional Body</a></li>
<li><a href="#">Projects</a></li>
<li><a href="#">Department Library</a></li>
<li><a href="#">Training</a></li>
<li><a href="#">Games And Sports</a></li>
<li><a href="#">Placement</a></li>
<li><a href="feedback.php">Feedback to College</a></li>
<li><a href="alumini.php">Alumini</a></li>
<li><a href="#">Notices & Circulars</a></li>
</ul>
</nav>
</form>
</aside>
</div>
<div class="centralDiv">
<br>
<center>
<div class="loginForm">
<form action="al.php" method="POST" class="form form--login">
<br>
<h2>WELCOME TO ALUMINI LOGIN PAGE</h2>
<br>
<br>
<div class="form__field">
<label>Username</label>
<input id="login__username" type="text" class="form__input" placeholder="" name="username" required>
</div>
<div class="form__field">
<label>Password</label>
<input id="login__password" type="password" class="form__input" placeholder="" name="password" required>
</div>
<div class="form__field__signup">
<input type="submit" name="commit" value="Sign In">
</div>
</form>
<br>
<p class="text--center">New user?<a href="reg.php" style="color:black;"> Please Register here ... </a> <span class="fontawesome-arrow-right"></span></p>
</div>
</center>
</div>
<div class="asideRight">
<p>.</p>
</div>
</div>
<footer id="bottom-part">
<p class="newFooter"> Copyright © -2016</p>
<p class="newFoot">BVC Engineering College @ CSE</p>
</footer>
</center>
</div>
</body>
</html>
<?php
error_reporting(0);
session_start();
$username=$_POST['username'];
$password=$_POST['password'];
if(isset($_POST['commit'])){
mysql_connect("localhost","root","");
mysql_select_db("ex");
$query=mysql_query("select * from al");
while($row=mysql_fetch_array($query)){
$r=$row['username'];
$b=$row['password'];
}
if($username==$r && $password==$b)
{
//echo"Welcome Sucessfully Login";
echo"
<script language='javascript'>;
window.location.href='alw.php';
</script>
";
}
else{
echo "Something Wrong Check Username & Password";
}
}
?>
</html>