[go: up one dir, main page]

Menu

[166f65]: / menu.inc.php  Maximize  Restore  History

Download this file

110 lines (100 with data), 2.7 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
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
<?php
/*
* Layout of menu
* Created By David Cornewell
*/
?>
<table border=0 cellpadding=0 cellspacing=0 align=left width="100%">
<tr valign=top class=folder>
<td>
<?php
print "<a href=\"". $_SERVER["PHP_SELF"] ."\" style=\"padding: 2; color:black; text-decoration: none; ";
if ($f=="")
print "border: 2 inset black; \">";
else
print "\">";
?>
&nbsp;Home </a>
</td>
<td>
<?php
print "<a href=\"". $_SERVER["PHP_SELF"] ."?f=vmail\" style=\"padding: 2; color:black; text-decoration: none; ";
if ($f=="vmail")
print "border: 2 inset black; \">";
else
print "\">";
?>
&nbsp;VoiceMail </a>
</td>
<td>
<?php
print "<a href=\"". $_SERVER["PHP_SELF"] ."?f=users\" style=\"padding: 2; color:black; text-decoration: none; ";
if ($f=="users")
print "border: 2 inset black; \">";
else
print "\">";
?>
&nbsp;Users </a>
</td>
<?php if ($session->login_user->id==-1) { ?>
<td>
<?php
print "<a href=\"". $_SERVER["PHP_SELF"] ."?f=extensions\" style=\"padding: 2; color:black; text-decoration: none; ";
if ($f=="extensions")
print "border: 2 inset black; \">";
else
print "\">";
?>
&nbsp;Extensions </a>
</td>
<?php } else { ?>
<td>
<?php
print "<a href=\"". $_SERVER["PHP_SELF"] ."?f=extension_opts\" style=\"padding: 2; color:black; text-decoration: none; ";
if ($f=="extension_opts")
print "border: 2 inset black; \">";
else
print "\">";
?>
&nbsp;Extension&nbsp;options</a>
</td>
<?php } ?>
<?php if ($session->login_user->id>0) { ?>
<td>
<?php
print "<a href=\"". $_SERVER["PHP_SELF"] ."?f=showcontacts\" style=\"padding: 2; color:black; text-decoration: none; ";
if ($f=="showcontacts")
print "border: 2 inset black; \">";
else
print "\">";
?>
&nbsp;Contacts </a>
</td>
<?php }
//
// This will print the modules
//
$mods = Asterwebmod_GetAllModules();
foreach ($mods as $module) {
if ($session->login_user->id==-1 || $module->admin=false) {
print "<td>";
print "<a href=\"". $_SERVER["PHP_SELF"] ."?f=". $module->name ."\" style=\"padding: 2; color:black; text-decoration: none; ";
if ($f==$module->name)
print "border: 2 inset black; \">";
else
print "\">";
print "&nbsp;". $module->title ."</a>";
print "</a>";
print "</td>";
}
}
?>
<td width=99% align=right>
<?php if ($session->login_user->id!=0) { ?>
&nbsp;<a href="<?php echo $_SERVER["PHP_SELF"]; ?>"></a>&nbsp;
Logged in as <?php print $session->login_user->name; ?>
<a href="<?php print $session->cgi->progname ?>?f=logout" class=folder>Logout</a>
<?php } ?>
</td>
</tr>
</table>