-
Notifications
You must be signed in to change notification settings - Fork 1
/
incomes.php
183 lines (168 loc) · 6.91 KB
/
incomes.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
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<?php
$page_title = 'Packing List';
require_once('include/load.php');
page_require_level(3);
?>
<?php
$ctr = "MAEU 403564/0 O.T.";
//$incomes = find_incomes($ctr);
?>
<?php include_once('layouts/header.php'); ?>
<div class="row">
<div class="col-md-6">
<?php echo display_msg($msg); ?>
</div>
</div>
<div class="row">
<div class="col-md-12">
<!-- This is to IntelliSearch (auto-suggestion) by CTR -->
<form method="post" action="add_product.php" class="clearfix">
<div class="form-group">
<!-- Old form --><!--
<div class="row">
<div class="col-md-4 col-sm-6">
<div class="input-group" style="padding-left:4em">
<span class="glyphicon glyphicon-pencil" style="padding-right: 4pt;"></span>
<input type="text" id="search_date" name="search_date">
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="input-group" style="padding-left:4em">
<span class="glyphicon glyphicon-pencil" style="padding-right: 4pt;"></span>
<input type="text" id="search_partial_job" name="search_partial_job">
</div>
</div>
</div>-->
<div class="row">
<!-- No. -->
<div class="col-md-4 col-sm-6">
<label>No.</label>
<div class="input-group" style="padding-left:4em">
<span class="glyphicon glyphicon-pencil" style="padding-right: 4pt;"></span>
<input type="text" id="search_no" name="search_no">
</div>
</div>
<!-- P/L No. -->
<div class="col-md-4 col-sm-6">
<label>P/L No.</label>
<div class="input-group" style="padding-left:4em">
<span class="glyphicon glyphicon-pencil" style="padding-right: 4pt;"></span>
<input type="text" id="search_pl_no" name="search_pl_no">
</div>
</div>
</div>
<div class="row" style="margin-top:1em">
<!-- Date -->
<div class="col-md-4 col-sm-6">
<label>Date</label>
<div class="input-group" style="padding-left:4em">
<span class="glyphicon glyphicon-pencil" style="padding-right: 4pt;"></span>
<input type="text" id="search_date" name="search_date">
</div>
</div>
<!-- Partial Job -->
<div class="col-md-4 col-sm-6">
<label>Partial Job</label>
<div class="input-group" style="padding-left:4em">
<span class="glyphicon glyphicon-pencil" style="padding-right: 4pt;"></span>
<input type="text" id="search_partial_job" name="search_partial_job">
</div>
</div>
</div>
<div class="row" style="margin-top:1em">
<!-- P. Contract -->
<div class="col-md-4 col-sm-6">
<label>P. Contract</label>
<div class="input-group" style="padding-left:4em">
<span class="glyphicon glyphicon-pencil" style="padding-right: 4pt;"></span>
<input type="text" id="search_p_contract" name="search_p_contract">
</div>
</div>
<!-- CTR -->
<div class="col-md-4 col-sm-6">
<label>CTR</label>
<div class="input-group" style="padding-left:4em">
<span class="glyphicon glyphicon-pencil" style="padding-right: 4pt;"></span>
<input type="text" id="search_search_ctr" name="search_search_ctr">
</div>
</div>
</div>
</div>
<div class="form-group">
<div class="row" style="margin-top:4em; text-align:center;">
<div class="col-md-6">
<div class="input-group">
<span class="input-group-btn">
<button type="submit" class="btn btn-primary">Mostrar</button>
</span>
</div>
</div>
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-btn">
<button type="submit" class="btn btn-primary">Búsqueda</button>
</span>
<input type="text" id="sug_input" class="form-control" name="title"
placeholder="Buscar por CTR">
</div>
<div id="result" class="list-group"></div>
</div>
</form>
<form method="post" action="update_incomes.php">
<div class="panel panel-default">
<div class="panel-heading clearfix">
<strong>
<span class="glyphicon glyphicon-th"></span>
<span> Packing List </span>
</strong>
<div class="pull-right">
<button type="submit" class="btn btn-primary">Actualizar</button>
</div>
</div>
<div class="panel-body">
<table class="table table-bordered table-striped">
<thead>
<tr>
<!-- table header -->
<th class="text-center" style="width: 50px;">#</th>
<th class="text-center" style="width: 4em;"> No. of Pkgs.</th>
<th class="text-center" style="width: 6em;"> Pkg. Mark. No.</th>
<th class="text-center" style=""> Description </th>
<th class="text-center" style="width: 4em;"> Dimensions</th>
<th class="text-center" style="width: 4em;"> G.W. Kg.</th>
<th class="text-center" style="width: 4em;"> Tare Kg.</th>
<th class="text-center" style="width: 4em;"> N.W. Kg.</th>
<th class="text-center" style="width: 10em;"> CTR</th>
<th class="text-center" style="width: 4em;"> Dispatched</th>
<th class="text-center" style="width: 4em;"> Received</th>
<!--<th class="text-center" style="width: 8em;"> Acciones</th>-->
</tr>
</thead>
<tbody>
<!--
<?php foreach ($incomes as $entry):?>
<tr>
<td class="text-center"><?php echo count_id();?></td>
<td class="text-center"><?php echo (int)$entry['no_of_pkgs']; ?></td>
<td class="text-center"><?php echo (int)$entry['pkg_mark_no']; ?></td>
<td class="text-center"><?php echo str_replace( "\n", '<br/>', $entry['description'] ); ?> </td>
<td class="text-center"><?php echo remove_junk($entry['dimensions']); ?> </td>
<td class="text-center"><?php echo remove_junk($entry['gw_kg']); ?></td>
<td class="text-center"><?php echo remove_junk($entry['tare_kg']); ?></td>
<td class="text-center"><?php echo remove_junk($entry['nw_kg']); ?></td>
<td class="text-center"><?php echo remove_junk($entry['ctr']); ?></td>
<td class="text-center"><input type="checkbox" name="dispatched_id_<?php echo $entry['id']; ?>" <?php if( $entry['dispatched'] == 'y' ) echo "checked value =\"1\""; ?>></td>
<td class="text-center"><input type="checkbox" name="received_id_<?php echo $entry['id']; ?>" <?php if( $entry['received'] == 'y' ) echo "checked value =\"1\""; ?>></td>
</tr>
<?php endforeach;?>
-->
</tbody>
</table>
</div>
</div>
</form>
</div>
</div>
<?php include_once('layouts/footer.php'); ?>