<?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;
use Joomla\CMS\HTML\HTMLHelper;

// HTMLHelper::_('behavior.formvalidation');
?>
<script type="text/javascript">
	Joomla.submitbutton = function(task)
	{
		//if (task == 'cpanel' || document.formvalidator.isValid(document.id('archive-form'))) {
			Joomla.submitform(task, document.getElementById('archive-form'));
		//}
		//else {
			//alert('<?php echo $this->escape(Text::_('JGLOBAL_VALIDATION_FORM_FAILED'));?>');
		//}
	}
</script>
<div id="j-main-container">
<form action="index.php" method="post" name="adminForm" id="adminForm" class="form-validate">
<div class="form-horizontal">
	<fieldset class="adminform">
		<legend><?php echo Text::_( 'AUP_COMBINE_ACTIVITIES_DESCRIPTION' ); ?></legend>
			<div class="control-group">
				<div class="control-label">
				<span class="editlinktip hasTip" title="<?php echo Text::_( 'AUP_COMBINE_ACTIVITIES' ); ?>::<?php echo Text::_('AUP_COMBINE_ACTIVITIES_DESCRIPTION'); ?>">
					<?php echo Text::_( 'AUP_COMBINE_ACTIVITIES' ); ?>:
				</span>
				</div>
				<div class="controls">
					<?php echo HTMLHelper::_('calendar', '', 'datestart', 'datestart', '%Y-%m-%d', array('class'=>'inputbox', 'size'=>'20',  'maxlength'=>'19')); ?>
				</div>
			</div>
			<div class="control-group">
				<div class="control-label">
				</div>
				<div class="controls">
					<input class="btn btn-primary" type="submit" name="Submit" value="<?php echo Text::_( 'AUP_COMBINE_ACTIVITIES' ); ?>">
				</div>
			</div>
	</fieldset>
</div>
	<input type="hidden" name="option" value="com_userpoints" />
	<input type="hidden" name="task" value="processarchive" />
	<input type="hidden" name="boxchecked" value="0" />
	<?php echo HTMLHelper::_('form.token'); ?>
</form>
</div>
<div class="clr"></div>