Repository navigation
Expand file tree
/
Copy pathdirect_purchase_menu.php
More file actions
164 lines (134 loc) · 4.89 KB
/
Copy pathdirect_purchase_menu.php
File metadata and controls
164 lines (134 loc) · 4.89 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<?php include("includes/a_config.php");?>
<?php
include("includes/conn.php");
include("includes/sessionconfig.php");
?>
<?php
$cur_dte=date("Y-m-d");
?>
<!DOCTYPE html>
<html>
<head>
<?php include("includes/head-tag-contents.php");?>
<link rel="stylesheet" type="text/css" href="datatable/dataTables.min.css"/>
<link rel="stylesheet" type="text/css" href="datatable/jquery-ui.css"/>
<script type="text/javascript" src="datatable/dataTables.min.js"></script>
</head>
<body>
<?php include("includes/design-top.php");?>
<?php include("includes/navigation.php");?>
<div class="container" id="main-content">
<h2>Welcome Procurement Management System</h2>
<p>This project was developped for the university of Colombo School of computing</p>
<p> Main Expectation of this System is to simplify the Procurementsystem and systematic the same. Through the system we are expecting to evaluate BOQs, Products and servives </p>
<div class="row">
<div class="col-md-12">
<section class="panel panel-primary panel-transparent ">
<div class="panel-heading">
<label style="font-size:20px;">Direct Purchasing </label>
</div>
<div class="panel-body">
<table id="tb1" class="display" cellspacing="0" width="100%">
<thead>
<tr>
<th width="20%">Date </th>
<th width="20%">Project ID</th>
<th width="30%">Project Name</th>
<th width="30%">Supplier Name</th>
</tr>
</thead>
<tfoot>
<tr>
<th width="20%">Date </th>
<th width="20%">Project ID</th>
<th width="30%">Project Name</th>
<th width="30%">Supplier Name</th>
</tr>
</tfoot>
<tbody>
<?php
$sql1="SELECT * FROM direct_purches_master INNER JOIN supplier_master
ON direct_purches_master.supplier_key=supplier_master.supplierms_key
WHERE
direct_purches_master.status=0";
$result1 = mysqli_query($link,$sql1);
while($row1=mysqli_fetch_array($result1)){
?>
<tr>
<td width="20%"><?php echo $row1['date']; ?></td>
<td width="20%"><a href="direct_purchase_ed.php?p=<?php echo $row1['direct_mas_key']; ?>"><?php echo $row1['direct_id']; ?></a></td>
<td width="20%"><?php echo $row1['heading']; ?></td>
<td width="20%"><?php echo $row1['supplier_name'];?></td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</section>
</div>
</div>
<!--initialize Projects-->
</div>
<?php include("includes/footer.php");?>
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$('#tb1 tfoot th').each( function () {
var title = $(this).text();
$(this).html( '<input type="text" placeholder="'+title+'" style="color:black" class="form-control input-sm" />' );
} );
// DataTable
var table = $('#tb1').DataTable();
// Apply the search
table.columns().every( function () {
var that = this;
$( 'input', this.footer() ).on( 'keyup change', function () {
if ( that.search() !== this.value ) {
that
.search( this.value )
.draw();
}
} );
} );
//............................................................. table 1 Jaquery
$('#tb2 tfoot th').each( function () {
var title = $(this).text();
$(this).html( '<input type="text" placeholder="'+title+'" style="color:black" class="form-control input-sm" />' );
} );
// DataTable
var table = $('#tb2').DataTable();
// Apply the search
table.columns().every( function () {
var that = this;
$( 'input', this.footer() ).on( 'keyup change', function () {
if ( that.search() !== this.value ) {
that
.search( this.value )
.draw();
}
} );
} );
//............................................................. table 2 Jaquery
$('#tb3 tfoot th').each( function () {
var title = $(this).text();
$(this).html( '<input type="text" placeholder="'+title+'" style="color:black" class="form-control input-sm" />' );
} );
// DataTable
var table = $('#tb3').DataTable();
// Apply the search
table.columns().every( function () {
var that = this;
$( 'input', this.footer() ).on( 'keyup change', function () {
if ( that.search() !== this.value ) {
that
.search( this.value )
.draw();
}
} );
} );
//............................................................. table 3 Jaquery
});
</script>
</body>
</html>