<?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-nav btn-add btn btn-default btn-xs btn-block" id="nb_adddomains">ADD DOMAINS</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 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-parsewhois btn btn-default btn-xs btn-block" id="nb_mpanel-parsewhois">PARSE WHOIS</a>
						<a class="btn-dgroup btn-alias btn btn-default btn-xs btn-block" id="nb_mpanel-regalias">REGISTRAR ALIAS</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-subdomains btn btn-default btn-xs btn-block" id="nb_subdmanager">SUBDOMAIN MANAGER</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-calendar btn btn-default btn-xs btn-block" id="nb_date_columns_group">IMPORTANT DATES</a>
						<a class="btn-dgroup btn-webpage btn btn-default btn-xs btn-block" id="nb_http_columns_group">HOME PAGE INFO</a>
						<a class="btn-dgroup btn-registrar btn btn-default btn-xs btn-block" id="nb_registrar_columns_group">REGISTRAR INFO</a>
						<a class="btn-dgroup btn-network btn btn-default btn-xs btn-block" id="nb_network_columns_group">NETWORK INFO</a>
						<a class="btn-dgroup btn-sitepop btn btn-default btn-xs btn-block" id="nb_sitepop_columns_group">WEB VISIBILITY</a>
						<a class="btn-dgroup btn-notes btn btn-default btn-xs btn-block" id="nb_notes_columns_group">NOTES</a>
						<a class="btn-dgroup btn-ipinfo btn btn-default btn-xs btn-block" id="nb_ipdata_columns_group">IP INFO</a>
						<a class="btn-dgroup btn-custom01 btn btn-default btn-xs btn-block" id="nb_custom01_columns_group">CUSTOM GROUP 01</a>
						<a class="btn-dgroup btn-custom02 btn btn-default btn-xs btn-block" id="nb_custom02_columns_group">CUSTOM GROUP 02</a>
						<a class="btn-dgroup btn-custom03 btn btn-default btn-xs btn-block" id="nb_report_columns_group">CUSTOM GROUP 03</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>
						<a class="btn-dgroup btn-customcolumns btn btn-default btn-xs btn-block" id="nb_customcolumns">CUSTOM COLUMNS</a>
						<?php } ?>
						<div class="navruler"></div>
						<a class="btn-dgroup btn-whoissetup btn btn-default btn-xs btn-block" id="nb_whoissetup">WHOIS SETUP</a>
						<?php if(isAdminUser()) { ?>
						<div class="navruler"></div>
						<a class="btn-dgroup btn-setup btn btn-default btn-xs btn-block" id="nb_appsetup">APP SETTINGS</a>
						<?php } ?>
						<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 } ?>
						<div class="navruler"></div>
						<a class="btn-dgroup btn-vcard btn btn-default btn-xs btn-block" id="nb_useradmin">USER ADMIN</a>
						
						<?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>
