-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
764 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
-- phpMyAdmin SQL Dump | ||
-- version 2.11.6 | ||
-- http://www.phpmyadmin.net | ||
-- | ||
-- Host: localhost | ||
-- Generation Time: Jan 13, 2019 at 10:32 AM | ||
-- Server version: 5.0.51 | ||
-- PHP Version: 5.2.6 | ||
|
||
|
||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
/*!40101 SET NAMES utf8 */; | ||
|
||
-- | ||
-- Database: `ams` | ||
-- | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- Table structure for table `faculty` | ||
-- | ||
|
||
CREATE TABLE `faculty` ( | ||
`name` varchar(100) NOT NULL, | ||
`email` varchar(100) NOT NULL, | ||
`password` varchar(100) NOT NULL, | ||
`facultyID` varchar(100) NOT NULL, | ||
`subject` varchar(100) NOT NULL, | ||
`phone` varchar(100) NOT NULL | ||
) TYPE=InnoDB; | ||
|
||
-- | ||
-- Dumping data for table `faculty` | ||
-- | ||
|
||
INSERT INTO `faculty` (`name`, `email`, `password`, `facultyID`, `subject`, `phone`) VALUES | ||
('pankaj', 'pankaj@gmail.com', 'pankaj', '20175555', 'maths', '99'); | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- Table structure for table `student` | ||
-- | ||
|
||
CREATE TABLE `student` ( | ||
`name` varchar(100) NOT NULL, | ||
`password` varchar(100) NOT NULL, | ||
`studentID` bigint(100) NOT NULL, | ||
`attendance` int(100) NOT NULL default '0', | ||
`phone` varchar(100) NOT NULL, | ||
`email` varchar(100) NOT NULL | ||
) TYPE=InnoDB; | ||
|
||
-- | ||
-- Dumping data for table `student` | ||
-- | ||
|
||
INSERT INTO `student` (`name`, `password`, `studentID`, `attendance`, `phone`, `email`) VALUES | ||
('a', 'a', 0, 6, '999', 'a@gmail.com'), | ||
('b', 'b', 0, 6, '999', 'b@gmail.com'), | ||
('c', 'c', 0, 6, '999', 'c@gmail.com'), | ||
('d', 'd', 0, 6, '999', 'd@gmail.com'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
if(isset($_POST['checkbox']) && | ||
|
||
$_POST['checkbox'] == 'Yes') | ||
|
||
{ | ||
|
||
echo "Need wheelchair access."; | ||
|
||
} | ||
|
||
else | ||
|
||
{ | ||
|
||
echo "Do not Need wheelchair access."; | ||
|
||
} | ||
|
||
|
||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
$m=$_POST['a']; | ||
$n=$_POST['b']; | ||
$o=$_POST['c']; | ||
$p=$_POST['d']; | ||
$q=$_POST['e']; | ||
$r=$_POST['f']; | ||
|
||
if($m=="" || $n=="" || $o=="" || $p=="" || $q=="" || $r=="") | ||
{ | ||
echo"FILL ALL"; | ||
echo"<a href='form.php'>Click here to go back"; | ||
} | ||
else | ||
{ | ||
mysql_connect("localhost","root",""); | ||
mysql_select_db("AMS"); | ||
$query1="SELECT * FROM faculty WHERE facultyID='$o'"; | ||
$result=mysql_query($query1); | ||
$con=mysql_num_rows($result); | ||
if($con==0) | ||
{ | ||
$query="INSERT INTO faculty(name,password,facultyID,phone,subject,email) VALUES('$m','$n','$o','$p','$q','$r')"; | ||
mysql_query($query); | ||
echo"DONE"; | ||
|
||
} | ||
else | ||
{echo"already exists";} | ||
|
||
} | ||
|
||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
$m=$_POST['a']; | ||
$n=$_POST['b']; | ||
$o=$_POST['c']; | ||
$p=$_POST['d']; | ||
$q=$_POST['e']; | ||
|
||
if($m=="" || $n=="" || $o=="" || $p=="" || $q=="") | ||
{ | ||
echo"FILL ALL"; | ||
echo"<a href='formstudent.php'>Click here to go back"; | ||
} | ||
else | ||
{ | ||
mysql_connect("localhost","root",""); | ||
mysql_select_db("AMS"); | ||
$query1="SELECT * FROM student WHERE name='$m' && password='$n'"; | ||
$result=mysql_query($query1); | ||
$con=mysql_num_rows($result); | ||
if($con==0) | ||
{ | ||
$query="INSERT INTO student(name,password,studentID,phone,email) VALUES('$m','$n','$o','$p','q')"; | ||
mysql_query($query); | ||
echo"DONE"; | ||
echo"<a href='formstudent.php'>Click here to login"; | ||
|
||
} | ||
else | ||
{echo"already exists";} | ||
|
||
} | ||
|
||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<html> | ||
|
||
<head><H1><u><font color='blue'><center>FACULTY</center></font></u></H1></head> | ||
<body background="C:\Users\Amisha\Desktop\webD\ams1.jpg"><center> | ||
<form method="POST" action="loginfaculty.php"><br><br> | ||
<font color='blue'><b>This is your login space:<br><br> | ||
Enter your Faculty ID:<br> | ||
<input type="number" name="x" size="30"><br> | ||
Enter your password:<br> | ||
<input type="password" name="y" size="30"><br> | ||
<input type="submit" value="submit here"><br> | ||
<input type="reset" value="reset here"><br> | ||
</form> | ||
<br> | ||
<font align="center"> | ||
<form method="POST" action="connectfaculty.php"><br> | ||
This is your registration space:<br><br> | ||
Enter your name:<br> | ||
<input type="text" name="a" size="30"><br> | ||
Enter your password:<br> | ||
<input type="password" name="b" size="30"><br> | ||
Enter your ID:<br> | ||
<input type="number" name="c" size="30"><br> | ||
Enter your phone number:<br> | ||
<input type="number" name="d" size="30"><br> | ||
Enter yout subject:<br> | ||
<input type="text" name="e" size="30"><br> | ||
Enter your email:<br></b></font> | ||
<input type="email" name="f" size="30"><br> | ||
|
||
<input type="submit" value="submit here"><br> | ||
<input type="reset" value="reset here"><br> | ||
</form> | ||
<br> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<html> | ||
<head><H1><u><font color='red'><center>STUDENTS</center></font></u></H1></head> | ||
<body bgcolor="gray" background="C:\Users\Amisha\Desktop\webD\back1.jpg"><center> | ||
|
||
<form method="POST" action="loginstudent.php"><br><br> | ||
<font color='red'><b>This is your login space:<br><br> | ||
Enter your Student ID:<br> | ||
<input type="number" name="x" size="30"><br> | ||
Enter your password:<br> | ||
<input type="password" name="y" size="30"><br> | ||
<input type="submit" value="submit here"><br> | ||
<input type="reset" value="reset here"><br> | ||
</form> | ||
<br> | ||
<font align="center"> | ||
<form method="POST" action="connectstudent.php"><br> | ||
This is your registration space:<br><br> | ||
Enter your name:<br> | ||
<input type="text" name="a" size="30"><br> | ||
Enter your password:<br> | ||
<input type="password" name="b" size="30"><br> | ||
Enter your ID:<br> | ||
<input type="number" name="c" size="30"><br> | ||
Enter your phone number:<br> | ||
<input type="number" name="d" size="30"><br> | ||
Enter your email:<br></b></font> | ||
<input type="email" name="e" size="30"><br> | ||
|
||
<input type="submit" value="submit here"><br> | ||
<input type="reset" value="reset here"><br> | ||
</form> | ||
<br> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
session_start(); | ||
|
||
|
||
$p=$_POST['x']; | ||
$q=$_POST['y']; | ||
|
||
if($p=="" || $q=="") | ||
{echo"FILL ALL"; | ||
echo"<a href='formfaculty.php'>Click here to go back"; | ||
} | ||
|
||
else | ||
{mysql_connect("localhost","root",""); | ||
mysql_select_db("AMS"); | ||
$query1="SELECT * FROM faculty WHERE facultyID='$p' && password='$q'"; | ||
$result=mysql_query($query1); | ||
$con=mysql_num_rows($result); | ||
if($con==0) | ||
{echo"MISMATCH";} | ||
else | ||
{$_SESSION['facultyID']=$p; | ||
header("location:welcomefaculty.php"); | ||
|
||
|
||
} | ||
|
||
} | ||
|
||
|
||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
session_start(); | ||
|
||
$p=$_POST['x']; | ||
$q=$_POST['y']; | ||
|
||
if($p=="" || $q=="") | ||
{echo"FILL ALL"; | ||
echo"<a href='formstudent.php'>Click here to go back"; | ||
} | ||
|
||
else | ||
{mysql_connect("localhost","root",""); | ||
mysql_select_db("AMS"); | ||
$query1="SELECT * FROM student WHERE studentID='$p' && password='$q'"; | ||
$result=mysql_query($query1); | ||
$con=mysql_num_rows($result); | ||
if($con==0) | ||
{echo"MISMATCH";} | ||
else | ||
{$_SESSION['studentID']=$p; | ||
header("location:welcomestudent.php"); | ||
} | ||
|
||
} | ||
|
||
|
||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
session_start(); | ||
session_unset(); | ||
session_destroy(); | ||
header("location:formfaculty.php"); | ||
|
||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
session_start(); | ||
session_unset(); | ||
session_destroy(); | ||
header("location:formstudent.php"); | ||
|
||
|
||
?> |
Oops, something went wrong.