-
Notifications
You must be signed in to change notification settings - Fork 0
/
StockCheckPage.php
79 lines (63 loc) · 1.2 KB
/
StockCheckPage.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<html>
<head>
<style type="text/css">
#stock
{
font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
border-collapse:collapse;
empty-cells: hide;
}
#stock td, #stock th
{
font-size:1em;
border:1px solid #F71213;
padding:3px 7px 2px 7px;
}
#stock th
{
font-size:1.1em;
text-align:left;
padding-top:5px;
padding-bottom:4px;
background-color:#ED1B23;
color:#FFF100;
}
#stock tr.alt td
{
color:#000000;
background-color:#F5F5F1;
}
</style>
<script src="js/mainStockCheck.js"></script>
<script src="js/googleAnalytics.js" type="text/javascript"></script>
</head>
<body>
<?php
// -------------------
// --- PHP Imports ---
// -------------------
require_once('Common/Layouts.php');
require_once('Common/Common.php');
require_once('StockCheckFunctions.php');
require_once('StockCheckDisplaysFunctions.php');
//$checkNI = $_GET["checkNI"];
$productId = $_GET["productId"];
$productId = validateProductId($productId);
$infoFileName = "data.csv";
displayHeader();
displayStockCheckForm($productId);
if ($productId == "")
{
echo "Please enter a product ID";
echo "<br />";
}
else
{
$productExist = displayItemInfo($productId);
if ($productExist)
{
displayStockTableIreland($productId);
}
}
displayFooter();
?>