-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
172 lines (136 loc) · 6.53 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<?php
//setting up files;
require_once('Pheezy/pheezy.class.php');
// defining path variable to template folder
define('TP','Pheezy');
// defining path for partial folder
define('PP',TP.'/Partial');
// defining path for current folder
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bookmarker</title>
<?php include 'components/imports.php' ?>
</head>
<body>
<div class="container align-self-center">
<br>
<div class="card">
<div class="card-block">
<h4 class="card-title">Authenticate</h4>
<div class="form-group row">
<label class="col-2 col-form-label">Authentication key</label>
<div class="col-8">
<input class="form-control" type="text" value="" placeholder="2hmg3v2klj3hv2l3uou423bn4o23j4bn23o4ub232o34b23oj4b234o=" id="authenticate-input">
</div>
<button type="button" class="btn btn-success col-2" id="authenticate-submit">Submit</button>
</div>
<script>
$('#authenticate-submit').click((function () {
main($('#authenticate-input').val());
}));
</script>
</div>
</div>
<!-- <div class="card">-->
<!---->
<!-- <div class="card-block">-->
<!---->
<!-- <h4 class="card-title">Stocky Request Count</h4>-->
<!-- <h6 class="card-subtitle mb-2 text-muted">A progress bar illustrating the number of requests the system can make this hour</h6>-->
<!---->
<!-- <div class="row">-->
<!-- <div class="col-10">-->
<!-- <div class="progress">-->
<!-- <div class="progress-bar bg-info progress-bar-striped progress-bar-animated" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" style="width: 25%"></div>-->
<!-- <div class="progress-bar bg-danger progress-bar-striped progress-bar-animated" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" style="width: 50%"></div>-->
<!-- <div class="progress-bar bg-success progress-bar-striped progress-bar-animated" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" style="width: 75%"></div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="col-2"><p>2000/4000</p></div>-->
<!---->
<!-- </div>-->
<!-- </div>-->
<!---->
<!-- </div>-->
<hr>
<h1>Stocky</h1>
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li class="nav-item">
<a class="nav-link active" data-toggle="tab" href="#home" role="tab">Preset Editor</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#profile" role="tab">Product Editor</a>
</li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane fade show active" id="home" role="tabpanel">
<div class="card" style="clear:both;">
<div class="card-block">
<h4 class="card-title">Product Preset Editor</h4>
<h6 class="card-subtitle mb-2 text-muted">Create, Modify or Delete Preset Data</h6>
<p class="card-text">A lot of details of product creation are reusable items such as Colours, Brands or Categories. This editor allows you to add these details in advance.</p>
<div class="row">
<div class="col-6">
<div id="brandAccordion_1">
<script> renderAccordionTable('brandAccordion_1','Brand Editor','brandEditorTable','Brand Editor Table'); </script>
</div>
</div>
<div class="col-6">
<div id="colourAccordion_1">
<script> renderAccordionTable('colourAccordion_1','Colour Editor','colourEditorTable','Brand Selector'); </script>
</div>
</div>
</div>
<hr>
<div class="row">
<div class="col">
<div id="categoryAccordion_1">
<script> renderAccordionTable('categoryAccordion_1','Category Editor','categoryEditorTable','Category Selector'); </script>
</div>
</div>
</div>
<hr>
<div class="row">
<div class="col">
<div id="debugAccordion_1">
<!-- <script> renderAccordionTable('debugAccordion_1','Debug Tools','debugTools','DEBUG TOOLS'); </script> -->
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="profile" role="tabpanel">
<div class="row">
<div class="col">
<div class="card" style="clear:both;">
<div class="card-block">
<h4 class="card-title">Product Matrix Builder</h4>
<h6 class="card-subtitle mb-2 text-muted">Build Products Quickly and Easily</h6>
<p class="card-text">The product builder allows you to specify a products brand, colours and size range, then the product builder will create all the product combinations for you.</p>
<div id="productBuilderBody"></div>
</div>
<div class="card-block">
<h4 class="card-title">Product from Matrix</h4>
<h6 class="card-subtitle mb-2 text-muted">Listing Out all Products Created Above</h6>
<div id="productBuilderResultBody" style="height:500px;overflow-y: auto;"></div>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<p>© 2017 STOCKY</p>
</footer>
</div>
<div class="alert-chain" id="alert-chain" style="top: 20px; right: 20px; position:absolute; zIndex:4;"></div>
</div>
</body>
</html>