1+ <?PHP
2+ session_start ();
3+ include ('xinc.config.php ' );
4+
5+ # Check if session exists.
6+ # If Session (UID) is not existing, redirect to login.php
7+ # Else show the page.
8+ if (empty ($ _SESSION ['username ' ])) {
9+ header ('location:login.php ' );
10+ die ();
11+ }
12+ ?>
13+
14+ <!DOCTYPE html>
15+ <html lang="en">
16+
17+ <head>
18+ <meta charset="utf-8">
19+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
20+ <meta name="viewport" content="width=device-width, initial-scale=1">
21+ <meta name="description" content="">
22+ <meta name="author" content="">
23+
24+ <title>PrepInventory</title>
25+
26+ <!-- PrepInventory CSS -->
27+ <link href="../dist/css/PrepInventory.css" rel="stylesheet">
28+
29+ <!-- Bootstrap Core CSS -->
30+ <link href="../bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
31+
32+ <!-- MetisMenu CSS -->
33+ <link href="../bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">
34+
35+ <!-- Timeline CSS -->
36+ <link href="../dist/css/timeline.css" rel="stylesheet">
37+
38+ <!-- Custom CSS -->
39+ <link href="../dist/css/sb-admin-2.css" rel="stylesheet">
40+
41+ <!-- Morris Charts CSS -->
42+ <link href="../bower_components/morrisjs/morris.css" rel="stylesheet">
43+
44+ <!-- Custom Fonts -->
45+ <link href="../bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
46+
47+ <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
48+ <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
49+ <!--[if lt IE 9]>
50+ <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
51+ <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
52+ <![endif]-->
53+
54+ </head>
55+
56+ <body>
57+
58+ <div id="wrapper">
59+
60+ <!-- Navigation -->
61+ <?PHP include ('xinc.nav.php ' ); ?>
62+
63+ <div id="page-wrapper">
64+ <div class="row">
65+ <div class="col-lg-12">
66+ <h1 class="page-header">Paper Forms</h1>
67+ </div>
68+ <!-- /.col-lg-12 -->
69+ </div>
70+ <!-- /.row -->
71+ <div class="row">
72+ <div class="col-lg-12">
73+ <!-- CODE -->
74+
75+ <div class="panel panel-default">
76+ <div class="panel-heading">
77+ Manual Inventory Revision List
78+ </div>
79+ <!-- /.panel-heading -->
80+ <div class="panel-body">
81+ Select a location below to generate a manual pick list for this location.
82+ <hr>
83+ <?php
84+ $ sql = "SELECT * FROM `inv_locations_1` ORDER BY `name` ASC " ;
85+ $ result = mysqli_query ($ link , $ sql );
86+ if (mysqli_num_rows ($ result ) < 1 ) { print "No root locations has been configured yet. " ; }
87+ else {
88+ while ($ row = mysqli_fetch_assoc ($ result )) {
89+ print '<img src=" ' . $ row ['icon ' ] .'" class="icon"> ' . $ row ["name " ] . ' <a href="paperforms_maninvrev_gen.php?loc=1- ' . $ row ['id ' ] .'" target="_BLANK"><i class="fa fa-print fa-fw"></i></a><br> ' ;
90+ $ sql2 = "SELECT * FROM `inv_locations_2` WHERE parent = ' " . $ row ['id ' ] ."' ORDER BY `name` ASC " ;
91+ $ result2 = mysqli_query ($ link , $ sql2 );
92+ if (mysqli_num_rows ($ result2 ) > 0 ) {
93+ while ($ row2 = mysqli_fetch_assoc ($ result2 )) {
94+ print '  <img src=" ' . $ row2 ['icon ' ] .'" class="icon"> ' . $ row2 ["name " ] . ' <a href="paperforms_maninvrev_gen.php?loc=2- ' . $ row2 ['id ' ] .'" target="_BLANK"><i class="fa fa-print fa-fw"></i></a><br> ' ;
95+ $ sql3 = "SELECT * FROM `inv_locations_3` WHERE parent = ' " . $ row2 ['id ' ] ."' ORDER BY `name` ASC " ;
96+ $ result3 = mysqli_query ($ link , $ sql3 );
97+ if (mysqli_num_rows ($ result3 ) > 0 ) {
98+ while ($ row3 = mysqli_fetch_assoc ($ result3 )) {
99+ print '   <img src=" ' . $ row3 ['icon ' ] .'" class="icon"> ' . $ row3 ["name " ] . ' <a href="paperforms_maninvrev_gen.php?loc=3- ' . $ row3 ['id ' ] .'" target="_BLANK"><i class="fa fa-print fa-fw"></i></a><br> ' ;
100+ $ sql4 = "SELECT * FROM `inv_locations_4` WHERE parent = ' " . $ row3 ['id ' ] ."' ORDER BY `name` ASC " ;
101+ $ result4 = mysqli_query ($ link , $ sql4 );
102+ if (mysqli_num_rows ($ result4 ) > 0 ) {
103+ while ($ row4 = mysqli_fetch_assoc ($ result4 )) {
104+ print '    <img src=" ' . $ row4 ['icon ' ] .'" class="icon"> ' . $ row4 ["name " ] . ' <a href="paperforms_maninvrev_gen.php?loc=4- ' . $ row4 ['id ' ] .'" target="_BLANK"><i class="fa fa-print fa-fw"></i></a><br> ' ;
105+ }
106+ }
107+ }
108+ }
109+ }
110+ }
111+ print '<br> ' ;
112+ }
113+ }
114+ ?>
115+ </div>
116+ <!-- /.panel-body -->
117+ </div>
118+ <!-- /.panel -->
119+
120+ <!-- /CODE -->
121+ </div>
122+ <!-- /.col-lg-12 -->
123+ </div>
124+ <!-- /.row -->
125+ </div>
126+ <!-- /#page-wrapper -->
127+
128+ </div>
129+ <!-- /#wrapper -->
130+
131+ <!-- jQuery -->
132+ <script src="../bower_components/jquery/dist/jquery.min.js"></script>
133+
134+ <!-- Bootstrap Core JavaScript -->
135+ <script src="../bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
136+
137+ <!-- Metis Menu Plugin JavaScript -->
138+ <script src="../bower_components/metisMenu/dist/metisMenu.min.js"></script>
139+
140+ <!-- Custom Theme JavaScript -->
141+ <script src="../dist/js/sb-admin-2.js"></script>
142+
143+ </body>
144+
145+ </html>
146+
147+ <?PHP include ('xinc.foot.php ' ); ?>
0 commit comments