Location: PHPKode > projects > DDL CMS > Upload these files to your webspace/topsites/templates/admin_popup.tpl
<script type="text/javascript">
function beginCloseTimer()
{
    setTimeout("window.close()", 3000);
}


<?PHP
if( isset($reload) )
{
?>
window.opener.document.form.submit();
<?PHP
}
?>

<?PHP
if( isset($redisplay) )
{
?>
window.opener.document.location = 'admin.php?T=<?PHP echo $redisplay; ?>';
<?PHP
}
?>
window.onload = function()
{
	beginCloseTimer();
}
</script>
<div>
<?PHP echo $message; ?>

<br />
<br />

<a href="" onClick="window.close()">Close Window</a>
<br />
<br />
<i>Window will automatically close in 3 seconds</i>
</div>
Return current item: DDL CMS