Subversion Repositories artstore

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 p.duerhamm 1
<?php
2
/***************************************************************************
3
 *   Copyright (C) 2014 by Computerhaus GmbH                               *
4
 *   m@kom.at                                                              *
5
 *                                                                         *
6
 *   COPYRIGHT (C) 2014      by COMPUTERHAUS EDV-HANDELS GMBH. ALL RIGHTS  *
7
 *   RESERVED. NO PART OF THIS PRGORAM OR PUBLICATION MAY BE REPRODUCED,   *
8
 *   TRANSLATED, TRANSCRIBED, STORED IN A RETRIEVAL SYSTEM, OR TRANSLATED  *
9
 *   INTO ANY LANGUAGE OR COMPUTER LANGUAGE IN ANY FORM OR BY ANY MEANS,   *
10
 *   ELECTRONIC, MECHANICAL, MAGNETIC, OPTICAL, CHEMICAL, MANUAL, OR       *
11
 *   OTHERWISE, WITHOUT THE PRIOR WRITTEN PERMISSION OF:                   *
12
 *                                                                         *
13
 *                 COMPUTERHAUS EDV-HANDELS GES.M.B.H                      *
14
 *                                                                         *
15
 *               WIENERSTRASSE 26 - 8605 KAPFENBERG - AUSTRIA              *
16
 *                                                                         *
17
 ***************************************************************************/
18
 
19
spl_autoload_register(null, false );
20
spl_autoload_extensions( '.php, .class.php' );
21
 
22
date_default_timezone_set('Europe/Vienna');
23
 
24
$css_version = '20150218001';
25
 
26
require_once 'includes/configuration.php';
27
 
28
function classesLoader($class) {
29
	$filename = strtolower($class) . '.php';
30
	$file = DIR_WS_INCLUDES . $filename;
31
	if( !file_exists($file) )
32
		return false;
33
	include $file;
34
}
35
 
36
spl_autoload_register('classesLoader');
37
 
38
$is_mobile = false;
39
$user_agent = $_SERVER['HTTP_USER_AGENT'];
40
if ( ( strpos ( strtolower($user_agent), 'iemobile' ) !== false ) || ( strpos ( strtolower($user_agent), 'windows phone' ) !== false ) ) {
41
	$is_mobile = true;
42
// 	$use_zoom = "2";
43
//
44
// 	$style_zoom = <<<EOD
45
// 	<style>
46
// 	    body {
47
// 		zoom: $use_zoom;
48
// 		-moz-transform: scale($use_zoom);
49
// 		-moz-transform-origin: 0 0;
50
// 		-o-transform: scale($use_zoom);
51
// 		-o-transform-origin: 0 0;
52
// 		-webkit-transform: scale($use_zoom);
53
// 		-webkit-transform-origin: 0 0;
54
// 		transform: scale($use_zoom);
55
// 		transform-origin: 0 0;
56
// 	    }
57
// 	</style>
58
// EOD;
59
// 	echo $style_zoom;
60
}
61
 
62
$db = new Database;
63
 
64
$show_onfail = ' alert ( "Fehler bei der &Uuml;bertragung!" );';
65
 
66
echo '<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">' . "\n";
67
echo '<html dir="LTR" lang="de">' . "\n";
68
echo '<head>' . "\n";
69
echo '<meta HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">' . "\n";
70
echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">' . "\n";
71
echo '<meta name="MobileOptimized" content="480">' . "\n";
72
// echo '<meta name="viewport" content="width=320">' . "\n";
73
echo '<meta name="viewport" content="width=device-width">' . "\n";
74
echo '<title>ARTSTORE</title>' . "\n";
75
echo '<base href="' . HTTP_SERVER . '">' . "\n";
76
echo '<link rel="stylesheet" type="text/css" href="' . DIR_WS_STYLES . 'styles.css?v=' . $css_version . '">' . "\n";
77
 
78
 
79
 
80
echo '<script type="text/javascript" src="' . DIR_WS_JS . 'jquery-1.11.0.min.js"></script>' . "\n";
81
 
82
echo '<script type="text/javascript">';
83
echo '  $(document).ready( function() {';
84
echo '    $.ajaxSetup ({';
85
echo '      cache: false';
86
echo '    });';
87
echo '    var cur_store_type = "";';
88
echo '    var cur_additional_type = "";';
89
echo '    var cur_colli_uuid = "";';
90
echo '    var cur_sector_uuid = "";';
91
echo '    var cur_objinfo_uuid = "";';
92
 
93
echo '    start();';
94
 
95
echo '    function focus_input ( field ) {';
96
echo '      $(field).val("");';
97
echo '      $(field).focus();';
98
echo '    }';
99
 
100
echo '    function set_store_type ( type ) {';
101
echo '      cur_store_type = type;';
102
echo '      $("#store_type_section").hide();';
103
echo '      $("#reset_section").show();';
104
echo '      $("#colli_section").show();';
105
echo '      $("#summary_section").show();';
106
echo '      focus_input("#colli_uuid_field");';
107
echo '      update_summary("store");';
108
echo '    }';
109
 
110
echo '    function set_colli_uuid ( colli_uuid ) {';
111
echo '      cur_colli_uuid = colli_uuid;';
112
echo '      $("#colli_section").hide();';
113
echo '      $("#store_section").show();';
114
echo '      focus_input("#sector_uuid_field");';
115
echo '      update_summary("store");';
116
echo '    }';
117
 
118
echo '    function set_sector_uuid ( sector_uuid ) {';
119
echo '      cur_sector_uuid = sector_uuid;';
120
echo '      show_submit();';
121
echo '      $("#store_section").hide();';
122
echo '      $("#submit_section").show();';
123
echo '      update_summary("store");';
124
echo '    }';
125
 
126
echo '    function set_additional_type ( type ) {';
127
echo '      cur_additional_type = type;';
128
echo '      $("#store_type_section").hide();';
129
echo '      $("#additional_objinfo_section").show();';
130
echo '      $("#reset_section").show();';
131
echo '      $("#summary_section").show();';
132
echo '      focus_input("#objinfo_uuid_field");';
133
echo '      update_summary("objinfo");';
134
echo '    }';
135
 
136
echo '    function set_objinfo_uuid ( objinfo_uuid ) {';
137
echo '      cur_objinfo_uuid = objinfo_uuid;';
138
echo '      $("#additional_objinfo_section").hide();';
139
echo '      $("#additional_objinfo_show_section").show();';
140
echo '      $("#reset_section").show();';
141
// echo '      $("#additional_objinfo_show_section").show();';
142
echo '      update_summary("objinfo");';
143
echo '    }';
144
 
145
echo '    function check_colli_uuid ( colli_uuid ) {';
146
echo '      $.getJSON("' . HTTP_BACKEND . '", { action: "check_colli_uuid", colli_uuid: colli_uuid, store_type: cur_store_type } )';
147
echo '        .done( function ( data ) { ';
148
echo '          var items = [];';
149
echo '          var error = true;';
150
echo '          var error_text = "";';
151
echo '          $.each( data, function( key, val ) {';
152
echo '            if ( ( key == "success" ) && ( val ) ) {';
153
echo '              set_colli_uuid( colli_uuid );';
154
echo '              error = false;';
155
echo '            } else if ( key == "error_text" ) {';
156
echo '              error_text = val;';
157
echo '            }';
158
echo '          });';
159
echo '          if ( error ) {';
160
echo '            show_error_box(error_text);';
161
echo '          }';
162
echo '        });';
163
echo '    }';
164
 
165
echo '    function check_sector_uuid ( sector_uuid ) {';
166
echo '      $.getJSON("' . HTTP_BACKEND . '", { action: "check_sector_uuid", sector_uuid: sector_uuid } )';
167
echo '        .done( function ( data ) { ';
168
echo '          var items = [];';
169
echo '          var error = true;';
170
echo '          var error_text = "";';
171
echo '          $.each( data, function( key, val ) {';
172
echo '            if ( ( key == "success" ) && ( val ) ) {';
173
echo '              set_sector_uuid( sector_uuid );';
174
echo '              error = false;';
175
echo '            } else if ( key == "error_text" ) {';
176
echo '              error_text = val;';
177
echo '            }';
178
echo '          });';
179
echo '          if ( error ) {';
180
echo '            show_error_box(error_text);';
181
echo '          }';
182
echo '        });';
183
echo '    }';
184
 
185
echo '    function check_objinfo_uuid ( objinfo_uuid ) {';
186
echo '      $.getJSON("' . HTTP_BACKEND . '", { action: "check_objinfo_uuid", objinfo_uuid: objinfo_uuid } )';
187
echo '        .done( function ( data ) { ';
188
echo '          var items = [];';
189
echo '          var error = true;';
190
echo '          var error_text = "";';
191
echo '          $.each( data, function( key, val ) {';
192
echo '            if ( ( key == "success" ) && ( val ) ) {';
193
echo '              set_objinfo_uuid( objinfo_uuid );';
194
echo '              error = false;';
195
echo '            } else if ( key == "error_text" ) {';
196
echo '              error_text = val;';
197
echo '            }';
198
echo '          });';
199
echo '          if ( error ) {';
200
echo '            show_error_box(error_text);';
201
echo '          }';
202
echo '        });';
203
echo '    }';
204
 
205
echo '    function reset_ids () {';
206
echo '      cur_store_type = "";';
207
echo '      cur_additional_type = "";';
208
echo '      cur_colli_uuid = "";';
209
echo '      cur_sector_uuid = "";';
210
echo '      cur_objinfo_uuid = "";';
211
echo '      start();';
212
echo '    }';
213
 
214
echo '    function show_error_box (use_text) {';
215
echo '      var text = ( ( use_text !== "" ) ? use_text : "Fehlerhafte Eingabe" );';
216
echo '      $(".error_box").html(text).fadeIn();';
217
echo '      setTimeout(function() {';
218
echo '        reset_error_box();';
219
echo '      }, 5000 );';
220
echo '    }';
221
echo '    function reset_error_box () {';
222
echo '      $(".error_box").fadeOut("slow");';
223
echo '    }';
224
 
225
echo '    function start () {';
226
echo '      $("#store_type_section").show();';
227
// echo '      $("#reset_section").show();';
228
echo '      $("#reset_section").hide();';
229
echo '      $("#colli_section").hide();';
230
echo '      $("#store_section").hide();';
231
echo '      $("#submit_section").hide();';
232
echo '      $("#success_section").hide();';
233
echo '      $("#summary_section").hide();';
234
echo '      $("#additional_objinfo_section").hide();';
235
echo '      $("#additional_objinfo_show_section").hide();';
236
echo '      $(".error_box").hide();';
237
echo '      reset_error_box();';
238
echo '    }';
239
 
240
echo '    function show_submit () {';
241
echo '      $.getJSON("' . HTTP_BACKEND . '", { action: "show_result", store_type: cur_store_type, colli_uuid: cur_colli_uuid, sector_uuid: cur_sector_uuid } )';
242
echo '        .done( function ( data ) { ';
243
echo '          var items = [];';
244
echo '          var success = false;';
245
echo '          var text = "";';
246
echo '          $.each( data, function( key, val ) {';
247
echo '            if ( ( key == "success" ) && ( val ) ) {';
248
echo '              success = true;';
249
echo '            }';
250
echo '            else if ( key == "text" ) {';
251
echo '              text = val;';
252
echo '            }';
253
echo '          });';
254
echo '          if ( success ) {';
255
echo '            $("#show_result").html(text);';
256
echo '          }';
257
echo '        });';
258
echo '    }';
259
 
260
echo '    function submit () {';
261
echo '      $.getJSON("' . HTTP_BACKEND . '", { action: "submit", store_type: cur_store_type, colli_uuid: cur_colli_uuid, sector_uuid: cur_sector_uuid } )';
262
echo '        .done( function ( data ) { ';
263
echo '          var items = [];';
264
echo '          var success = true;';
265
echo '          var text = "";';
266
echo '          $.each( data, function( key, val ) {';
267
echo '            if ( ( key == "success" ) && ( val ) ) {';
268
echo '              success = true;';
269
echo '            }';
270
echo '            else if ( key == "text" ) {';
271
echo '              text = val;';
272
echo '            }';
273
echo '          });';
274
echo '          if ( success ) {';
275
echo '            $("#show_result_done").html(text);';
276
echo '            window.location = "' . HTTP_SERVER . '";';
277
echo '          }';
278
echo '        });';
279
echo '      $("#submit_section").hide();';
280
echo '      $("#reset_section").hide();';
281
echo '      $("#success_section").show();';
282
echo '    }';
283
 
284
echo '    function update_summary ( summary_type ) {';
285
echo '      var use_action = "summary";';
286
echo '      if ( summary_type && summary_type == "objinfo" ) {';
287
echo '        use_action = "summary_objinfo";';
288
echo '      }';
289
echo '      $.getJSON("' . HTTP_BACKEND . '", { action: use_action, store_type: cur_store_type, additional_type: cur_additional_type, colli_uuid: cur_colli_uuid, sector_uuid: cur_sector_uuid, objinfo_uuid: cur_objinfo_uuid } )';
290
echo '        .done( function ( data ) { ';
291
echo '          var items = [];';
292
echo '          var success = false;';
293
echo '          var text = "";';
294
echo '          $.each( data, function( key, val ) {';
295
echo '            if ( ( key == "success" ) && ( val ) ) {';
296
echo '              success = true;';
297
echo '            }';
298
echo '            else if ( key == "text" ) {';
299
echo '              text = val;';
300
echo '            }';
301
echo '          });';
302
echo '          if ( success ) {';
303
echo '            $("#show_summary").html(text);';
304
echo '          }';
305
echo '        });';
306
echo '    }';
307
 
308
echo '    $(document).on( "click", ".store_type_item", function() {';
309
echo '      set_store_type ( $(this).attr("id") );';
310
echo '    });';
311
echo '    $(document).on( "touchend", ".store_type_item", function() {';
312
echo '      set_store_type ( $(this).attr("id") );';
313
echo '    });';
314
 
315
echo '    $(document).on( "click", ".additional_item", function() {';
316
echo '      set_additional_type ( $(this).attr("id") );';
317
echo '    });';
318
echo '    $(document).on( "touchend", ".additional_item", function() {';
319
echo '      set_additional_type ( $(this).attr("id") );';
320
echo '    });';
321
 
322
echo '    $(document).on( "click", "#colli_update", function() {';
323
echo '      check_colli_uuid ( $("#colli_uuid_field").val() );';
324
echo '    });';
325
echo '    $(document).on( "touchend", "#colli_update", function() {';
326
echo '      check_colli_uuid ( $("#colli_uuid_field").val() );';
327
echo '    });';
328
 
329
echo '    $(document).on( "click", "#store_update", function() {';
330
echo '      check_sector_uuid ( $("#sector_uuid_field").val() );';
331
echo '    });';
332
echo '    $(document).on( "touchend", "#store_update", function() {';
333
echo '      check_sector_uuid ( $("#sector_uuid_field").val() );';
334
echo '    });';
335
 
336
echo '    $(document).on( "click", "#objinfo_update", function() {';
337
echo '      check_objinfo_uuid ( $("#objinfo_uuid_field").val() );';
338
echo '    });';
339
echo '    $(document).on( "touchend", "#objinfo_update", function() {';
340
echo '      check_objinfo_uuid ( $("#objinfo_uuid_field").val() );';
341
echo '    });';
342
 
343
echo '    $(":input").keypress(function (e) {';
344
echo '      if (e.which==13) {'; // enter key pressed
345
// echo '        if ( $(this).attr("id") == "colli_uuid_field" ) {';
346
// echo '          check_colli_uuid ( $("#colli_uuid_field").val() );';
347
// echo '        } else';
348
echo '        if ( $(this).attr("id") == "sector_uuid_field" ) {';
349
echo '          check_sector_uuid ( $("#sector_uuid_field").val() );';
350
echo '        }';
351
echo '        else if ( $(this).attr("id") == "objinfo_uuid_field" ) {';
352
echo '          check_objinfo_uuid ( $("#objinfo_uuid_field").val() );';
353
echo '        }';
354
echo '      }';
355
echo '    });';
356
 
357
echo '    $(document).on( "click", ".submit_now", function() {';
358
echo '      submit ();';
359
echo '    });';
360
echo '    $(document).on( "touchend", ".submit_now", function() {';
361
echo '      submit ();';
362
echo '    });';
363
 
364
echo '    $(document).on( "click", ".reset_item", function() {';
365
echo '      reset_ids();';
366
echo '    });';
367
echo '    $(document).on( "touchend", ".reset_item", function() {';
368
echo '      reset_ids();';
369
echo '    });';
370
 
371
echo '    $(document).on( "click", ".reset_item_success", function() {';
372
echo '      window.location = "' . HTTP_SERVER . '";';
373
echo '    });';
374
echo '    $(document).on( "touchend", ".reset_item_success", function() {';
375
echo '      window.location = "' . HTTP_SERVER . '";';
376
echo '    });';
377
 
378
echo '  });';
379
 
380
echo '</script>';
381
 
382
echo '<table border="0" cellspacing="0" cellpadding="0" width="100%">' . "\n";
383
// echo '<tr>';
384
// echo '<td class="left_logo" width="100px"><img src="' . HTTP_SERVER . '/images/hsart_logo.png"></td>';
385
// echo '<tr><td class="left_logo" align="center"><img src="' . HTTP_SERVER . '/images/hsart_logo.png"></td></tr>';
386
 
387
echo '<tr>';
388
 
389
echo '<td align="center"><table border="0" cellspacing="5" cellpadding="0" width="100%">' . "\n";
390
// echo '<tr><td class="header">ARTSTORE</td></tr>';
391
echo '<tr><td><table width="60%"><tr>';
392
echo '<td class="header"><img src="' . HTTP_SERVER . '/images/hsart_logo.png"></td>';
393
echo '<td class="show_date">' . date("d.m.Y, H:i", strtotime("now")) . '</td>';
394
echo '</tr></table></td></tr>';
395
echo '<tr><td class="error_box"></td></tr>';
396
 
397
// select store type
398
 
399
	echo '<tr id="store_type_section"><td class="store_type_section"><table border="0" cellspacing="10" cellpadding="10" width="100%">' . "\n";
400
 
401
	echo '<tr><td class="item_header">Vorgang ausw&auml;hlen:</td></tr>';
402
 
403
	foreach ( Core::get_store_types() AS $cur_store_type ) {
404
		echo '<tr><td class="clickbtn store_type_item" id="store_type_' . $cur_store_type['id'] . '">' . $cur_store_type['name'] . '</td></tr>';
405
	}
406
 
407
	echo '<tr>';
408
	foreach ( Core::get_additional_selection() AS $cur_add_sel ) {
409
		echo '<td class="clickbtn additional_item" id="additional_type_' . $cur_add_sel['id'] . '">' . $cur_add_sel['name'] . '</td>';
410
	}
411
	echo '</tr>';
412
 
413
	echo '</table></td></tr>' . "\n";
414
 
415
// select colli id
416
 
417
	echo '<tr id="colli_section"><td class="colli_section"><table border="0" cellspacing="10" cellpadding="10" width="100%">' . "\n";
418
 
419
	echo '<tr><td class="item_header">Paket scannen:</td></tr>';
420
// 	echo '<tr><td class="colli_item"><input type="text" size="30" value="" id="colli_uuid_field" autocomplete="off"></td></tr>';
421
	echo '<tr><td class="colli_item"><textarea name="colli_uuid_field" cols="50" rows="10" value="" id="colli_uuid_field"></textarea></td></tr>';
422
	echo '<tr><td class="clickbtn colli_item" id="colli_update">&Uuml;bernehmen</td></tr>';
423
 
424
	echo '</table></td></tr>' . "\n";
425
 
426
// select store id
427
 
428
	echo '<tr id="store_section"><td class="store_section"><table border="0" cellspacing="10" cellpadding="10" width="100%">' . "\n";
429
 
430
	echo '<tr><td class="item_header">Lagerplatz scannen:</td></tr>';
431
	echo '<tr><td class="store_item"><input type="text" size="30" value="" id="sector_uuid_field" autocomplete="off"></td></tr>';
432
	echo '<tr><td class="clickbtn store_item" id="store_update">&Uuml;bernehmen</td></tr>';
433
 
434
	echo '</table></td></tr>' . "\n";
435
 
436
// select object info
437
 
438
	echo '<tr id="additional_objinfo_section"><td class="additional_objinfo_section"><table border="0" cellspacing="10" cellpadding="10" width="100%">' . "\n";
439
 
440
	echo '<tr><td class="item_header">Objekt scannen:</td></tr>';
441
	echo '<tr><td class="store_item"><input type="text" size="30" value="" id="objinfo_uuid_field" autocomplete="off"></td></tr>';
442
	echo '<tr><td class="clickbtn store_item" id="objinfo_update">&Uuml;bernehmen</td></tr>';
443
 
444
	echo '</table></td></tr>' . "\n";
445
 
446
 
447
// show object info
448
 
449
	echo '<tr id="additional_objinfo_show_section"><td class="additional_objinfo_show_section"><table border="0" cellspacing="10" cellpadding="10" width="100%">' . "\n";
450
 
451
	echo '<tr><td class="item_header">Objekt Info:</td></tr>';
452
// 	echo '<tr><td class="store_item"><input type="text" size="30" value="" id="objinfo_uuid_field" autocomplete="off"></td></tr>';
453
// 	echo '<tr><td class="clickbtn store_item" id="objinfo_update">&Uuml;bernehmen</td></tr>';
454
 
455
	echo '</table></td></tr>' . "\n";
456
 
457
// submit result
458
 
459
	echo '<tr id="submit_section"><td class="submit_section"><table border="0" cellspacing="10" cellpadding="10" width="100%">' . "\n";
460
 
461
	echo '<tr><td class="item_header_submit">Vorgang abschlie&szlig;en:</td></tr>';
462
	echo '<tr><td class="success_item" id="show_result">Bitte warten...</td></tr>';
463
// 	echo '<tr><td class="success_item" id="use_store_type"></td></tr>';
464
// 	echo '<tr><td class="success_item" id="use_colli_uuid"></td></tr>';
465
// 	echo '<tr><td class="success_item" id="use_sector_uuid"></td></tr>';
466
	echo '<tr><td class="clickbtn submit_now">&Uuml;bernehmen</td></tr>';
467
 
468
	echo '</table></td></tr>' . "\n";
469
 
470
// success
471
 
472
	echo '<tr id="success_section"><td class="success_section"><table border="0" cellspacing="10" cellpadding="10" width="100%">' . "\n";
473
 
474
	echo '<tr><td class="item_header_success">Vorgang abgeschlossen:</td></tr>';
475
	echo '<tr><td class="success_item" id="show_result_done">Bitte warten...</td></tr>';
476
	echo '<tr><td class="clickbtn reset_item_success">zur&uuml;ck zum Start</td></tr>';
477
 
478
	echo '</table></td></tr>' . "\n";
479
 
480
// cancel and reset
481
 
482
	echo '<tr id="reset_section"><td class="reset_section"><table border="0" cellspacing="10" cellpadding="10" width="100%">' . "\n";
483
	echo '<tr><td class="clickbtn reset_item">Abbrechen</td></tr>';
484
	echo '</table></td></tr>' . "\n";
485
 
486
// summary
487
 
488
	echo '<tr id="summary_section"><td class="summary_section"><table border="0" cellspacing="10" cellpadding="10" width="100%">' . "\n";
489
	echo '<tr><td class="item_header_summary">Aktuelle Auswahl:</td></tr>';
490
	echo '<tr><td class="summary_item" id="show_summary"></td></tr>';
491
	echo '</table></td></tr>' . "\n";
492
 
493
echo '</table>' . "\n";
494
echo '</td></tr>' . "\n";
495
 
496
echo '<tr><td class="footer">' . ( ( $is_mobile ) ? 'MOBILE':'' ) . '</td></tr>';
497
 
498
echo '</table>' . "\n";
499
///Letze Buchungen 04/2017
500
?>
501
<table>
502
<?php
503
require_once('Connections/artstore.php');
504
			  ///Nachsehen, wo Objekt im Lager zu finden ist.....
505
 
506
					//$myid = $row_colli['colli_uuid'];
507
			  		mysql_select_db($database_artstore, $artstore);
508
					$query_location = sprintf("SELECT * from store INNER JOIN sector ON (store.sector_id = sector.sector_id) INNER JOIN colli ON (store.colli_id = colli.colli_id) ORDER BY store_id DESC LIMIT 0,100");
509
					$location = mysql_query($query_location, $artstore) or die(mysql_error());
510
					$row_location = mysql_fetch_assoc($location);
511
					$totalRows_location = mysql_num_rows($location);
512
					//echo $totalRows_location." Lagerbewegungen<BR/>";
513
					if ($totalRows_location > 0){
514
						do{
515
					?>
516
      <tr>
517
        <td class="lagerstatus<?php echo $row_location["store_type"]*2;?>"><?php echo $row_location["store_type"];?></td>
518
        <td class="lagerstatus<?php echo $row_location["store_type"]*2;?>"><?php echo $row_location["sector_uuid"];?></td>
519
        <td class="lagerstatus<?php echo $row_location["store_type"]*2;?>"><?php echo $row_location["sector_text1"];?></td>
520
        <td class="lagerstatus<?php echo $row_location["store_type"]*2;?>"><?php echo $row_location["sector_text2"];?></td>
521
        <td class="lagerstatus<?php echo $row_location["store_type"]*2;?>"><?php echo $row_location["sector_text3"];?></td>
522
        <td class="lagerstatus<?php echo $row_location["store_type"]*2;?>"><?php echo $row_location["colli_uuid"];?></td>
523
        <td class="lagerstatus<?php echo $row_location["store_type"]*2;?>"><?php echo $row_location["store_timestamp"];?></td>
524
      </tr>
525
      <?php
526
                        } while ($row_location = mysql_fetch_assoc($location));
527
					}
528
				else{
529
					echo "Keine Store-Info";
530
				}
531
?>
532
 </table>
533
<?php
534
////
535
echo '</body>' . "\n";
536
echo '</html>' . "\n";
537
?>