forked from orvice/ss-panel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
code.php
executable file
·47 lines (44 loc) · 1.26 KB
/
code.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
<?php
require_once 'lib/config.php';
include_once 'header.php';
$c = new Ss\User\InviteCode();
?>
<body>
<div class="container">
<?php include_once 'nav.php';?>
<div class="jumbotron">
<p class="lead"> 邀请码实时刷新</p>
<p>如遇到无邀请码请找已经注册的用户获取。</p>
</div>
<div class="row marketing">
<h2 class="sub-header">邀请码</h2>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>###</th>
<th>邀请码</th>
<th>状态</th>
</tr>
</thead>
<tbody>
<?php
$datas = $c->get_code_array(0,21);
$a = 0;
foreach($datas as $data ){
?>
<tr>
<td><?php echo $a;$a++; ?></td>
<td><?php echo $data['code'];?></td>
<td>可用</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div><?php
include_once 'footer.php';
include_once 'ana.php';?>
</div> <!-- /container -->
</body>
</html>