| 
									
										
										
										
											2017-05-17 23:09:51 -06:00
										 |  |  | <?php | 
					
						
							| 
									
										
										
										
											2017-12-16 13:32:58 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | /* This Source Code Form is subject to the terms of the Mozilla Public | 
					
						
							|  |  |  |  * License, v. 2.0. If a copy of the MPL was not distributed with this | 
					
						
							|  |  |  |  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-05-17 23:09:51 -06:00
										 |  |  | require_once __DIR__ . '/../required.php'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | redirectifnotloggedin(); | 
					
						
							|  |  |  | ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-11-13 16:16:49 -07:00
										 |  |  | <div class="btn-group mgn-btm-10px"> | 
					
						
							| 
									
										
										
										
											2018-09-07 18:29:25 -06:00
										 |  |  |     <a href="app.php?page=edititem" class="btn btn-success"><i class="fa fa-plus"></i> <?php $Strings->get("New Item"); ?></a>
 | 
					
						
							| 
									
										
										
										
											2017-05-17 23:09:51 -06:00
										 |  |  | </div> | 
					
						
							| 
									
										
										
										
											2018-09-07 18:29:25 -06:00
										 |  |  | <?php if (isset($_GET['filter']) && $_GET['filter'] == 'stock') { ?>
 | 
					
						
							| 
									
										
										
										
											2017-12-09 02:10:45 -07:00
										 |  |  |     <script nonce="<?php echo $SECURE_NONCE; ?>">var filter = "stock";</script> | 
					
						
							| 
									
										
										
										
											2018-09-07 18:29:25 -06:00
										 |  |  |     <div class="alert alert-blue-grey"><i class="fa fa-filter fa-fw"></i> <?php $Strings->get("only showing understocked"); ?>   <a href="app.php?page=items" class="btn btn-sm btn-blue-grey"><?php $Strings->get("show all items"); ?></a></div>
 | 
					
						
							| 
									
										
										
										
											2017-12-09 02:10:45 -07:00
										 |  |  |     <?php | 
					
						
							|  |  |  | } else { | 
					
						
							| 
									
										
										
										
											2017-11-13 16:16:49 -07:00
										 |  |  |     echo "<script nonce=\"$SECURE_NONCE\">var filter = null;</script>\n";
 | 
					
						
							| 
									
										
										
										
											2017-09-05 22:35:35 -06:00
										 |  |  | } | 
					
						
							|  |  |  | ?>
 | 
					
						
							| 
									
										
										
										
											2018-01-29 00:37:39 -07:00
										 |  |  | <table id="itemtable" class="table table-bordered table-hover table-sm"> | 
					
						
							| 
									
										
										
										
											2017-05-17 23:09:51 -06:00
										 |  |  |     <thead> | 
					
						
							|  |  |  |         <tr> | 
					
						
							|  |  |  |             <th data-priority="0"></th> | 
					
						
							| 
									
										
										
										
											2018-09-07 18:29:25 -06:00
										 |  |  |             <th data-priority="1"><?php $Strings->get('actions'); ?></th>
 | 
					
						
							|  |  |  |             <th data-priority="1"><i class="fas fa-fw fa-box d-none d-md-inline"></i> <?php $Strings->get('name'); ?></th>
 | 
					
						
							|  |  |  |             <th data-priority="7"><i class="fas fa-fw fa-pallet d-none d-md-inline"></i> <?php $Strings->get('category'); ?></th>
 | 
					
						
							|  |  |  |             <th data-priority="4"><i class="fas fa-fw fa-map-marker d-none d-md-inline"></i> <?php $Strings->get('location'); ?></th>
 | 
					
						
							|  |  |  |             <th data-priority="2"><i class="fas fa-fw fa-barcode d-none d-md-inline"></i> <?php $Strings->get('code 1'); ?></th>
 | 
					
						
							|  |  |  |             <th data-priority="5"><i class="fas fa-fw fa-qrcode d-none d-md-inline"></i> <?php $Strings->get('code 2'); ?></th>
 | 
					
						
							|  |  |  |             <th data-priority="3"><i class="fas fa-fw fa-hashtag d-none d-md-inline"></i> <?php $Strings->get('qty'); ?></th>
 | 
					
						
							|  |  |  |             <th data-priority="6"><i class="fas fa-fw fa-hashtag d-none d-md-inline"></i> <?php $Strings->get('want'); ?></th>
 | 
					
						
							|  |  |  |             <th data-priority="8"><i class="fas fa-fw fa-user d-none d-md-inline"></i> <?php $Strings->get('assigned to'); ?></th>
 | 
					
						
							| 
									
										
										
										
											2017-05-17 23:09:51 -06:00
										 |  |  |         </tr> | 
					
						
							|  |  |  |     </thead> | 
					
						
							|  |  |  |     <tbody> | 
					
						
							|  |  |  |     </tbody> | 
					
						
							|  |  |  |     <tfoot> | 
					
						
							|  |  |  |         <tr> | 
					
						
							| 
									
										
										
										
											2017-07-05 19:56:23 -06:00
										 |  |  |             <th data-priority="0"></th> | 
					
						
							| 
									
										
										
										
											2018-09-07 18:29:25 -06:00
										 |  |  |             <th data-priority="1"><?php $Strings->get('actions'); ?></th>
 | 
					
						
							|  |  |  |             <th data-priority="1"><i class="fas fa-fw fa-box d-none d-md-inline"></i> <?php $Strings->get('name'); ?></th>
 | 
					
						
							|  |  |  |             <th data-priority="7"><i class="fas fa-fw fa-pallet d-none d-md-inline"></i> <?php $Strings->get('category'); ?></th>
 | 
					
						
							|  |  |  |             <th data-priority="4"><i class="fas fa-fw fa-map-marker d-none d-md-inline"></i> <?php $Strings->get('location'); ?></th>
 | 
					
						
							|  |  |  |             <th data-priority="2"><i class="fas fa-fw fa-barcode d-none d-md-inline"></i> <?php $Strings->get('code 1'); ?></th>
 | 
					
						
							|  |  |  |             <th data-priority="5"><i class="fas fa-fw fa-qrcode d-none d-md-inline"></i> <?php $Strings->get('code 2'); ?></th>
 | 
					
						
							|  |  |  |             <th data-priority="3"><i class="fas fa-fw fa-hashtag d-none d-md-inline"></i> <?php $Strings->get('qty'); ?></th>
 | 
					
						
							|  |  |  |             <th data-priority="6"><i class="fas fa-fw fa-hashtag d-none d-md-inline"></i> <?php $Strings->get('want'); ?></th>
 | 
					
						
							|  |  |  |             <th data-priority="8"><i class="fas fa-fw fa-user d-none d-md-inline"></i> <?php $Strings->get('assigned to'); ?></th>
 | 
					
						
							| 
									
										
										
										
											2017-05-17 23:09:51 -06:00
										 |  |  |         </tr> | 
					
						
							|  |  |  |     </tfoot> | 
					
						
							| 
									
										
										
										
											2017-12-09 02:10:45 -07:00
										 |  |  | </table> | 
					
						
							|  |  |  | <?php | 
					
						
							| 
									
										
										
										
											2018-09-07 18:29:25 -06:00
										 |  |  | if (!empty($VARS['q'])) { | 
					
						
							| 
									
										
										
										
											2017-12-09 02:10:45 -07:00
										 |  |  |     ?>
 | 
					
						
							|  |  |  |     <script nonce="<?php echo $SECURE_NONCE; ?>"> | 
					
						
							|  |  |  |         var search_preload_content = "<?php echo $VARS['q']; ?>"; | 
					
						
							|  |  |  |     </script> | 
					
						
							|  |  |  |     <?php | 
					
						
							|  |  |  | } else { | 
					
						
							|  |  |  |     ?>
 | 
					
						
							|  |  |  |     <script nonce="<?php echo $SECURE_NONCE; ?>"> | 
					
						
							|  |  |  |         var search_preload_content = false; | 
					
						
							|  |  |  |     </script> | 
					
						
							|  |  |  | <?php } ?>
 |