forked from georgelu/Quotely
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsource.php
More file actions
76 lines (53 loc) · 1.75 KB
/
source.php
File metadata and controls
76 lines (53 loc) · 1.75 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
<!DOCTYPE html>
<html>
<head>
<title>Quotely</title>
<meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./jQuery/jquery.mobile-1.2.0.css" />
<script src="//cdn.optimizely.com/js/140796700.js"></script>
<script src="./jQuery/jquery-1.8.2.min.js"></script>
<script src="./jQuery/jquery.mobile-1.2.0.js"></script>
<style>
.ui-btn {text-align: left}
</style>
</head>
<body>
<!-- Start of first page: #one -->
<div data-role="page" id="one" data-theme="c" data-content-theme="c">
<div data-role="header">
<?php
$category = $_GET['c'];
$id = $_GET['i'];
if ($category && $id) {
echo "<a href='quote.php?category=".$category."&id=".$id. "'>Back</a>";
} else {
$category = $_GET['sc'];
$id = $_GET['si'];
echo "<a href='quote.php?subcat=".$category."&subid=".$id. "'>Back</a>";
}
?>
<h1 id="category"></h1>
<?php include("header.php") ?>
</div><!-- /header -->
<div id="content" data-role="content">
<iframe src="<?php echo $_GET['u']; ?>" frameborder="0" border="0" width="100%" height="350px"></iframe>
</div><!-- /content -->
</div><!-- /page one -->
<script type="text/javascript">
function getQueryVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split('&');
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split('=');
if (decodeURIComponent(pair[0]) == variable) {
return decodeURIComponent(pair[1]);
}
}
console.log('Query variable %s not found', variable);
}
</script>
</body>
</html>