/
dashboard.php
34 lines (31 loc) · 1.33 KB
/
dashboard.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
<button class='btn btn-default' onclick='LS.plugin.cintlink.showWidget();'><?php eT("Show widget"); ?></button>
<p class='help-block'>Use the Cint widget to buy participants</p>
<h4>Orders</h4>
<?php if (count($orders) > 0): ?>
<table class='table table-striped'>
<thead>
<td>Url</td>
<td>Status</td>
<td></td>
</thead>
<tbody>
<?php foreach($orders as $order): ?>
<tr>
<td><?php echo $order->url ;?></td>
<td><?php echo $order->status; ?></td>
<?php if ($order->status == 'hold'): ?>
<td>
<a class='btn btn-default btn-sm' href="https://www.limesurvey.org/index.php?option=com_nbill&action=orders&task=order&cid=10&ctl_order_id=<?php echo htmlspecialchars($order->url); ?>" target="_blank"><?php eT("Pay now"); ?></a>
<a class='btn btn-default btn-sm' href=""><?php eT("Cancel"); ?></a>
</td>
<?php elseif ($order->status == 'new'): ?>
<td></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php else: ?>
<i>No orders made yet</i>
<?php endif; ?>