-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
48 lines (33 loc) · 1.3 KB
/
header.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
<?php include('db.php'); ?>
<!DOCTYPE html>
<html>
<head>
<title>Coffee</title>
<link rel="shortcut icon" href="images/logo/favicon.ico" type="image/x-icon">
<link rel="icon" href="images/logo/favicon.ico" type="image/x-icon">
<script>
function validateForm() {
var x = document.forms["checkoutform"]["name"].value;
var y = document.forms["checkoutform"]["myquantity"].value;
var z = document.forms["checkoutform"]["myproducts"].value;
if (x == null || x == "") {
document.getElementById("notification").style.visibility = "visible";
return false;
} else if (y == 20) {
document.getElementById("notification").style.visibility = "visible";
return false;
} else if (z == 50) {
document.getElementById("notification").style.visibility = "visible";
return false;
}
}
var mytest = document.getElementsByClassName('name');
</script>
<meta name="description" content="Coffee - Tracking System">
<meta name="keywords" content="tracking,inventory,logging">
<meta name="author" content="Jonny Dailey">
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="styles/global.css">
<link rel="stylesheet" type="text/css" href="styles/nav.css">
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
</head>