diff --git a/Gate Pass Digitalization.pptx b/Gate Pass Digitalization.pptx new file mode 100644 index 0000000..ded64c4 Binary files /dev/null and b/Gate Pass Digitalization.pptx differ diff --git a/README.md b/README.md deleted file mode 100644 index ccd19a9..0000000 --- a/README.md +++ /dev/null @@ -1 +0,0 @@ -# HTF19-404Coders diff --git a/cbit.jpeg b/cbit.jpeg new file mode 100644 index 0000000..948a6f3 Binary files /dev/null and b/cbit.jpeg differ diff --git a/check.php b/check.php new file mode 100644 index 0000000..b50fc64 --- /dev/null +++ b/check.php @@ -0,0 +1,56 @@ +query($sql); +$row = $result->fetch_assoc(); +?> + + + + + + + Security Login +
+ CBIT LOGO +

Chaitanya Bharathi Institute of Technology

+
+
Logout
+

Today's Responces

+

+ + + + + + + + + + + + + + + + + + + + diff --git a/conn.php b/conn.php new file mode 100644 index 0000000..1dcef95 --- /dev/null +++ b/conn.php @@ -0,0 +1,14 @@ +connect_error) { + die("Connection failed: " . $conn->connect_error); +} +echo "Connected successfully"; +?> \ No newline at end of file diff --git a/hodapprove.php b/hodapprove.php new file mode 100644 index 0000000..9e35022 --- /dev/null +++ b/hodapprove.php @@ -0,0 +1,20 @@ +query($sql); + //echo " request is approved"; + + } +else{ + $sql = "UPDATE `pass` SET `Approval`=\'no\' WHERE passid='$rid'"; + //echo $conn->error(); + $result = $conn->query($sql); +echo "request is denied";} +header('Location:hodapprove1.php'); +?> \ No newline at end of file diff --git a/hodapprove1.php b/hodapprove1.php new file mode 100644 index 0000000..dcaf09c --- /dev/null +++ b/hodapprove1.php @@ -0,0 +1,27 @@ +'yes' AND pass.Approval<>'no'"; +$result = $conn->query($sql); + +if ($result->num_rows > 0) { + // output data of each row + while($row = $result->fetch_assoc()) { + + echo "id: " . $row["Reason"]. " - Name: " . $row["Date"]. " " . $row["Time"]. "
"; + echo ""; + $rid=$row["passid"]; + echo""; + echo'approve'; + echo'deny'; + //$_SESSION["rid"]=$rid; + ////echo $rid; + echo""; + echo""; + echo""; + } +} else { + echo "0 results"; +} +?> diff --git a/hodlogin.html b/hodlogin.html new file mode 100644 index 0000000..2cebc8e --- /dev/null +++ b/hodlogin.html @@ -0,0 +1,35 @@ + + + + + + + Staff Login +
+ CBIT LOGO +

Chaitanya Bharathi Institute of Technology

+
+ +

Staff Login

+ +
+


+ + Username: + + +
+ + Password: + + +

+ + + + +
+ + + + \ No newline at end of file diff --git a/hodvalidate.php b/hodvalidate.php new file mode 100644 index 0000000..e14e8c7 --- /dev/null +++ b/hodvalidate.php @@ -0,0 +1,28 @@ += 1) { + header('Location:hodapprove1.php'); + + }else { + echo "Your Login Name or Password is invalid"; + } + } +?> \ No newline at end of file diff --git a/insertdb.php b/insertdb.php new file mode 100644 index 0000000..f8a1b98 --- /dev/null +++ b/insertdb.php @@ -0,0 +1,31 @@ + +connect_error) { + die("Connection failed: " . $conn->connect_error); +} + +$sql = "INSERT INTO student1 (Name,Password,Rollnum,Branch,Year) +VALUES ('$uname','$pw','$uid','$branch','$year')"; + +if ($conn->query($sql) === TRUE) { + header('Location:login.html'); + //echo "New record created successfully"; +} else { + echo "Error: " . $sql . "
" . $conn->error; +} + +$conn->close(); +?> \ No newline at end of file diff --git a/login.html b/login.html new file mode 100644 index 0000000..d17b93a --- /dev/null +++ b/login.html @@ -0,0 +1,35 @@ + + + + + + Student Login +
+ CBIT LOGO +

Chaitanya Bharathi Institute of Technology

+
+ +

Student Login

+

+
+


+ + Username: + + +
+ + Password: + + +

+ + +
+ + +
+ + + + \ No newline at end of file diff --git a/logout.php b/logout.php new file mode 100644 index 0000000..f7efe69 --- /dev/null +++ b/logout.php @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/main.html b/main.html new file mode 100644 index 0000000..718513b --- /dev/null +++ b/main.html @@ -0,0 +1,40 @@ + + + + +PAGE1 + + + + CBIT LOGO +

Chaitanya Bharathi Institute Of Technology

+ +

Gate-Pass

+ +

Please select an option to continue:

+ +

+ +

+ +
+
+ + + \ No newline at end of file diff --git a/register.html b/register.html new file mode 100644 index 0000000..3615a17 --- /dev/null +++ b/register.html @@ -0,0 +1,44 @@ + + + + + STUDENT + + + + +

Chaitanya Bharathi Institute Of Technology

+

Registration Page

+

Enter following details and press register:

+ +
+

Name:

+ +
+ +

Roll Number:

+ +
+ +

password:

+ +
+ +

Email Address:

+ +
+ +

year

+ 1/4
+ 2/4
+ 3/4
+ 4/4
+

branch:

+ +
+
+ +
+ + + \ No newline at end of file diff --git a/request.html b/request.html new file mode 100644 index 0000000..9a3f051 --- /dev/null +++ b/request.html @@ -0,0 +1,48 @@ + + + + + + + STUDENT + + + + CBIT LOGO +

Chaitanya Bharathi Institute Of Technology

+ +
LOGOUT
+
+ + +

Enter following details and press submit

+
+
+

HODName:

+ +
+ +

Roll Number:

+ +
+

branch:

+ +
+ +

Time you want to leave at:

+ +
+

Date:

+ +
+ +

Enter Reason:

+ +
+ + +
+ + + \ No newline at end of file diff --git a/requestdb.php b/requestdb.php new file mode 100644 index 0000000..d34562c --- /dev/null +++ b/requestdb.php @@ -0,0 +1,30 @@ +connect_error) { + die("Connection failed: " . $conn->connect_error); +} + +$sql = "INSERT INTO pass (Rollnum,Reason,Date,Time,Branch) +VALUES ('$uid','$reason','$date','$time','$hname')"; + +if ($conn->query($sql) === TRUE) { + header('Location:request.html'); + //echo "New record created successfully"; +} else { + echo "Error: " . $sql . "
" . $conn->error; +} + +$conn->close(); +?> \ No newline at end of file diff --git a/security site.html b/security site.html new file mode 100644 index 0000000..1353508 --- /dev/null +++ b/security site.html @@ -0,0 +1,48 @@ + + + + + + + Security Login +
+ CBIT LOGO +

Chaitanya Bharathi Institute of Technology

+
+
Logout
+

Today's Responces

+

+
Roll numberApprovalTime
+ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/securitylogin.html b/securitylogin.html new file mode 100644 index 0000000..3e12be5 --- /dev/null +++ b/securitylogin.html @@ -0,0 +1,36 @@ + + + + + + + + CBIT LOGO + SECURITY LOGIN + +

Chaitanya Bharathi Institute of Technology


+

SECURITY LOGIN

+
+

Security Pin:


+
+
+ +
+ + \ No newline at end of file diff --git a/securityvalidate.php b/securityvalidate.php new file mode 100644 index 0000000..01e4b2e --- /dev/null +++ b/securityvalidate.php @@ -0,0 +1,13 @@ +"; +echo''; +echo'id:'; +echo''; +echo""; +echo""; +} +?> \ No newline at end of file diff --git a/student staff login.html b/student staff login.html new file mode 100644 index 0000000..e6fc1b0 --- /dev/null +++ b/student staff login.html @@ -0,0 +1,33 @@ + + + + + Student/Staff Login +
+ CBIT LOGO +

Chaitanya Bharathi Institute of Technology

+
+ +

Student/Staff Login

+ +
+


+ + Username: + + +
+ + Password: + + +

+ + + + +
+ + + + \ No newline at end of file diff --git a/validate.php b/validate.php new file mode 100644 index 0000000..585fb81 --- /dev/null +++ b/validate.php @@ -0,0 +1,28 @@ + \ No newline at end of file
NameRoll noPermission Given
some namesome rollnoNO