summaryrefslogtreecommitdiffstats
path: root/application/views/user/invite.php
blob: 042ba0b61b487afa466f53df524c5748b6189469 (plain)
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
<div class="alert alert-warning">
	<p>
		<b>Watch out!</b>
	</p>
	<p>
		You are free to invite anyone you want to, but please keep in
		mind that if this person violates the rules and is banned, your
		account will also be disabled.
	</p>
</div>

<h2>Unused invitation keys</h2>
<div class="table-responsive">
	<table class="table table-striped">
		<thead>
			<tr>
				<th>#</th>
				<th style="width: 70%;">Key</th>
				<th>Created on</th>
			</tr>
		</thead>
		<tbody>
			<?php $i = 1; ?>
			<?php foreach($query as $key => $item): ?>
				<tr>
					<td><?php echo $i++; ?></td>
					<td><?php echo anchor("user/register/".$item["key"], $item["key"]) ?></td>
					<td><?php echo date("Y/m/d H:i", $item["date"]) ?></td>
					<td>
						<?php echo form_open('user/delete_invitation_key'); ?>
							<input class="btn btn-danger btn-xs" type="submit" value="Delete" name="delete" />
							<input type="hidden" name="key" value="<?php echo $item["key"]; ?>" />
						</form>
					</td>
				</tr>
			<?php endforeach; ?>
		</tbody>
	</table>
</div>

<p>
	<?php echo form_open('user/create_invitation_key'); ?>
	  <input class="btn btn-primary btn-large" type="submit" value="Create a new key" name="process" />
	</form>
</p>