<?

if (!$settings->config['demomode']){
//acting ...
if ($sys['act'] && !$tmp['cancelAction']) {
	require_once($sys['root']."/system/includes/admin/settings/actions/".$sys['act'].".inc");
}
}

require_once($sys['root']."/system/templates/popup/header.inc");
?>

<table cellspacing="0" cellpadding="0" border="0" style="width:100%;height:100%;background-color:#F2F2F2">
<tr>
    <td background="images/popup/top-bg.gif" height="26">&nbsp;</td>
</tr>

<tr>
    <td style="padding:10px;" valign="top">
<!-- Popup Contents -->




<form action="?admin=1&sub=settings&act=adm_save_settings" method="post" name="settForm">

<div class="adminContent">
<div style="padding-left:10px;padding-top:10px;">


<?$tpl->startFormBlock()?>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
    <td colspan="2">
	 <table class="boxTitle" cellspacing="0" cellpadding="0" border="0"><tr><td>
	 <?$lang->display("Suspend %1", array(($sys['license']['unbranded']?$sys['license']['unbranded']:"Afian")));?>
	 </td></tr></table>
	 </td>
</tr>
<tr>
    <td rowspan="2" valign="top" width="50" align="center" style="padding:5px;"><img src="images/icons/other/stop.gif" width="32" height="32" border="0" alt=""></td>
    <td height="70" valign="top" style="padding:5px;">
<?$lang->display("Suspend all logins to %1", array(($sys['license']['unbranded']?$sys['license']['unbranded']:"Afian")));?>
<br><?$lang->display("All users that are currently logged in (except \"<b>admin</b>\") will be logged out.");?>

<br>
	 </td>
</tr>
<tr>
    <td style="padding:5px;" align="right">
<div class="separator"><img src="images/interface/hr.gif" width="100%" height="2" border="0" alt=""></div>
 <?$lang->display("Suspend %1", array(($sys['license']['unbranded']?$sys['license']['unbranded']:"Afian")));?> <input type="checkbox" name="suspend" value="1" <?if ($config->settings['suspend']) {echo "checked";}?>>
	 </td>
</tr>
</table>
<?$tpl->endFormBlock()?>


	</td>
</tr>

<tr>
    <td align="center" height="20">
<table border="0" cellspacing="0" cellpadding="1" style="position:relative;top:16px;z-index:1" width="170">
<tr>
	<td>
<?
$tpl->btn(
$lang->get("Save settings"), 
($settings->config['demomode'])?"alert('Option disabled in this demonstrative version of Afian.')":"document.settForm.submit()"
);
?>
	</td>
	<td>
<?
$tpl->btn(
$lang->get("Close"), 
"self.close();window.close()"
)
?></td>
</tr>
</table>
	</td>
</tr>

<tr>
    <td background="images/popup/bottom-bg.gif" height="46">&nbsp;</td>
</tr>
</table>


</form>

<?
require_once($sys['root']."/system/templates/popup/footer.inc");
?>