<ul class="sidebar-bg">
    <li CLASS="sidebar-<% ++$odd%2 %>">
    <A HREF="<%$path%>/index.html">
% my $width = 82;
% my $height = 90;
% my $src = $path . "/netdiscoball.gif";
% my $alt = "[Disco Ball]";
% if (defined $netdisco::CONFIG{customericon}) {
%    my ($iconname, $iconwidth, $iconheight) = split(/\s*,\s*/, $netdisco::CONFIG{customericon});
%    $src = ($iconname =~ m|/|) ? $iconname : $path . "/" . $iconname;
%    $width = $iconwidth if defined($iconwidth);
%    $height = $iconheight if defined($iconheight);
%    $alt = "[Home]";
% }
      <IMG SRC="<%$src%>" style="border: 0;" width=<%$width%> height=<%$height%> alt="<%$alt%>">
    </A><BR>
    </li>
    <li CLASS="sidebar-<% ++$odd%2 %>">
    <A CLASS="navbutton" HREF="<%$path%>/netmap.html">Network Map</A>
    </li>
    <li CLASS="sidebar-<% ++$odd%2 %>">
    <FORM ACTION="<%$path%>/device.html" METHOD=GET>
    <div>
    <A CLASS="navbutton" HREF="<%$path%>/device_search.html">Device Search</A><BR>
    <INPUT TYPE="text" size=15 maxlength=255 NAME="ip" TITLE="Enter the DNS or IP of a device and hit return.">
    </div>
    </FORM>
    </li>
    <li CLASS="sidebar-<% ++$odd%2 %>">
    <A CLASS="navbutton" HREF="<%$path%>/device_inv.html">Device Inventory</A>
    </li>
    <li CLASS="sidebar-<% ++$odd%2 %>">
    <FORM ACTION="<%$path%>/node.html" METHOD=GET>
    <div>
    <A CLASS="navbutton" HREF="<%$path%>/node.html">Node Search</A><BR>
    <INPUT TYPE="text" size=15 maxlength=255 NAME="node" TITLE="IP, DNS, MAC, NetBios  * and ? are wildcards.">
    </div>
    </FORM>
    </li>
% if ($port_info) {
    <li CLASS="sidebar-<% ++$odd%2 %>">
    <A CLASS="navbutton" HREF="<%$path%>/jack_search.html" TITLE="Search Pinnacles Database">Jack Search</A>
    </li>
% }
    <li CLASS="sidebar-<% ++$odd%2 %>">
    <A CLASS="navbutton" HREF="<%$path%>/port_report.html" TITLE="Search and Report on switch ports that have been administratively disabled.">Port Control Report</A>
    </li>
    <li CLASS="sidebar-<% ++$odd%2 %>">
    <A class="navbutton" HREF="<%$path%>/port_usage.html" TITLE="Search and Report on switch ports that are (and have been) down for a certain amount of time.">Port Usage Report</A>
    </li>
    <li CLASS="sidebar-<% ++$odd%2 %>">
     <FORM ACTION="<%$path%>/device_search.html" METHOD=GET>
     [Vlan Hunt]<BR>
     <INPUT TYPE="hidden" NAME="specific" VALUE="vlan">
     <INPUT TYPE="text" size=10 maxlength=4 NAME="vlan" TITLE="Vlan number">
     </FORM>
    </li>
%#    <li CLASS="sidebar-<% ++$odd%2 %>">
%#    <A CLASS="navbutton" HREF="<%$path%>/traceroute.html">Layer 2 Traceroute</A>
%#    </li>
    <li CLASS="sidebar-<% ++$odd%2 %>">
    <A CLASS="navbutton" HREF="<%$path%>/duplex.html">Duplex Mismatch Finder</A>
    </li>
    <li CLASS="sidebar-<% ++$odd%2 %>">
    <A CLASS="navbutton" HREF="<%$path%>/ip_search.html" TITLE="Show inventory of IP Address space or Netbios Domains">Node Inventory</A>
    </li>
    <li CLASS="sidebar-<% ++$odd%2 %>">
    <A CLASS="navbutton" HREF="<%$path%>/log.html">Backend Log</A>
    </li>
    <li CLASS="sidebar-<% ++$odd%2 %>">
    <A CLASS="navbutton" HREF="<%$path%>/doc">Documentation</A>
    </li>
% if ($admin and $secure) {
    <li CLASS="sidebar-<% ++$odd%2 %>">
    <A CLASS="navbutton" HREF="<%$path%>/admin.html">Administration Panel</A>
    </li>
% }
    <li CLASS="sidebar-<% ++$odd%2 %>">
    <A CLASS="navbutton" HREF="<%$path%>/stats.html">About</A>
    </li>
    <li CLASS="sidebar-<% ++$odd%2 %>">
% if ($secure and $netdisco::CONFIG{secure_server} ) {
<IMG SRC="<%$path%>/icon_lock.gif" ALT="Secure Connection" TITLE="Secure Connection" HEIGHT=15 WIDTH=15>
% } elsif (!$secure) {
<A HREF="<%$url%>" ALT="Switch to Secure Connection for more features" TITLE="Switch to Secure Connection for more features"><IMG SRC="<%$path%>/icon_up.gif" WIDTH=11 HEIGHT=10 BORDER=0></A> 
% }

% if ($user) {
    User <TT><%$user%></TT> <A CLASS="navbutton" HREF="<%$path%>/logout.html">Logout</A>
%   if ($useuserdb) {
    <BR><A CLASS="navbutton" HREF="<%$path%>/change_pw.html">Change Password</A>
%   } else {
    <BR><A CLASS="navbutton" HREF="<%$path%>/login.html">Netdisco Login</A>
%   }
% } else {
%   if ($netdisco::CONFIG{apache_auth}) {
    <A CLASS="navbutton" HREF="<%$path%>/apache_login.html">Login</A>
    <BR><A CLASS="navbutton" HREF="<%$path%>/login.html">Netdisco Login</A>
%   } else {
    <A CLASS="navbutton" HREF="<%$path%>/login.html">Login</A>
%   }
%}
    </li>
</ul>
<%once>
</%once>
<%shared>
my $odd    = 0;
my $path   = $netdisco::CONFIG{webpath};
my $user   = $m->session->{user};
my $secure = &is_secure;
my $admin  = $m->session->{user_admin};
my $useuserdb = $m->session->{useuserdb};
my $port_info = (defined $netdisco::CONFIG{port_info} and $netdisco::CONFIG{port_info} =~ /^(1|t|y)/i) ? 1 : 0;
my $url    = $r->uri;
my $args   = $r->args;
$url .= "?$args" if (defined $args and length($args));
$url = url_secure($url);
</%shared>
%# $Id$
%# vim:syntax=mason
