<?php 
include("loginCheckPoint.php");
include_once("authorizations.php");
require_once("demosettings.php");

$userdetails = getUserDetails();
$canDelete = getUserPermission(CAN_DELETE);
?>
<div class="toolbar">
	<script src="js/ivcommon.js"></script>
	<ul>
		<a href="javascript:gotoPage('home',{})"><img style="border:0px 0px 0px 0px;" title="Home" onmouseover="this.src='images/home-icon-2e83ff.png'" onmouseout="this.src='images/home-icon.png'" src="images/home-icon.png"/></a>&nbsp;&nbsp;&nbsp;
        <a href="javascript:gotoPage('searchPage',{})"><img style="border:0px 0px 0px 0px;" title="Search" onmouseover="this.src='images/search-icon-2e83ff.png'" onmouseout="this.src='images/search-icon.png'" src="images/search-icon.png"/></a>&nbsp;&nbsp;&nbsp;
        <a href="javascript:gotoPage('listFilesPage', {})"><img style="border:0px 0px 0px 0px;" title="Files" onmouseover="this.src='images/ontology-icon-2e83ff.png'" onmouseout="this.src='images/ontology-icon.png'" src="images/ontology-icon.png"/></a>&nbsp;&nbsp;&nbsp;        
        <?php
        	//if ($canSync)         
        	//	echo "<a href=\"home.php?sync=1\"><img style=\"border:0px 0px 0px 0px;\" width=\"45\" height=\"45\" title=\"Sync DB\" onmouseover=\"this.src='images/sync-icon.png'\" onmouseout=\"this.src='images/sync-icon.png'\" src=\"images/sync-icon.png\"/></a>";
        	if ($canDelete)         
        		echo "<a href=\"javascript:gotoPage('home',{'clean':1})\"><img style=\"border:0px 0px 0px 0px;\"  width=\"45\" height=\"45\" title=\"Clean document\" onmouseover=\"this.src='images/publish-but.png'\" onmouseout=\"this.src='images/publish-but.png'\" src=\"images/publish-but.png\"/></a>";
                
	        if ($isDemo)      
	        	echo "<a href=\"http://demo.intuview.com/iventitymatcherhtm/home.php\" target=\"_blank\"><img style=\"border:0px 0px 0px 0px;\"  width=\"45\" height=\"45\" title=\"Entity Matcher\" onmouseover=\"this.src='images/file-icon.png'\" onmouseout=\"this.src='images/file-icon.png'\" src=\"images/file-icon.png\"/></a>";
	        else
	        	echo "<a href=\"http://localhost/iventitymatcherhtm/home.php\" target=\"_blank\"><img style=\"border:0px 0px 0px 0px;\"  width=\"45\" height=\"45\" title=\"Entity Matcher\" onmouseover=\"this.src='images/file-icon.png'\" onmouseout=\"this.src='images/file-icon.png'\" src=\"images/file-icon.png\"/></a>";        	
        ?>
        <a href="statisticPage.php"><img style="border:0px 0px 0px 0px;" width="45" height="45" title="Statistic" onmouseover="this.src='images/statistical-symbols.jpg'" onmouseout="this.src='images/statistical-symbols.jpg'" src="images/statistical-symbols.jpg"/></a>&nbsp;&nbsp;&nbsp;
        <a href="javascript:gotoPage('ManageConfiguration', {})"><img style="border:0px 0px 0px 0px;" title="Manage" onmouseover="this.src='images/analyze-icon.png'" onmouseout="this.src='images/analyze-icon.png'" src="images/analyze-icon.png"/></a>&nbsp;&nbsp;&nbsp;
    </ul>
</div>

