<?php /** * @package RSForm! Pro * @copyright (C) 2007-2019 www.rsjoomla.com * @license GPL, http://www.gnu.org/copyleft/gpl.html */ defined('_JEXEC') or die; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Uri\Uri; HTMLHelper::_('behavior.keepalive'); ?> <form action="index.php?option=com_rsform" method="post" name="adminForm" id="adminForm" enctype="multipart/form-data"> <?php if ($this->submission->Lang) { ?> <p><?php echo Text::sprintf('RSFP_SUBMISSION_SENT_IN', $this->submission->Lang); ?></p> <?php } ?> <table class="admintable table table-bordered table-striped table-condensed"> <?php foreach ($this->staticHeaders as $header) { ?> <tr> <td width="200" style="width: 200px;" align="right" class="key"><?php echo $header->label; ?></td> <td> <?php if ($header->value === 'confirmed') { echo HTMLHelper::_('select.booleanlist', 'formStatic['.$header->value.']', '', $this->staticFields->{$header->value}); echo '<hr /><p><a class="btn btn-primary" href="' . Uri::root() . 'index.php?option=com_rsform&task=confirm&hash=' . md5($this->submission->SubmissionId . $this->submission->FormId . $this->submission->DateSubmitted) . '" target="_blank">' . Text::_('COM_RSFORM_CONFIRMATION_LINK') . '</a></p>'; } elseif ($header->value === 'DateSubmitted' || $header->value === 'ConfirmedDate') { echo HTMLHelper::_('calendar', $this->staticFields->{$header->value}, 'formStatic[' . $header->value . ']', $header->value, '%Y-%m-%d %H:%M:%S', array('showTime' => true)); } else { ?> <input class="rs_inp rs_80" <?php if ($header->value === 'SubmissionId') {?> disabled<?php } ?> type="text" name="formStatic[<?php echo $header->value; ?>]" value="<?php echo $this->escape($this->staticFields->{$header->value}); ?>" size="105" /> <?php } ?> </td> </tr> <?php } ?> <?php foreach ($this->fields as $field) { ?> <tr> <td width="200" style="width: 200px;" align="right" class="key"> <?php echo $field[0]; ?> </td> <td> <?php echo $field[1]; ?> </td> </tr> <?php } ?> </table> <input type="hidden" name="option" value="com_rsform"> <input type="hidden" name="task" value=""> <input type="hidden" name="cid" value="<?php echo $this->submissionId; ?>"> <input type="hidden" name="formId" value="<?php echo $this->formId; ?>"> </form>