<?php
	$favicon = get_favicon_name();
	$rights = getUserAccessRights();
?>
<div id="navbarmenu" class="navmenu-outer">
	<a href="#" id="navbarmenu-close" class="close-button pull-right"></a>
	<div class="slider-top">
		<div class="panel">
			<div class="container-fluid">
				<div class="row" style="margin-bottom:20px; margin-top:0px;">
					<div class="hidden-xs col-sm-3">
						<div style="height:100px"></div>
						<p class="text-center"><a href="menu.php"><img id="menu-logo" src="lib/css/images/logo.png" class="img-responsive logo" alt="Watch My Domains SED v3"></a></p>
						<hr class="panelruler">
						<p class="text-center">
						Server Edition
						<?php
							if(function_exists('get_version'))
							{
								echo '&nbsp;' . get_version() . '.&nbsp;';
								echo '<br>Build: ' . get_build_date();
							}
						?>
						</p>
					</div>
					<div class="col-sm-3">
						<h4>DOMAINS</h4>
						<hr class="panelruler">
						<?php if($rights == 1 || $rights == 3) { ?>
						<a class="btn-dgroup btn-add btn btn-default btn-xs btn-block" id="nb_mpanel-addsubd">ADD SUBDOMAINS</a>
						<?php } ?>
						<?php if($rights != 0) { ?>
						<a class="btn-nav btn-upload btn btn-default btn-xs btn-block" id="nb_uploadcsv">UPLOAD DATA</a>
						<?php } ?>
						<?php if($rights == 1) { ?>
						<a class="btn-nav btn-delete btn btn-default btn-xs btn-block" id="nb_deletedomains">DELETE SUB DOMAINS</a>
						<?php } ?>
						<div class="navruler"></div>
						<a class="btn-dgroup btn-lookup btn btn-default btn-xs btn-block" id="nb_mpanel-lookup">LOOKUP DOMAINS</a>
						<a class="btn-dgroup btn-bulkaction btn btn-default btn-xs btn-block" id="nb_mpanel-bulkedit">BULK EDIT</a>
						<div class="navruler"></div>
						<a class="btn-dgroup btn-download btn btn-default btn-xs btn-block" id="nb_mpanel-download">DOWNLOAD DATA</a>
						<div class="navruler"></div>
						<a class="btn-dgroup btn-appmenu btn btn-default btn-xs btn-block" id="nb_appmenu">APPLICATION MENU</a>
						<a class="btn-dgroup btn-main btn btn-default btn-xs btn-block" id="nb_main">MAIN INTERFACE</a>
						<div class="navruler"></div>
						<a class="btn-dgroup btn-help btn btn-default btn-xs btn-block" id="nb_userguide">HELP / SUPPORT</a>
					</div>
					<div class="col-sm-3">
						<div class="visible-xs" style="height:20px"></div>
						<h4>DISPLAY GROUPS</h4>
						<hr class="panelruler">
						<a class="btn-dgroup btn-allsd btn btn-default btn-xs btn-block" id="nb_allsd">ALL RECORDS</a>
						<a class="btn-dgroup btn-norootsd btn btn-default btn-xs btn-block" id="nb_norootsd">HIDE ROOT RECORDS</a>
						<div class="navruler"></div>
						<a class="btn-dgroup btn-columnsetup btn btn-default btn-xs btn-block" id="nb_columnsetup">CONFIGURE TABLE</a>
					</div>
					<div class="col-sm-3">
						<div class="visible-xs" style="height:20px"></div>
						<h4>SETTINGS</h4>
						<?php if(isAdminUser()) { ?>
						<hr class="panelruler">
						<a class="btn-dgroup btn-categorize btn btn-default btn-xs btn-block" id="nb_mpanel-categorize">CATEGORIZE DOMAINS</a>
						<?php } ?>
						<div class="navruler"></div>
						<a class="btn-dgroup btn-theme btn btn-default btn-xs btn-block" id="nb_uisetup">INTERFACE SETUP</a>
						<a class="btn-dgroup btn-sedmenu btn btn-default btn-xs btn-block" id="nb_sedmenu">SIDE MENU ON/OFF</a>
						<div class="navruler"></div>
						<a class="btn-dgroup btn-runq btn btn-default btn-xs btn-block" id="nb_processqueue">PROCESS QUEUE</a>
						<?php if(isAdminUser()) { ?>
						<div class="navruler"></div>
						<a class="btn-dgroup btn-auditlog btn btn-default btn-xs btn-block" id="nb_showauditlog">AUDIT LOG</a>
						<?php } ?>
						<?php if(isUserAuthEnabled()) { ?>
						<div class="navruler"></div>
						<a class="btn-dgroup btn-disconnect btn btn-default btn-xs btn-block" id="nb_logout">LOGOUT</a>
						<?php } ?>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
