-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSearch.php
executable file
·67 lines (67 loc) · 3.36 KB
/
Search.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Search</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<link rel="stylesheet" href="Search1.css">
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-nav-demo" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="About.php" class="navbar-brand"><i class="fas fa-user-friends"></i> About</a>
</div>
<div class="collapse navbar-collapse" id="bs-nav-demo">
<ul class="nav navbar-nav">
<!-- <li><a href="Register.php">Register</a></li> -->
<li class="active"><a href="Search.php"><h4 style="display: inline;" class="fas fa-search"> Search</h4></a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="AdminLogin.php">Admin Login Page <i class="fas fa-user"></i></a></li>
</ul>
</div>
</div>
</nav>
<form action="Receipt.php" method="POST">
<div class="container">
<div class="jumbotron" style="background: none; box-shadow: 1px 2px 5px 5px; padding: 1px">
<h1 align="center">ABC WXYZ Engineering College</h1>
<h4 align="center">QQQQ, WWWW, YYYY, India - 999999, Phone: 1234567890</h4>
</div>
<div class="input-field thumbnail col-xs-8 col-xs-offset-2">
<input id="rollno" name="rollno" type="text" required maxlength="11" minlength="11" data-length="11" class="form-contol input">
<label for="rollno">Enter Roll Number</label>
</div>
</div>
<center><button class="btn btn3">Search <i class="fas fa-search"></i></button></center>
</form>
<script src="https://code.jquery.com/jquery-3.4.0.js" integrity="sha256-DYZMCC8HTC+QDr5QNaIcfR7VSPtcISykd+6eSmBW5qo=" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script>
$(document).ready(function() {
$('input#rollno').characterCounter();
});
$(function(){
$('#rollno').keypress(function(e){
let allow_char = [48,49,50,51,52,53,54,55,56,57];
if(allow_char.indexOf(e.which) !== -1 );
else{
window.alert("Please enter a digit!");
return false;
}
});
});
</script>
</body>
</html>