colonymech / docs / www / colonyscout / internal / inventory.php @ f59acf11
History | View | Annotate | Download (3.38 KB)
1 | f59acf11 | Dan Shope | <?php require("includes/internal.php"); |
---|---|---|---|
2 | $pageType="inventory"; |
||
3 | ?>
|
||
4 | |||
5 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
6 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> |
||
7 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> |
||
8 | <meta name="description" content="FILL IN"/> |
||
9 | <meta name="keywords" content="FILL IN"/> |
||
10 | <?php include($docRoot."internal/includes/header_internal.php"); ?> |
||
11 | <title>Inventory Manager | ColonyScout.com</title> |
||
12 | <link href="css/internal.css" rel="stylesheet" type="text/css" media="screen"> |
||
13 | <?php include('includes/querybox.php');?> |
||
14 | <style>
|
||
15 | #inventory {font-size:16px;}
|
||
16 | </style>
|
||
17 | </head>
|
||
18 | <body bgcolor="#eeeeee"> |
||
19 | |||
20 | <div id="general"> |
||
21 | <?php include("includes/nav_internal.php"); ?> |
||
22 | <div id="body"> |
||
23 | <div id="body-boxes"> |
||
24 | <div class="box-row" style="margin-top: 7px;"> |
||
25 | <div class="white-top"></div> |
||
26 | <div class="white-body text-box"> |
||
27 | <div id="breadcrumbs"><a href="inventory.php?tab=view">Inventory></a></div> |
||
28 | <div id="livesearch"><div id="box0"><!-- livesearch--></div></div> |
||
29 | <br/> |
||
30 | <div class="hr"></div> |
||
31 | </div><!--end 'TEMP' collapse--> |
||
32 | <div class="white-body text-box"><br/> |
||
33 | <?php
|
||
34 | $tab = isset($_GET['tab']) ? $_GET['tab']: ''; |
||
35 | if($tab=='') {$tab='view';$tab_src='inventory_view.php';}; |
||
36 | ?>
|
||
37 | <ul id="tabs"> |
||
38 | <?php
|
||
39 | $tabs[0] = "<li><a href=\"?tab=view\"><span>View</span></a></li>"; |
||
40 | $tabs[1] = "<li><a href=\"?tab=inv\"><span>Manage Inventory</span></a></li>"; |
||
41 | $tabs[2] = "<li><a href=\"?tab=sys\"><span>Systems</span></a></li>"; |
||
42 | $tabs[3] = "<li><a href=\"?tab=orders\"><span>Orders</span></a></li>"; |
||
43 | $tabs[4] = "<li><a href=\"?tab=downloads\"><span>Downloads</span></a></li>"; |
||
44 | |||
45 | switch ($tab) { |
||
46 | case 'view': |
||
47 | $tab_src = "inventory_view.php"; |
||
48 | $tabs[0] = "<li><b><span>View</span></b></li>"; |
||
49 | break;
|
||
50 | case 'viewpart': |
||
51 | $tab_src = "inventory_viewpart.php"; |
||
52 | $tabs[0] = "<li><b><a class=\"current\" href=\"?tab=view\"><span>View</span></a></b></li>"; |
||
53 | break;
|
||
54 | case 'inv': |
||
55 | $tab_src = "inventory_manage.php"; |
||
56 | $tabs[1] = "<li><b><span>Manage Inventory</span></b></li>"; |
||
57 | break;
|
||
58 | case 'sys': |
||
59 | $tab_src = "inventory_manage_systems.php"; |
||
60 | $tabs[2] = "<li><b><span>Systems</span></b></li>"; |
||
61 | break;
|
||
62 | case 'viewsys': |
||
63 | $tab_src = "inventory_viewsys.php"; |
||
64 | $tabs[2] = "<li><b><a class=\"current\" href=\"?tab=sys\"><span>Systems</span></a></b></li>"; |
||
65 | break;
|
||
66 | case 'orders': |
||
67 | $tab_src = ""; |
||
68 | $tabs[3] = "<li><b><span>Orders</span></b></li>"; |
||
69 | break;
|
||
70 | case 'downloads': |
||
71 | $tab_src = ""; |
||
72 | $tabs[4] = "<li><b><span>Downloads</span></b></li>"; |
||
73 | break;
|
||
74 | } |
||
75 | foreach ($tabs as $tabHTML) { |
||
76 | echo $tabHTML."\n\r"; |
||
77 | } |
||
78 | |||
79 | ?>
|
||
80 | </ul>
|
||
81 | <div style="clear:both; background-color:#ececec; height:0px; overflow:hidden"></div> |
||
82 | <div style="border:solid 3px #ececec; background-color:#fcfcfc; padding:10px; margin-right:45px;"> |
||
83 | <?php include($tab_src); ?> |
||
84 | </div>
|
||
85 | </div>
|
||
86 | <div class="white-bottom"></div> |
||
87 | </div>
|
||
88 | |||
89 | |||
90 | </div>
|
||
91 | </div> <!--BODY!--> |
||
92 | |||
93 | |||
94 | <?php include($docRoot."footer.php"); ?> |
||
95 | |||
96 | </div><!--GENERAL!--> |
||
97 | |||
98 | |||
99 | </body></html> |
||
100 | <?php mysqli_close($mysqli);?> |