Server : LiteSpeed System : Linux server 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : alsaif ( 1057) PHP Version : 7.4.33 Disable Function : show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/alsaif/public_html/administrator/components/com_convertforms/views/export/tmpl/ |
<?php
/**
* @package Convert Forms
* @version 4.3.3 Pro
*
* @author Tassos Marinos <info@tassos.gr>
* @link https://www.tassos.gr
* @copyright Copyright © 2023 Tassos All Rights Reserved
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
*/
defined('_JEXEC') or die('Restricted access');
JFactory::getDocument()->addScriptDeclaration('
document.addEventListener("DOMContentLoaded", function() {
var form = document.querySelector(".export_tool form");
form.addEventListener("submit", function(e) {
var btn = form.querySelector("button[type=\'submit\']");
btn.innerText = "' . JText::_('NR_PLEASE_WAIT') . '...";
document.querySelector(".export_tool").classList.add("working");
});
// Joomla\'s showOn attribute doesn\'t support showing/hiding a field when another field is empty.
let formIDInput = document.getElementById("filter_search");
formIDInput.addEventListener("input", showHideFields);
showHideFields();
function showHideFields() {
let state = formIDInput.value.startsWith("id:") == "" ? "block" : "none";
document.getElementById("filter_state").closest(".control-group").style.display = state;
document.getElementById("filter_period").closest(".control-group").style.display = state;
}
});
');
?>
<div class="export_tool form tmpl-<?php echo $this->tmpl ?>">
<div class="container">
<h1><?php echo JText::_('COM_CONVERTFORMS_LEADS_EXPORT') ?></h1>
<form method="post" action="<?php echo JRoute::_('index.php') ?>" name="adminForm" id="adminForm" >
<?php echo $this->form->renderFieldset('submission'); ?>
<button class="btn btn-primary" type="submit">
<?php echo JText::_('COM_CONVERTFORMS_LEADS_EXPORT') ?>
</button>
<input type="hidden" name="option" value="com_convertforms"/>
<input type="hidden" name="task" value="export.export"/>
<input type="hidden" name="tmpl" value="<?php echo $this->tmpl ?>"/>
<?php echo JHtml::_('form.token'); ?>
</form>
</div>
</div>