Your IP : 172.70.80.238


Current Path : /var/www/element/data/www/vsl-gates.ru/manager/includes/
Upload File :
Current File : /var/www/element/data/www/vsl-gates.ru/manager/includes/sysalert.display.inc.php

<?php

	/**
	 *	System Alert Message Queque Display file
	 *	Written By Raymond Irving, April, 2005
	 *
	 *	Used to display system alert messages inside the browser 
	 *
	 */
	
	require_once(dirname(__FILE__).'/protect.inc.php');
	
	$sysMsgs = "";
	$limit = count($SystemAlertMsgQueque);
	for($i=0;$i<$limit;$i++) {
		$sysMsgs .= $SystemAlertMsgQueque[$i]."<hr>";
	}
	// reset message queque
	unset($_SESSION['SystemAlertMsgQueque']);
	$_SESSION['SystemAlertMsgQueque'] = array();
	$SystemAlertMsgQueque = &$_SESSION['SystemAlertMsgQueque'];

	if($sysMsgs!="") {
?>	

<?php // fetch the styles
if (file_exists(MODX_BASE_PATH.'manager/media/style/'.$manager_theme.'/sysalert_style.php')) {
	include_once ($modx->config['base_path'].'manager/media/style/'.$manager_theme.'/sysalert_style.php');
	echo '<style type="text/css">';
	echo $sysalert_style;
	echo '</style>';
} 
?>
<script type="text/javascript">
Window.onDomReady(function() {
			var sysAlert = new Element('div').setProperties({
				'class': 'sysAlert'
			});
			sysAlert.innerHTML = '<?php echo mysql_escape_string($sysMsgs);?>';
			var boxHtml = new MooPrompt('<?php echo $_lang['sys_alert']; ?>', sysAlert, {
				buttons: 1,
				button1: 'Ok',
				width: 500
			});
});
</script>
<?php
	}
?>