-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsearch_invoice.php
More file actions
102 lines (90 loc) · 3.15 KB
/
Copy pathsearch_invoice.php
File metadata and controls
102 lines (90 loc) · 3.15 KB
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
<?php
//index.php
include('connect.php');
session_start();
if(!isset($_SESSION['username']))
{
header("location:login.php");
}
?>
<head>
<link rel="stylesheet" type="text/css" href="bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="fontawesome/css/all.css">
<script type="text/javascript" language="javascript" src="jquery.min.js"></script>
<script type="text/javascript" language="javascript" src="bootstrap.min.js"></script>
<style type="text/css">
body{
background: rgba(210,231,239,1);
background: -moz-linear-gradient(left, rgba(210,231,239,1) 0%, rgba(78,185,212,1) 50%, rgba(218,235,241,1) 100%);
background: -webkit-gradient(left top, right top, color-stop(0%, rgba(210,231,239,1)), color-stop(50%, rgba(78,185,212,1)), color-stop(100%, rgba(218,235,241,1)));
background: -webkit-linear-gradient(left, rgba(210,231,239,1) 0%, rgba(78,185,212,1) 50%, rgba(218,235,241,1) 100%);
background: -o-linear-gradient(left, rgba(210,231,239,1) 0%, rgba(78,185,212,1) 50%, rgba(218,235,241,1) 100%);
background: -ms-linear-gradient(left, rgba(210,231,239,1) 0%, rgba(78,185,212,1) 50%, rgba(218,235,241,1) 100%);
background: linear-gradient(to right, rgba(210,231,239,1) 0%, rgba(78,185,212,1) 50%, rgba(218,235,241,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d2e7ef', endColorstr='#daebf1', GradientType=1 );
}
.col-md-9{
-webkit-box-shadow: 0px 0px 52px 0px rgba(0,0,0,0.55);
-moz-box-shadow: 0px 0px 52px 0px rgba(0,0,0,0.55);
box-shadow: 0px 0px 52px 0px rgba(0,0,0,0.55);
border-radius: 10px;
padding-bottom: 20px;
}
td>button{
width: 90px;
height: 90px;
font-size: 4em;
font-weight: bolder;
}
a:hover{
background-color: blue;
}
</style>
</head>
<body>
<div class="container">
<div class="col-md-1"></div>
<div class="col-md-9">
<?php
include('head.php');
?>
<div style="background-color: white;">
<fieldset>
<legend><h3>SEARCH INVOICE</h3></legend>
<div style="padding-left: 10px;">
<div class="row">
<div class="col-lg-12">
<form class="form-group" method="post">
<label>Enter Invoice No.</label>
<input type="text" id="search_text" style="height: 50px;" placeholder="Enter Invoice Number" name="search_text" required class="form-control"><br>
</form>
<div id="result" class="col-lg-12"> </div>
</div>
</div>
</div>
</div>
</div>
<script>
$(document).ready(function(){
$('#search_text').keyup(function(){
var txt= $(this).val();
if(txt !=''){
$.ajax({
url:"fetch_invoice.php",
method:"post",
data:{search:txt},
dataType:"text",
success:function(data)
{
$('#result').html(data);
}
});
}
else
{
$('#result').html('');
}
});
});
</script>
</body>