-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscan.php
More file actions
77 lines (60 loc) · 2.24 KB
/
scan.php
File metadata and controls
77 lines (60 loc) · 2.24 KB
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
<?php
session_start();
include('header.php');
include_once("db_connect.php");
if (empty($_SESSION['user_id'])){
header("Location: login.php");
}
?>
<?php if ((isset($_SESSION['user_id']) )) { ?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>barcode-reader</title>
<link rel="canonical" href="https://serratus.github.io/v1.0.0-beta.1/examples/scan-to-input/" />
<link rel="stylesheet" href="https://serratus.github.io/quaggaJS/stylesheets/example.css">
<script>
var host = "serratus.github.io";
if ((host == window.location.host) && (window.location.protocol != "https:")) {
window.location.protocol = "https";
}
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-56318310-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" type="text/css" href="https://serratus.github.io/quaggaJS/stylesheets/prism.css" />
<section id="container" class="container">
<h3>Scan barcode to input-field</h3>
<p>Click the <strong>button</strong> next to the input-field
to start scanning a <strong>barcode</strong> </p>
<div>
<form action="addmovie.php" method="post">
<div class="input-field">
<label for="isbn_input">EAN:</label>
<input id="isbn_input" name="isbn_input" class="isbn" type="text" />
<button type="button" class="icon-barcode button scan"> </button>
</div>
<input type="submit" name="search" value="Search" class="btn btn-primary" />
</form>
</div>
</p>
<script src="quagga.js" type="text/javascript"></script>
<script src="index.js" type="text/javascript"></script>
<script src="prism.js"></script>
</section>
<footer>
</footer>
</div>
</body>
</html>
<?php } ?>