root / docs / www / colonyscout / internal / inventory_viewsys.php @ f59acf11
History | View | Annotate | Download (1.34 KB)
1 |
<?php
|
---|---|
2 |
if(!isset($_GET["q"])) { |
3 |
echo "<h1 style=\"color:#FF6600;\">Please search for a part..</h1>"; |
4 |
} else {
|
5 |
$info = getSystemInfo($_GET["q"]); |
6 |
$systems = getSystemsForPart($info["data"]["ID"]); |
7 |
|
8 |
echo ($info["data"]==0) |
9 |
? |
10 |
"<h1 style=\"color:#FF6600;\">Sorry, that part number could not be found.</h1>"
|
11 |
: |
12 |
"
|
13 |
<div style=\"overflow:hidden;\">
|
14 |
<img src=\"".$info["thumb"]."\" width=\"200px\" class=\"box-img\"/> |
15 |
<div class=\"box-part-title\"><h1>".$info["data"]["Name"]." ".$info["data"]["Revision"]."</h1><br/> |
16 |
<h2 class=\"part\"><a target=\"_blank;\" href=\"\">
|
17 |
<img src=\"images/shortcut.png\"/></a></h2>
|
18 |
</div>
|
19 |
<div class=\"box-part-text\">
|
20 |
<table class=\"part-content\">
|
21 |
<tr>
|
22 |
<td align=\"right\"><b>Datasheet:</b></td>
|
23 |
<td><a href=\"\"><img src=\"images/pdf.gif\"/></a></td>
|
24 |
<td width=\"150px\" rowspan=\"5\">".getPriceTable('s')."</td> |
25 |
</tr>
|
26 |
<tr>
|
27 |
<td width=\"160px\" align=\"right\"><b>Manufacturer:</b></td>
|
28 |
<td width=\"190px\"></td>
|
29 |
</tr>
|
30 |
<tr>
|
31 |
<td align=\"right\"><b>Manufacturer Part No: </b></td>
|
32 |
<td></td>
|
33 |
</tr>
|
34 |
<tr>
|
35 |
<td align=\"right\"><b>Used:</b></td>
|
36 |
<td></td>
|
37 |
</tr>
|
38 |
<tr>
|
39 |
<td align=\"right\"><b>Qty In Stock:</b></td>
|
40 |
<td></td>
|
41 |
</tr>
|
42 |
</table>
|
43 |
</div>
|
44 |
</div>
|
45 |
";
|
46 |
} |
47 |
?>
|