-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.php
45 lines (41 loc) · 1.02 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
<?php
require 'config.php';
$campaigns = $api->getCouponCampaigns();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Testing Creation Passes</title>
<link rel="stylesheet" href="">
</head>
<body>
<section>
<h2>Campaigns</h2>
<table>
<thead>
<tr>
<th>Campaign</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<?php foreach ($campaigns as $key => $value) { ?>
<tr>
<td>
<img src="<?= $value->distributions[0]->preview_url ?>" alt="">
<a href="campaign.php?id=<?= $value->id ?>" title=""><?= $value->name ?></a>
</td>
<td>
<a href="<?= $value->distributions[0]->page_url ?>" title="">Page</a>
<a href="<?= $value->distributions[0]->pkpass_url ?>" title="">Download</a>
<a href="<?= $value->distributions[0]->page_url ?>.qrcode" title="">QR Code</a>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</section>
</body>
</html>