Project

General

Profile

Statistics
| Branch: | Revision:

root / docs / www / colonyscout / internal / viewpart_old.php @ f59acf11

History | View | Annotate | Download (3.03 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>View Part | ColonyScout.com</title>
10
<?php include('includes/querybox.php');?>
11
<style>
12
#inventory {font-size:16px;}
13
</style>
14
</head>
15
<body bgcolor="#eeeeee"> 
16

    
17
<div id="general">
18
<?php include("includes/nav_internal.php"); ?> 
19
        <div id="body">
20
                <div id="body-boxes">
21
                        <div class="box-row" style="margin-top: 7px;">
22
                                <div class="white-top"></div>
23
                                <div class="white-body text-box">
24
                                        <div id="breadcrumbs"><a href="viewinventory.php">Inventory&gt;</a> Parts</div>
25
                                        <div id="livesearch"><div id="box0"><!-- livesearch--></div></div>
26
                                        <br/>
27
                                        <div class="hr"></div>
28
                                </div><!--end 'TEMP' collapse-->
29
                                
30
                                <div class="white-body text-box">
31
<?php
32
        if(!isset($_GET["q"])) {
33
                echo "<h1 style=\"color:#FF6600;\">Please search for a part..</h1>";
34
        } else {
35
                $info = getPartInfo($_GET["q"]);
36
                $datasheet = ($info["datasheet"]=="") ? $info["url"]        : $info["datasheet"];
37
                
38
                echo ($info["data"]==0)
39
                ?
40
                        "<h1 style=\"color:#FF6600;\">Sorry, that part number could not be found.</h1>"
41
                : 
42
                        "
43
                        <div class=\"box-part-img\"><img src=\"".$info["thumb"]."\" width=\"200px\" class=\"box-img\"/></div>
44
                        <div>
45
                                <div class=\"box-part-title\"><h1>".$info["data"]["Name"]." ".$info["data"]["Description"]."</h1><br/>
46
                                        <h2 class=\"part\">".$info["vendor"].": ".$info["data"]["VendorPartNo"]."<a target=\"_blank;\" href=\"".$info["url"]."\">
47
                                        <img src=\"images/shortcut.png\"/></a></h2>
48
                                </div>
49
                                <div class=\"box-part-text\">
50
                                        <table class=\"part-content\">
51
                                        <tr>
52
                                                <td align=\"right\"><b>Datasheet:</b></td>
53
                                                <td><a href=\"".$datasheet."\"><img src=\"images/pdf.gif\"/> ".$info["data"]["VendorPartNo"]."</a></td>
54
                                                <td width=\"150px\" rowspan=\"5\">".getPriceTable($info["data"]["VendorPartNo"])."</td>                                                
55
                                        </tr>                                        
56
                                        <tr>
57
                                                <td width=\"160px\" align=\"right\"><b>Manufacturer:</b></td>
58
                                                <td width=\"190px\">".$info["data"]["ManufacturerName"]."</td>
59
                                        </tr>
60
                                        <tr>        
61
                                                <td align=\"right\"><b>Manufacturer Part No: </b></td>
62
                                                <td>".$info["data"]["ManufacturerPartNo"]."</td>
63
                                        </tr>
64
                                        <tr>
65
                                                <td align=\"right\"><b>Used:</b></td>
66
                                                <td>".$info["data"]["WhereUsed"]."</td>
67
                                        </tr>
68
                                        <tr>
69
                                                <td align=\"right\"><b>Qty In Stock:</b></td>
70
                                                <td>".$info["data"]["InStock"]."</td>
71
                                        </tr>
72
                                        </table>
73
                        </div>
74
                        </div>
75
                        ";
76
        }                                
77
?>
78
                                </div>
79
                                <div class="white-body text-box"><br/>
80
                                        
81
                                        
82
                                        
83
                                </div>
84
                                <div class="white-bottom"></div>
85
                        </div>                                        
86
                        
87
                        
88
                </div>        
89
        </div> <!--BODY!--> 
90

    
91

    
92
<?php include($docRoot."footer.php"); ?>
93

    
94
</div><!--GENERAL!--> 
95
 
96
 
97
</body></html>
98
<?php
99
mysqli_close($mysqli);?>