This repository was archived by the owner on Jun 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmain-menu.php
More file actions
42 lines (37 loc) · 1.34 KB
/
main-menu.php
File metadata and controls
42 lines (37 loc) · 1.34 KB
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
<!-- LIST OF CONNECTIONS -->
<div id="conn-list">
<p><?php echo $lang->get('conns') ?></p>
<?php
$tmp = $db->list_connections(true);
$conn_ids = array();
foreach ($conns as $conn) {
$conn_ids[] = $conn['id'];
}
if (sizeof($tmp) > 0) {
foreach ($tmp as $item) {
$lmid = $item['id'];
$lmname = $item['name'];
if (in_array($lmid, $conn_ids))
echo "<img src='graphics/open.png' /><a href=\"?attach=$lmid\">$lmname</a> <a href=\"?detach=$lmid\">[x]</a><br />";
else
echo "<img src='graphics/closed.png' /><a href=\"?attach=$lmid\">$lmname</a><br />";
}
}
else
echo '-';
?>
</div>
<div id="conn-detail">
<!-- MENU -->
<div id="main-menu">
<a href="?"><?php echo $lang->get('main-menu') ?></a>
| <a href="?page=domain-list"><?php echo $lang->get('domain-list') ?></a>
| <a href="?page=network-list"><?php echo $lang->get('network-list') ?></a>
| <a href="?page=users"><?php echo $lang->get('users') ?></a>
| <a href="?page=settings"><?php echo $lang->get('settings') ?></a>
| <a href="?page=info"><?php echo $lang->get('info') ?></a>
| <a href="?action=logout"><?php echo $lang->get('logout') ?></a>
<div style="float:right;text-align: right; width:220px;font-size:11px;font-style:italic">
<?php if (isset($uri)) echo $lang->get('connected-to').'<br />'.$uri; ?>
</div>
</div>