uawdijnntqw1x1x1
IP : 216.73.216.219
Hostname : webm009.cluster128.gra.hosting.ovh.net
Kernel : Linux webm009.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
OS : Linux
PATH:
/
home
/
chauffn
/
vuzelia
/
2023
/
cf455
/
..
/
plugins
/
convertformstools
/
pdf
/
fields
/
pdfsubmission.php
/
/
<?php /** * @package Convert Forms * @version 3.2.11 Pro * * @author Tassos Marinos <info@tassos.gr> * @link http://www.tassos.gr * @copyright Copyright © 2020 Tassos Marinos All Rights Reserved * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later */ defined('_JEXEC') or die('Restricted access'); JLoader::register('PDFHelper', __DIR__ . '/helper/pdfhelper.php'); class JFormFieldPDFSubmission extends JFormFieldText { /** * Method to get a list of options for a list input. * * @return array An array of JHtml options. */ protected function getInput() { $this->disabled = true; $this->class = 'span12'; $id = $this->form->getData()->get('id'); $modelSubmission = JModelLegacy::getInstance('Conversion', 'ConvertFormsModel', ['ignore_request' => true]); $submission = $modelSubmission->getItem($id); // if no value is given, hide the field if (!$this->value = PDFHelper::getSubmissionPDF($submission)) { $this->hidden = true; return; } return parent::getInput() . $this->getHelperButtons($this->value); } /** * Renders buttons to view/download the PDF * * @param string $pdf_url * * @return string */ private function getHelperButtons($pdf_url) { return '<div style="margin-top: 10px;">' . '<a href="' . $pdf_url . '" target="_blank" class="btn btn-secondary">' . \JText::_('PLG_CONVERTFORMSTOOLS_PDF_SUBMISSION_VIEW_BTN') . '</a> ' . '<a href="' . $pdf_url . '" class="btn btn-secondary" download>' . \JText::_('PLG_CONVERTFORMSTOOLS_PDF_SUBMISSION_DOWNLOAD_BTN') . '</a>' . '</div>'; } }
/home/chauffn/vuzelia/2023/cf455/../plugins/convertformstools/pdf/fields/pdfsubmission.php