-
Notifications
You must be signed in to change notification settings - Fork 2
/
registrars.php
57 lines (57 loc) · 2.43 KB
/
registrars.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
<?php
require_once (__DIR__ . '/includes/includes.php');
if(empty($_SESSION['user']))
{
header("Location: login.php");
die("Redirecting to login.php");
};
$d = new Domains();
$r = new Registrars();
pageHead();
?>
<body>
<?php headerHere(); ?>
<div class="container top30">
<div class="row">
<div class="span3">
<ul class="nav nav-tabs nav-stacked sidebar">
<li class=""><a href="index.php"><i class="icon-home"></i> Home</a></li>
<li class=""><a href="domains.php"><i class="icon-briefcase"></i> Domains<span class="badge badge-info"><? echo $d->numTotal(); ?></span></a></li>
<li class="active"><a href="registrars.php"><i class="icon-folder-open"></i> Registrars<span class="badge badge-info"><? echo $r->getTotal(); ?></span></a></li>
<li class="divider"></li>
<li class=""><a href="settings.php"><i class="icon-wrench"></i> Settings</a></li>
<li class=""><a href="new.php"><i class="icon-plus-sign"></i> Add new</a></li>
</ul>
</div>
<div class="span9">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Name</th>
<th>Link</th>
<th>Domains</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
foreach ($r->fetchAll() as $row) {
echo '
<tr>
<td><a href="registrar.php?id='.$row['reg_id'].'">'.$row['reg_name'].'</a></td>
<td><a href="http://'.$row['reg_link'].'">'.$row['reg_link'].'</a></td>
<td>'.$row['reg_num_dom'].'</td>
<td><a href="http://'.$row['reg_link'].'"><i class="icon-share"></i></a> <a href="registrar.php?id='.$row['reg_id'].'" alt="Details"><i class="icon-edit"></i></a> <a href="delreg.php?id='.$row['reg_id'].'"><i class="icon-trash"></i></a></td></td>
</tr>
';
}
?>
</tbody>
</table>
<a href="newreg.php" class="btn btn-large btn-info">New registrar</a>
</div>
</div>
</div>
<?php footerHere(); ?>
</body>
</html>