Project

General

Profile

Statistics
| Branch: | Revision:

colonymech / docs / www / colonyscout / internal / wiring.php @ f59acf11

History | View | Annotate | Download (1.78 KB)

1
<?php require("includes/internal.php")?>
2

    
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> 
5
                <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>        
6
                <meta name="description" content="FILL IN"/> 
7
                <meta name="keywords" content="FILL IN"/> 
8
<?php include($docRoot."header.php"); ?>
9
                <title>Wiring Diagrams | ColonyScout.com</title>
10
<?php include('includes/querybox.php');?>
11
<link rel="stylesheet" type="text/css" href="css/internal.css" />
12
</head>
13
<style>
14

    
15
</style>
16
<body bgcolor="#eeeeee"> 
17

    
18
<div id="general"> 
19
<?php include("includes/nav_internal.php"); ?> 
20
        <div id="body">
21
                <div id="body-boxes">
22
                        <div class="box-row" style="margin-top: 7px;">
23
                                <div class="white-top"></div>
24
                                <div class="white-body text-box">
25
                                        <div id="breadcrumbs">Wiring&gt;</div>
26
                                        <div id="livesearch"><div id="box0"><!-- livesearch--></div></div>
27
                                        <br/>
28
                                        <div class="hr"></div>
29
                                </div><!--end 'TEMP' collapse-->
30
                                
31
                                <div class="white-body text-box">
32
<?php
33
//gather the inventory based on search term or all
34
$get_system_sql = "SELECT * FROM wiring WHERE ID=".$_GET['q'];
35
$get_system_res = mysqli_query($mysqli, $get_system_sql) or die(mysqli_error($mysqli));
36

    
37
if (mysqli_num_rows($get_system_res) < 1) {
38
        $display_block = "<h1>No wiring instructions could be found</h1>";
39
} else {
40
        while ($sys = mysqli_fetch_array($get_system_res)) {
41
                $display_block ="<h1>".$sys['Title']."</h1><br/>".$sys['Content'];
42
        }
43
}
44
        echo $display_block;        
45
?>
46
                                </div>
47
                                <div class="white-bottom"></div>
48
                        </div>                        
49
                </div>        
50
        </div> <!--BODY!--> 
51

    
52

    
53
<?php include($docRoot."footer.php"); ?>
54

    
55
</div><!--GENERAL!--> 
56
 
57
 
58
</body></html>
59
<?php                
60
        mysqli_close($mysqli);
61
?>