form->published != '1') return; // add component layout folder as base path for LayoutHelper. Necessary for pagination link LayoutHelper::$defaultBasePath = JPATH_ROOT .'/components/com_visforms/layouts'; // visforms. min must be enabled actively HTMLHelper::_('visforms.includeScriptsOnlyOnce', array('visforms.min' => false), array('validation' => false)); $this->labelHtmlTag = 'dt'; $this->valueHtmlTag = 'dd'; $this->labelClass = 'vfdvlabel'; $this->valueClass = 'vfdvvalue'; $this->extension = 'vfdataview'; foreach ($this->fields as $rowField) { if ($rowField->typefield == 'location' && !empty($rowField->displayAsMapInList)) { echo LayoutHelper::render('visforms.custom.noscript', array('text' => 'COM_VISFORMS_NOSCRIPT_ALERT_DATA'), null, array('component' => 'com_visforms')); break; } } $viewclass = (!empty($this->pparams['viewclass'])) ? ' class="visdata ' . $this->pparams['viewclass'] . '"' : ' class="visdata"'; ?>
pparams['show_page_heading'] === "true") { if (empty($this->form->fronttitle)) { echo '

' . $this->form->title . '

'; } else { echo '

' . $this->form->fronttitle . '

'; } } if (!empty($this->form->frontdescription)) { echo '
' . $this->form->frontdescription . '
'; } foreach ($this->items as $item) { echo ''; echo LayoutHelper::render('visforms.datas.labels.row', array('form' => $this->form, 'label' => Text::_('COM_VISFORMS_ID'), 'name' => 'displayid', 'extension' => $this->extension, 'htmlTag' => $this->labelHtmlTag, 'class' => $this->labelClass . ' data-id', 'pparams' => $this->pparams), null, array('component' => 'com_visforms')); echo LayoutHelper::render('visforms.datas.fields.defaultoverhead', array('form' => $this->form, 'text' => $item->id, 'name' => 'displayid', 'extension' => $this->extension, 'htmlTag' => $this->valueHtmlTag, 'class' => $this->valueClass . ' data-id', 'pparams' => $this->pparams), null, array('component' => 'com_visforms')); foreach ($this->fields as $rowField) { $prop = "F" . $rowField->id; $texte = (isset($item->$prop)) ? $item->$prop : ''; echo LayoutHelper::render('visforms.datas.labels.row', array('form' => $this->form, 'label' => $rowField->label, 'extension' => $this->extension, 'htmlTag' => $this->labelHtmlTag, 'class' => $this->labelClass . ' data-f' . $rowField->id, 'pparams' => $this->pparams), null, array('component' => 'com_visforms')); echo LayoutHelper::render('visforms.datas.fields', array('form' => $this->form, 'field' => $rowField, 'data' => $item, 'text' => $texte, 'htmlTag' => $this->valueHtmlTag, 'class' => $this->valueClass . ' data-f' . $rowField->id, 'extension' => $this->extension, 'view' => 'list'), null, array('component' => 'com_visforms')); } echo LayoutHelper::render('visforms.datas.labels.row', array('form' => $this->form, 'label' => Text::_('COM_VISFORMS_IP_ADDRESS'), 'name' => 'displayip', 'extension' => $this->extension, 'htmlTag' => $this->labelHtmlTag, 'class' => $this->labelClass . ' data-ip', 'pparams' => $this->pparams), null, array('component' => 'com_visforms')); echo LayoutHelper::render('visforms.datas.fields.defaultoverhead', array('form' => $this->form, 'text' => $item->ipaddress, 'name' => 'displayip', 'extension' => $this->extension, 'htmlTag' => $this->valueHtmlTag, 'class' => $this->valueClass . ' data-ip', 'pparams' => $this->pparams), null, array('component' => 'com_visforms')); echo LayoutHelper::render('visforms.datas.labels.row', array('form' => $this->form, 'label' => Text::_('COM_VISFORMS_MODIFIED'), 'name' => 'displayismfd', 'extension' => $this->extension, 'htmlTag' => $this->labelHtmlTag, 'class' => $this->labelClass . ' data-mfd', 'pparams' => $this->pparams), null, array('component' => 'com_visforms')); echo LayoutHelper::render('visforms.datas.fields.ismfd', array('form' => $this->form, 'text' => $item->ismfd, 'extension' => $this->extension, 'htmlTag' => $this->valueHtmlTag, 'class' => $this->valueClass . ' data-mfd', 'pparams' => $this->pparams), null, array('component' => 'com_visforms')); echo LayoutHelper::render('visforms.datas.labels.row', array('form' => $this->form, 'label' => Text::_('COM_VISFORMS_SUBMISSIONDATE'), 'name' => 'displaycreated', 'extension' => $this->extension, 'htmlTag' => $this->labelHtmlTag, 'class' => $this->labelClass . ' data-created', 'pparams' => $this->pparams), null, array('component' => 'com_visforms')); echo LayoutHelper::render('visforms.datas.fields.created', array('form' => $this->form, 'data' => $item, 'extension' => $this->extension, 'htmlTag' => $this->valueHtmlTag, 'class' => $this->valueClass . ' data-created', 'pparams' => $this->pparams), null, array('component' => 'com_visforms')); echo LayoutHelper::render('visforms.datas.labels.row', array('form' => $this->form, 'label' => Text::_('COM_VISFORMS_CREATED_BY'), 'name' => 'displaycreatedby', 'extension' => $this->extension, 'htmlTag' => $this->labelHtmlTag, 'class' => $this->labelClass . ' data-created-by', 'pparams' => $this->pparams), null, array('component' => 'com_visforms')); echo LayoutHelper::render('visforms.datas.fields.defaultoverhead', array('form' => $this->form, 'text' => $item->creator, 'name' => 'displaycreatedby', 'extension' => $this->extension, 'htmlTag' => $this->valueHtmlTag, 'class' => $this->valueClass . ' data-created-by', 'pparams' => $this->pparams), null, array('component' => 'com_visforms')); echo LayoutHelper::render('visforms.datas.labels.row', array('form' => $this->form, 'label' => Text::_('COM_VISFORMS_MODIFICATION_DATE'), 'name' => 'displaymodifiedat', 'extension' => $this->extension, 'htmlTag' => $this->labelHtmlTag, 'class' => $this->labelClass . ' data-modifiedat', 'pparams' => $this->pparams), null, array('component' => 'com_visforms')); echo LayoutHelper::render('visforms.datas.fields.modifiedat', array('form' => $this->form, 'data' => $item, 'extension' => $this->extension, 'htmlTag' => $this->valueHtmlTag, 'class' => $this->valueClass . ' data-modifiedat', 'pparams' => $this->pparams), null, array('component' => 'com_visforms')); echo LayoutHelper::render('visforms.datas.labels.row', array('form' => $this->form, 'label' => Text::_('COM_VISFORMS_MODIFIED_BY'), 'name' => 'displaymodifiedby', 'extension' => $this->extension, 'htmlTag' => $this->labelHtmlTag, 'class' => $this->labelClass . ' data-modified-by', 'pparams' => $this->pparams), null, array('component' => 'com_visforms')); echo LayoutHelper::render('visforms.datas.fields.defaultoverhead', array('form' => $this->form, 'text' => $item->editor, 'name' => 'displaymodifiedby', 'extension' => $this->extension, 'htmlTag' => $this->valueHtmlTag, 'class' => $this->valueClass . ' data-modified-by', 'pparams' => $this->pparams), null, array('component' => 'com_visforms')); echo ''; } if (!isset($this->pparams['count'])) { echo '

' . $this->pagination->getPagesCounter() . '

' . $this->pagination->getPagesLinks() . '
'; } ?>