<?php
$rights = getUserAccessRights();
?>
		<div id="popmenubox" class="text-center">
			<div id="popmenu" style="padding-top:10px; display:none;">
				<?php if($rights == 1 || $rights == 3) { ?>
				<a href="" id="adddomains" class="btn btn-xs btn-default btn-menu"><img src="lib/css/images/16/add.png" alt="Add Domains" title="Add Domains"></a>
				<?php } ?>
				<?php if($rights == 1) { ?>
				<a href="" id="deletedomains" class="btn btn-xs btn-default btn-menu"><img src="lib/css/images/16/delete.png" alt="Delete Domains" title="Delete Domains"></a>
				<?php } ?>
				<?php if($rights != 0) { ?>
				<a href="" id="uploadcsv" class="btn btn-xs btn-default btn-menu"><img src="lib/css/images/16/upload.png" alt="Upload CSV" title="Upload CSV Data"></a>
				<?php } ?>
				<div class="btn-vsep"></div>
				<a href="" id="btn_mpanel-lookup" class="btn btn-xs btn-default btn-menu"><img src="lib/css/images/16/lookup.png" alt="Lookup Domains" title="Lookup Domains"></a>
				<a href="" id="btn_mpanel-parsewhois" class="btn btn-xs btn-default btn-menu"><img src="lib/css/images/16/parsewhois.png" alt="Parse Whois" title="Parse Whois"></a>
				<a href="" id="btn_mpanel-regalias" class="btn btn-xs btn-default btn-menu"><img src="lib/css/images/16/alias.png" alt="Set registrar alias" title="Set registrar alias"></a>
				<a href="" id="btn_mpanel-download" class="btn btn-xs btn-default btn-menu"><img src="lib/css/images/16/download.png" alt="Download data" title="download data"></a>
				<div class="btn-vsep"></div>
				<?php if(isAdminUser()) { ?>
				<a href="" id="btn_customcolumns" class="btn btn-xs btn-default btn-menu"><img src="lib/css/images/16/addcolumn.png" alt="Add Custom Columns" title="Add Custom Columns"></a>
				<a href="" id="btn_mpanel-categorize" class="btn btn-xs btn-default btn-menu"><img src="lib/css/images/16/categorize.png" alt="Categorize Domains" title="Categorize Domains"></a>
				<?php } ?>
				<a href="" id="btn_mpanel-bulkedit" class="btn btn-xs btn-default btn-menu"><img src="lib/css/images/16/bulkaction.png" alt="Bulk Edit Domains" title="Bulk Edit Domains"></a>
				<a href="" id="btn_columnsetup" class="btn btn-xs btn-default btn-menu"><img src="lib/css/images/16/columnsetup.png" alt="Setup Columns" title="Setup Columns"></a>
				<a href="" id="btn_whoissetup" class="btn btn-xs btn-default btn-menu"><img src="lib/css/images/16/whoissetup.png" alt="Whois Setup" title="Whois Setup"></a>
				<?php if(isAdminUser()) { ?>
				<a href="" id="btn_appsetup" class="btn btn-xs btn-default btn-menu"><img src="lib/css/images/16/setup.png" alt="Application Settings" title="Application Settings"></a>
				<?php } ?>
				<a href="" id="btn_useradmin" class="btn btn-xs btn-default btn-menu"><img src="lib/css/images/16/vcard.png" alt="User Admin" title="User Admin"></a>
				<?php if(isAdminUser()) { ?>
				<a href="" id="showauditlog" class="btn btn-xs btn-default btn-menu"><img src="lib/css/images/16/auditlog.png" alt="View Audit Log" title="View Audit Log"></a>
				<?php } ?>
				<div class="btn-vsep"></div>
				<a href="" id="btn_uisetup" class="btn btn-xs btn-default btn-menu"><img src="lib/css/images/16/theme.png" alt="Select Theme" title="Select Theme"></a>
				<div class="btn-vsep"></div>
				<a href="" id="btn_processqueue" class="btn btn-xs btn-default btn-menu"><img src="lib/css/images/16/runq.png" alt="Process Queue" title="Process Queue"></a>
				<div class="btn-vsep"></div>
				<a href="" id="btn_userguide" class="btn btn-xs btn-default btn-menu"><img src="lib/css/images/16/help.png" alt="Help / Support" title="Help / Support"></a>
				<a href="" id="btn_dnscolsetup" class="btn btn-xs btn-default btn-menu" style="display:none;"><img src="lib/css/images/16/columnsetup.png" alt="Setup DNS Columns" title="Setup DNS Columns"></a>
				<a href="" id="btn_sslcolsetup" class="btn btn-xs btn-default btn-menu" style="display:none;"><img src="lib/css/images/16/columnsetup.png" alt="Setup SSL Columns" title="Setup SSL Columns"></a>
<?php if(empty($_SERVER['HTTPS'])) { ?>
				<div class="btn-vsep"></div>
				<a href="" id="nossl" class="btn btn-xs btn-default btn-menu"><img src="lib/css/images/16/nossl.png" alt="No SSL" title="No SSL"></a>
<?php } ?>
			</div>
		</div>
