colonymech / docs / www / colonyscout / internal / assembly.php @ f59acf11
History | View | Annotate | Download (3.27 KB)
1 | f59acf11 | Dan Shope | <?php require("includes/internal.php"); |
---|---|---|---|
2 | $pageType="assembly"; |
||
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."header.php"); ?> |
||
11 | <title>Assembly Instructions | ColonyScout.com</title> |
||
12 | <link href="css/internal.css" rel="stylesheet" type="text/css" media="screen"> |
||
13 | <link rel="stylesheet" href="includes/lightbox/lightbox.css" type="text/css" media="screen" /> |
||
14 | <script type="text/javascript" src="includes/lightbox/lightbox.js"></script> |
||
15 | <script src="js/jquery.min.js" type="text/javascript"></script> |
||
16 | <script src="js/jquery.editableText.js" type="text/javascript"></script> |
||
17 | <script src="js/jquery.tablednd_0_5.js" type="text/javascript"></script> |
||
18 | <?php include('includes/querybox.php');?> |
||
19 | <style>
|
||
20 | #inventory {font-size:16px;}
|
||
21 | </style>
|
||
22 | <script type="text/javascript"> |
||
23 | Cufon.replace('label');
|
||
24 | Cufon.replace('legend');
|
||
25 | </script>
|
||
26 | </head>
|
||
27 | <body bgcolor="#eeeeee"> |
||
28 | |||
29 | <div id="general"> |
||
30 | <?php include("includes/nav_internal.php"); ?> |
||
31 | <div id="body"> |
||
32 | <div id="body-boxes"> |
||
33 | <div class="box-row" style="margin-top: 7px;"> |
||
34 | <div class="white-top"></div> |
||
35 | <div class="white-body text-box"><br/> |
||
36 | <?php
|
||
37 | $tab = isset($_GET['tab']) ? $_GET['tab']: ''; |
||
38 | if($tab=='') {$tab='view';$tab_src='inventory_view.php';}; |
||
39 | ?>
|
||
40 | <ul id="tabs"> |
||
41 | <?php
|
||
42 | $tabs[0] = "<li><a href=\"?tab=view\"><span>View</span></a></li>"; |
||
43 | $tabs[1] = "<li><a href=\"?tab=manage\"><span>Manage Instructions</span></a></li>"; |
||
44 | |||
45 | switch ($tab) { |
||
46 | case 'view': |
||
47 | $tab_src = "assembly_view.php"; |
||
48 | $tabs[0] = "<li><b><span>View</span></b></li>"; |
||
49 | break;
|
||
50 | case 'viewassem': |
||
51 | $tab_src = "assembly_viewinstruction.php"; |
||
52 | $tabs[0] = "<li><b><a class=\"current\" href=\"?tab=view\"><span>View</span></a></b></li>"; |
||
53 | $tabs[1] = "<li><a href=\"?tab=edit&q=".$_GET['q']."\"><span>Edit</span></a></li>"; |
||
54 | break;
|
||
55 | case 'manage': |
||
56 | $tab_src = "assembly_manage.php"; |
||
57 | $tabs[0] = "<li><b><a class=\"current\" href=\"?tab=view\"><span>View</span></a></b></li>"; |
||
58 | break;
|
||
59 | case 'edit': |
||
60 | $tab_src = "assembly_edit2.php"; |
||
61 | $tabs[0] = "<li><a href=\"?tab=viewassem&q=".$_GET['q']."\"><span>View</span></a></li>"; |
||
62 | $tabs[1] = "<li><b><span>Edit</span></b></li>"; |
||
63 | break;
|
||
64 | case 'new': |
||
65 | $tab_src = "assembly_new.php"; |
||
66 | $tabs[1] = "<li><b><span>Manage Instructions</span></b></li>"; |
||
67 | break;
|
||
68 | } |
||
69 | foreach ($tabs as $tabHTML) { |
||
70 | echo $tabHTML."\n\r"; |
||
71 | } |
||
72 | |||
73 | ?>
|
||
74 | </ul>
|
||
75 | <div style="clear:both; background-color:#ececec; height:0px; overflow:hidden"></div> |
||
76 | <div style="border:solid 3px #ececec; background-color:#fcfcfc; padding:10px; margin-right:45px;"> |
||
77 | <?php include($tab_src); ?> |
||
78 | </div>
|
||
79 | </div>
|
||
80 | <div class="white-bottom"></div> |
||
81 | </div>
|
||
82 | |||
83 | |||
84 | </div>
|
||
85 | </div> <!--BODY!--> |
||
86 | |||
87 | |||
88 | <?php include($docRoot."footer.php"); ?> |
||
89 | |||
90 | </div><!--GENERAL!--> |
||
91 | |||
92 | |||
93 | </body></html> |
||
94 | <?php mysqli_close($mysqli);?> |