<?php
/*
 * @component UserPoints
 * @copyright Copyright (C) 2015-2022 Bernard Gilly - Adrien Roussel - Martin Brampton
 * @license : GNU/GPL
 * @Website : https://remository.com
 */

defined( '_JEXEC' ) or die( 'Restricted access' );

use Joomla\CMS\Language\Text;

// JHtml::_('behavior.formvalidation');
?>
<script type="text/javascript">
	Joomla.submitbutton = function(task)
	{
		//if (task == 'cpanel' || task == 'cancelrule' || document.formvalidator.isValid(document.id('maxpoints-form'))) {
			Joomla.submitform(task, document.getElementById('adminForm'));
		//}
		//else {
			//alert('<?php echo $this->escape(Text::_('JGLOBAL_VALIDATION_FORM_FAILED'));?>');
		//}
	}
</script>
<form action="index.php?option=com_userpoints" method="post" name="adminForm" id="adminForm" class="form-validate">
<div class="width-100 fltrt">
	<fieldset class="adminform">
		<legend><?php echo Text::_( 'AUP_MAXPOINTSPERUSER' ); ?></legend>
		<table class="admintable">
		<tbody>
		<tr>
			<td class="key">
				<span class="editlinktip hasTip" title="<?php echo Text::_( 'AUP_MAXPOINTS' ); ?>::<?php echo Text::_('AUP_MAXPOINTS'); ?>">
					<?php echo Text::_( 'AUP_MAXPOINTS' ); ?>:
				</span>
			</td>
			<td>
				<input class="inputbox" type="text" name="setpointsperuser" id="setpointsperuser" size="20" maxlength="30" value="<?php echo $this->setpoints; ?>" />
			</td>
		</tr>
		<tr>
			<td class="key">&nbsp;
			</td>
			<td>
				<?php echo Text::_('AUP_ZEROORBLANKFORUNLIMITED'); ?>
			</td>
		</tr>		
		</tbody>
		</table>
	</fieldset>
</div>
	<input type="hidden" name="option" value="com_userpoints" />
	<input type="hidden" name="task" value="" />
	<input type="hidden" name="redirect" value="rules" />
	<input type="hidden" name="boxchecked" value="0" />
</form>
<div class="clr"></div>