-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathnetwork_tabs.php
24 lines (22 loc) · 1.08 KB
/
network_tabs.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
<?php
$forceadmin = 1; // Admins only
require('checkallowed.php'); // No direct access
?>
<div class="page_title">
<div class="page_title_icon"><img src="../images/icons/medium/network.png" border="0" /></div>
<div class="page_title_text"><?php echo $lang['network']; ?></div>
</div>
<div class="tabs">
<div class="tab" onClick="javascript:mainpage('networkedit','<?php echo $url_id; ?>');" style="margin-left:0px;<?php if($tab == 'edit') echo 'background:#306EFF;'; ?>">
<div style="float:left;margin-top:5px;"><img src="../images/icons/medium/edit.png" width="24" height="24" border="0" /></div> <?php echo $lang['edit']; ?>
</div>
<?php
// Allow adding IPs if a parent server
if($net_parentid == 0)
{
?>
<div class="tab" onClick="javascript:mainpage('networkips','<?php echo $url_id; ?>');"<?php if($tab == 'ips') echo ' style="background:#306EFF"'; ?>>
<div style="float:left;margin-top:5px;"><img src="../images/icons/medium/template.png" width="24" height="24" border="0" /></div> <?php echo $lang['ips']; ?>
</div>
<?php } ?>
</div>