<?php

///////////////////////////////////////////////////////////////////////////////

define('THIS_TOOL_NAME', 'portfolio');
define('PORTFOLIO_CONFIG_KEY', str_replace('-', '_', THIS_TOOL_NAME) . '_tool');

///////////////////////////////////////////////////////////////////////////////

$tpconfig = __DIR__. DIRECTORY_SEPARATOR . "config.tools.php";
if(is_file($tpconfig))
	require $tpconfig;

///////////////////////////////////////////////////////////////////////////////

include "includes/base-init.php";
include "includes/head-portfolio.php";
?>

<body>

<div class="theme-select theme-bg" id="themechange"></div>
<div class="menu-select theme-bg" id="menuselect"></div>
<div id="contentwrap">
<?php include "includes/head-logo-toolbar.php" ?>
<div id="content">
	<div id="domain-portfolio-header"></div>
<?php include "includes/filters-portfolio.php"; ?>
	<div id="domain-portfolio-table"></div>
	<div id="domain-portfolio-footer">
		<button class="btn btn-sm btn-success" id="btn-add-group">Add To Group</button>
		<button class="btn btn-sm btn-primary" id="btn-remove-group">Remove From Group</button>
		<button class="btn btn-sm btn-danger" id="btn-mark-sold"  style="display:none">Mark Sold</button>
		<button class="btn btn-sm btn-danger" id="btn-add-ignore" style="display:none">Add To Ignore List</button>
		<button class="btn btn-sm btn-danger" id="btn-delete-permanent">Delete Permanently</button>
	</div>
</div>
</div>


<?php
///////////////////////////////////////////////////////////////////////////////
$jsApiBaseUrl      = htmlspecialchars($apiBaseUrl, ENT_QUOTES, 'UTF-8');
$jsExcludedColumns = json_encode($excludedColumns);
$jsPostedDynamic   = json_encode($postedDynamic);
///////////////////////////////////////////////////////////////////////////////
?>
<script>
var baseurl           = "<?php echo $baseUrl; ?>";
var API_BASE_URL      = <?php echo json_encode($jsApiBaseUrl); ?>;
var IS_ADMIN          = <?php echo $effectiveIsAdmin ? 'true' : 'false'; ?>;
var REAL_ADMIN        = <?php echo $isAdmin ? 'true' : 'false'; ?>;
var VIEW_MODE         = <?php echo json_encode($viewMode); ?>;
var CURRENT_USER      = <?php echo json_encode($currentUserName); ?>;
var PORTFOLIO_CONFIG_KEY = "<?php echo PORTFOLIO_CONFIG_KEY; ?>";
var CONFIG_CREATED_AT = <?php echo time(); ?>;
var SHOW_TOOL_TIPS    = false;
var hidden_categories = [
	"Low Traffic Domains",
	"Keyword Domains", "High Traffic Domains", "Important Domains"

];
</script>
<script type="text/javascript" src="lib/jquery/jquery-3.5.1.min.js"></script>
<script type="text/javascript" src="lib/jquery/jquery-ui.min.js"></script>
<script type="text/javascript" src="lib/jquery/jquery.cookie.js"></script>

<script type="text/javascript" src="tools/js/datatable.js"></script>
<script type="text/javascript" src="tools/js/tooltip.js"></script>
<script type="text/javascript" src="tools/js/theme.js"></script>
<script type="text/javascript" src="tools/js/cookie.js"></script>
<script type="text/javascript" src="tools/js/modules.js"></script>
<script type="text/javascript" src="tools/js/sedapi.js"></script>

<script type="text/javascript" src="lib/js/dayjs.min.js"></script>
<script type="text/javascript" src="tools/js/common.js"></script>
<script type="text/javascript" src="tools/js/domainColumnDefs.js"></script>
<script type="text/javascript" src="tools/js/portfolio.js"></script>
<script type="text/javascript" src="../api.php?c=js&file=data.js&loc=modules/login"></script>
<script type="text/javascript" src="tools/js/columns.js"></script> 
<script type="text/javascript" src="tools/js/domainactions.js"></script>
<script type="text/javascript" src="tools/js/portfolio-filters.js"></script>
</body>
</html>

