<?php
////////////////////////////////////////////////////////////////////////
// Breeze Website Builder
// Copyright Silver Dolphin Solutions, LLC, Edward Lemmers, P.E.
// For licensing, see license.txt.
// Created:	4/28/2018	ELL
// 

	include ("check_session.php");
	
	if (($access_level != "admin") && ($access_level != "power_user"))
		exit;
?>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Minify File Select | Breeze Website Builder</title>
<link rel="stylesheet" href="theme/<?php echo $theme; ?>/manager.css" type="text/css">
<style>
	#minify_css_btn	{
		position: absolute;
		top: 50px;
		left: 330px;
		width: 200px;
	}
</style>

<script src="js/jquery.min.js"></script>
<script src="js/browser_detect.js"></script>
<script src="js/mouse_position.js"></script>
<script src="js/popup_msg.js"></script>
<script src="js/minify_file_select.js"></script>
<script>
	var theme = "<?php echo $theme; ?>";
<?php
	echo "	var CANCEL_WORD = \"" . CANCEL_WORD . "\";\n";
	echo "	var OK_WORD = \"" . OK_WORD . "\";\n";
	echo "	var MINIFY_FILE_MINIFY_JS_COMPLETE_MSG = \"" . MINIFY_FILE_MINIFY_JS_COMPLETE_MSG . "\";\n";
	echo "	var MINIFY_FILE_MINIFY_JS_COMPLETE_ERR = \"" . MINIFY_FILE_MINIFY_JS_COMPLETE_ERR . "\";\n";
	echo "	var MINIFY_FILE_MINIFY_CSS_COMPLETE_MSG = \"" . MINIFY_FILE_MINIFY_CSS_COMPLETE_MSG . "\";\n";
	echo "	var MINIFY_FILE_MINIFY_CSS_COMPLETE_ERR = \"" . MINIFY_FILE_MINIFY_CSS_COMPLETE_ERR . "\";\n";
	
	echo "	var http = '$http';\n";
?>
</script>
</head>
<body onLoad="ShowFiles();">
<div id="sub_level_1_buttons">
	<div class="button_heading_sub_level_1">
		<div class="button_heading_text_sub_level_1"><?php echo MINIFY_FILE_SELECT_HEADING; ?></div><div class="button_heading_help" onClick="OpenHelpWindow();" style="left:225px;">&nbsp;</div>
	</div>

    <div id="file_list_div">&nbsp;</div>
</div>


<div id="minify_css_btn" class="button_console_minify" onClick="MinifyCSS();">
    <div class="button_console_text_w_icon"><?php echo MINIFY_FILE_MINIFY_CSS_BTN; ?></div>
</div>

<?php include("lib/popup_msg.html"); ?>

<script>
	popup_msg.HidePopupMsg();
</script>

</body>
</html>