Skip to content

Commit ec5553e

Browse files
author
mathurvishal
committed
PHP Project
0 parents  commit ec5553e

File tree

133 files changed

+18837
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+18837
-0
lines changed

.htaccess

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
RewriteEngine On
2+
RewriteCond %{REQUEST_FILENAME} !-f
3+
RewriteRule ^([^\.]+)$ $1.php [NC,L]

AdminLogin.php

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?php include('allhead.php'); ?>
2+
<div class="container">
3+
<div class="row">
4+
</div>
5+
<div class="row">
6+
<div class="col-md-5">
7+
<fieldset>
8+
<legend>
9+
<h3 style="padding-top: 25px;"><span class="glyphicon glyphicon-lock"></span>&nbsp;Admin Login</h3>
10+
</legend>
11+
<!-- Admin login form -->
12+
<form name="adminlogin" action="loginlinkadmin.php" method="POST">
13+
<div class="control-group form-group">
14+
<div class="controls">
15+
<label>Admin Id:</label>
16+
<input type="text" class="form-control" name="aid">
17+
<p class="help-block"></p>
18+
</div>
19+
</div>
20+
<div class="control-group form-group">
21+
<div class="controls">
22+
<label>Passsword:</label>
23+
<input type="password" class="form-control" name="apass">
24+
<p class="help-block"></p>
25+
</div>
26+
</div>
27+
<center>
28+
<button type="submit" name="login" class="btn btn-primary">Login</button>
29+
<button type="reset" class="btn btn-primary" style="
30+
background-color: #E52727;
31+
border-color: #D21B1B;">Reset</button>
32+
</center>
33+
</fieldset>
34+
</form>
35+
</div>
36+
</div>
37+
<?php include('allfoot.php'); ?>

FacultyDetails.php

+106
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
<?php
2+
session_start();
3+
4+
if ( $_SESSION[ "umail" ] == "" || $_SESSION[ "umail" ] == NULL ) {
5+
header( 'Location:AdminLogin.php' );
6+
}
7+
8+
$userid = $_SESSION[ "umail" ];
9+
?>
10+
<?php include('adminhead.php'); ?>
11+
12+
<div class="container">
13+
<div class="row">
14+
<?php
15+
include( "database.php" );
16+
if ( isset( $_REQUEST[ 'deleteid' ] ) ) {
17+
include( "database.php" );
18+
$deleteid = $_GET[ 'deleteid' ];
19+
//delete faculty Query
20+
$sql = "DELETE FROM `facutlytable` WHERE FID = $deleteid";
21+
22+
if ( mysqli_query( $connect, $sql ) ) {
23+
echo "
24+
25+
<br><br>
26+
<div class='alert alert-success fade in'>
27+
<a href='#' class='close' data-dismiss='alert' aria-label='close'>&times;</a>
28+
<strong>Success!</strong> Faculty Details has been deleted.
29+
</div>";
30+
} else {
31+
//error message if SQL query fails
32+
echo "<br><Strong>Faculty Details Updation Faliure. Try Again</strong><br> Error Details: " . $sql . "<br>" . mysqli_error( $connect );
33+
}
34+
//close the connection
35+
mysqli_close( $connect );
36+
}
37+
?>
38+
</div>
39+
40+
41+
<div class="row">
42+
<div class="col-md-8">
43+
<h3 class="page-header">Welcome <a href="welcomeadmin">Admin</a> </h3>
44+
<?php
45+
include( "database.php" );
46+
$sql = "select * from facutlytable";
47+
$result = mysqli_query( $connect, $sql );
48+
echo "<h3 class='page-header' >Facutly Details</h3>";
49+
echo "<table class='table table-striped' style='width:100%'>
50+
<tr>
51+
<th>ID</th>
52+
<th>First Name</th>
53+
<th>Father Name</th>
54+
<th>Addrs</th>
55+
<th>Gender</th>
56+
<th>Joining Date</th>
57+
<th>City</th>
58+
<th>Phone Number</th>
59+
<th>Password</th>
60+
<th>Edit</th>
61+
<th>Delete</th>
62+
<tr>";
63+
while ( $row = mysqli_fetch_array( $result ) ) {
64+
?>
65+
66+
<tr>
67+
<td>
68+
<?PHP echo $row['FID'];?>
69+
</td>
70+
<td>
71+
<?PHP echo $row['FName'];?>
72+
</td>
73+
<td>
74+
<?PHP echo $row['FaName'];?>
75+
</td>
76+
<td>
77+
<?PHP echo $row['Addrs'];?>
78+
</td>
79+
<td>
80+
<?PHP echo $row['Gender'];?>
81+
</td>
82+
<td>
83+
<?PHP echo $row['JDate'];?>
84+
</td>
85+
<td>
86+
<?PHP echo $row['City'];?>
87+
</td>
88+
<td>
89+
<?PHP echo $row['PhNo'];?>
90+
</td>
91+
<td>
92+
<?PHP echo $row['Pass'];?>
93+
</td>
94+
<td><a href="updatefaculty.php?fid=<?php echo $row['FID']; ?>"><input type="button" Value="Edit" class="btn btn-info btn-sm"></a>
95+
</td>
96+
<td><a href="FacultyDetails.php?deleteid=<?php echo $row['FID']; ?>"><input type="button" Value="Delete" class="btn btn-info btn-sm"></a>
97+
</td>
98+
</tr>
99+
<?php } ?>
100+
</table>
101+
<a href="addnewfaculty"><button type="button" value="Add New Faculty" class="btn btn-info btn-sm">Add New Faculty</button></a>
102+
103+
</div>
104+
</div>
105+
106+
<?php include('allfoot.php'); ?>

LICENCE.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Contact Information
2+
========
3+
Name: Vishal Mathur
4+
5+
skype: folovishal

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Institute-of-Current-Students---Vishal-Mathur---Project-Report
2+
The “Institute of Current Students” Website (web based application) is useful for the students, faculty, guest who likes to display result as well schedules of examination and all that task like event, news, students can find out list of fresh courses offered by them and admission procedure, discussion forum, fee structure etc. without going to institute. It provides the facility to the students or guest to have complete information about the institute.

RegestrationDetails.php

+112
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
<?php
2+
session_start();
3+
4+
if ( $_SESSION[ "umail" ] == "" || $_SESSION[ "umail" ] == NULL ) {
5+
header( 'Location:AdminLogin.php' );
6+
}
7+
$userid = $_SESSION[ "umail" ];
8+
?>
9+
<?php include('adminhead.php'); ?>
10+
<div class="container">
11+
<div class="row">
12+
<?php
13+
include( "database.php" );
14+
if ( isset( $_REQUEST[ 'deleteid' ] ) ) {
15+
16+
$deleteid = $_GET[ 'deleteid' ];
17+
18+
$sql = "DELETE FROM `registrationtable` WHERE RegID = $deleteid";
19+
20+
if ( mysqli_query( $connect, $sql ) ) {
21+
echo "
22+
<br><br>
23+
<div class='alert alert-success fade in'>
24+
<a href='#' class='close' data-dismiss='alert' aria-label='close'>&times;</a>
25+
<strong>Success!</strong> Regestration Details Deleted.
26+
</div>
27+
";
28+
} else {
29+
//error message if SQL query fails
30+
echo "<br><Strong>Regestration Details Updation Faliure. Try Again</strong><br> Error Details: " . $sql . "<br>" . mysqli_error( $connect );
31+
}
32+
//close the connection
33+
mysqli_close( $connect );
34+
}
35+
?>
36+
</div>
37+
<div class="row">
38+
<div class="col-md-12">
39+
<h3 class="page-header">Welcome <a href="welcomeadmin">Admin</a> </h3>
40+
<?php
41+
include( "database.php" );
42+
$sql = "select * from registrationtable";
43+
$result = mysqli_query( $connect, $sql );
44+
echo "<h2 class='page-header'>Registration Details</h2>";
45+
echo "<table class='table table-striped' style='width:100%'>
46+
<tr>
47+
<th>Reg ID</th>
48+
<th>First Name</th>
49+
<th>Last Name</th>
50+
<th>Father Name</th>
51+
<th>Course</th>
52+
<th>DOB</th>
53+
<th>Address</th>
54+
<th>Gender</th>
55+
<th>Phone Number</th>
56+
<th>Email</th>
57+
<th>Password</th>
58+
<th>Edit</th>
59+
<th>Delete</th>
60+
<th>Admission Confirm</th>
61+
62+
<tr>";
63+
while ( $row = mysqli_fetch_array( $result ) ) {
64+
?>
65+
66+
<tr>
67+
<td>
68+
<?PHP echo $row['RegID'];?>
69+
</td>
70+
<td>
71+
<?PHP echo $row['FName'];?>
72+
</td>
73+
<td>
74+
<?PHP echo $row['LName'];?>
75+
</td>
76+
<td>
77+
<?PHP echo $row['FaName'];?>
78+
</td>
79+
<td>
80+
<?PHP echo $row['Course'];?>
81+
</td>
82+
<td>
83+
<?PHP echo $row['DOB'];?>
84+
</td>
85+
<td>
86+
<?PHP echo $row['Addrs'];?>
87+
</td>
88+
<td>
89+
<?PHP echo $row['Gender'];?>
90+
</td>
91+
<td>
92+
<?PHP echo $row['PhNo'];?>
93+
</td>
94+
<td>
95+
<?PHP echo $row['Eid'];?>
96+
</td>
97+
<td>
98+
<?PHP echo $row['Pass'];?>
99+
</td>
100+
<td><a href="UpdateRegestrationDetails.php?regid=<?PHP echo $row['RegID'];?>"><input type="button" Value="Edit" class="btn btn-info btn-sm"></a>
101+
</td>
102+
<td><a href="RegestrationDetails.php?deleteid=<?PHP echo $row['RegID'];?>"><input type="button" Value="Delete" class="btn btn-info btn-sm"></a>
103+
</td>
104+
<td><a href="addConfirm.php?addnewRegId=<?php echo $row['RegID']; ?>"><input type="button" Value="Yes" class="btn btn-info btn-sm"></a>
105+
</td>
106+
</tr>
107+
<?php } ?>
108+
</table>
109+
</div>
110+
</div>
111+
112+
<?php include('allfoot.php'); ?>

ResultDetails.php

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<?php
2+
session_start();
3+
4+
if ( $_SESSION[ "fidx" ] == "" || $_SESSION[ "fidx" ] == NULL ) {
5+
header( 'Location:facultylogin' );
6+
}
7+
8+
$userid = $_SESSION[ "fidx" ];
9+
$fname = $_SESSION[ "fname" ];
10+
?>
11+
<?php include('fhead.php'); ?>
12+
<div class="container">
13+
<div class="row">
14+
<?php
15+
include( "database.php" );
16+
if ( isset( $_REQUEST[ 'deleteid' ] ) ) {
17+
$deleteid = $_GET[ 'deleteid' ];
18+
//below query will delete result details form result table
19+
$sql = "DELETE FROM `result` WHERE RsID = $deleteid";
20+
if ( mysqli_query( $connect, $sql ) ) {
21+
echo "
22+
<br><br>
23+
<div class='alert alert-success fade in'>
24+
<a href='#' class='close' data-dismiss='alert' aria-label='close'>&times;</a>
25+
<strong>Success!</strong> Result details deleted.
26+
</div>
27+
";
28+
} else {
29+
//error message if SQL query fails
30+
echo "<br><Strong>Result Details Deletion Faliure. Try Again</strong><br> Error Details: " . $sql . "<br>" . mysqli_error( $connect );
31+
}
32+
}
33+
34+
mysqli_close( $connect );
35+
?>
36+
</div>
37+
<div class="row">
38+
<div class="col-md-8">
39+
<h3> Welcome Faculty : <a href="welcomefaculty.php" ><span style="color:#FF0004"> <?php echo $fname; ?></span></a> </h3>
40+
41+
<?php
42+
43+
include('database.php');
44+
$sql="SELECT * FROM result";
45+
$rs=mysqli_query($connect,$sql);
46+
echo "<h2 class='page-header'>Result Details</h2>";
47+
echo "<table class='table table-striped' style='width:100%'>
48+
<tr>
49+
<th>Result ID</th>
50+
<th>Enrolment Number</th>
51+
<th>Course</th>
52+
<th>Marks</th>
53+
<th>Edit</th>
54+
<th>Delete</th>
55+
</tr>";
56+
while($row=mysqli_fetch_array($rs))
57+
{
58+
?>
59+
<tr>
60+
<td>
61+
<?PHP echo $row['RsID'];?>
62+
</td>
63+
<td>
64+
<?PHP echo $row['Eno'];?>
65+
</td>
66+
<td>
67+
<?PHP echo $row['Course'];?>
68+
</td>
69+
<td>
70+
<?PHP echo $row['Marks'];?>
71+
</td>
72+
<td><a href="UpdateResultDetails.php?editid=<?php echo $row['RsID']; ?>"><input type="button" Value="Edit" class="btn btn-info btn-sm"></a>
73+
</td>
74+
<td><a href="ResultDetails.php?deleteid=<?php echo $row['RsID']; ?>"><input type="button" Value="Delete" class="btn btn-info btn-sm"></a>
75+
</td>
76+
</tr>
77+
78+
<?php
79+
}
80+
?>
81+
82+
83+
84+
</table>
85+
</div>
86+
87+
</div>
88+
89+
<?php include('allfoot.php'); ?>

0 commit comments

Comments
 (0)