-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
80 lines (59 loc) · 1.46 KB
/
index.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
80
<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 #2CBED8;
padding:3px 7px 2px 7px;
}
#stock th
{
font-size:1.1em;
text-align:left;
padding-top:5px;
padding-bottom:4px;
background-color:#09B2D1;
color:#ffffff;
}
#stock tr.alt td
{
color:#000000;
background-color:#EAF2D3;
}
</style>
<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('StockCheckDisplaysFunctions.php');
//Maybe im wrong, seems to be working without it, will leave this here incase it needs to be re-enabled
//It would appear argos does not like people using their pictures! Faking a user agent seems to be the only way of getting it to show up
//ini_set('user_agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9');
//$checkNI = $_GET["checkNI"];
$productId = $_GET["productId"];
if ($productId != "")
{
//User has passed a product id, redirect them to the stock check page.
$redirectUrl = "StockCheckPage.php?productId=". $productId;
header( 'Location: '.$redirectUrl ) ;
}
displayHeader();
displayStockCheckForm("");
echo "Please enter a product ID";
echo "<br />";
displayFooter();
?>
</body>
</html>