-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathform.php
More file actions
44 lines (37 loc) · 1.33 KB
/
form.php
File metadata and controls
44 lines (37 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* @package Redform.Admin
* @subpackage Layouts
*
* @copyright Copyright (c) 2008 - 2021 redweb.dk. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
defined('_JEXEC') or die;
$data = $displayData;
$app = JFactory::getApplication();
if (isset($data['action']))
{
$action = $data['action'];
}
else
{
$action = JRoute::_('index.php');
}
$form = $data['form'];
$sid = $data['sid'];
$fieldsHtml = $data['fieldsHtml'];
$referer64 = $data['referer64'];
?>
<form action="<?php echo $action; ?>" method="post" name="redform" id="redForm_<?php echo $form->id ?>" class="redform-validate <?php echo $form->classname; ?>" enctype="multipart/form-data">
<?php echo $fieldsHtml; ?>
<?php if (!$sid): ?>
<div id="submit_button" style="display: block;" class="submitform <?php echo $form->classname; ?>">
<input type="submit" id="regularsubmit" name="submit" class="validate" value="<?php echo $form->params->get('submit_label') ?: JText::_('COM_REDFORM_Submit'); ?>" />
</div>
<?php else: ?>
<input type="hidden" name="submitter_id" value="<?php echo $sid; ?>" />
<?php endif; ?>
<input type="hidden" name="option" value="com_redform" />
<input type="hidden" name="task" value="redform.save" />
<input type="hidden" name="referer" value="<?php echo $referer64; ?>" />
</form>